All of lore.kernel.org
 help / color / mirror / Atom feed
* SH7751R - STRANGE initramfs/rootfs behavior
@ 2008-04-07 13:16 Alon Bar-Lev
  2008-04-07 13:19 ` Alon Bar-Lev
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Alon Bar-Lev @ 2008-04-07 13:16 UTC (permalink / raw)
  To: linux-sh

Hello,

I am trying to boot 2.6.24 kernel on SH7751R big endian (sh4eb) using
embedded initramfs, anyone have this configuration working?

I use zImage converted to srec using objcopy, load the srec into
memory and jump to the load address of the kernel.

The kernel boots, but when trying to decompress the initramfs image it
 fails with "crc error",  resulting from lib/inflate.c::gunzip:1250.

Has anyone got this error? The initramfs image is correct. I also
dumped the memory of __initramfs_start->__initramfs_start and verified
that it matches the initramfs image on usr/initramfs_data.cpio.gz.

I then noticed that the kernel code at
init/initramfs::unpack_to_rootfs:459 supports handling  uncompressed
archives. So I compiled a kernel with uncompressed archived.

I also hooked the init/initramfs::do_name:585 functions, and see that
"/init' is passed to sys_open, and sys_open returns with -EOENT (-2).

 How can it be? shouldn't rootfs always be available?

 The same attempt on i586, mipsel is working as expected.

 Any ideas?
 1. Why decompression working for kernel and not for initramfs (crc error).
 2. Why files cannot be created on rootfs?

 Thank you,
Alon Bar-Lev.

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

end of thread, other threads:[~2008-05-14 19:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-07 13:16 SH7751R - STRANGE initramfs/rootfs behavior Alon Bar-Lev
2008-04-07 13:19 ` Alon Bar-Lev
2008-04-08  2:06 ` Paul Mundt
2008-04-08  3:20 ` David McCullough
2008-04-08  3:27 ` Paul Mundt
2008-04-08  5:11 ` Alon Bar-Lev
2008-04-08  5:14 ` Alon Bar-Lev
2008-04-10 16:51 ` Alon Bar-Lev
2008-05-13  8:38 ` Paul Mundt
2008-05-14 19:32 ` Roni Feldman

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.