虚拟机软件版本:VMware14.1.1
Linux系统版本:ubuntu-16.04.6
petalinux版本:petalinux-v2019.2
vivado版本:Vivado 2019.2
此工程是在《ZYNQ 7000 Linux工程开发》基础上进行的。
一、创建helloworld驱动
进入上次建立好的linux工程中,命令如下:
cd test_project
创建helloworld模块,命令如下:
petalinux-create -t modules -n helloworld --enable
-t 为创建的类型参数,可选参数为1 project 2 apps 3 modules
此处要创建的是模块,所以选择 modules
-n 为要创建的名称,此处命名模块名为 helloworld
–enable 参数为使能创建模块
创建模块成功后的打印信息如下:
INFO: Create modules: helloworld
INFO: New modules successfully created in /home/zj/zynq/test_project/project-spe c/meta-user/recipes-modules/helloworld
INFO: Enabling created component...
INFO: sourcing bitbake
INFO: silentconfig rootfs
INFO: helloworld has been enabled
至此,helloworld模块的框架已经生成成功。
helloworl