书接上回
petalinux-build 顺利完成,满心欢喜终于可以模拟启动啦。
执行 petalinux-boot --qemu --kernel
报错
ERROR: Failed to boot. Image file '*/pre-built/linux/images/pmu_rom_qemu_sha3.elf' doesn't exist.
这个elf文件是什么鬼
在工程目录 find . -name pmu_rom_qemu_sha3.elf 也没有啊
在AMD社区网站上找到一篇文章跟我这个问题很相近
Petalinux 2019.1 qemu boot searches for pmu_rom_qemu_sha3.elf but it does not exist in the pre-built folder nor anywhere on my system
主要是说 pmu_rom_qemu_sha3.elf 文件存在于官网提供的BSP里面,随便下载一个Zynq UltraScale+ MPSoC系列的BSP,解压后就有这个文件。
比如我用的是zu11eg,Petalinux 2019.1的环境,下载这个就行
https://account.amd.com/en/forms/downloads/xef.html?filename=xilinx-zcu102-v2019.1-final.bsp
解压 tar -xf xilinx-zcu102-v2019.1-final.bsp xilinx-zcu102-2019.1
在这里 xilinx-zcu102-2019.1/pre-built/linux/images/pmu_rom_qemu_sha3.elf
复制到自己的目录下 <project>/pre-built/linux/images/
qemu启动成功!
这里可以下载 pmu_rom_qemu_sha3.elf