OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 1957|回复: 2

[XILINX] ZYNQ按照第8章LInux显示设备的驱动Petalinux编译失败

[复制链接]

1

主题

2

帖子

0

精华

新手入门

积分
18
金钱
18
注册时间
2020-5-6
在线时间
5 小时
发表于 2020-10-1 12:37:47 | 显示全部楼层 |阅读模式
4金钱
按照领航者ZYNQ之Linux开发指南_V1.2中第九章的内容是在Petalinux中配置使用从原子git上的下载的linux-4.14的内核。配置Xilinx LCD framebuffer driver support By Alientek 和 Digilent axi_dynclk Driver  后,使用petalinux-config -c kernel能够成功;
使用的硬件描述和设备树文件是\领航者ZYNQ开发板资料盘(A盘)\4_SourceCode\ZYNQ_7010\3_Embedded_Linux\zynq_petalinux\2_linux_hdmi下的文件;
linux-4.14内核文件权限均更改为777;
但进行petalinux-build后,显示编译失败;失败内容如下:
~/work/petalinux/test_hdmi2$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |############################################| Time: 0:00:00
Loaded 3443 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:04
Parsing of 2569 .bb files complete (2535 cached, 34 parsed). 3445 targets, 149 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################| Time: 0:00:05
Checking sstate mirror object availability: 100% |###############| Time: 0:00:11
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: linux-xlnx: compiling from external source tree /home/zhangsongqi/work/petalinux/linux-4.14
ERROR: linux-xlnx-4.14-xilinx-v2018.3+git999-r0 do_compile_kernelmodules: oe_runmake failed
ERROR: linux-xlnx-4.14-xilinx-v2018.3+git999-r0 do_compile_kernelmodules: Function failed: do_compile_kernelmodules (log file is located at /home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/temp/log.do_compile_kernelmodules.110226)
ERROR: Logfile of failure stored in: /home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/temp/log.do_compile_kernelmodules.110226
Log data follows:
| DEBUG: Executing shell function do_compile_kernelmodules
| NOTE: make HOSTCC=gcc  -isystem/home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/recipe-sysroot-native/usr/lib -L/home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E -C /home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/linux-xlnx-4.14-xilinx-v2018.3+git999/ -j 4 modules CC=arm-xilinx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -ffile-prefix-map=/home/zhangsongqi/work/petalinux/linux-4.14=/kernel-source/  LD=arm-xilinx-linux-gnueabi-ld.bfd   UIMAGE_LOADADDR=0x8000
| make: Entering directory '/home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/linux-xlnx-4.14-xilinx-v2018.3+git999'
|   CHK     include/config/kernel.release
|   GEN     ./Makefile
|   CHK     include/generated/uapi/linux/version.h
|   CHK     include/generated/utsrelease.h
|   Using /home/zhangsongqi/work/petalinux/linux-4.14 as source for kernel
|   CHK     scripts/mod/devicetable-offsets.h
|   CHK     include/generated/timeconst.h
|   CHK     include/generated/bounds.h
|   CHK     include/generated/asm-offsets.h
|   CALL    /home/zhangsongqi/work/petalinux/linux-4.14/scripts/checksyscalls.sh
|   CC [M]  crypto/crypto_engine.o
|   CC [M]  crypto/echainiv.o
|   CC [M]  crypto/hmac.o
|   CC [M]  crypto/sha256_generic.o
|   CC [M]  drivers/crypto/virtio/virtio_crypto_algs.o
|   CC [M]  crypto/authenc.o
|   CC [M]  drivers/crypto/virtio/virtio_crypto_mgr.o
|   CC [M]  crypto/authencesn.o
|   CC [M]  drivers/crypto/virtio/virtio_crypto_core.o
|   LD [M]  drivers/crypto/virtio/virtio_crypto.o
|   CC [M]  crypto/drbg.o
|   CC [M]  net/802/p8022.o
|   CC [M]  net/8021q/vlan.o
|   CC [M]  crypto/jitterentropy.o
|   CC [M]  crypto/jitterentropy-kcapi.o
|   CC [M]  net/8021q/vlan_dev.o
|   LD [M]  crypto/jitterentropy_rng.o
|   CC [M]  net/802/psnap.o
|   CC [M]  net/8021q/vlan_netlink.o
|   CC [M]  net/802/stp.o
|   CC [M]  net/bridge/br.o
|   CC [M]  net/bridge/br_device.o
|   CC [M]  net/bridge/br_fdb.o
|   CC [M]  net/bridge/br_forward.o
|   CC [M]  net/ipv4/ipip.o
|   CC [M]  net/bridge/br_if.o
|   CC [M]  net/llc/llc_core.o
|   CC [M]  net/bridge/br_input.o
|   CC [M]  net/llc/llc_input.o
|   CC [M]  net/bridge/br_ioctl.o
|   CC [M]  net/llc/llc_output.o
|   LD [M]  net/llc/llc.o
|   CC [M]  net/bridge/br_stp.o
|   CC [M]  net/bridge/br_stp_bpdu.o
|   CC [M]  net/bridge/br_stp_if.o
|   CC [M]  net/bridge/br_stp_timer.o
|   CC [M]  net/bridge/br_netlink.o
|   CC [M]  net/bridge/br_netlink_tunnel.o
|   CC [M]  net/bridge/br_sysfs_if.o
|   CC [M]  net/bridge/br_sysfs_br.o
|   CC [M]  net/bridge/br_multicast.o
|   CC [M]  net/bridge/br_mdb.o
|   CC [M]  net/8021q/vlanproc.o
|   LD [M]  net/8021q/8021q.o
|   LD [M]  net/bridge/bridge.o
|   CC [M]  drivers/remoteproc/zynq_remoteproc.o
|   CC [M]  drivers/rpmsg/rpmsg_core.o
| /home/zhangsongqi/work/petalinux/linux-4.14/drivers/remoteproc/zynq_remoteproc.c:36:10: fatal error: /home/zhangsongqi/work/petalinux/linux-4.14/include/../../arch/arm/mach-zynq/common.h: Permission denied
|  #include <../../arch/arm/mach-zynq/common.h>
|           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| compilation terminated.
| make[4]: *** [/home/zhangsongqi/work/petalinux/linux-4.14/scripts/Makefile.build:321: drivers/remoteproc/zynq_remoteproc.o] Error 1
| make[3]: *** [/home/zhangsongqi/work/petalinux/linux-4.14/scripts/Makefile.build:573: drivers/remoteproc] Error 2
| make[3]: *** Waiting for unfinished jobs....
|   CC [M]  drivers/rpmsg/virtio_rpmsg_bus.o
| make[2]: *** [/home/zhangsongqi/work/petalinux/linux-4.14/Makefile:1024: drivers] Error 2
| make[1]: *** [Makefile:146: sub-make] Error 2
| make: *** [Makefile:24: __sub-make] Error 2
| make: Leaving directory '/home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/linux-xlnx-4.14-xilinx-v2018.3+git999'
| ERROR: oe_runmake failed
| WARNING: /home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/temp/run.do_compile_kernelmodules.110226:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile_kernelmodules (log file is located at /home/zhangsongqi/work/petalinux/test_hdmi2/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/temp/log.do_compile_kernelmodules.110226)
ERROR: Task (/opt/pkg/petalinux/2018.3/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.3.bb:do_compile_kernelmodules) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3020 tasks of which 2973 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /opt/pkg/petalinux/2018.3/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.3.bb:do_compile_kernelmodules
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project



试了好多次每次编译都出错,使用petalinux自带的linux内核编译没有问题;求助各位大佬

最佳答案

查看完整内容[请看2#楼]

问题已解决,因为我安装的Ubuntu版本是16.04.5,换成16.04.04后编译不再报错
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

1

主题

2

帖子

0

精华

新手入门

积分
18
金钱
18
注册时间
2020-5-6
在线时间
5 小时
 楼主| 发表于 2020-10-1 12:37:48 | 显示全部楼层
问题已解决,因为我安装的Ubuntu版本是16.04.5,换成16.04.04后编译不再报错
回复

使用道具 举报

2

主题

712

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
2178
金钱
2178
注册时间
2018-8-27
在线时间
258 小时
发表于 2020-10-9 09:37:37 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-27 11:24

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表