[X]关闭

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

文档创建者:hvyzmjho
浏览次数:4351
最后更新:2022-06-07
答疑分类
答疑分类: 1-开机测试 » 2-AMD(XILINX)
  • 技术支持
  • LINUX
  • 联系人:刘***
  • 手机号:187***
  • 邮箱:912***@qq.com
  • 板卡型号:MZU09B
按照例程第八章配置,更改了设备树文件,使用工具包制作烧写系统正常

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

文档创建者:hvyzmjho
浏览次数:4351
最后更新:2022-06-07

发表评论已发布 1

答疑分类
答疑分类: 1-开机测试 » 2-AMD(XILINX)
你好哪里出了问题?可以再描述一下吗?

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

文档创建者:hvyzmjho
浏览次数:4351
最后更新:2022-06-07
答疑分类
答疑分类: 1-开机测试 » 2-AMD(XILINX)
按照教程走了一遍,一直没有报错,制作完系统SD卡有两个文件,image,system.dtb,将开发板设置为SD卡启动,连接串口一直没打印出相关信息。现在的疑问是烧写好系统的SD,可以直接启动,还是需要BOOT.BIN文件?

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

文档创建者:hvyzmjho
浏览次数:4351
最后更新:2022-06-07
答疑分类
答疑分类: 1-开机测试 » 2-AMD(XILINX)
设备树文件

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

文档创建者:hvyzmjho
浏览次数:4351
最后更新:2022-06-07
答疑分类
答疑分类: 1-开机测试 » 2-AMD(XILINX)
是按照这个例程

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

文档创建者:hvyzmjho
浏览次数:4351
最后更新:2022-06-07
答疑分类
答疑分类: 1-开机测试 » 2-AMD(XILINX)
应该是create-image阶段有问题,一般缺少fsbl或者bit文件,请检查一下文件是否齐全,create-image阶段有没有报错。

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

文档创建者:hvyzmjho
浏览次数:4351
最后更新:2022-06-07
答疑分类
答疑分类: 1-开机测试 » 2-AMD(XILINX)
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
[INFO] 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
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/fit_image.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/mkimage.o
  CHK     include/config.h
  CFG     u-boot.cfg
  HOSTLD  tools/mkenvimage
  HOSTLD  tools/dumpimage
  HOSTLD  tools/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[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
  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[2]: 'arch/arm/dts/zynqmp-mzux.dtb' is up to date.
  FDTGREP dts/dt-spl.dtb
  LD      u-boot.elf
  MKIMAGE u-boot.img
make[3]: '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.
====================================================
  CFGCHK  u-boot.cfg
make: Leaving directory '/home/lkb/uisrc-lab-xlnx/sources/uboot'
[INFO] 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
[INFO] 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'
[INFO] Installing the Kernel Image.
[INFO] Building the Device Tree Binaries on the /home/lkb/uisrc-lab-xlnx/sources/kernel.
[INFO] 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'
[INFO] Installing the Kernel Modules
[sudo] 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
  DEPMOD  4.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
[INFO] 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
[INFO] Linux kernel with modified header for U-Boot
[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
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/N]? y
[INFO] Umount All Mounted Partitions
[sudo] password for lkb:
[INFO] Remove All Existing Partitions from sdb
[INFO] Choose the MBR Partitioning Standard
[INFO] Create the fat32 partition of 100MB and make it bootable
[INFO] Create the ext4 partition until end of device
[INFO] Re-read The Partition Table Without Rebooting Linux System
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdb      8:16   1 14.7G  0 disk
|-sdb2   8:18   1 14.6G  0 part
`-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)
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   

[INFO] 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 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
[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
[INFO] umount the rootfs partition from /home/lkb/uisrc-lab-xlnx/boards/mzux/ubuntu/output/sdcard
[INFO] Mount the boot partition to /home/lkb/uisrc-lab-xlnx/boards/mzux/ubuntu/output/sdcard
[INFO] 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 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
lkb@ubuntu:~/uisrc-lab-xlnx$

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

文档创建者:hvyzmjho
浏览次数:4351
最后更新:2022-06-07
答疑分类
答疑分类: 1-开机测试 » 2-AMD(XILINX)
使用https://www.uisrc.com/t-3268.html页面,下载虚拟机系统uisrc-ubuntu18x64,然后重试。该问题是缺少环境导致。

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

文档创建者:hvyzmjho
浏览次数:4351
最后更新:2022-06-07
答疑分类
答疑分类: 1-开机测试 » 2-AMD(XILINX)
检查后,确实有一条错误,这个在错误怎么解决?

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

文档创建者:hvyzmjho
浏览次数:4351
最后更新:2022-06-07
答疑分类
答疑分类: 1-开机测试 » 2-AMD(XILINX)
那得重新装虚拟机系统?
12下一页
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则