Re: Way to combine kernel and initrd on x86 platform?

From: H. Peter Anvin
Date: Wed Jul 22 2009 - 22:40:32 EST


On 07/22/2009 02:15 PM, Subodh Nijsure wrote:
> I have been using the arch/powerpc/boot/wrapper scripts to combine
> linux and initrd.gz to create a single image for distribution.
>
> Is there similar wrapper possible for x86 platforms also? This is my
> first week of working on x86 embedded platform.
>
> I know of initramfs option in 2.6 kernel, however the contents of
> initrd in my case are created after the kernel is build i.e. will have
> to "patch in" the initramfs at later point in build process.

If your bootloader can support ELF, Multiboot, or NBI, you can use
Wraplinux:

http://www.kernel.org/pub/linux/utils/boot/wraplinux/

bzImage support would be possible, but it isn't in this version (noone
has asked for it).

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/