[ELDK] bitbake of custom ARM kernel to U-Boot uImage not installing properly?
Stefano Babic
sbabic at denx.de
Sat Feb 23 17:05:12 CET 2013
On 19/02/2013 10:50, Hans Beckérus wrote:
> I am using a custom kernel and when building the kernel image using my
> own layer the installation phase picks up the wrong image when
> installed to ../tmp/deploy/images. The uImage seems to be picked up
> from kernel/arch/arm/boot/Image instead of
> kernel/arch/arm/boot/uImage? From what I know, is not "Image" just a
> stripped down (objcopy) of vmlinux?
>
> I can see why this is happening in recipes-kernel/linux/linux.inc:
>
> do_install_prepend() {
> if test -e arch/${ARCH}/boot/Image ; then
> ln -f arch/${ARCH}/boot/Image arch/${ARCH}/boot/uImage
> fi
>
> if test -e arch/${ARCH}/boot/images/uImage ; then
> ln -f arch/${ARCH}/boot/images/uImage arch/${ARCH}/boot/uImage
> fi
>
> if test -e arch/${ARCH}/kernel/vmlinux.lds ; then
> ln -f arch/${ARCH}/kernel/vmlinux.lds arch/${ARCH}/boot/vmlinux
> fi
> }
>
Try this:
do_install_prepend() {
if test ! -e arch/${ARCH}/boot/uImage ; then
if test -e arch/${ARCH}/boot/Image ; then
ln -f arch/${ARCH}/boot/Image arch/${ARCH}/boot/uImage
fi
fi
if test ! -e arch/${ARCH}/boot/uImage ; then
if test -e arch/${ARCH}/boot/images/uImage ; then
ln -f arch/${ARCH}/boot/images/uImage
arch/${ARCH}/boot/uImage
fi
fi
if test -e arch/${ARCH}/kernel/vmlinux.lds ; then
ln -f arch/${ARCH}/kernel/vmlinux.lds arch/${ARCH}/boot/vmlinux
fi
}
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
More information about the eldk
mailing list