Hello,
I am use Petalinux 2017.4 build the linux-xcomm_zynq。
in step of petalinux-config -c kernel ,I am chosee the ad9361 drives.
but in petalinux-build, there is a error.
linux-xlnx-4.9-xilinx-v2017.4+git999-r0 do_compile: NOTE: linux-xlnx: compiling from external source tree /home/rxp/Desktop/zynq/pro/linux-xcomm_zynq
fsbl-2017.4+gitAUTOINC+77448ae629-r0 do_compile: NOTE: fsbl: compiling from external source tree /home/rxp/pkg/petalinux2017.4/tools/hsm/data/embeddedsw
ERROR: linux-xlnx-4.9-xilinx-v2017.4+git999-r0 do_compile: oe_runmake failed
ERROR: linux-xlnx-4.9-xilinx-v2017.4+git999-r0 do_compile: Function failed: do_compile (log file is located at /home/rxp/Desktop/zynq/pro/second_petalinux_test/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/linux-xlnx/4.9-xilinx-v2017.4+git999-r0/temp/log.do_compile.38199)
ERROR: Logfile of failure stored in: /home/rxp/Desktop/zynq/pro/second_petalinux_test/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/linux-xlnx/4.9-xilinx-v2017.4+git999-r0/temp/log.do_compile.38199
Log data follows:
Log data follows:
| DEBUG: Executing python function externalsrc_compile_prefunc
| NOTE: linux-xlnx: compiling from external source tree /home/rxp/Desktop/zynq/pro/linux-xcomm_zynq
| DEBUG: Python function externalsrc_compile_prefunc finished
| DEBUG: Executing shell function do_compile
| NOTE: make -j 2 HOSTCC=gcc HOSTCPP=gcc -E zImage CC=arm-xilinx-linux-gnueabi-gcc -mno-thumb-interwork -marm -fuse-ld=bfd LD=arm-xilinx-linux-gnueabi-ld.bfd UIMAGE_LOADADDR=0x8000
| GEN ./Makefile
| scripts/kconfig/conf --silentoldconfig Kconfig
| CHK include/config/kernel.release
| GEN ./Makefile
| UPD include/config/kernel.release
.
.
.
GEN .version
| CHK include/generated/compile.h
| UPD include/generated/compile.h
| CC init/version.o
| LD init/built-in.o
drivers/built-in.o: In function `m2k_la_probe':
| fpga-region.c:(.text+0x1eb164): undefined reference to `iio_dmaengine_buffer_alloc'
| fpga-region.c:(.text+0x1eb1dc): undefined reference to `iio_dmaengine_buffer_alloc'
| drivers/built-in.o: In function `m2k_la_submit_block':
| fpga-region.c:(.text+0x1eb260): undefined reference to `iio_dmaengine_buffer_submit_block'
| drivers/built-in.o:(.rodata+0x3640c): undefined reference to `iio_dmaengine_buffer_abort'
| make[2]: *** [/home/rxp/Desktop/zynq/pro/linux-xcomm_zynq/Makefile:969: vmlinux] Error 1
| make[1]: *** [Makefile:150: sub-make] Error 2
| make: *** [Makefile:24: __sub-make] Error 2
| ERROR: Function failed: do_compile (log file is located at /home/rxp/Desktop/zynq/pro/second_petalinux_test/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/linux-xlnx/4.9-xilinx-v2017.4+git999-r0/temp/log.do_compile.38199)
ERROR: Task (/home/rxp/pkg/petalinux2017.4/components/yocto/source/arm/layers/meta-xilinx/recipes-kernel/linux/linux-xlnx_4.9.bb:do_compile) failed with exit code '1'
Based on the errors and log files, could you please suggest a way of resolving them? In case any supporting information or screenshot is required, please let me know.
Best regards,
rxp