Skip to contentSkip to conversation

How to generate vmlinux kernel image

DISCUSSION Elvis Dowson 2 participants 3 messages Jun 5, 2012

lore
Share & tools
lore
#0 lore raw

Hi,
I added the following two lines to meta-xilinx/conf/virtex5.conf to try and get it to build both a uImage an a vmlinux image. The vmlinux image is so that I can load the generated kernel into qemuppc emulator. I also want to generate the rootfs in ext3 format.

KERNEL_IMAGETYPE = "uImage vmlinux"
IMAGE_FSTYPES += "ext3 tar.bz2"

However, when I run bitbake core-image-minimal, I get the following errors:

OTE: 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.13012 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.13012 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.13012 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_iso8859-1.ko
|   INSTALL fs/nls/nls_utf8.ko
|   INSTALL fs/nls/nls_ascii.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: target `vmlinux-3.0.0-14.1-build3' is not a directory

NOTE: package linux-xilinx-2.6.37.1+git1+86c81ccd7c8e895904bfff95bd4f87c9615f7fba-r16: task do_install: Failed
ERROR: Task 481 (/tool/yocto/meta-xilinx/recipes-kernel/linux/linux-xilinx_git.bb, do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2266 tasks of which 2260 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 was 1 ERROR message shown, returning a non-zero exit code.

What should I do to get it to generate the vmlinux image and the rootfs in ext3 format?

Elvis Dowson

#1 lore raw
Quoted 2 lines · Elvis Dowson

KERNEL_IMAGETYPE = "uImage vmlinux"

remove vmlinux from there

Quoted 1 line

IMAGE_FSTYPES += "ext3 tar.bz2"

that should be ok

#2 lore raw

Hi Khem,

Quoted 5 lines · Khem Raj
Quoted 2 lines · Elvis Dowson

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