linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* initrd problems
@ 2002-10-30 16:28 Anders Blomdell
  2002-10-30 16:47 ` Wolfgang Denk
  0 siblings, 1 reply; 15+ messages in thread
From: Anders Blomdell @ 2002-10-30 16:28 UTC (permalink / raw)
  To: linuxppc embedded


I have created a compressed ramdisk of the root I'm currently using as NFS
root for my embedded system. When I try to boot it with the following boot
arguments:

   Linux/PPC load: console=ttyS0,9600 root=/dev/ram rw

it fails with:

   RAMDISK: Compressed image found at block 0
   Freeing initrd memory: 361k freed
   Kernel panic: VFS: Unable to mount root fs on 01:00

Anything very obvious that is wrong?

Regards

Anders Blomdell

------------------------------------------------------------------------------
  Anders Blomdell
  Department of Automatic Control        Email: anders.blomdell@control.lth.
se
  Lund Institute of Technology           Phone: +46 46 222 4625
  Box 118, S-221 00 Lund, Sweden         Fax:   +46 46 138118


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 15+ messages in thread
* initrd problems
@ 2003-04-24  5:32 Sriram Narasimhan
  2003-04-24  7:35 ` Wolfgang Denk
  0 siblings, 1 reply; 15+ messages in thread
From: Sriram Narasimhan @ 2003-04-24  5:32 UTC (permalink / raw)
  To: linuxppc-embedded


Hello,

I am unable to boot up my linux with my ramdisk image.
Board: MPC8260 ADS
Kernel: 2.4.1
PPC Boot: 2.0.0

When I boot up the kernel without ramdisk, the same kernel image is
booting up fine.
But when I use a ramdisk

## Booting image at 00100000 ...
   Image Name:   Embedix for MPC8260ADS
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    531861 Bytes = 519.4 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Loading RAMDisk Image at 00200000 ...
   Image Name:   Simple ramdisk Image
   Image Type:   PowerPC Linux RAMDisk Image (uncompressed)
   Data Size:    4194304 Bytes =  4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Ramdisk to 00b5e000, end 00f5e000 ... OK

I dont get any console output after this. I am not sure that it hangs,
because I see the ethernet link led's getting reset (same behaviour in
normal bootup) and the SCC controller leds getting enabled. (same
behaviour in normal boot up).

The command line passing into the kernel is:
" root=/dev/ram0 init=/linuxrc rw "
I believe PPC boot will pass the ramdisk start and end address along
with the above command line.
I have verified this also by checking the log_buff after I had reset the
board.

00145664: 3c343e72 343a2030 30623565 3030300a    <4>r4: 00b5e000.
00145674: 3c343e54 6f74616c 206d656d 6f727920    <4>Total memory
00145684: 3d203136 4d423b20 7573696e 67203634    = 16MB; using 64
00145694: 6b422066 6f722068 61736820 7461626c    kB for hash tabl
001456a4: 65202861 74206330 31383030 3030290a    e (at c0180000).
001456b4: 3c343e4c 696e7578 20766572 73696f6e    <4>Linux version
001456c4: 20322e34 2e312028 726f6f74 40656d62     2.4.1 (root@emb
001456d4: 65646978 29202867 63632076 65727369    edix) (gcc versi
001456e4: 6f6e2032 2e39352e 33203230 30313033    on 2.95.3 200103
001456f4: 31352028 72656c65 61736529 29202338    15 (release)) #8
00145704: 30205765 64204170 72203233 2031353a    0 Wed Apr 23 15:
00145714: 35393a32 37205554 43203230 30330a3c    59:27 UTC 2003.<
00145724: 343e4f6e 206e6f64 65203020 746f7461    4>On node 0 tota
00145734: 6c706167 65733a20 34303936 0a3c343e    lpages: 4096.<4>
00145744: 7a6f6e65 2830293a 20343039 36207061    zone(0): 4096 pa
00145754: 6765732e 0a3c343e 7a6f6e65 2831293a    ges..<4>zone(1):
00145764: 20302070 61676573 2e0a3c34 3e7a6f6e     0 pages..<4>zon
00145774: 65283229 3a203020 70616765 732e0a3c    e(2): 0 pages..<
00145784: 343e4b65 726e656c 20636f6d 6d616e64    4>Kernel command
00145794: 206c696e 653a202f 6465762f 00000000     line: /dev/....
001457a4: 00000000 00000000 00000000 00000000    ................
001457b4: 00000000 00000000 00000000 00000000    ................
001457c4: 00000000 00000000 00000000 00000000    ................
001457d4: 00000000 00000000 00000000 00000000    ................

