UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Highlighted
Contributor
Contributor
1,424 次查看
注册日期: ‎11-18-2018

petalinux-build时出错

转到解答

第一次使用petalinux,在执行petalinux-build过程中出错,不知道如何解决。

下面是log信息:

wzp@ubuntu:~/zcu104_vcu_plnx$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |############################################| Time: 0:00:02
Loaded 3437 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:13
Parsing of 2552 .bb files complete (2514 cached, 38 parsed). 3441 targets, 139 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################| Time: 0:00:32
Checking sstate mirror object availability: 100% |###############| Time: 0:11:29
NOTE: Executing SetScene Tasks
WARNING: xf86dgaproto-1_2.1-r2 do_package_qa_setscene: Failed to fetch URL file://6b/sstate:xf86dgaproto:aarch64-xilinx-linux:2.1:r2:aarch64:3:6be89ed067d6a73b3014b9c7036eb5f9_package_qa.tgz;downloadfilename=6b/sstate:xf86dgaproto:aarch64-xilinx-linux:2.1:r2:aarch64:3:6be89ed067d6a73b3014b9c7036eb5f9_package_qa.tgz, attempting MIRRORS if available
ERROR: xf86dgaproto-1_2.1-r2 do_package_qa_setscene: Fetcher failure: Unable to find file file://6b/sstate:xf86dgaproto:aarch64-xilinx-linux:2.1:r2:aarch64:3:6be89ed067d6a73b3014b9c7036eb5f9_package_qa.tgz;downloadfilename=6b/sstate:xf86dgaproto:aarch64-xilinx-linux:2.1:r2:aarch64:3:6be89ed067d6a73b3014b9c7036eb5f9_package_qa.tgz anywhere. The paths that were searched were:
/home/wzp/zcu104_vcu_plnx/build/sstate-cache
/home/wzp/zcu104_vcu_plnx/build/sstate-cache
ERROR: xf86dgaproto-1_2.1-r2 do_package_qa_setscene: No suitable staging package found
WARNING: Logfile for failed setscene task is /home/wzp/zcu104_vcu_plnx/build/tmp/work/aarch64-xilinx-linux/xf86dgaproto/1_2.1-r2/temp/log.do_package_qa_setscene.64512
WARNING: Setscene task (/home/wzp/opt/pkg/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-graphics/xorg-proto/xf86dgaproto_2.1.bb:do_package_qa_setscene) failed with exit code '1' - real task will be run instead
NOTE: Executing RunQueue Tasks
WARNING: petalinux-user-image-1.0-r0 do_rootfs: [log_check] petalinux-user-image: found 1 warning message in the logfile:
[log_check] warning: %post(sysvinit-inittab-2.88dsf-r10.zcu104_zynqmp) scriptlet failed, exit status 1

ERROR: petalinux-user-image-1.0-r0 do_rootfs: [log_check] petalinux-user-image: found 5 error messages in the logfile:
[log_check] ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
[log_check] ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
[log_check] ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
[log_check] ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
[log_check] ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

ERROR: petalinux-user-image-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/wzp/zcu104_vcu_plnx/build/tmp/work/zcu104_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/temp/log.do_rootfs.62289
ERROR: Task (/home/wzp/zcu104_vcu_plnx/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6892 tasks of which 5182 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/wzp/zcu104_vcu_plnx/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs
Summary: There were 2 WARNING messages shown.
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project

0 项奖励
1 个已接受解答

已接受的解答
Xilinx Employee
Xilinx Employee
1,394 次查看
注册日期: ‎09-14-2018

回复: petalinux-build时出错

转到解答

hi @zhuangzhuang

可能还是host 缺少东西,如果是Ubuntu,建议按照下面的指令重新安装一遍,

>>>>>>>>>>>>>>>>>>>>>>>>>>

sudo apt-get update

# Otherwise some of the lib/tools following can't be found on apt-get

 

sudo apt-get install -y python tofrodos iproute2 gawk xvfb gcc git net-tools libncurses5-dev tftpd zlib1g-dev libssl-dev flex bison libselinux1 gnupg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib build-essential libsdl1.2-dev libglib2.0-dev

#Some of the library can't be found with the name listed on UG1144

 

sudo apt-get install zlib1g:i386

# If you don't install this one, some warning would be found when source the PetaLinux settings

 

sudo apt-get install screen

# This is a work-around found for can't open "petalinux-config -c kernel" menu window

 ----------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
----------------------------------------------------------------------------------------------

 

 

3 条回复3
Contributor
Contributor
1,404 次查看
注册日期: ‎11-18-2018

回复: petalinux-build时出错

转到解答

ERROR: xf86dgaproto-1_2.1-r2 do_package_qa_setscene: Fetcher failure

这个错误通过 

sudo apt-get install x11proto-xf86dga-dev

得到解决;

但第二个错误:

ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored 

还不知道如何解决

0 项奖励
Xilinx Employee
Xilinx Employee
1,395 次查看
注册日期: ‎09-14-2018

回复: petalinux-build时出错

转到解答

hi @zhuangzhuang

可能还是host 缺少东西,如果是Ubuntu,建议按照下面的指令重新安装一遍,

>>>>>>>>>>>>>>>>>>>>>>>>>>

sudo apt-get update

# Otherwise some of the lib/tools following can't be found on apt-get

 

sudo apt-get install -y python tofrodos iproute2 gawk xvfb gcc git net-tools libncurses5-dev tftpd zlib1g-dev libssl-dev flex bison libselinux1 gnupg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib build-essential libsdl1.2-dev libglib2.0-dev

#Some of the library can't be found with the name listed on UG1144

 

sudo apt-get install zlib1g:i386

# If you don't install this one, some warning would be found when source the PetaLinux settings

 

sudo apt-get install screen

# This is a work-around found for can't open "petalinux-config -c kernel" menu window

 ----------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
----------------------------------------------------------------------------------------------

 

 

Contributor
Contributor
1,372 次查看
注册日期: ‎11-18-2018

回复: petalinux-build时出错

转到解答

按照这个解决方案完成后,没有error了,但还会报WARNING: petalinux-user-image-1.0-r0 do_rootfs: [log_check] petalinux-user-image: found 1 warning message in the logfile:[log_check] warning: %post(sysvinit-inittab-2.88dsf-r10.zcu104_zynqmp) scriptlet failed, exit status 1

这个warning不影响petalinu的编译,能够通过,能够实现petalinux在FPGA板卡上的运行。

谢谢!!!

0 项奖励