既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上C C++开发知识点,真正体系化!
由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新
从零开始创建项目
petalinux-create -t project --template zynq -n myproject
使用SDK中导出的HDF文件更新项目配置,一共三种方法
//1、在项目根目录下用HDF文件更新
cd
petalinux-config --get-hw-description=
//2、在HDF所在目录更新项目配置
cd
petalinux-config --get-hw-description -p
//3、在任意路径下操作
petalinux-config --get-hw-discription
系统配置
//全局配置
petalinux-config
//kernel配置
petalinux-config -c kernel
//保存kernel.config文件
//u-boot配置
petalinux-config -c u-boot
//保存u-boot.config文件
//文件系统配置
petalinux-config -c rootfs
//默认保存config文件
编译系统
//全局编译
petalinux-build
//u-boot编译
petalinux-build -c u-boot
//kernel编译
petalinux-build -c kernel
//文件系统编译
petalinux-build -c rootfs
制作boot.bin文件
petalinux-package --boot --fsbl zynq_fsbl.elf --fpga dma_demo.bit --u-boot u-boot.elf
QEMU模拟运行
petalinux-boot --qemu --u-boot
petalinux-boot --qemu --kernel
JTAG运行
//加载bitstream/fsbl
petalinux-boot --jtag --prebuilt 1
//加载u-boot
petalinux-boot --jtag --prebuilt 2
//加载kernel
petalinux-boot --jtag --prebuilt 3
petalinux-boot --jtag --u-boot
petalinux-boot --jtag --kernel
编辑,更新devicetree
petalinux-build -c device-tree -x cleanall
petalinux-build -c device-tree
重新生成image.ub
petalinux-build -x package
![img](https://img-blog.csdnimg.cn/img_convert/34be384f1bd72c8b5a73f445550b7958.png)
![img](https://img-blog.csdnimg.cn/img_convert/c4c3b8106904e2f800246dc8c2b49096.png)
**网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。**
**[需要这份系统化的资料的朋友,可以添加戳这里获取](https://bbs.csdn.net/topics/618668825)**
**一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!**
csdn.net/topics/618668825)**
**一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!**