Thread (5 messages) flat view 5 messages, 2 authors, 2012-07-30

[Buildroot] populating an initramfs

From: Dallas Clement <hidden>
Date: 2012-07-30 21:56:40

Sounds great.  Thanks again!

On Mon, Jul 30, 2012 at 4:41 PM, Avery Pennarun [off-list ref] wrote:
We just switched to devtmpfs and have been happy ever since :)  I
highly recommend it.  Much less insane than udev.

On Mon, Jul 30, 2012 at 5:37 PM, Dallas Clement
[off-list ref] wrote:
quoted
Thanks Avery.  This helps tremendously.

One more question:  How did you create device nodes in your initramfs?

On Mon, Jul 30, 2012 at 4:34 PM, Avery Pennarun [off-list ref] wrote:
quoted
On Mon, Jul 30, 2012 at 5:13 PM, Dallas Clement
[off-list ref] wrote:
quoted
Forgive me in advance for asking a newb question.  I'm in the process
of converting from Yocto/OE.

I have the need to populate both an initramfs as well as a rootfs with
the contents of packages I build using buildroot.  What is the best
way to do this?   Should I create two separate projects, one for the
initramfs and one for the rootfs?  Or is there a way to select which
contents go in each and keep it all in the same project?
What we did on our project is we made a new package that we called
simpleramfs.  It hand-copies a specific list of filenames from the
"real" output/target/ directory into the simpleramfs project, then
generates an initramfs cpio in time for the kernel to be compiled.

We experimented with building twice (once for initramfs and once for
rootfs), but that's both slow and a maintenance nightmare, and
resulted in much huger initramfs than we wanted (as well as a lot of
duplication between initramfs and rootfs).

Hope this helps.

Have fun,

Avery
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help