Adding initramfs to the DLDI builds

Stefan Sperling stsp at stsp.name
Thu Apr 24 10:55:34 CEST 2008


On Thu, Apr 24, 2008 at 02:08:04AM +0100, Ewan Meadows wrote:
> One of the first things that gets built during a dslinux build is the
> kernel.  Initramfs is normally glued to the kernel when it's being
> built.  Initramfs requires the busyboxinitramfs binary which doesn't
> exist yet.

Uh :/

> I've got a few options:
> 
> 1. Hack the root Makefile to build the busyboxinitramfs first, then the kernel

May work. Note that Busybox needs uClibc, which needs just the kernel
*headers* to build. You'll still need uClibc before you can build busybox.

> 2. Glue the initramfs on after the kernel and userspace has been built
> in the vendors/Nintendo/DLDI/Makefile

Would probably require some hacks, but at least they're mostly in one file.

> 3. Make and put a binary busyboxinitramfs into svn

No. No! Please, no! PLEASE DON'T EVER PUT BINARIES INTO SVN!
NEVER, EVER! DON'T EVEN THINK ABOUT IT!!!!
(I guess you knew I'd say that...)

You know the reasons. This would just cause maintenance headaches
further down the road.

> I'm guessing the best method is number 2, but like I said, the tools
> to do this are already integrated into the linux kernel build system,
> so it's as easy as having
> CONFIG_INITRAMFS_SOURCE="directory/with/initramfs/files" in
> linux-2.6.x/.config
> 
> Ideas?  Suggestions?

See above. Good luck! :)

-- 
stefan
http://stsp.name                                         PGP Key: 0xF59D25F0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://mailman.dslinux.in-berlin.de/pipermail/dslinux-devel-dslinux.in-berlin.de/attachments/20080424/ea512abb/attachment.pgp 


More information about the dslinux-devel mailing list