All of lore.kernel.org
 help / color / mirror / Atom feed
* initramfs howto?
@ 2004-04-08 19:17 Chris Meadors
  2004-04-09  5:56 ` Bryan O'Sullivan
  0 siblings, 1 reply; 16+ messages in thread
From: Chris Meadors @ 2004-04-08 19:17 UTC (permalink / raw)
  To: Linux Kernel

I've been a monolithic kernel guy forever.  But with all the new toys
going into 2.6 I figured I'd try to catch up with the times.

I've got udev + hotplug halfway functioning, and wanted to try moving
even my fs and IDE/SCSI modules out of the kernel.  It seems the way to
do that is with an initramfs.

So I figure I'll start simple, I got klibc and built it.  Copied the the
lib and executables into a new tree, lib in lib and bins in bin.
Symlinked linuxrc to /bin/sh.  I also added a dev directory with ram0,
ram1, and initrd (later in my experimentation).  Then I cpio'd up the
tree, gzip'd it, and put it where I told grub to find it:
 "initrd (hd0,0)/boot/test/initramfs.cpio.gz"

When I boot the kernel associated with that initrd line, it says that it
found a compressed image at block 0.  But then panics saying it can't
mount the root filesystem.

I've tried various root= options.
>From /dev/ram0, /dev/ram1, /dev/initrd, and initramfs.  All fail.
Although /dev/ram0, spit out its own name instead of an unknown block
device 0,0.

So, what am I missing?  I've Googled for about an hour now.  Everyone is
just talking about the neat new features of initramfs, but no one says,
"do this".  The in-tree documentation isn't much better, although it is
what got me this far.  The early-userspace document talks about
short-circuting the kernel build to get a custom initramfs appended to
the kernel image.  But that seems a bit rough, shouldn't the bootloader
be able to do the appending?

Any help will be welcomed.

-- 
Chris


^ permalink raw reply	[flat|nested] 16+ messages in thread
* initramfs howto?
@ 2009-04-17 16:18 Sledz, Steffen
  2009-04-17 18:39 ` Tom Rini
  0 siblings, 1 reply; 16+ messages in thread
From: Sledz, Steffen @ 2009-04-17 16:18 UTC (permalink / raw)
  To: openembedded-devel

We want to use a little initramfs for our machine (hipox
with linux-2.6.24) to load some modules. I've found some
samples (e.g. initramfs-image.bb). But the usage is totally
unclear to me.

Is there a little howto/tutorial how to create an initramfs
with oe?

Steffen

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-04-22 16:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-08 19:17 initramfs howto? Chris Meadors
2004-04-09  5:56 ` Bryan O'Sullivan
2004-04-09  6:48   ` Miles Bader
2004-04-09 17:21     ` Bryan O'Sullivan
2004-04-10  0:50       ` Miles Bader
2004-04-19 19:48       ` Chris Lingard
2004-04-19 21:39         ` H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2009-04-17 16:18 Sledz, Steffen
2009-04-17 18:39 ` Tom Rini
2009-04-20 15:21   ` Sledz, Steffen
2009-04-20 15:36     ` Andrea Adami
2009-04-22  7:45       ` Sledz, Steffen
2009-04-22  8:49         ` Roman I Khimov
2009-04-22  9:45           ` Andrea Adami
2009-04-22 16:22           ` Tom Rini
2009-04-20 17:34     ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.