Skip to contentSkip to conversation

initrd testing

DISCUSSION Ben Collins 5 participants 22 messages May 13, 2004 – May 18, 2004

lore
Share & tools
lore
#0 lore raw

Some people have reported problems with initrd on sparc64. I'm trying to trace that problem (hard, because I can't reproduce it). If you've had the problem where silo reports loading the initrd into memory, but the kernel fails to detect and use it, please try the second.b in the url below, and recompile a kernel using one of the two patches there aswell (2.4 and 2.6).

The new second.b will show the phys address that the initrd was loaded to, in addition to the virtual address.

Thanks.

http://www.sparc-boot.org/pub/testing/

Signature · 4 lines
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/
#1 lore raw

[ Sorry for the huge crosspost, but this is a pretty big deal. ]

Quoted 9 lines · Ben Collins

Some people have reported problems with initrd on sparc64. I'm trying to trace that problem (hard, because I can't reproduce it). If you've had the problem where silo reports loading the initrd into memory, but the kernel fails to detect and use it, please try the second.b in the url below, and recompile a kernel using one of the two patches there aswell (2.4 and 2.6).

The new second.b will show the phys address that the initrd was loaded to, in addition to the virtual address.

I've built debian-installer images for sparc based on kernels with this patch (for 2.4) and the new second.b.

You probably want the CDROM image since it's the one most commonly reported as not being able to boot. (cdrom-mini.iso) I am personally not able to try these out until I receive a sparc64 machine, which should happen sometime in the near future.

http://june.voxel.net/~joshk/d-i/images/2004-05-14/

I hope that this resolves the issues with SILO and initrd!

Signature · 1 line
Joshua Kwan
#2 lore raw
In reply to Ben Collins
Quoted 1 line

I hope that this resolves the issues with SILO and initrd!

Me too!

Signature · 4 lines
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/
#3 lore raw
In reply to Ben Collins
Quoted 8 lines

Ultra1: On this one, I got (modulo any typos)

    Loading initial ramdisk (1477684 bytes at 0x01x phys 022340800 virt) ...
    [spinning \/]
    Remapping the kernel ...  FP Disabled
    ok

and I was back to the OpenBoot 'ok' prompt.

This is strange.

Quoted 10 lines

Ultra10: On this one, I got much further. The kernel was loading, but failed near the end. The last messages were

RAMDISK: couldn't find valid ramdisk image starting at 0. Freeing initrd memory 1443k freed
cramfs: wrong magic
sh-2021: reiserfs_read_super: can not find reiserfs on ramdisk (1,0) Kernel panic: VFS: Unable to mount root fs on 00:00

I hope this means something to somebody.

This means something. Atleast we are showing a ramdisk, but the start point is all wrong. Did the old cd images work for you?

Signature · 4 lines
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/
#4 lore raw
In reply to Ben Collins
Quoted 16 lines · Joshua Kwan

[ Sorry for the huge crosspost, but this is a pretty big deal. ]

Quoted 9 lines · Ben Collins

Some people have reported problems with initrd on sparc64. I'm trying to trace that problem (hard, because I can't reproduce it). If you've had the problem where silo reports loading the initrd into memory, but the kernel fails to detect and use it, please try the second.b in the url below, and recompile a kernel using one of the two patches there aswell (2.4 and 2.6).

The new second.b will show the phys address that the initrd was loaded to, in addition to the virtual address.

I've built debian-installer images for sparc based on kernels with this patch (for 2.4) and the new second.b.

Quoted 6 lines

You probably want the CDROM image since it's the one most commonly reported as not being able to boot. (cdrom-mini.iso) I am personally not able to try these out until I receive a sparc64 machine, which should happen sometime in the near future.

http://june.voxel.net/~joshk/d-i/images/2004-05-14/

I tried http://june.voxel.net/~joshk/d-i/images/2004-05-14/drom-mini.iso
on two machines, an Ultra1 and an Ultra10; both failed, though differently.

Ultra1: On this one, I got (modulo any typos)

    Loading initial ramdisk (1477684 bytes at 0x01x phys 022340800 virt) ...
    [spinning \/]
    Remapping the kernel ...  FP Disabled
    ok

