Skip to contentSkip to conversation

Initramfs support?

DISCUSSION Rob Kramer 3 participants 4 messages Nov 13, 2007 – Nov 15, 2007

lore
Share & tools
lore

Rob Kramer

author
#0 lore raw

Hi,

I've been trying to figure out how/if OE supports creation of initramfs files. There's initramfs-uniboot and friends in initrdscripts, but I'm not sure if that is current or useful, as it doesn't seem to be used by anything, anywhere.

Then there's linux-hackndev, which builds a mini-busybox on the fly. But that seems a bit hackish..

Anyone know if there's a good way to have OE create an initramfs archive of a bunch of files that I provide?

Cheers!

Rob

#1 lore raw
Quoted 2 lines · Rob Kramer

Anyone know if there's a good way to have OE create an initramfs archive of a bunch of files that I provide?

What I do:

- define a custom image or use something like minimal-image
- add cpio.gz to IMAGE_FSTYPES
- use the resulting cpio.gz as your initramfs

The following ramblings may or may not be useful:
http://bec-systems.com/web/content/view/79/9/
http://bec-systems.com/web/content/view/82/9/
http://bec-systems.com/web/content/view/66/9/

Cliff

Signature · 3 lines
=======================
Cliff Brake
http://bec-systems.com
author
#2 lore raw

Hi Cliff,

Quoted 3 lines · Cliff Brake

- define a custom image or use something like minimal-image
- add cpio.gz to IMAGE_FSTYPES
- use the resulting cpio.gz as your initramfs

Thanks, I guess that's the way to go. I was hoping I could modify my main image (already custom) to also create a cpio.gz, but a second image may be just as clean. The x270 images are a good reference..

Cheers!

Rob

#3 lore raw
In reply to Rob Kramer

Hello Rob,

Quoted 7 lines · you

Hi,

I've been trying to figure out how/if OE supports creation of initramfs files. There's initramfs-uniboot and friends in initrdscripts, but I'm not sure if that is current or useful, as it doesn't seem to be used by anything, anywhere.

Quoted 5 lines

Then there's linux-hackndev, which builds a mini-busybox on the fly. But that seems a bit hackish..

Anyone know if there's a good way to have OE create an initramfs archive of a bunch of files that I provide?

Also related:
http://pfalcon-oe.blogspot.com/2007/07/modular-initramfs-for-oe.html
http://pfalcon-oe.blogspot.com/2007/07/initrd-and-initramfs-with-oe-snippet-1.html

Quoted 3 lines

Cheers!

Rob

Signature · 2 lines
Best regards,
 Paul                            mailto:[email protected]