Thread (5 messages) 5 messages, 2 authors, 2012-08-20

need some clarifications concerning rootf mounting

From: Rahul Bedarkar <hidden>
Date: 2012-08-14 10:44:19

On Tue, Aug 14, 2012 at 3:45 PM, stl [off-list ref] wrote:
I have dug a little more, and if I well understand, the
initramfs_data.cpio.gz should be
expanded from __initramfs_start (defined in vmlinux.lds.S)

But when and how is it done?
And by who?
Architecture specific code? bootloader, or setup_arch() memory
initialisation function?
Or the kernel itself and automatically during kernel build? Or during boot?

In my case, the initramfs_data.cpio.gz is not present at __initramfs_start.
When the kernel tries to find the compression magic number
("decompress_method() function),
it complains and panic with the following message:

kernel panic: junk in compressed archive
It is essential to have rootfs otherwise you will not able to compete
kernel boot process.
If you try to compile kernel without rootfs, it will give you error.
In your case, kernel found that initramfs_data.cpio.gz does not
contain anything. you might have did touch to initramfs_data.cpio.gz
to ignore error ?

Thanks,
Rahul B.
(I precise that I am porting Linux-2.6.37 to a new architecture)

Thanks in advance for your help and advices.

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