sdsoc platform with petalinux build

Roy Hsu
體驗人生 touch life~~
6 min readApr 4, 2020
Photo by Cole Keister on Unsplash

因為rootfs要自帶gcc libstdc++ library 所以 rootfs size 會太大 造成 ramdisk size 無法容納 所以SD card要割2區 root, rootfs

root: 60M(FAT32), rootfs:residual(ext4)

petalinux:

手動bootargs:

petalinux-config -c kernel:

fpga-manager:

打開/project-spec/meta-user/recipes-bsp/device-tree/files/下的system-user.dtsi:

petalinux-config -c rootfs:

petalinux-build:/images/linux 找到

image.ub=> kernel, devicetree

zynq_fsbl.elf, u-boot.elf

打包boot.bin:

petalinux-package — boot — force — fsbl images/linux/zynq_fsbl.elf — fpga images/linux/system.bit — u-boot

1. copy BOOT.BIN, image.ub 至boot partition

2. 解壓rootfs.gz至rootfs partition

上電:

check library:

copy libsds_lib.so to /usr/lib 再 ldconfig連結

檢查.elf 需要的library 有沒有都找到:

可能遇到的問題: Unknown command booti

solution- 修改 project-spec/meta-plnx-generated/recipes-bsp/u-boot/configs/platform-auto.h => booti->bootm

https://forums.xilinx.com/t5/Embedded-Linux/Zedboard-Unknown-command-booti-PetaLinux/td-p/899108

reference:

https://blog.csdn.net/lulugay/article/details/83661407

--

--

Roy Hsu
體驗人生 touch life~~

一個為生活在紅塵中打滾 但努力保持著心中那一小塊最初的原始的不變的那個 觀世事變遷 隨緣自在