and I was back to the OpenBoot 'ok' prompt.

Ultra10: On this one, I got much further. The kernel was loading, but failed near the end. The last messages were

RAMDISK: couldn't find valid ramdisk image starting at 0. Freeing initrd memory 1443k freed
cramfs: wrong magic
sh-2021: reiserfs_read_super: can not find reiserfs on ramdisk (1,0) Kernel panic: VFS: Unable to mount root fs on 00:00

I hope this means something to somebody.

Signature · 1 line
    Andy Dougherty		[email protected]
#5 lore raw
In reply to Ben Collins

On Fri, 14 May 2004, Ben Collins wrote:

AD> Ultra10: On this one, I got much further. The kernel was loading, AD> but failed near the end. The last messages were
AD>

AD>     RAMDISK: couldn't find valid ramdisk image starting at 0.
AD>     Freeing initrd memory 1443k freed
AD>     cramfs: wrong magic
AD>     sh-2021: reiserfs_read_super: can not find reiserfs on ramdisk (1,0)
AD>     Kernel panic: VFS: Unable to mount root fs on 00:00
Quoted 2 lines

This means something. Atleast we are showing a ramdisk, but the start point is all wrong. Did the old cd images work for you?

I'm afraid I haven't been keeping up. The last CD boot I did was the woody install. I can try (a small number) of other images, if you have any specific suggestions.

Signature · 1 line
    Andy Dougherty		[email protected]
#6 lore raw
In reply to Ben Collins
Quoted 2 lines

loaded kernel version 2.4.26
Loading initial ramdisk ( 1477684 bytes at 0x01x phys, 0x60800000 virt)

Crap, silo's printf doesn't support lx or llx. I need to fix that, because I really need that info.

Signature · 4 lines
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/
#7 lore raw
In reply to Ben Collins
Quoted 22 lines · Ben Collins
Quoted 8 lines

Ultra1: On this one, I got (modulo any typos)

Loading initial ramdisk (1477684 bytes at 0x01x phys 022340800 virt) ... [spinning \/]
Remapping the kernel ... FP Disabled
ok

and I was back to the OpenBoot 'ok' prompt.

This is strange.

Quoted 9 lines

Ultra10: On this one, I got much further. The kernel was loading, but failed near the end. The last messages were

RAMDISK: couldn't find valid ramdisk image starting at 0. Freeing initrd memory 1443k freed
cramfs: wrong magic
sh-2021: reiserfs_read_super: can not find reiserfs on ramdisk (1,0)

   Kernel panic: VFS: Unable to mount root fs on 00:00
Quoted 6 lines
Quoted 1 line

I hope this means something to somebody.

This means something. Atleast we are showing a ramdisk, but the start point is all wrong. Did the old cd images work for you?

I also saw this on a Sun Ultra 2.

Sun Ultra 2 UPA/Sbus (2 x UltraSPARC 200 MHz)
...
loaded kernel version 2.4.26
Loading initial ramdisk ( 1477684 bytes at 0x01x phys, 0x60800000 virt)
...
RAMDISK: Couldn't find valid RAM disk image starting at 0 Freeing initrd memory: 1443k freed
cramfs: wrong magic
sh-2021: reiserfs_read_super: can not find reiserfs on ramdisk (1,0) kernel panic: VFS: Unable to mount root fs on 00:00
Press L1-A to return to the boot prom

The 20040511 daily image boots up fine on this system.

Signature · 2 lines
[email protected]	780-492-7660
Computing and Network Services	University of Alberta
#8 lore raw
In reply to Ben Collins
Quoted 10 lines · Andy Dougherty

I tried http://june.voxel.net/~joshk/d-i/images/2004-05-14/drom-mini.iso
on two machines, an Ultra1 and an Ultra10; both failed, though differently.

Ultra1: On this one, I got (modulo any typos)

    Loading initial ramdisk (1477684 bytes at 0x01x phys 022340800 virt) ...
    [spinning \/]
    Remapping the kernel ...  FP Disabled
    ok

There's a chance that I could have botched the kernel, but I'm not sure how...

Quoted 5 lines

