MPSOC之4——petalinux提取源碼


petalinux使用太不方便,捆綁的太死板,也不通用,還不如直接用編譯器來的簡單高效。
本文說明從petalinux中提取出源代碼的過程,前提是已經petalinux-build完成。

1. uboot

編譯結果里沒有uboot的源碼,可能是編譯完了就刪除了。
從git上下載吧。

git clone https://github.com/Xilinx/u-boot-xlnx.git

2. linux

分析log文件太費勁了,直接查找linux內核的文件,獲取內核源碼。

[liuwanpeng@localhost xilinx-zcu102-2017.2]$ find ./ -name "core.c" -print
./build/tmp/sysroots/plnx_aarch64/usr/lib/perl/ptest/ext/XS-APItest/core.c
./build/tmp/work-shared/plnx_aarch64/kernel-source/arch/arm/mach-cns3xxx/core.c
./build/tmp/work-shared/plnx_aarch64/kernel-source/arch/arm/mach-ebsa110/core.c
linux目錄在:./build/tmp/work-shared/plnx_aarch64/kernel-source/

3.dts

使用petalinux根據bsp建立工程以后,會在prebuild文件夾生產system.dtb,用dtc反匯編可獲取dts文件

4.rootfs

編譯完成后,./image/linux中有編譯好的rootfs

5 編譯器提取

暫時不提取,后續如果別的機器不安裝petalinux時,再把編譯器單獨提取出來。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM