<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br><div><div>On Jul 14, 2012, at 12:30 AM, Elvis Dowson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>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.</div><div><br></div><div>I'm in the process of creating a linux-xilinx-2.6.38 recipe, and I'm stuck at the following error:</div><div><br></div><div><div><font class="Apple-style-span" face="Monaco" size="2">NOTE: package linux-xilinx-2.6.38-r00: task do_compile: Started</font></div><div><font class="Apple-style-span" face="Monaco" size="2">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)</font></div><div><font class="Apple-style-span" face="Monaco" size="2">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</font></div><div><font class="Apple-style-span" face="Monaco" size="2">Log data follows:</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| DEBUG: Executing shell function do_compile</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| 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</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| CHK include/linux/version.h</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| 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</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| CHK include/linux/version.h</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| CHK include/generated/utsrelease.h</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| CALL scripts/checksyscalls.sh</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| CHK include/generated/compile.h</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| CALL arch/powerpc/kernel/systbl_chk.sh</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| DTC arch/powerpc/boot/virtex440-ml507.dtb</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| DTC: dts->dtb on file "arch/powerpc/boot/dts/virtex440-ml507.dts"</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| WRAP arch/powerpc/boot/uImage</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| WRAP arch/powerpc/boot/simpleImage.virtex440-ml507</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| WRAP arch/powerpc/boot/simpleImage.initrd.virtex440-ml507</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| "mkimage" command not found - U-Boot images will not be built</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| make[1]: *** [arch/powerpc/boot/uImage] Error 1</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| make[1]: *** Waiting for unfinished jobs....</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| rm arch/powerpc/boot/virtex440-ml507.dtb</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| make: *** [zImage] Error 2</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| ERROR: oe_runmake failed</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| 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)</font></div><div><font class="Apple-style-span" face="Monaco" size="2">NOTE: package linux-xilinx-2.6.38-r00: task do_compile: Failed</font></div><div><font class="Apple-style-span" face="Monaco" size="2">ERROR: Task 6 (/tool/yocto/meta-xilinx/recipes-kernel/linux/linux-xilinx_2.6.38.bb, do_compile) failed with exit code '1'</font></div><div><font class="Apple-style-span" face="Monaco" size="2">NOTE: Tasks Summary: Attempted 990 tasks of which 989 didn't need to be rerun and 1 failed.</font></div><div><font class="Apple-style-span" face="Monaco" size="2"><br></font></div><div><font class="Apple-style-span" face="Monaco" size="2">Summary: 1 task failed:</font></div><div><font class="Apple-style-span" face="Monaco" size="2"> /tool/yocto/meta-xilinx/recipes-kernel/linux/linux-xilinx_2.6.38.bb, do_compile</font></div><div><font class="Apple-style-span" face="Monaco" size="2">Summary: There was 1 ERROR message shown, returning a non-zero exit code.</font></div></div><div><br></div><div>My virtex.conf file looks like this at the moment:</div><div><br></div><div><font class="Apple-style-span" face="Monaco" size="2">KERNEL_IMAGETYPE = "zImage"</font></div><div><br></div></div></blockquote><br></div><div>I observed that if I temporarily change </div><div><br></div><div>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"</div><div><br></div><div><div>NOTE: package linux-xilinx-2.6.38-r00: task do_unpack: Started</div><div>NOTE: package u-boot-mkimage-native-2011.06-r0: task do_compile: Succeeded</div><div>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)</div><div>NOTE: package u-boot-mkimage-native-2011.06-r0: task do_install: Started</div><div>NOTE: package u-boot-mkimage-native-2011.06-r0: task do_install: Succeeded</div><div>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)</div><div>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)</div><div>NOTE: package u-boot-mkimage-native-2011.06-r0: task do_populate_sysroot: Started</div><div>NOTE: package u-boot-mkimage-native-2011.06-r0: task do_populate_sysroot: Succeeded</div><div>NOTE: package linux-xilinx-2.6.38-r00: task do_unpack: Succeeded</div><div><br></div><div>So, the temporary work around, was to do a uImage build, and then change the configuration to zImage, and the build succeeded! </div><div><br></div><div>What should I do to fix this bug? i.e. get u-boot-mkimage-native to build, when I specify KERNEL_IMAGETYPE = "zImage" ?</div><div><br></div><div>Best regards,</div><div><br></div><div>Elvis Dowson</div><div><br></div></div><br></div></body></html>