View previous topic :: View next topic |
Author |
Message |
unghio n00b

Joined: 28 Mar 2008 Posts: 12
|
Posted: Thu Jul 02, 2009 7:31 am Post subject: read kernel's initramfs |
|
|
hi, 've tried to search for it and i've found a lot of nice "how-to include your initramfs into the kernel"... but... actually i have to know the content of the initramfs included in a ******* kernel... how do i should, perhaps, even? _________________ --
spiacere è il mio piacere, io amo essere odiato. |
|
Back to top |
|
 |
desultory Bodhisattva


Joined: 04 Nov 2005 Posts: 9410
|
Posted: Thu Jul 02, 2009 8:44 am Post subject: |
|
|
It is typically a, possibly compressed, ext2 or cramfs image, as such simply mounting it as a loop device, after possibly decompressing it, should work.
Moved from Gentoo Chat to Kernel & Hardware. |
|
Back to top |
|
 |
165177 Apprentice

Joined: 27 Apr 2007 Posts: 156
|
Posted: Thu Jul 02, 2009 8:21 pm Post subject: |
|
|
That's an initial ramdisk (initrd). An initial ram filesystem (initramfs) is a possibly compressed cpio archive, whose contents are extracted into a "tmpfs" upon boot. Modern linux systems typically use an initramfs, because such images are easier to create, faster and do not require a filesystem driver compiled into the kernel. Such images can simply be extracted using "cpio".
More background is available at "/usr/src/linux/Documentation/initrd.txt". |
|
Back to top |
|
 |
unghio n00b

Joined: 28 Mar 2008 Posts: 12
|
Posted: Fri Jul 03, 2009 2:38 pm Post subject: |
|
|
yes, you'r right... well, i was drunk when i wrote the message
well, the real question is (was, read ahead for more on this): AFAIK the kernel has always an initramfs "compiled" in, (no matter if it's empty or you've putted something in it), and i was wondering how *** **** i can see if it's emty or not... ill' try using cpio on the kernel (well, another kernel...)... i don't think it'll work... but it could be
now... actually, the kernel i'm working on is a 2.4.something... so... it can't have an initramfs in it, i think i'm wrong? _________________ --
spiacere è il mio piacere, io amo essere odiato. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|