新手入门
- 积分
- 18
- 金钱
- 18
- 注册时间
- 2020-5-6
- 在线时间
- 5 小时
|
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内核编译没有问题;求助各位大佬
|
|