登录系统顶层配置菜单,设定你想要配置。
petalinux-config
登录Linux内核配置菜单并配置
petalinux-config -c kernel
登录根文件系统配置菜单并配置
petalinux-config -c rootfs
三、编译与仿真工程
具体编译
petalinux-build -c appname -x clean
petalinux-build -c appname -x install
petalinux-build -c appname -x build
整体编译
petalinux-build
制作Bin文件
petalinux-package --boot --fsbl ./images/linux/zynq_fsbl.elf --fpga ./images/linux/system_top.bit --u-boot --force
打包
petalinux-package --prebuilt --fpga ./images/linux/system_top.bit --force
仿真
QEMU中调试Linux内核
petalinux-boot --qemu --prebuilt 3
#模拟运行u-boot,kernel,看看是不是正确
petalinux-boot --qemu --u-boot
petalinux-boot --qemu --kernel