Hi,

On Jul 14, 2012, at 12:30 AM, Elvis Dowson wrote:

> I'm try to build a zImage. I have been successful at building and running the 
> kernel, outside of yocto, and running it on the Xilinx ML507 development 
> board.
> 
> I'm in the process of creating a linux-xilinx-2.6.38 recipe, and I'm stuck at 
> the following error:
> 
> NOTE: package linux-xilinx-2.6.38-r00: task do_compile: Started
> ERROR: Function failed: do_compile (see 
> /tool/yocto/poky/build/tmp/work/virtex5-poky-linux/linux-xilinx-2.6.38-r00/temp/log.do_compile.4655
>  for further information)
> ERROR: Logfile of failure stored in: 
> /tool/yocto/poky/build/tmp/work/virtex5-poky-linux/linux-xilinx-2.6.38-r00/temp/log.do_compile.4655
> Log data follows:
> | DEBUG: Executing shell function do_compile
> | NOTE: make -j 6 include/linux/version.h CC=powerpc-poky-linux-gcc  
> --sysroot=/tool/yocto/poky/build/tmp/sysroots/virtex5 
> LD=powerpc-poky-linux-ld  
> --sysroot=/tool/yocto/poky/build/tmp/sysroots/virtex5
> |   CHK     include/linux/version.h
> | NOTE: make -j 6 zImage CC=powerpc-poky-linux-gcc  
> --sysroot=/tool/yocto/poky/build/tmp/sysroots/virtex5 
> LD=powerpc-poky-linux-ld  
> --sysroot=/tool/yocto/poky/build/tmp/sysroots/virtex5
> |   CHK     include/linux/version.h
> |   CHK     include/generated/utsrelease.h
> |   CALL    scripts/checksyscalls.sh
> |   CHK     include/generated/compile.h
> |   CALL    arch/powerpc/kernel/systbl_chk.sh
> |   DTC     arch/powerpc/boot/virtex440-ml507.dtb
> | DTC: dts->dtb  on file "arch/powerpc/boot/dts/virtex440-ml507.dts"
> |   WRAP    arch/powerpc/boot/uImage
> |   WRAP    arch/powerpc/boot/simpleImage.virtex440-ml507
> |   WRAP    arch/powerpc/boot/simpleImage.initrd.virtex440-ml507
> | "mkimage" command not found - U-Boot images will not be built
> | make[1]: *** [arch/powerpc/boot/uImage] Error 1
> | make[1]: *** Waiting for unfinished jobs....
> | rm arch/powerpc/boot/virtex440-ml507.dtb
> | make: *** [zImage] Error 2
> | ERROR: oe_runmake failed
> | ERROR: Function failed: do_compile (see 
> /tool/yocto/poky/build/tmp/work/virtex5-poky-linux/linux-xilinx-2.6.38-r00/temp/log.do_compile.4655
>  for further information)
> NOTE: package linux-xilinx-2.6.38-r00: task do_compile: Failed
> ERROR: Task 6 
> (/tool/yocto/meta-xilinx/recipes-kernel/linux/linux-xilinx_2.6.38.bb, 
> do_compile) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 990 tasks of which 989 didn't need to be rerun 
> and 1 failed.
> 
> Summary: 1 task failed:
>   /tool/yocto/meta-xilinx/recipes-kernel/linux/linux-xilinx_2.6.38.bb, 
> do_compile
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
> 
> My virtex.conf file looks like this at the moment:
> 
> KERNEL_IMAGETYPE = "zImage"
> 

I observed that if I temporarily change 

KERNEL_IMAGETYPE = "uImage", and run the build, it builds 
u-boot-mkimage-native, but it doesn't build it if I specify KERNEL_IMAGETYPE = 
"zImage"

NOTE: package linux-xilinx-2.6.38-r00: task do_unpack: Started
NOTE: package u-boot-mkimage-native-2011.06-r0: task do_compile: Succeeded
NOTE: Running task 993 of 1011 (ID: 140, 
virtual:native:/tool/yocto/poky/meta/recipes-bsp/u-boot/u-boot-mkimage_2011.06.bb,
 do_install)
NOTE: package u-boot-mkimage-native-2011.06-r0: task do_install: Started
NOTE: package u-boot-mkimage-native-2011.06-r0: task do_install: Succeeded
NOTE: Running task 994 of 1011 (ID: 141, 
virtual:native:/tool/yocto/poky/meta/recipes-bsp/u-boot/u-boot-mkimage_2011.06.bb,
 do_populate_sysroot)
NOTE: Running noexec task 997 of 1011 (ID: 145, 
virtual:native:/tool/yocto/poky/meta/recipes-bsp/u-boot/u-boot-mkimage_2011.06.bb,
 do_package_write)
NOTE: package u-boot-mkimage-native-2011.06-r0: task do_populate_sysroot: 
Started
NOTE: package u-boot-mkimage-native-2011.06-r0: task do_populate_sysroot: 
Succeeded
NOTE: package linux-xilinx-2.6.38-r00: task do_unpack: Succeeded

So, the temporary work around, was to do a uImage build, and then change the 
configuration to zImage, and the build succeeded! 

What should I do to fix this bug? i.e. get u-boot-mkimage-native to build, when 
I specify KERNEL_IMAGETYPE = "zImage" ?

Best regards,

Elvis Dowson


_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to