petalinux2019.2 zcu106 build error

摘要:
ug12091.CreateaPetaLinuxprojectusingthefollowingcommand:$petalinux-create-tproject-spetalinux-create-tproject-s./xilinx-zcu106-v2019.2-final.b

ug1209

1. Create a PetaLinux project using the following command:
$petalinux-create -t project -s <path to the directory that has
xilinx-zcu102-v2019.2-final.bsp>

petalinux-create -t project -s ./xilinx-zcu106-v2019.2-final.bsp

Note: xilinx-zcu102-v2019.2-final.bsp is the PetaLinux BSP for ZCU102 Production
Silicon Rev1.0 Board. Use xilinx-zcu102-ZU9-ES2-Rev1.0-v2019.2-final.bsp, if you
are using ES2 Silicon on Rev 1.0 board.
The above step creates a PetaLinux Project Directory, such as:
xilinx-zcu102-2019.2.

2. Change to the PetaLinux project directory using the following command:
$ cd xilinx-zcu102-2019.2
The ZCU102 Petalinux-BSP is the default ZCU102 Linux BSP. For this example, you
reconfigure the PetaLinux Project based on the Zynq UltraScale+ hardware platform that
you configured using Vivado Design Suite in Chapter 2.

cdxilinx-zcu106-2019.2

3. Copy the hardware platform edt_zcu102_wrapper.xsa to the Linux Host machine.

一开始以为只需要拷贝xsa文件,后来反复报错找不到硬件信息

应该将edt_zcu106.hw拷贝过来

4. Reconfigure the project using the following command:
$ petalinux-config --get-hw-description=<path containing edt_zcu102_wrapper.xsa>/

This command opens the PetaLinux Configuration window. If required, make changes in
the configuration. For this example, the default settings from the BSP are sufficient to
generate required boot images.
The following steps will verify if PetaLinux is configured to create Linux and boot images
for SD Boot.

petalinux-config --get-hw-description=./edt_zcu106.hw

5. Select Subsystem AUTO Hardware Settings.
6. Select Advanced Bootable Images Storage Settings.
a. Select boot image settings.
b. Select Image Storage Media.
c. Select primary sd as the boot device.
7. Under the Advanced Bootable Images Storage Settings submenu, do the following:
a. Select kernel image settings.
b. Select Image Storage Media.
c. Select primary sd as the storage device.
8. Under Subsystem AUTO Hardware Settings, select Memory Settings and set the
System Memory Size to 0x6FFFFFFF
9. Save the configuration settings and exit the Configuration wizard.
10. Wait until PetaLinux reconfigures the project.
The following steps will build the Linux images, verify them, and generate the boot
image.
11. Modify Device Tree to disable Heartbeat LED and SW19 push button, from the device
tree. Due to this the RPU R5-0 can use PS LED and SW19 switch for other designs in this
tutorial. This can be done by adding the following to the system-user.dtsi which
can be found in the following location:
<PetaLinux-project>/project-spec/meta-user/recipes-bsp/device-tr
ee/files/system-user.dtsi
12. Add the following to system-user.dtsi, so that it looks like:
/include/ "system-conf.dtsi"
/ {
gpio-keys {
sw19 {
status = "disabled";
};
};
leds {
heartbeat_led {

status = "disabled";
};

};
};
&uart1
{
status = "disabled";
};
13. In <PetaLinux-project>, build the Linux images using the following command:
$ petalinux-build

这一步出现了ERROR 很多类似下面的错误

ERROR: libusb-compat-1_0.1.5-r0 do_package_qa_setscene: Fetcher failure: Unable to find file file://43/sstate:libusb-compat:cortexa9hf-neon-xilinx-linux-gnueabi:0.1.5:r0:cortexa9hf-neon:3:43b1875a02abaf580308530f64665b87_package_qa.tgz;downloadfilename=43/sstate:libusb-compat:cortexa9hf-neon-xilinx-linux-gnueabi:0.1.5:r0:cortexa9hf-neon:3:43b1875a02abaf580308530f64665b87_package_qa.tgz anywhere. The paths that were searched were:
    /home/user/SDSoC-Zybo-Z7-20/linux/Zybo-Z7-20/build/sstate-cache
    /home/user/SDSoC-Zybo-Z7-20/linux/Zybo-Z7-20/build/sstate-cache
ERROR: libusb-compat-1_0.1.5-r0 do_package_qa_setscene: No suitable staging package found

When doing a virginclean creationwith petalinux-create --template zynq and apetalinux-config

the following fields in "Yocto Settings "are automatically filled by the petalinuxtoolchain:

  • Enable Network sstate feeds (NEW) = TRUE
  • Network sstate feeds URL --->│http://petalinux.xilinx.com/sswreleases/rel-v2016.4/arm/sstate-cache

Unfortunately, the mentioned URL no longer exists and this is presumably the root cause of my error.

By settingpetalinux-configYocto SettingsEnable Network sstate feeds (NEW) = FALSE , the error disappeared.

继续petalinux-build 又出现了

device-tree-xilinx-v2019.2+gitAUTOINC+a8b39cf536-r0 do_compile: Error executing a python function in exec_python_func() autogenerated