RAMDISK: couldn't find valid ramdisk image starting at 0. Freeing initrd memory 1443k freed
cramfs: wrong magic
sh-2021: reiserfs_read_super: can not find reiserfs on ramdisk (1,0) Kernel panic: VFS: Unable to mount root fs on 00:00

This is the error that everyone has been getting, frankly all it does is confirm that an initrd does exist somewhere.

Thanks for trying it out. Ben, was that patch supposed to actually fix something, or was it just supposed to be informative?

Signature · 1 line
Joshua Kwan
#9 lore raw
In reply to Ben Collins
Quoted 15 lines · Peter Karbaliotis

I also saw this on a Sun Ultra 2.

Sun Ultra 2 UPA/Sbus (2 x UltraSPARC 200 MHz)
...
loaded kernel version 2.4.26
Loading initial ramdisk ( 1477684 bytes at 0x01x phys, 0x60800000 virt)
...
RAMDISK: Couldn't find valid RAM disk image starting at 0 Freeing initrd memory: 1443k freed
cramfs: wrong magic
sh-2021: reiserfs_read_super: can not find reiserfs on ramdisk (1,0) kernel panic: VFS: Unable to mount root fs on 00:00
Press L1-A to return to the boot prom

Quoted 1 line

The 20040511 daily image boots up fine on this system.

Erk. That's a _regression_! Not good... Ben, did your patch interfere with anything that would have made this not work? Also, this is CDROM, right? Also, did you use a netinst/businesscard image, the cdrom-mini.iso, or what?

I tried a boot floppy on my sparc32 box. It seemed to boot OK, but possibly because SILO is not responible for the initrd for floppy installs.

Signature · 1 line
Joshua Kwan
#10 lore raw
In reply to Ben Collins
Quoted 2 lines

Thanks for trying it out. Ben, was that patch supposed to actually fix something, or was it just supposed to be informative?

Both.

Signature · 4 lines
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/
#11 lore raw
In reply to Ben Collins
Quoted 20 lines · Joshua Kwan
Quoted 15 lines · Peter Karbaliotis

I also saw this on a Sun Ultra 2.

Sun Ultra 2 UPA/Sbus (2 x UltraSPARC 200 MHz)
...
loaded kernel version 2.4.26
Loading initial ramdisk ( 1477684 bytes at 0x01x phys, 0x60800000 virt)
...
RAMDISK: Couldn't find valid RAM disk image starting at 0 Freeing initrd memory: 1443k freed
cramfs: wrong magic
sh-2021: reiserfs_read_super: can not find reiserfs on ramdisk (1,0) kernel panic: VFS: Unable to mount root fs on 00:00
Press L1-A to return to the boot prom

Quoted 1 line

The 20040511 daily image boots up fine on this system.

Quoted 9 lines

Erk. That's a _regression_! Not good... Ben, did your patch interfere with anything that would have made this not work? Also, this is CDROM, right? Also, did you use a netinst/businesscard image, the cdrom-mini.iso, or what?

I tried a boot floppy on my sparc32 box. It seemed to boot OK, but possibly because SILO is not responible for the initrd for floppy installs.

cdrom-mini.iso from your daily build.

Signature · 2 lines
[email protected]	780-492-7660
Computing and Network Services	University of Alberta
#12 lore raw
In reply to Ben Collins
Quoted 1 line

Loading initial ramdisk ( 1477684 bytes at 0x01x phys, 0x60800000 virt)

Ok, there's a new second.b on sparc-boot.org/pub/testing/. Give that a shot.

Signature · 4 lines
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/
#14 lore raw
In reply to Ben Collins

For what it's worth, I get the same thing reported earlier when trying this image on my Ultra 5:

NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Couldn't find valid RAM disk image starting at 0. Freeing initrd memory: 1442 freed
cramfs: wrong magic
sh-2021: reiserfs_read_super: can not find reiserfs on ramdisk(1,0)

Kernel panic: VFS: Unable to mount root fs on 00:00
 Press L1-A to return to the boot prom
Quoted 9 lines · Joshua Kwan

Updated images with this second.b are at

http://june.voxel.net/~joshk/d-i/images/2004-05-15

Remember, the images from gluck.debian.org don't contain a patched kernel or second.b.

#15 lore raw
In reply to Ben Collins
Quoted 10 lines · Patrick Morris

