目录
![在这里插入图片描述](https://img-blog.csdnimg.cn/41ae7f8b5b2a40d08385e288ec7e6db9.jpeg#pic_center)
赛灵思 ZYNQ UltraScale+ MPSoC Petalinux常用开发命令
1、设置petalinux
运行环境
source /opt/pkg/petalinux/settings.sh
/* /opt/pkg/petalinux为petalinux安装路径 */
2、创建petalinux
工程
petalinux-create -t project -n petalinux --template zynqMP
注:使用
zynqMP
模板创建名称为petalinux
、类型为:project
的工程。
3、配置petalinux
工程硬件信息,即配置xsa
文件
petalinux-config --get-hw-description ../hardware/
4、配置文件系统
petalinux-config -c rootfs
5、编译petalinux
工程
petalinux-build
6、生成BOOT
文件
petalinux-package --boot --u-boot --fpga --force
7、配置uboot
petalinux-config -c uboot
8、配置kernel
petalinux-config -c kernel
9、在petalinux
系统将驱动模块添加入系统中
petalinux-create -t modules -name xxx
/* xxx即驱动模块名称 */
printf("请关注微信公众号:Kevin的学习站,阅读更多关于AUTSAR和自动驾驶嵌入式相关的文章!")