主要参考:
UG1144和UG1157文档
0.配置petalinux tool的环境:
source <path-to-directory-petalinux>/settings.sh
1.创建工程:
petalinux-create -t project -s <bsp 文件>
2.导入硬件平台
cd <plnx-proj-root>
petalinux-config --get-hw-description=<path-to-directory-which-contains-hardwaredescription-file>
注意上面是指.hdf路径,不是.hdf文件;等号前面不要加空格!!
3.配置petalinux(如果第二步完成后自己出现配置界面,则跳过第三步)
petalinux-config
主要配置root file system type 为SD卡,后续要用SD卡挂在rootfs
4.创建/编译用户应用、内核模块
根据需求创建用户应用/内核模块
5.编译petalinux系统
petalinux-build
<