赞
踩
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。