[meta-xilinx] Building Linux 5.2 for Zynq with Yocto
Mike Looijmans
mike.looijmans at topicproducts.com
Sun Sep 29 22:43:12 PDT 2019
You may want to try building a "similar" kernel first, so start with 4.14 or 4.19.
I made a 'mainline' recipe for the topic boards (also zynq7) a while back,
here's what the recipe looked like:
https://github.com/topic-embedded-products/meta-topic/blob/mainline-kernel-4.17/recipes-kernel/linux-zynq/linux-mainline.bb
this may help you get started.
Met vriendelijke groet / kind regards,
Mike Looijmans
System Expert
TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
Postbus 440, 5680 AK Best
The Netherlands
T: +31 (0) 499 33 69 69
E: {E-mail
W: www.topicproducts.com
Please consider the environment before printing this e-mail
On 27-09-19 16:42, Franz Forstmayr wrote:
> Hi Mike,
>
> yeah I thought so too, but I'm unable to build the kernel. I get
> always the error no rule to make target uImage.... , see below.
> This test is fine without having an optimized NAND/QSPI driver.
> The only thing I changed in the Xilinx recipe are:
>
> LINUX_VERSION = "5.2"
> KBRANCH = "master"
> SRCREV = "0ec...."
>
> # Add zynq defconfig here as it's not mainline
> SRC_URI_append = " file://git/arch/arm/configs/xilinx_zynq_defconfig "
>
> Build Configuration:
> BB_VERSION = "1.40.0"
> BUILD_SYS = "x86_64-linux"
> NATIVELSBSTRING = "universal"
> TARGET_SYS = "arm-poky-linux-gnueabi"
> MACHINE = "zedboard-zynq7"
> DISTRO = "poky"
> DISTRO_VERSION = "2.6.3"
> TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard cortexa9"
> TARGET_FPU = "hard"
> meta
> meta-poky = "thud:e6949336479e611a142834b6d9241514cbaeaf80"
> meta-xilinx-bsp = "rel-v2019.1:f4c53cc332397b5e5ee17f42169f7c87808c9dc7"
> meta-xilinx-tools = "master:881132b62dc01e57b8d9ace458a0005528179e14"
> meta-oe
> meta-python = "thud:2d088d252624b19df384aecc434d23afb636178f"
>
> Initialising tasks: 100% |#######################################| Time: 0:00:00
> Sstate summary: Wanted 7 Found 0 Missed 7 Current 68 (0% match, 90% complete)
> NOTE: Executing SetScene Tasks
> NOTE: Executing RunQueue Tasks
> ERROR: linux-xlnx-5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0
> do_compile: oe_runmake failed
> ERROR: linux-xlnx-5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0
> do_compile: Function failed: do_compile (log file is located at
> /media/franz/HDD_Linux/yocto/zynq/tmp/work/zedboard_zynq7-poky-linux-gnueabi/linux-xlnx/5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0/temp/log.do_compile.13182)
> ERROR: Logfile of failure stored in:
> /media/franz/HDD_Linux/yocto/zynq/tmp/work/zedboard_zynq7-poky-linux-gnueabi/linux-xlnx/5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0/temp/log.do_compile.13182
> Log data follows:
> | DEBUG: Executing shell function do_compile
> | NOTE: make -j 8 HOSTCC=gcc
> -isystem/media/franz/HDD_Linux/yocto/zynq/tmp/work/zedboard_zynq7-poky-linux-gnueabi/linux-xlnx/5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0/recipe-sysroot-native/usr/include
> -O2 -pipe -L/media/franz/HDD_Linux/yocto/zynq/tmp/work/zedboard_zynq7-poky-linux-gnueabi/linux-xlnx/5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0/recipe-sysroot-native/usr/lib
> -L/media/franz/HDD_Linux/yocto/zynq/tmp/work/zedboard_zynq7-poky-linux-gnueabi/linux-xlnx/5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0/recipe-sysroot-native/lib
> -Wl,-rpath-link,/media/franz/HDD_Linux/yocto/zynq/tmp/work/zedboard_zynq7-poky-linux-gnueabi/linux-xlnx/5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0/recipe-sysroot-native/usr/lib
> -Wl,-rpath-link,/media/franz/HDD_Linux/yocto/zynq/tmp/work/zedboard_zynq7-poky-linux-gnueabi/linux-xlnx/5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0/recipe-sysroot-native/lib
> -Wl,-rpath,/media/franz/HDD_Linux/yocto/zynq/tmp/work/zedboard_zynq7-poky-linux-gnueabi/linux-xlnx/5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0/recipe-sysroot-native/usr/lib
> -Wl,-rpath,/media/franz/HDD_Linux/yocto/zynq/tmp/work/zedboard_zynq7-poky-linux-gnueabi/linux-xlnx/5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0/recipe-sysroot-native/lib
> -Wl,-O1 -Wl,--allow-shlib-undefined
> -Wl,--dynamic-linker=/media/franz/HDD_Linux/yocto/zynq/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
> HOSTCPP=gcc -E uImage CC=arm-poky-linux-gnueabi-gcc
> -mno-thumb-interwork -marm -fuse-ld=bfd
> -fdebug-prefix-map=/media/franz/HDD_Linux/yocto/zynq/tmp/work/zedboard_zynq7-poky-linux-gnueabi/linux-xlnx/5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0=/usr/src/debug/linux-xlnx/5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0
> -fdebug-prefix-map=/media/franz/HDD_Linux/yocto/zynq/tmp/work/zedboard_zynq7-poky-linux-gnueabi/linux-xlnx/5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0/recipe-sysroot=
> -fdebug-prefix-map=/media/franz/HDD_Linux/yocto/zynq/tmp/work/zedboard_zynq7-poky-linux-gnueabi/linux-xlnx/5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0/recipe-sysroot-native=
> -fdebug-prefix-map=/media/franz/HDD_Linux/yocto/zynq/tmp/work-shared/zedboard-zynq7/kernel-source=/usr/src/kernel
> LD=arm-poky-linux-gnueabi-ld.bfd UIMAGE_LOADADDR=0x8000
> | make: * No rule to make target 'uImage'. Stop.
> | ERROR: oe_runmake failed
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_compile (log file is located at
> /media/franz/HDD_Linux/yocto/zynq/tmp/work/zedboard_zynq7-poky-linux-gnueabi/linux-xlnx/5.3-xilinx-v2019.1+gitAUTOINC+4d856f72c1-r0/temp/log.do_compile.13182)
> ERROR: Task (/media/franz/HDD_Linux/yocto/zynq/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2019.1.bb:do_compile)
> failed with exit code '1'
> NOTE: Tasks Summary: Attempted 481 tasks of which 480 didn't need to
> be rerun and 1 failed.
>
> Summary: 1 task failed:
> /media/franz/HDD_Linux/yocto/zynq/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2019.1.bb:do_compile
> Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
>
>
>
> -----------------------------------------------------------------------------------------------------------------------------
>
> Von: meta-xilinx-bounces at yoctoproject.org
> <meta-xilinx-bounces at yoctoproject.org> im Auftrag von Mike Looijmans
> <mike.looijmans at topicproducts.com>
> Gesendet: Freitag, 27. September 2019 15:57
> An: meta-xilinx at yoctoproject.org
> Betreff: Re: [meta-xilinx] Building Linux 5.2 for Zynq with Yocto
>
> You can use a mainline kernel with the Zynq (thus not using any xilinx
> repositories whatsoever), but some drivers are of insufficient quality and
> never got upstreamed to mainline. I think the QSPI and NAND controllers are in
> that category.
>
>
>
> Met vriendelijke groet / kind regards,
>
> Mike Looijmans
> System Expert
>
>
> TOPIC Embedded Products B.V.
> Materiaalweg 4, 5681 RJ Best
> Postbus 440, 5680 AK Best
> The Netherlands
>
> T: +31 (0) 499 33 69 69
> E: {E-mail
> W: www.topicproducts.com
>
> Please consider the environment before printing this e-mail
> On 26-09-19 19:07, Franz Forstmayr wrote:
>> Hi,
>>
>> is there an easy way to quick&dirty upgrade the linux kernel to 5.2+
>> for testing some particular features from the new kernel?
>> I tried to upgrade the SRC_URI and the Version from the meta-xilinx
>> linux-xlnx recipe, but I get the following error:
>>
>> | make: *** No rule to make target 'uImage'. Stop.
>> | ERROR: oe_runmake failed
>>
>> Are there some modifications in the Xilinx Kernel to prevent this kind of issue?
>>
>> Best regards
>> Franz
>>
>
More information about the meta-xilinx
mailing list