Bringup Zybo-Z7-20 Board Using Petalinux

在Ubuntu 16.04 LTS环境下,通过Petalinux工具创建项目。首先从指定位置下载释放文件,然后使用该文件创建项目。最后,将BOOT.BIN和image.ub文件复制到SD卡(FAT32格式)的第一分区,以启动板载系统。
摘要由CSDN通过智能技术生成

OS: Ubuntu 16.04 LTS

To create a petalinux project from a given .bsp file, download a released .bsp file from here firstly. I am using Petalinux-Zybo-Z7-20-2017.4-2.bsp.

//1. Init petalinux environment to enable its commands
jeremy@j-XPS-8700:~/workspace/zybo-z7-20$ source /opt/pkg/petalinux/settings.sh
PetaLinux environment set to '/opt/pkg/petalinux'
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution

//2. Create a petalinux project based on a BoardSupportPackage (.bsp file)
jeremy@j-XPS-8700:~/workspace/zybo-z7-20$ petalinux-create --type project -s ./Petalinux-Zybo-Z7-20-2017.4-2.bsp --name hf-petalinux
INFO: Create project: hf-petalinux
INFO: New project successfully created in /home/jeremy/workspace/zybo-z7-20/hf-petalinux

//3. Go into the project path
jeremy@j-XPS-8700:~/workspace/zybo-z7-20$ cd hf-petalinux/

jeremy@j-XPS-8700:~/workspace/zybo-z7-20/hf-petalinux$ find . -name *.hdf
./components/plnx_workspace/device-tree/device-tree-generation/hardware_description.hdf
./components/plnx_workspace/fsbl/.Xil/-27586-ubuntu/system_2.hdf
./components/plnx_workspace/fsbl/.Xil/-27586-ubuntu/system.hdf
./components/plnx_workspace/fsbl/.Xil/-82400-ubuntu/system4977696269316939875_2.hdf
./components/plnx_workspace/fsbl/.Xil/-82400-ubuntu/system4977696269316939875.hdf
./components/plnx_workspace/fsbl/.Xil/-82400-ubuntu/system_2.hdf
./components/plnx_workspace/fsbl/.Xil/-82400-ubuntu/system.hdf
./components/plnx_workspace/fsbl/.Xil/-82400-ubuntu/system_4.hdf
./components/plnx_workspace/fsbl/.Xil/-82400-ubuntu/system_3.hdf
./components/plnx_workspace/fsbl/.Xil/-34784-ubuntu/system3225159500462406109.hdf
./components/plnx_workspace/fsbl/.Xil/-34784-ubuntu/system_2.hdf
./components/plnx_workspace/fsbl/.Xil/-34784-ubuntu/system.hdf
./components/plnx_workspace/fsbl/.Xil/-34784-ubuntu/system_4.hdf
./components/plnx_workspace/fsbl/.Xil/-34784-ubuntu/system3225159500462406109_2.hdf
./components/plnx_workspace/fsbl/.Xil/-34784-ubuntu/system_3.hdf
./components/plnx_workspace/fsbl/.Xil/-115205-ubuntu/system9006040107705128330_2.hdf
./components/plnx_workspace/fsbl/.Xil/-115205-ubuntu/system_2.hdf
./components/plnx_workspace/fsbl/.Xil/-115205-ubuntu/system9006040107705128330.hdf
./components/plnx_workspace/fsbl/.Xil/-115205-ubuntu/system.hdf
./components/plnx_workspace/fsbl/.Xil/-115205-ubuntu/system_4.hdf
./components/plnx_workspace/fsbl/.Xil/-115205-ubuntu/system_3.hdf
./components/plnx_workspace/fsbl/fsbl_hwproj/system.hdf
./project-spec/hw-description/system.hdf

//4. Configure this petalinux project with the Hardware Description File (*.hdf file)
jeremy@j-XPS-8700:~/workspace/zybo-z7-20/hf-petalinux$ petalinux-config 
[INFO] generating Kconfig for project       
[INFO] menuconfig project
/home/jeremy/workspace/zybo-z7-20/hf-petalinux/build/misc/config/Kconfig.syshw:30:warning: defaults for choice values not supported
/home/jeremy/workspace/zybo-z7-20/hf-petalinux/build/misc/config/Kconfig:568:warning: config symbol defined without type
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
~/workspace/zybo-z7-20/hf-petalinux/build/misc/plnx-generated ~/workspace/zybo-z7-20/hf-petalinux
~/workspace/zybo-z7-20/hf-petalinux
[INFO] generating machine configuration
[INFO] generating bbappends for project . This may take time ! 
~/workspace/zybo-z7-20/hf-petalinux/build/misc/plnx-generated ~/workspace/zybo-z7-20/hf-petalinux
~/workspace/zybo-z7-20/hf-petalinux
[INFO] generating u-boot configuration files       
[INFO] generating kernel configuration files
[INFO] generating kconfig for Rootfs
Generate rootfs kconfig
[INFO] oldconfig rootfs
[INFO] generating petalinux-user-image.bb
[INFO] successfully configured project
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!

//5. Configure U-boot
//===> Keep default configuration and save the config as `u-boot.config`.
jeremy@j-XPS-8700:~/workspace/zybo-z7-20/hf-petalinux$ petalinux-config -c u-boot
[INFO] generating Kconfig for project        
[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
~/workspace/zybo-z7-20/hf-petalinux/build/misc/plnx-generated ~/workspace/zybo-z7-20/hf-petalinux
~/workspace/zybo-z7-20/hf-petalinux
[INFO] generating machine configuration
[INFO] configuring: u-boot
[INFO] generating u-boot configuration files
[INFO] bitbake virtual/bootloader -c menuconfig
Loading cache: 100% |#####################################################################| Time: 0:00:00
Loaded 3258 entries from dependency cache.
Parsing recipes: 100% |###################################################################| Time: 0:00:01
Parsing of 2473 .bb files complete (2430 cached, 43 parsed). 3266 targets, 226 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |################################################################| Time: 0:00:04
Checking sstate mirror object availability: 100% |########################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 275 tasks of which 270 didn't need to be rerun and all succeeded.
bitbake -c diffconfig virtual/bootloader
Parsing recipes...done.
Parsing of 2473 .bb files complete (0 cached, 2473 parsed). 3266 targets, 226 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks...done.
NOTE: Executing RunQueue Tasks
NOTE: Running task 1 of 1 (/opt/pkg/petalinux/components/yocto/source/arm/layers/meta-xilinx/recipes-bsp/u-boot/u-boot-xlnx_2017.01.bb:do_diffconfig)
NOTE: recipe u-boot-xlnx-v2017.01-xilinx-v2017.4+gitAUTOINC+42deb242f9-r0: task do_diffconfig: Started
NOTE: recipe u-boot-xlnx-v2017.01-xilinx-v2017.4+gitAUTOINC+42deb242f9-r0: task do_diffconfig: Succeeded
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.
[INFO
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值