The r4 register which points to the ramdisk start is also correct. So
PPC boot is passing the ramdisk parameter properly.
I unable to get any more output from the log_buff.

Also when I tried using a compressed image of the ramdisk, PPC boot
failed to uncompress it.
Can I provide a compressed image of the ramdisk to PPCBoot.?

Is there anything wrong that I am doing in setting up the ramdisk
environment ?

Any pointers or suggestions would be very useful.
Thank you.
Regards,
Sriram N


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 15+ messages in thread
* initrd problems
@ 2001-01-18 15:53 Sébastien Côté
  2001-01-18 22:27 ` Sébastien Côté
  0 siblings, 1 reply; 15+ messages in thread
From: Sébastien Côté @ 2001-01-18 15:53 UTC (permalink / raw)
  To: LinuxPPC-embedded list


Hi,

I'm trying to boot Sandpoint linux on my board but I can't get initrd
to load.  I'm not using any special bootloader.

I compiled the kernel using make zImage.initrd (my initrd ramdisk is
smaller than 4 MB) and I added root=/dev/ram to the cmd_line in the
function sandpoint_setup_arch() from sandpoint_setup.c.  I know I
shouldn't have to do this (acording to the HOWTO), but I am so
clueless about the cause of the problem that I'm ready to try anything.

The kernel loads until the function mount_root() (in fs/super.c).
This is where it stops:

        retval = blkdev_get(bdev, mode, 0, BDEV_FS);
        if (retval == -EROFS) {
                root_mountflags |= MS_RDONLY;
                retval = blkdev_get(bdev, FMODE_READ, 0, BDEV_FS);
        }
        if (retval) {
                /*
                 * Allow the user to distinguish between failed open
                 * and bad superblock on root device.
                 */
                printk ("VFS: Cannot open root device \"%s\" or %s\n",
                        root_device_name, kdevname (ROOT_DEV));
                printk ("Please append a correct \"root=\" boot
option\n");
                panic("VFS: Unable to mount root fs on %s",
                        kdevname(ROOT_DEV));
        }

With the help of a debugger, I found out that:
root_device_name = ram
ROOT_DEV = 0x0100  /* which is ram according to init/main.c */

So if the root_device points to ram like it should, does anybody know
why it can't open the root device?

The kernel has been copied at address 0 of the RAM on the board along
with initrd (there's no hard-drive or flash, just ram).  Do I need to
set something before I launch the kernel?  I tought everything was setup
up correctly when I did make zImage.initrd ! (INITRD_OFFSET and
INITRD_SIZE should be set by make zImage.initrd, right?)

Any help would be appreciated !


Sébastien Côté

(Sorry if you received this e-mail twice but it didn't seem to go
through the first time)

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2003-04-24  7:35 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-30 16:28 initrd problems Anders Blomdell
2002-10-30 16:47 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2003-04-24  5:32 Sriram Narasimhan
2003-04-24  7:35 ` Wolfgang Denk
2001-01-18 15:53 Sébastien Côté
2001-01-18 22:27 ` Sébastien Côté
2001-01-18 20:01   ` Matt Porter
2001-01-19 17:22     ` Sébastien Côté
2001-01-20 14:35       ` Matt Porter
2001-01-22 18:56         ` Sébastien Côté
2001-01-22 19:24           ` Kyle Harris
2001-01-22 20:45             ` Sébastien Côté
2001-01-19  1:13   ` Mark A. Greer
2001-01-19 14:53     ` Sébastien Côté
2001-01-23 21:03       ` Michael Pruznick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).