[oe] How to generate vmlinux kernel image

Elvis Dowson elvis.dowson at gmail.com
Tue Jun 5 16:49:01 UTC 2012


Hi Khem,

On Jun 5, 2012, at 2:07 AM, Khem Raj wrote:

> On Mon, Jun 4, 2012 at 4:57 PM, Elvis Dowson <elvis.dowson at gmail.com> wrote:
>> 
>> KERNEL_IMAGETYPE = "uImage vmlinux"
> 
> remove vmlinux from there

The qemu-system-ppc emulator for Xilinx ML507 doesn't work with uImage. It only works with vmlinux at the moment. 

Is there a way to modify yocto to generate a vmlinux image? 

If I specify KERNEL_IMAGETYPE="vmlinux" gives the following errors during compilation, also giving me a warning that I may need to install module-init-tools. Is this necessary to generate a vmlinux image, and if so where do I specify it's inclusion?

NOTE: Running task 850 of 856 (ID: 2, /tool/yocto/meta-xilinx/recipes-kernel/linux/linux-xilinx_git.bb, do_install)
NOTE: package linux-xilinx-2.6.37.1+git1+86c81ccd7c8e895904bfff95bd4f87c9615f7fba-r16: task do_install: Started
ERROR: Function failed: do_install (see /tool/yocto/poky/build/tmp/work/virtex5-poky-linux/linux-xilinx-2.6.37.1+git1+86c81ccd7c8e895904bfff95bd4f87c9615f7fba-r16/temp/log.do_install.38107 for further information)
ERROR: Logfile of failure stored in: /tool/yocto/poky/build/tmp/work/virtex5-poky-linux/linux-xilinx-2.6.37.1+git1+86c81ccd7c8e895904bfff95bd4f87c9615f7fba-r16/temp/log.do_install.38107
Log data follows:
| DEBUG: Executing shell function do_install
| ERROR: Function failed: do_install (see /tool/yocto/poky/build/tmp/work/virtex5-poky-linux/linux-xilinx-2.6.37.1+git1+86c81ccd7c8e895904bfff95bd4f87c9615f7fba-r16/temp/log.do_install.38107 for further information)
| NOTE: make -j 6 DEPMOD=echo INSTALL_MOD_PATH=/tool/yocto/poky/build/tmp/work/virtex5-poky-linux/linux-xilinx-2.6.37.1+git1+86c81ccd7c8e895904bfff95bd4f87c9615f7fba-r16/image modules_install
|   INSTALL drivers/char/hw_random/rng-core.ko
|   INSTALL fs/nls/nls_ascii.ko
|   INSTALL fs/nls/nls_iso8859-1.ko
|   INSTALL fs/nls/nls_utf8.ko
|   INSTALL net/ipv4/netfilter/ip_tables.ko
|   INSTALL net/ipv4/netfilter/iptable_filter.ko
|   INSTALL net/ipv4/netfilter/iptable_mangle.ko
|   INSTALL net/ipv4/tunnel4.ko
|   INSTALL net/ipv6/ipv6.ko
|   INSTALL net/ipv6/sit.ko
|   INSTALL net/ipv6/xfrm6_mode_beet.ko
|   INSTALL net/ipv6/xfrm6_mode_transport.ko
|   INSTALL net/ipv6/xfrm6_mode_tunnel.ko
|   INSTALL net/netfilter/x_tables.ko
|   INSTALL net/netfilter/xt_tcpudp.ko
|   DEPMOD  3.0.0-14.1-build3
| Warning: you may need to install module-init-tools
| See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
| install: cannot stat `arch/powerpc/boot/vmlinux': No such file or directory
NOTE: package linux-xilinx-2.6.37.1+git1+86c81ccd7c8e895904bfff95bd4f87c9615f7fba-r16: task do_install: Failed
ERROR: Task 2 (/tool/yocto/meta-xilinx/recipes-kernel/linux/linux-xilinx_git.bb, do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 850 tasks of which 841 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /tool/yocto/meta-xilinx/recipes-kernel/linux/linux-xilinx_git.bb, do_install
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.


Best regards,

Elvis Dowson





More information about the Openembedded-devel mailing list