Skip to contentSkip to conversation

Embedding rootfs with kernel

DISCUSSION Marc St-Jean 2 participants 2 messages Feb 5, 2007 – Feb 6, 2007 MIPS

lore
Share & tools
lore
#0 lore raw

What is the MIPS-way of embedding the rootfs with the kernel?

Our method involves modifying the vmlinux.lds.S linker script to pull in our 'romfs' section. I don't see any other platform code doing this so there must be a more "standard" approach.

Apparently there was support in linux 2.4 (a patch possibly?) which would look for supported file system magic numbers past the end of the kernel. So you could just cat the rootfs to the end of the kernel binary and go on with life.

I've tried this with linux-mips.org code base and it doesn't appear to work. Any pointers would be appreciated.

Marc

#1 lore raw
Quoted 1 line · Marc St-Jean

What is the MIPS-way of embedding the rootfs with the kernel?

For 2.6.x (on all? architectures) initramfs.

Domen