[list]
* r- T2 \' f) ]+ }) X[*]技术支持
[*]LINUX
7 A, R" D8 c: Q0 } P. Q) d" w[/list][list]
[*]联系人:刘***
[/list][list]
[*]手机号:187***
6 Q8 y% M" @* f: U! L- u5 h) N[/list][list]
3 i. a$ u3 w% p3 n5 S/ D[*]邮箱:912***@qq.com
[/list][list]
. i; j' S4 a+ o! E F% O[*]板卡型号:MZU09B
[/list]按照例程第八章配置,更改了设备树文件,使用工具包制作烧写系统正常

你好哪里出了问题?可以再描述一下吗?
按照教程走了一遍,一直没有报错,制作完系统SD卡有两个文件,image,system.dtb,将开发板设置为SD卡启动,连接串口一直没打印出相关信息。现在的疑问是烧写好系统的SD,可以直接启动,还是需要BOOT.BIN文件?
+ R5 j. y5 M. U4 }) j# ]
设备树文件
M7 o# r G" o
是按照这个例程
/ e! X0 j3 {. b% O9 `" S

应该是create-image阶段有问题,一般缺少fsbl或者bit文件,请检查一下文件是否齐全,create-image阶段有没有报错。
lkb@ubuntu:~/uisrc-lab-xlnx$ source scripts/mzuxcfg.sh
lkb@ubuntu:~/uisrc-lab-xlnx$ make_uboot.sh
+ ]* J4 i0 @7 t, T; ~+ t# \0 w[ 2022/06/06 17:17:07 ] Starting make_uboot.sh
[INFO] Build U-Boot on the /home/lkb/uisrc-lab-xlnx/sources/uboot.
make: Entering directory '/home/lkb/uisrc-lab-xlnx/sources/uboot'
R1 u( ?- X0 Z' d7 p3 Z" L CHK include/config/uboot.release
CHK include/generated/timestamp_autogenerated.h
% R" G/ X( y, c/ r UPD include/generated/timestamp_autogenerated.h
: f) i2 c6 b9 i4 R! T$ f4 Z6 l8 l$ j" o CHK include/generated/version_autogenerated.h
& z8 t' k" b& ~, R. w, w/ v6 @ CHK include/generated/generic-asm-offsets.h
3 U- I& q& {$ P0 B CHK include/generated/asm-offsets.h
HOSTCC tools/mkenvimage.o
HOSTCC tools/fit_image.o
HOSTCC tools/image-host.o
HOSTCC tools/dumpimage.o
# Y% ?4 ^3 y! s* `; r. t T HOSTCC tools/mkimage.o
CHK include/config.h
# u; N/ ] o% X0 e CFG u-boot.cfg
HOSTLD tools/mkenvimage
( P& F6 P2 n( @( ~. b! D! ? HOSTLD tools/dumpimage
7 R) o+ k G W0 F& N5 k8 A HOSTLD tools/mkimage
! b; N% M T" J5 R8 ~3 x7 D CC arch/arm/cpu/armv8/fwcall.o
LD arch/arm/cpu/armv8/built-in.o
i) d& W- }: t, Y( ^ DTC arch/arm/dts/zynqmp-mzux.dtb
8 d* I4 J$ X1 J% }) a- G CC common/main.o
0 O; J- a) ~- b1 z! p& L" xmake[2]: 'arch/arm/dts/zynqmp-mzux.dtb' is up to date.
SHIPPED dts/dt.dtb
DTB dts/dt.dtb.S
AS dts/dt.dtb.o
% n2 J3 I% b7 y! ]) z LD dts/built-in.o
/ v. `* r( p7 |0 @7 ]$ _ CC lib/smbios.o
CC lib/display_options.o
LD common/built-in.o
7 B+ r2 T$ T: E) r- u C6 e CC cmd/version.o
6 n" x, R$ H/ f' R AS lib/efi_loader/efi_crt0.o
) W3 [) X3 P' d' b7 S! _ CC lib/efi_loader/helloworld.o
, E" _: l# r3 D0 t1 ~$ _ CC lib/efi_loader/efi_reloc.o
. j6 K; R$ z$ i+ s9 p: i LD cmd/built-in.o
4 e* a( ]' s s! v y( L LD lib/efi_loader/helloworld_efi.so
3 M' t! g- ~ A) k; N$ g/ N- o* Y OBJCOPY lib/efi_loader/helloworld.efi
- t8 t" ?' E" r: Drm lib/efi_loader/helloworld_efi.so lib/efi_loader/helloworld.o
+ P0 _& h7 X2 v3 }/ q3 K7 i# F LD lib/built-in.o
LD u-boot
$ f( p/ E$ n e" b OBJCOPY u-boot.srec
4 O7 Y9 b7 D$ a/ e' j4 q6 ?' \ OBJCOPY u-boot-nodtb.bin
1 ^ S' K' [$ G7 w) M' d1 l" d SYM u-boot.sym
start=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x8000000 $start $end
COPY u-boot.bin
( j4 `9 a8 A; b6 f+ U$ ^- k2 | {make[2]: 'arch/arm/dts/zynqmp-mzux.dtb' is up to date.
FDTGREP dts/dt-spl.dtb
LD u-boot.elf
$ ]9 q! F# u/ b, Q: R2 b MKIMAGE u-boot.img
make[3]: 'arch/arm/dts/zynqmp-mzux.dtb' is up to date.
FDTGREP spl/dts/dt-spl.dtb
, J) E4 c; d% z9 ]. q$ y7 B DTB spl/dts/dt-spl.dtb.S
AS spl/dts/dt-spl.dtb.o
- W# d0 ^& J, f CC spl/arch/arm/cpu/armv8/fwcall.o
$ C$ U1 {( U* ?2 v' ] LD spl/dts/built-in.o
CC spl/common/spl/spl.o
) e2 H0 \% s2 b& O9 G4 c4 w Q' J LD spl/arch/arm/cpu/armv8/built-in.o
CC spl/lib/display_options.o
LD spl/lib/built-in.o
: c) h. q. k3 E( O0 U! Z# m5 a LD spl/common/spl/built-in.o
: G0 z( `. Z- R3 s0 }# G LD spl/u-boot-spl
4 G) X# F. O4 i2 s' c! `( Y' L7 ` OBJCOPY spl/u-boot-spl-nodtb.bin
" [. Q; B( R1 q/ M COPY spl/u-boot-spl.bin
% y$ w% l l" g MKIMAGE spl/boot.bin
===================== WARNING ======================
CONFIG_OF_EMBED is enabled. This option should only
! [# B8 R: o; b8 o% I# `, Sbe used for debugging purposes. Please use
CONFIG_OF_SEPARATE for boards in mainline.
See doc/README.fdt-control for more info.
====================================================
3 z: S6 k V5 s" E5 ` CFGCHK u-boot.cfg
make: Leaving directory '/home/lkb/uisrc-lab-xlnx/sources/uboot'
- C! a9 H j0 S6 x[INFO] Installing the U-Boot Image.
6 w" A. }9 r; V+ ]+ k[ 2022/06/06 17:17:14 ] Finished make_uboot.sh
lkb@ubuntu:~/uisrc-lab-xlnx$ make_kernel.sh
[ 2022/06/06 17:17:36 ] Starting make_kernel.sh
[INFO] Building the kernel image on the /home/lkb/uisrc-lab-xlnx/sources/kernel.
make: Entering directory '/home/lkb/uisrc-lab-xlnx/sources/kernel'
- U' D1 P, {* X3 G/ O/ I CALL scripts/checksyscalls.sh
/ D9 ^: [% R1 c' @ K CHK include/generated/compile.h
( j: e" }: p* V9 A Building modules, stage 2.
# q0 Y# |( Y# {5 M6 G1 l) f% g MODPOST 41 modules
make: Leaving directory '/home/lkb/uisrc-lab-xlnx/sources/kernel'
" n/ h% [* Q: u- J S6 W9 R3 u[INFO] Installing the Kernel Image.
[INFO] Building the Device Tree Binaries on the /home/lkb/uisrc-lab-xlnx/sources/kernel.
) u$ _( T% M* U/ a[INFO] Building the Kernel Modules on the /home/lkb/uisrc-lab-xlnx/sources/kernel
5 w; t3 [. v- f4 q# j3 \9 M y& pmake: Entering directory '/home/lkb/uisrc-lab-xlnx/sources/kernel'
CALL scripts/checksyscalls.sh
, f! | ~* n# n6 G( J Building modules, stage 2.
0 I( ], e9 T% m3 O# V MODPOST 41 modules
( [ a/ m( \, s, Fmake: Leaving directory '/home/lkb/uisrc-lab-xlnx/sources/kernel'
( C& @. K; q3 ?. B[INFO] Installing the Kernel Modules
[sudo] password for lkb:
make: Entering directory '/home/lkb/uisrc-lab-xlnx/sources/kernel'
) `/ ?8 x( M1 C) Y INSTALL crypto/crypto_engine.ko
INSTALL crypto/echainiv.ko
$ S3 D+ o' l' C+ T5 Y0 x7 r INSTALL drivers/crypto/virtio/virtio_crypto.ko
& A: y/ F- H' F) S' \ INSTALL drivers/media/usb/gspca/gspca_main.ko
1 ~. `, R8 H' |: o/ [& U; b/ L INSTALL drivers/mtd/tests/mtd_nandbiterrs.ko
8 p5 b" X) Y! N4 o; K( D& M INSTALL drivers/mtd/tests/mtd_nandecctest.ko
7 @$ t5 i# \; a- K9 a: p INSTALL drivers/mtd/tests/mtd_oobtest.ko
INSTALL drivers/mtd/tests/mtd_pagetest.ko
8 s! B2 z5 i6 {( D: U; l INSTALL drivers/mtd/tests/mtd_readtest.ko
: s9 W# f4 J! O2 W# R INSTALL drivers/mtd/tests/mtd_speedtest.ko
3 d6 u4 s! v# w0 q1 ?* O INSTALL drivers/mtd/tests/mtd_subpagetest.ko
3 I) l" B5 [1 U* \% q INSTALL drivers/mtd/tests/mtd_torturetest.ko
: m# f! G' P7 `+ F4 A, ~+ I9 T INSTALL drivers/mtd/tests/mtd_stresstest.ko
; Q2 `( f" u/ y6 y0 E+ B3 @- } INSTALL drivers/rpmsg/virtio_rpmsg_bus.ko
Y R" x; i% v* ]. f. }* ^+ \. x INSTALL drivers/rpmsg/rpmsg_core.ko
6 Q0 G! @" V" A: A* z INSTALL drivers/remoteproc/zynqmp_r5_remoteproc.ko
INSTALL drivers/soc/xilinx/xlnx_vcu_clk.ko
; y7 s4 R! i1 K, w( m* V7 K INSTALL drivers/soc/xilinx/xlnx_vcu.ko
INSTALL drivers/soc/xilinx/xlnx_vcu_core.ko
INSTALL drivers/uio/uio_dmem_genirq.ko
. R% _3 ^' m4 L6 b& m5 D' n INSTALL drivers/uio/uio_pdrv_genirq.ko
( p0 I# x' }- u- A$ f" i" q% m INSTALL drivers/usb/gadget/function/usb_f_ecm.ko
9 b, W' S2 ~- } INSTALL drivers/usb/gadget/function/usb_f_ecm_subset.ko
INSTALL drivers/usb/gadget/legacy/g_ether.ko
INSTALL drivers/usb/gadget/function/usb_f_rndis.ko
INSTALL drivers/video/backlight/lcd.ko
8 f7 |4 J/ e. h' x3 B% z m INSTALL drivers/usb/gadget/legacy/g_mass_storage.ko
, w. z$ K$ }$ D4 n$ }% b+ | INSTALL fs/efivarfs/efivarfs.ko
INSTALL fs/nfs/flexfilelayout/nfs_layout_flexfiles.ko
INSTALL net/bridge/br_netfilter.ko
$ O# F& q9 l9 a/ K' ^7 f5 w& { INSTALL net/ipv4/netfilter/nf_defrag_ipv4.ko
INSTALL net/ipv4/netfilter/nf_nat_ipv4.ko
: `7 |9 |$ N+ S, u( r INSTALL net/ipv6/netfilter/nf_defrag_ipv6.ko
! }' L# N# {* w, |2 t! j INSTALL net/ipv6/netfilter/nf_nat_ipv6.ko
INSTALL net/netfilter/nf_conntrack.ko
( k( @- D; ~% w0 Y; t& M INSTALL net/netfilter/nf_nat.ko
INSTALL net/netfilter/nf_conntrack_netlink.ko
INSTALL net/netfilter/xt_REDIRECT.ko
' |, k! { R: j- \: D INSTALL net/netfilter/xt_connmark.ko
INSTALL net/netfilter/xt_conntrack.ko
INSTALL net/netfilter/xt_state.ko
" X. G& o) P; t9 J- X+ r DEPMOD 4.19.0
make: Leaving directory '/home/lkb/uisrc-lab-xlnx/sources/kernel'
* @) k2 k/ q4 Y- m" c[ 2022/06/06 17:19:08 ] Finished make_kernel.sh
lkb@ubuntu:~/uisrc-lab-xlnx$ create_image.sh
[ 2022/06/06 17:56:05 ] Starting create_image.sh
[ 2022/06/06 17:56:05 ] Starting create_zynqmp_image.sh
% ?% b/ w* ]4 i& g2 X[INFO] Generate the boot image for sdcard mode
" L* Q& `! j8 S: V5 q+ L; [/home/lkb/uisrc-lab-xlnx/sources/bootgen/bootgen: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
6 N' H$ b. b- u2 R6 M) x# S[INFO] Linux kernel with modified header for U-Boot
# i. p. l+ Q+ x5 w$ P0 l[INFO] Device tree blob
[INFO] Generate the ubuntu Root filesystem
[ 2022/06/06 17:56:08 ] Finished create_zynqmp_image.sh
[ 2022/06/06 17:56:08 ] Finished create_image.sh
lkb@ubuntu:~/uisrc-lab-xlnx$ make_parted.sh
[ 2022/06/06 17:56:46 ] Starting make_parted.sh
NAME RM SIZE TYPE MODEL SERIAL
3 S9 C6 H5 F8 x* lsdb 1 14.7G disk Storage Device 121220160204
3 H2 Y9 |5 R, V, w( h0 sType device filename, or press <Enter> to exit: sdb
9 O2 S: u5 F; V. I/ Y5 [ALL DATA ON sdb WILL BE ERASED!!! DO YOU WANT TO CONTINUE [y/N]? y
9 P" J8 k3 `, k9 o[INFO] Umount All Mounted Partitions
& O% N, n9 i; [2 r7 g1 \[sudo] password for lkb:
1 C+ V9 l% R1 B. u+ o[INFO] Remove All Existing Partitions from sdb
# D6 C: u$ y. w/ {[INFO] Choose the MBR Partitioning Standard
, K* x9 v& `5 ?[INFO] Create the fat32 partition of 100MB and make it bootable
( H5 k+ \ W+ [! H! d[INFO] Create the ext4 partition until end of device
[INFO] Re-read The Partition Table Without Rebooting Linux System
% g6 D3 R2 ?- |* q' {; z0 a7 D2 ]/ eNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 14.7G 0 disk
|-sdb2 8:18 1 14.6G 0 part
; x/ i7 D* a9 ^+ m! s2 U: r& _3 Q`-sdb1 8:17 1 99M 0 part
[INFO] To format an ext4 filesystem on /dev/sdb2 with a 'rootfs' disk label
mke2fs 1.42.13 (17-May-2015)
( [) R% a& F5 K2 c- a$ [; _5 Y: bCreating filesystem with 3814400 4k blocks and 954720 inodes
Filesystem UUID: 6ba1c3ec-68ad-4fb1-8cbe-2e6a8269ba05
, J l @6 y9 [8 r3 q! r. nSuperblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
Allocating group tables: done
' X! H [! B; ^0 _8 zWriting inode tables: done
Creating journal (32768 blocks): done
) B# `2 j( V, ]4 LWriting superblocks and filesystem accounting information: done
[INFO] To format a FAT32 filesystem on /dev/sdb1 with a 'BOOT' disk label
mkfs.fat 3.0.28 (2015-05-16)
; \% k# S% {3 k- F6 z4 p6 m1 T- g$ y[ 2022/06/06 17:57:31 ] Finished make_parted.sh
lkb@ubuntu:~/uisrc-lab-xlnx$ deploy_image.sh
[ 2022/06/06 17:58:00 ] Starting deploy_image.sh
9 c- E. ?" q8 ?3 oNAME RM SIZE TYPE MODEL SERIAL
sdb 1 14.7G disk Storage Device 121220160204
Type device filename, or press <Enter> to exit: sdb
[INFO] Umount All Mounted Partitions
& r: u2 e6 f! Q+ Z0 s[INFO] Mount the rootfs partition to /home/lkb/uisrc-lab-xlnx/boards/mzux/ubuntu/output/sdcard
[INFO] Install rootfs images to /home/lkb/uisrc-lab-xlnx/boards/mzux/ubuntu/output/sdcard
2 l0 \* o7 M/ K2 _" h Z7 G; S, E[INFO] umount the rootfs partition from /home/lkb/uisrc-lab-xlnx/boards/mzux/ubuntu/output/sdcard
# a9 Z5 y: i% t5 Y$ y2 N: P[INFO] Mount the boot partition to /home/lkb/uisrc-lab-xlnx/boards/mzux/ubuntu/output/sdcard
: G/ C0 q9 C; y[INFO] Install boot images to /home/lkb/uisrc-lab-xlnx/boards/mzux/ubuntu/output/sdcard
sending incremental file list
Image
6 p) o! f; c0 B- r5 tsystem.dtb
( I% }* Z8 R+ \+ V) c
sent 15,940,761 bytes received 54 bytes 10,627,210.00 bytes/sec
total size is 15,936,704 speedup is 1.00
[INFO] Umount the boot partition from /home/lkb/uisrc-lab-xlnx/boards/mzux/ubuntu/output/sdcard
[ 2022/06/06 18:03:08 ] Finished deploy_image.sh
! D" o* ?, K; B* Q& t. G7 Flkb@ubuntu:~/uisrc-lab-xlnx$
使用https://www.uisrc.com/t-3268.html页面,下载虚拟机系统uisrc-ubuntu18x64,然后重试。该问题是缺少环境导致。
检查后,确实有一条错误,这个在错误怎么解决?
: O% U j* @& `7 l1 h) |8 @4 \

那得重新装虚拟机系统?
可以正常启动了,谢谢!

这是论坛时期的原帖存档,只读。新的讨论请到 提问,
沉淀下来的内容会进 知识库 和 方案库。