For what it's worth, I get the same thing reported earlier when trying this image on my Ultra 5:

NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Couldn't find valid RAM disk image starting at 0. Freeing initrd memory: 1442 freed
cramfs: wrong magic
sh-2021: reiserfs_read_super: can not find reiserfs on ramdisk(1,0)

Kernel panic: VFS: Unable to mount root fs on 00:00

Press L1-A to return to the boot prom

I need the line that silo prints out about where it is locating the initrd in memory.

Signature · 4 lines
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/
#16 lore raw
In reply to Ben Collins
Quoted 8 lines · Patrick Morris

boot:
Allocated 8 Megs of memory at 0x40000000 for kernel Uncompressing image...
Loaded kernel version 2.4.26
Loading initial ramdisk (1477459 bytes at 0x10C00000 phys, 0x40C00000 virt)...
Remapping the kernel... Done
Booting Linux

Ok, that looks correct. Now the question is why isn't the kernel doing the right thing.

Do the cdrom images have bootmem debug enabled in the kernels? If so, I'd like to see what bootmem-debug says about the pages it is reserving for the initrd.

Signature · 4 lines
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/
#17 lore raw
In reply to Ben Collins
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

RAMDISK: Couldn't find valid RAM disk image starting at 0. Freeing initrd memory: 1442 freed
cramfs: wrong magic

Wait a second. Is this ramdisk really cramfs, or is it romfs?

Signature · 4 lines
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/
#18 lore raw
In reply to Ben Collins

boot:
Allocated 8 Megs of memory at 0x40000000 for kernel Uncompressing image...
Loaded kernel version 2.4.26
Loading initial ramdisk (1477459 bytes at 0x10C00000 phys, 0x40C00000 virt)...
Remapping the kernel... Done
Booting Linux

Quoted 21 lines · Ben Collins
Quoted 12 lines · Patrick Morris

For what it's worth, I get the same thing reported earlier when trying this image on my Ultra 5:

NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Couldn't find valid RAM disk image starting at 0. Freeing initrd memory: 1442 freed
cramfs: wrong magic
sh-2021: reiserfs_read_super: can not find reiserfs on ramdisk(1,0)

Kernel panic: VFS: Unable to mount root fs on 00:00

Press L1-A to return to the boot prom

I need the line that silo prints out about where it is locating the initrd in memory.

#19 lore raw
In reply to Ben Collins

Sun Ultra 1 (uniprocessor UltraSPARC):
Loading initital ramdisk (1477740 bytes at 0x20800000 phys 0x40c00000 virt)

Sun Ultra Enterprise 2 (dual processor UltraSPARC):
Loading initital ramdisk (1477740 bytes at 0x60800000 phys 0x40c00000 virt)

Panics with the same message as before:

Quoted 7 lines

NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Couldn't find valid RAM disk image starting at 0. Freeing initrd memory: 1442 freed
cramfs: wrong magic
sh-2021: reiserfs_read_super: can not find reiserfs on ramdisk(1,0)

Kernel panic: VFS: Unable to mount root fs on 00:00

Press L1-A to return to the boot prom

Signature · 2 lines
[email protected]	780-492-7660
Computing and Network Services	University of Alberta
#20 lore raw
In reply to Ben Collins
Quoted 5 lines · Ben Collins
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

RAMDISK: Couldn't find valid RAM disk image starting at 0. Freeing initrd memory: 1442 freed
cramfs: wrong magic

Wait a second. Is this ramdisk really cramfs, or is it romfs?

Neither. It's gzipped ext2.

Signature · 1 line
Joshua Kwan
#21 lore raw
In reply to Ben Collins

Hope nobody's been waiting for a reply from me on this one... Since I can't get it to boot, I've got a dead Ultra 5 (well, a couple, actually), and I really couldn't say what kernel options are included, or what fs was used for the initial ramdisk. If it helps, though, I'll poke around on the CD a bit more and see if I can come up with answers to those questions -- I'm as eager as anyone to see this one finally worked out.

Quoted 5 lines · Ben Collins

Do the cdrom images have bootmem debug enabled in the kernels? If so, I'd like to see what bootmem-debug says about the pages it is reserving for the initrd.