Subprocess output:
Error: /home/zy/work/zcu106/xilinx-zcu106-2019.2/build/tmp/work/zcu106_zynqmp-xilinx-linux/device-tree/xilinx-v2019.2+gitAUTOINC+a8b39cf536-r0/system-user.dtsi:13.2-8 syntax error
FATAL ERROR: Unable to parse input tree

先暂时去掉device-tree的修改,继续往下编译试试

之后又出现了

| fatal: The remote end hung up unexpectedly
| fatal: clone of 'git://anongit.freedesktop.org/gstreamer/common' into submodule path '/home/zhangyi/work/zcu106/xilinx-zcu106-2019.2/build/tmp/work/aarch64-xilinx-linux/gst-interpipes/1.0.4-r0/git/common' failed

感觉是没找到clone的源,后来google了各种xilinx论坛的解决方案 进行了如下更改

petalinux2019.2 zcu106 build error第1张

改为

petalinux2019.2 zcu106 build error第2张

但是,最终饶了一圈下来 发现时自己修改system-user.dtsi 有问题,不用修改petalinux-configYocto SettingsEnable Network sstate feeds的url

其中也查到一些关于预先下载package的方法,详见

https://blog.csdn.net/vacajk/article/details/77504589

包地址是http://petalinux.xilinx.com/sswreleases/注意不同版本不同子文件夹

14. After the above statement executes successfully, verify the images and the timestamp in
the images directory in the PetaLinux project folder using the following commands:
$ cd images/linux/
$ ls -al
15. Generate the Boot image using the following command:
$ petalinux-package --boot --fsbl zynqmp_fsbl.elf --u-boot
This creates a BOOT.BIN image file in the following directory:
<petalinux-project>/images/linux/BOOT.BIN

The Logs indicate that the above command includes PMU_FW and ATF in BOOT.BIN. You
can also add --pmufw <PMUFW_ELF> and --atf <ATF_ELF> in the above command.
Refer $ petalinux-package --boot --help for more details.

petalinux-package --boot --fsbl zynqmp_fsbl.elf --fpga system.bit --pmufw pmufw.elf
--atf bl31.elf --u-boot u-boot.elf

To verify the image:
1. Copy files BOOT.BIN and image.ub to an SD card.
2. Load the SD card into the ZCU106 board
3. Connect a Micro USB cable from ZCU106 Board USB UART port to USB port on the
host Machine.

4. Configure the Board to Boot in SD-Boot mode by setting switch SW6 as shown in the
following figure.

petalinux2019.2 zcu106 build error第3张

petalinux2019.2 zcu106 build error第4张

免责声明:文章转载自《petalinux2019.2 zcu106 build error》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Debian9.5解决在root用户下启用VNC后lightdm+Xfce4只能使用root登录,其他用户无法登陆应用沙盒(Application Sandbox)下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Jenkins:Linux下安装部署步骤

【转载:https://www.cnblogs.com/code-juggler/p/9177805.html】 1. 准备环境   首先,需要jdk是必须要安装好的。本人使用的linux是centos,直接使用yum安装。   先找到合适的版本://至少1.8 yum search java | grep jdk   然后运行安装: yum instal...

Linux学习 : 移植qt 5.6.3 及 tslib 1.4

                             (一) 移植 qt5.6.3 一、qt简介:   Qt是一个1991年由Qt Company开发的跨平台C++图形用户界面应用程序开发框架。它既可以开发GUI程序,也可用于开发非GUI程序,比如控制台工具和服务器。Qt是面向对象的框架,使用特殊的代码生成扩展(称为元对象编译器(Meta Object...

Linux关闭防火墙命令

程序在本地能跑起来且正常访问,部署到linux服务器上,跑起来没报错,但是就是访问不了, 这种问题往往是防火墙问题!! 下面是red hat/CentOs7关闭防火墙的命令: 1:查看防火状态 systemctl status firewalld service iptables status 2:暂时关闭防火墙 systemctl stop firewa...

LXC/KVM虚拟化基本概念

LXC:其名称来自Linux软件容器(Linux Containers)的缩写.LXC利用cgroups与名称空间的功能,提供应用软件一个独立的操作系统环境。LXC不需要Hypervisor这个软件层,软件容器(Container)本身极为轻量化,提升了创建虚拟机的速度。严格来说不算是虚拟化技术,只是进程隔离和资源限制,软件Docker被用来管理LXC的环...

Linux 压缩与解压命令

1.    zip与unzip命令   zip 用于压缩文件,压缩为*.zip文件。 unzip 用于解开被zip压缩过的文件。 (1) zip [选项] 压缩后的名称 文件或目录   选项:     选项较多,不一一详细介绍。     -d :从压缩文件内删除指定的文件;     -r :递归处理,将指定目录下的所有文件和子目录一并处理;   例:   ...

linux 根目录扩容方法

准备知识 linux volume 1.(PV)physical volume disk ; 物理硬盘 物理硬盘需要转换成lvm(logic volume manage)可识别的状态,将磁盘的system id 转换成8e(lvm的识别码),再通过 pvcreate转换成PV,这样才能对磁盘加以利用 2.(VG) volume group 磁盘组, 由p...