[U-Boot-Users] Kernel Panic

harsh poshtiwala hiharsh at gmail.com
Wed Apr 11 16:20:43 CEST 2007


Hi ,

I have been trying to create MTD partitions and JFFS2 file system on
ST linux kerenel version 2.6.12

The processor is Nomadik. The development board is NMTV10.

I enabled MTD paprameters and JFFS2 parameters while configuring the kernel.

Attached is the .config file and the log of u-boot prompt.

I erased the nand with command

nand erase 0x400000 0x800000

Now i loaded the jffs2 image

loadb 0x100000

Now i write this to Nand

nand write.jffs2 0x100000 0x400000 0x002c0000
where 0x002c0000 is the size of kerenl image.

I get the message kerenl panic. with the statement no Init found.

Did i miss anything while configuring the kerenel.

i set boot  command option as follow

mem=64M root=dev/ram0 console=ttyAMA1,112500n8


Did i miss anything ?

I would appreciate your response.




-- 
Thanks & Regards
Harsh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NMTV_MTD.config
Type: application/octet-stream
Size: 20556 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070411/f0306ab5/attachment.obj 
-------------- next part --------------


U-Boot 1.1.1 (Mar 14 2007 - 16:11:53)

U-Boot code: 03F80000 -> 03FA4838  BSS: -> 03FA9108
RAM Configuration:
Bank #0: 00000000 64 MB
Bank #1: 00000000  0 kB
Flash:  0 kB
NAND:128 MiB
Using default environment

In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
Nomadik-8810 $ nand erase 0x400000 0x800000

NAND erase: device 0 offset 0x400000, size 0x800000 OK
Nomadik-8810 $ loadb 0x100000
## Ready for binary (kermit) download to 0x00100000 at 115200 bps...
## Total Size      = 0x002c0000 = 2883584 Bytes
## Start Addr      = 0x00100000
Nomadik-8810 $ nand write.jffs2 0x100000 0x400000 0x002c0000

NAND write: device 0 offset 4194304, size 2883584 ...  2883584 bytes written: OK

Nomadik-8810 $

U-Boot 1.1.1 (Mar 14 2007 - 16:11:53)

U-Boot code: 03F80000 -> 03FA4838  BSS: -> 03FA9108
RAM Configuration:
Bank #0: 00000000 64 MB
Bank #1: 00000000  0 kB
Flash:  0 kB
NAND:128 MiB
Using default environment

In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
### JFFS2 loading 'kernel.uimg' to 0x100000
Scanning JFFS2 FS: . done.
### JFFS2 load complete: 1299268 bytes loaded to 0x100000
### JFFS2 loading 'initrd.gz.uimg' to 0x800000
### JFFS2 load complete: 1544553 bytes loaded to 0x800000
## Booting image at 00100000 ...
   Image Name:   linux kernel
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1299204 Bytes =  1.2 MB
   Load Address: 00080000
   Entry Point:  00080000
OK
## Loading Ramdisk Image at 00800000 ...
   Image Name:   Linux RAMDISK File System
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    1544489 Bytes =  1.5 MB
   Load Address: 00000000
   Entry Point:  00000000

Starting kernel ...

Linux version 2.6.16.2 (root at tlmtcudev1) (gcc version 4.1.1) #1 Tue Apr 10 20:40
:52 EDT 2007
CPU: ARM926EJ-Sid(wb) [41069264] revision 4 (ARMv5TEJ)
Machine: ARM-Nomadik
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists
Kernel command line: root=/dev/ram0 console=ttyAMA1,115200n8 mem=64M init=/sbin/
init
VIC Init done...
PID hash table entries: 512 (order: 9, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 60428KB available (2244K code, 510K data, 100K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 1508K
NET: Registered protocol family 16
 mb:25: coherent dma mask is unset
nomadik_epio_init: Core Board Revision 0.0,  CPLD Code Revision 0.0
EPIO init... done!
NetWinder Floating Point Emulator V0.97 (double precision)
Installing knfsd (copyright (C) 1996 okir at monad.swb.de).
JFFS2 version 2.2. (NAND) (SUMMARY)  (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
CLCD: Registers set to
  122e1238 040f0d3f 00ef1804 00000000
  00b00000 00b12c00 00000000 00130829
CLCD: Nomadik hardware, QVGA_P display
CLCD: Registers set to
  122e1238 040f0d3f 00ef1804 00000000
  00b00000 00b12c00 00000000 00130829
Console: switching to colour frame buffer device 30x40
Real Time Clock Driver v1.12ac
Serial: AMBA PL011 UART driver
mb:16: ttyAMA0 at MMIO 0x101fd000 (irq = 12) is a AMBA/PL011
mb:17: ttyAMA1 at MMIO 0x101fb000 (irq = 17) is a AMBA/PL011
RAMDISK driver initialized: 16 RAM disks of 46080K size 1024 blocksize
loop: loaded (max 8 devices)
nbd: registered device at major 43
smc91x: not found (-19).
$Id: ftl.c,v 1.59 2005/11/29 14:48:31 gleixner Exp $
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
INFTL: inftlcore.c $Revision: 1.19 $, inftlmount.c $Revision: 1.18 $
mice: PS/2 mouse device common for all mice
KEYPAD: Keypad H/w nmdk_error....
i2c /dev entries driver
nomadik_i2c_init()
Nomadik I2C v2.0.0
nomadik_i2c_init()
Message timeout with no handled event
error waiting for i2c read: -62

 Error in writing value to touareg register<4>nomadik_mmci-pl180: probe of mb:18
 failed with error -62
Error in write_register: -68
ERROR:SAA-DRV:  failed in I2c read/write call
error in acodec power down
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 100K
Failed to execute /sbin/init.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.


More information about the U-Boot mailing list