Skip to contentSkip to conversation

How to generete initramfs inside kernel img.

Buildroot Paulo Carvalho Silva 2 participants 2 messages May 26, 2011 – May 27, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

I am using buildroot-2011-02, without a problem, the tools is the best one, because I tryied a several others.

I want to generate initramfs inside the kernel image, but I searched how to do that, and the unique information found, is the setup of initramfs into the kernel's config file, but buildroot always generate it in a separate file.

I got a kernel image with initramfs inside it, but using another method,I downloaded kernel sources, patched it, configured it and compiled it, but I want to use buildroot for all steps, bootstrap, u-boot and kernel.

Best regards.

Paulo

#1 lore raw

Hello Paulo,

Quoted 8 lines · On Thu, 26 May 2011 18:50:43 -0300 Paulo Carvalho Silva…

I am using buildroot-2011-02, without a problem, the tools is the best one, because I tryied a several others.

I want to generate initramfs inside the kernel image, but I searched how to do that, and the unique information found, is the setup of initramfs into the kernel's config file, but buildroot always generate it in a separate file.

Quoted 4 lines

I got a kernel image with initramfs inside it, but using another method,I downloaded kernel sources, patched it, configured it and compiled it, but I want to use buildroot for all steps, bootstrap, u-boot and kernel.

If you compile your kernel with Buildroot, then there is an option in "Target filesystem formats", called "initramfs", that will automatically bundle your initramfs filesystem inside the kernel image, by adjusting the kernel configuration and re-running the kernel compilation.

Regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com