hvyzmjho 发表于 2022-6-7 09:25:29

vitis移植ubuntu系统,SD卡启动失败


[*]技术支持
[*]LINUX

[*]联系人:刘***

[*]手机号:187***

[*]邮箱:912***@qq.com

[*]板卡型号:MZU09B
按照例程第八章配置,更改了设备树文件,使用工具包制作烧写系统正常

https://www.uisrc.com/source/plugin/x7ree_service/attch_7ree/8178_attch_7ree_20220607092529.png

linux-01 发表于 2022-6-7 09:45:39

你好哪里出了问题?可以再描述一下吗?

hvyzmjho 发表于 2022-6-7 10:00:53

按照教程走了一遍,一直没有报错,制作完系统SD卡有两个文件,image,system.dtb,将开发板设置为SD卡启动,连接串口一直没打印出相关信息。现在的疑问是烧写好系统的SD,可以直接启动,还是需要BOOT.BIN文件?

https://www.uisrc.com/source/plugin/x7ree_service/attch_7ree/8178_attch_7ree_20220607100053.png

hvyzmjho 发表于 2022-6-7 10:01:38

设备树文件

https://www.uisrc.com/source/plugin/x7ree_service/attch_7ree/8178_attch_7ree_20220607100138.png

hvyzmjho 发表于 2022-6-7 10:07:21

是按照这个例程

https://www.uisrc.com/source/plugin/x7ree_service/attch_7ree/8178_attch_7ree_20220607100721.png

linux-01 发表于 2022-6-7 10:12:25

应该是create-image阶段有问题,一般缺少fsbl或者bit文件,请检查一下文件是否齐全,create-image阶段有没有报错。

hvyzmjho 发表于 2022-6-7 10:18:36

