Re: [U-Boot] Unable to mount Root File System , initramdisk or initramfs

2010-06-09 Thread Detlev Zundel
Hi Gurumurthy,

 I am using MIPS32 AU1350 processor board with 2MB of NOR Flash, I have
 programmed u-boot and Linux kernel in NOR Flash. U-boot is working
 able to boot linux kernel but not able to mount root filesystem from
 SDRAM.

 I tried both initramdisk and initramfs. please let me know more info
 about this.

 I have created uRamdisk and also passed boot arguments.

 Below is the error log. let me know whether I am missing something.

Well you really need to debug the Linux kernel and especially the
parameter passing from U-Boot to Linux on the MIPS architecture to find
out why the kernel does not find the ramdisk (i.e. check
do_bootm_linux() in arch/mips/lib/bootm.c).

On PowerPC we used to have registers r4 and r5 specifying the address
and length of the ramdisk which was set on calling Linux.  Maybe MIPS
needs something similar.  Becuase in recent U-Boot versions, the boot
code was completely rewritten, you should trace all activity of the
bootm U-Boot command before it calls the linux kernel in
do_bootm_linux() and ensure that the expectations of the Linux kernel
are met.

Cheers
  Detlev

-- 
Multiple exclamation marks, the sure sign of an insane mind.
-- Terry Pratchett
--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Unable to mount Root File System , initramdisk or initramfs

2010-06-03 Thread  Gurumurthy G M


Hi All,
   I am using MIPS32 AU1350 processor board with 2MB of NOR Flash, I have 
programmed u-boot and Linux kernel in NOR Flash. U-boot is working able to boot 
linux kernel but not able to mount root filesystem from SDRAM.

I tried both initramdisk and initramfs. please let me know more info about this.

I have created uRamdisk and also passed boot arguments.

Below is the error log. let me know whether I am missing something.

U-Boot 2010.03 (May 28 2010 - 21:01:02)

Linux Advanced AVN Platform
CPU: Au1350 660MHz, id: 0x80, rev: 0x01
DRAM:  256 MB
Flash:  2 MB
*** Warning - bad CRC, using default environment

In:serial
Out:   serial
Err:   serial
LinuxAVN= loadb 0x8100
## Ready for binary (kermit) download to 0x8100 at 0 bps...

(Back at localhost)

(/home/gurumurthy/Downloads/kermit/) C-Kermitsend /tftpboot/rdImage
(/home/gurumurthy/Downloads/kermit/) C-Kermit\c
Connecting to /dev/ttyS0, speed 115200
 Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.

## Total Size  = 0x002ed937 = 3070263 Bytes
## Start Addr  = 0x8100
LinuxAVN= imls
Legacy Image at BFC5:
   Image Name:   Linux-2.6.28.1
   Created:  2010-06-02  11:38:32 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:1134559 Bytes =  1.1 MB
   Load Address: 8010
   Entry Point:  80104730
   Verifying Checksum ... OK
LinuxAVN= iminfo 0x8100

## Checking Image at 8100 ...
   Legacy image found
   Image Name:  
   Created:  2010-06-02  11:11:16 UTC
   Image Type:   MIPS Linux RAMDisk Image (gzip compressed)
   Data Size:3070199 Bytes =  2.9 MB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
LinuxAVN= setenv bootargs console=ttyS0,115200 root=/dev/ram0 rw
LinuxAVN= printenv
baudrate=115200
stdin=serial
stdout=serial
stderr=serial
filesize=2ED937
bootargs=console=ttyS0,115200 root=/dev/ram0 rw

Environment size: 121/65532 bytes
LinuxAVN= 
baudrate=115200
stdin=serial
stdout=serial
stderr=serial
filesize=2ED937
bootargs=console=ttyS0,115200 root=/dev/ram0 rw

Environment size: 121/65532 bytes
LinuxAVN=
baudrate=115200
stdin=serial
stdout=serial
stderr=serial
filesize=2ED937
bootargs=console=ttyS0,115200 root=/dev/ram0 rw

Environment size: 121/65532 bytes
LinuxAVN=
baudrate=115200
stdin=serial
stdout=serial
stderr=serial
filesize=2ED937
bootargs=console=ttyS0,115200 root=/dev/ram0 rw

Environment size: 121/65532 bytes
LinuxAVN= bootm
## Booting kernel from Legacy Image at 8100 ...
   Image Name:  
   Created:  2010-06-02  11:11:16 UTC
   Image Type:   MIPS Linux RAMDisk Image (gzip compressed)
   Data Size:3070199 Bytes =  2.9 MB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
Wrong Image Type for bootm command
ERROR: can't get kernel image!
LinuxAVN=
LinuxAVN=
LinuxAVN= bootm 0xbfc5 0x8100
## Booting kernel from Legacy Image at bfc5 ...
   Image Name:   Linux-2.6.28.1
   Created:  2010-06-02  11:38:32 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:1134559 Bytes =  1.1 MB
   Load Address: 8010
   Entry Point:  80104730
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 8100 ...
   Image Name:  
   Created:  2010-06-02  11:11:16 UTC
   Image Type:   MIPS Linux RAMDisk Image (gzip compressed)
   Data Size:3070199 Bytes =  2.9 MB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.29.4-rmi-126-DB1350 (r...@gurumurthy) (gcc version 4.2.4) #31 
Wed Jun 2 17:05:36 IST 2010
console [early0] enabled
CPU revision is: 800c8001 (Au13xx)
(PRId 800c8001) @ 660.00 MHz
RMI DBAu1300 Development Board
Determined physical RAM map:
 memory: 0180 @  (usable)
 memory: 0c80 @ 0180 (reserved)
 memory: 0200 @ 0e00 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x - 0x0001
  HighMem  0x0001 - 0x0001
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x - 0x0001
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyS0,115200 root=/dev/ram0 rw 
video=au1200fb:panel:bs
Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
PID hash table entries: 1024 (order: 10, 4096 bytes)
Alchemy clocksource installed
Console: colour dummy device 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 51012k/57344k available (1899k kernel code, 5988k reserved, 490k data, 
152k init, 0k highmem)
Calibrating delay loop...