lkb@ubuntu:~/uisrc-lab-xlnx$ source scripts/mzuxcfg.sh
lkb@ubuntu:~/uisrc-lab-xlnx$ make_uboot.sh
[ 2022/06/06 17:17:07 ] Starting make_uboot.sh
Build U-Boot on the /home/lkb/uisrc-lab-xlnx/sources/uboot.
make: Entering directory '/home/lkb/uisrc-lab-xlnx/sources/uboot'
CHK   include/config/uboot.release
CHK   include/generated/timestamp_autogenerated.h
UPD   include/generated/timestamp_autogenerated.h
CHK   include/generated/version_autogenerated.h
CHK   include/generated/generic-asm-offsets.h
CHK   include/generated/asm-offsets.h
HOSTCCtools/mkenvimage.o
HOSTCCtools/fit_image.o
HOSTCCtools/image-host.o
HOSTCCtools/dumpimage.o
HOSTCCtools/mkimage.o
CHK   include/config.h
CFG   u-boot.cfg
HOSTLDtools/mkenvimage
HOSTLDtools/dumpimage
HOSTLDtools/mkimage
CC      arch/arm/cpu/armv8/fwcall.o
LD      arch/arm/cpu/armv8/built-in.o
DTC   arch/arm/dts/zynqmp-mzux.dtb
CC      common/main.o
make: 'arch/arm/dts/zynqmp-mzux.dtb' is up to date.
SHIPPED dts/dt.dtb
DTB   dts/dt.dtb.S
AS      dts/dt.dtb.o
LD      dts/built-in.o
CC      lib/smbios.o
CC      lib/display_options.o
LD      common/built-in.o
CC      cmd/version.o
AS      lib/efi_loader/efi_crt0.o
CC      lib/efi_loader/helloworld.o
CC      lib/efi_loader/efi_reloc.o
LD      cmd/built-in.o
LD      lib/efi_loader/helloworld_efi.so
OBJCOPY lib/efi_loader/helloworld.efi
rm lib/efi_loader/helloworld_efi.so lib/efi_loader/helloworld.o
LD      lib/built-in.o
LD      u-boot
OBJCOPY u-boot.srec
OBJCOPY u-boot-nodtb.bin
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
make: 'arch/arm/dts/zynqmp-mzux.dtb' is up to date.
FDTGREP dts/dt-spl.dtb
LD      u-boot.elf
MKIMAGE u-boot.img
make: 'arch/arm/dts/zynqmp-mzux.dtb' is up to date.
FDTGREP spl/dts/dt-spl.dtb
DTB   spl/dts/dt-spl.dtb.S
AS      spl/dts/dt-spl.dtb.o
CC      spl/arch/arm/cpu/armv8/fwcall.o
LD      spl/dts/built-in.o
CC      spl/common/spl/spl.o
LD      spl/arch/arm/cpu/armv8/built-in.o
CC      spl/lib/display_options.o
LD      spl/lib/built-in.o
LD      spl/common/spl/built-in.o
LD      spl/u-boot-spl
OBJCOPY spl/u-boot-spl-nodtb.bin
COPY    spl/u-boot-spl.bin
MKIMAGE spl/boot.bin
===================== WARNING ======================
CONFIG_OF_EMBED is enabled. This option should only
be used for debugging purposes. Please use
CONFIG_OF_SEPARATE for boards in mainline.
See doc/README.fdt-control for more info.
====================================================
CFGCHKu-boot.cfg
make: Leaving directory '/home/lkb/uisrc-lab-xlnx/sources/uboot'
Installing the U-Boot Image.
[ 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
Building the kernel image on the /home/lkb/uisrc-lab-xlnx/sources/kernel.
make: Entering directory '/home/lkb/uisrc-lab-xlnx/sources/kernel'
CALL    scripts/checksyscalls.sh
CHK   include/generated/compile.h
Building modules, stage 2.
MODPOST 41 modules
make: Leaving directory '/home/lkb/uisrc-lab-xlnx/sources/kernel'
Installing the Kernel Image.
Building the Device Tree Binaries on the /home/lkb/uisrc-lab-xlnx/sources/kernel.
Building the Kernel Modules on the /home/lkb/uisrc-lab-xlnx/sources/kernel
make: Entering directory '/home/lkb/uisrc-lab-xlnx/sources/kernel'
CALL    scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 41 modules
make: Leaving directory '/home/lkb/uisrc-lab-xlnx/sources/kernel'
Installing the Kernel Modules
password for lkb:
make: Entering directory '/home/lkb/uisrc-lab-xlnx/sources/kernel'
INSTALL crypto/crypto_engine.ko
INSTALL crypto/echainiv.ko
INSTALL drivers/crypto/virtio/virtio_crypto.ko
INSTALL drivers/media/usb/gspca/gspca_main.ko
INSTALL drivers/mtd/tests/mtd_nandbiterrs.ko
INSTALL drivers/mtd/tests/mtd_nandecctest.ko
INSTALL drivers/mtd/tests/mtd_oobtest.ko
INSTALL drivers/mtd/tests/mtd_pagetest.ko
INSTALL drivers/mtd/tests/mtd_readtest.ko
INSTALL drivers/mtd/tests/mtd_speedtest.ko
INSTALL drivers/mtd/tests/mtd_subpagetest.ko
INSTALL drivers/mtd/tests/mtd_torturetest.ko
INSTALL drivers/mtd/tests/mtd_stresstest.ko
INSTALL drivers/rpmsg/virtio_rpmsg_bus.ko
INSTALL drivers/rpmsg/rpmsg_core.ko
INSTALL drivers/remoteproc/zynqmp_r5_remoteproc.ko
INSTALL drivers/soc/xilinx/xlnx_vcu_clk.ko
INSTALL drivers/soc/xilinx/xlnx_vcu.ko
INSTALL drivers/soc/xilinx/xlnx_vcu_core.ko
INSTALL drivers/uio/uio_dmem_genirq.ko
INSTALL drivers/uio/uio_pdrv_genirq.ko
INSTALL drivers/usb/gadget/function/usb_f_ecm.ko
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
INSTALL drivers/usb/gadget/legacy/g_mass_storage.ko
INSTALL fs/efivarfs/efivarfs.ko
INSTALL fs/nfs/flexfilelayout/nfs_layout_flexfiles.ko
INSTALL net/bridge/br_netfilter.ko
INSTALL net/ipv4/netfilter/nf_defrag_ipv4.ko
INSTALL net/ipv4/netfilter/nf_nat_ipv4.ko
INSTALL net/ipv6/netfilter/nf_defrag_ipv6.ko
INSTALL net/ipv6/netfilter/nf_nat_ipv6.ko
INSTALL net/netfilter/nf_conntrack.ko
INSTALL net/netfilter/nf_nat.ko
INSTALL net/netfilter/nf_conntrack_netlink.ko
INSTALL net/netfilter/xt_REDIRECT.ko
INSTALL net/netfilter/xt_connmark.ko
INSTALL net/netfilter/xt_conntrack.ko
INSTALL net/netfilter/xt_state.ko
DEPMOD4.19.0
make: Leaving directory '/home/lkb/uisrc-lab-xlnx/sources/kernel'
[ 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
Generate the boot image for sdcard mode
/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
Linux kernel with modified header for U-Boot
Device tree blob
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 RMSIZE TYPE MODEL            SERIAL
sdb   1 14.7G disk Storage Device   121220160204
Type device filename, or press <Enter> to exit: sdb
ALL DATA ON sdb WILL BE ERASED!!! DO YOU WANT TO CONTINUE ? y
Umount All Mounted Partitions
password for lkb:
Remove All Existing Partitions from sdb
Choose the MBR Partitioning Standard
Create the fat32 partition of 100MB and make it bootable
Create the ext4 partition until end of device
Re-read The Partition Table Without Rebooting Linux System
NAME   MAJ:MIN RMSIZE RO TYPE MOUNTPOINT
sdb      8:16   1 14.7G0 disk
|-sdb2   8:18   1 14.6G0 part
`-sdb1   8:17   1   99M0 part
To format an ext4 filesystem on /dev/sdb2 with a 'rootfs' disk label
mke2fs 1.42.13 (17-May-2015)
Creating filesystem with 3814400 4k blocks and 954720 inodes
Filesystem UUID: 6ba1c3ec-68ad-4fb1-8cbe-2e6a8269ba05
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Allocating group tables: done                           
Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done   

To format a FAT32 filesystem on /dev/sdb1 with a 'BOOT' disk label
mkfs.fat 3.0.28 (2015-05-16)
[ 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
NAME RMSIZE TYPE MODEL            SERIAL
sdb   1 14.7G disk Storage Device   121220160204
Type device filename, or press <Enter> to exit: sdb
Umount All Mounted Partitions
Mount the rootfs partition to /home/lkb/uisrc-lab-xlnx/boards/mzux/ubuntu/output/sdcard
Install rootfs images to /home/lkb/uisrc-lab-xlnx/boards/mzux/ubuntu/output/sdcard
umount the rootfs partition from /home/lkb/uisrc-lab-xlnx/boards/mzux/ubuntu/output/sdcard
Mount the boot partition to /home/lkb/uisrc-lab-xlnx/boards/mzux/ubuntu/output/sdcard
Install boot images to /home/lkb/uisrc-lab-xlnx/boards/mzux/ubuntu/output/sdcard
sending incremental file list
Image
system.dtb

sent 15,940,761 bytesreceived 54 bytes10,627,210.00 bytes/sec
total size is 15,936,704speedup is 1.00
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
lkb@ubuntu:~/uisrc-lab-xlnx$

linux-01 发表于 2022-6-7 10:22:02

使用https://www.uisrc.com/t-3268.html页面,下载虚拟机系统uisrc-ubuntu18x64,然后重试。该问题是缺少环境导致。

hvyzmjho 发表于 2022-6-7 10:25:12

检查后,确实有一条错误,这个在错误怎么解决?

https://www.uisrc.com/source/plugin/x7ree_service/attch_7ree/8178_attch_7ree_20220607102512.jpg

hvyzmjho 发表于 2022-6-7 10:30:58

那得重新装虚拟机系统?
页: [1] 2
查看完整版本: vitis移植ubuntu系统,SD卡启动失败