[U-Boot-Users] Kernel Panic

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.

In message 41483bfe0704110720o1a8b1c1t737e740b5dce63a7@mail.gmail.com you wrote:
I get the message kerenl panic. with the statement no Init found.
Did you actually read the kernel messages???
mem=64M root=dev/ram0 console=ttyAMA1,112500n8
So you are booting with a ramdisk as root file system. hwat has all your description of NAND and JFFS2 to do with this?
... ## 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
You boot with a ramdisk image.
Kernel command line: root=/dev/ram0 console=ttyAMA1,115200n8 mem=64M init=/sbin/init
THe kernel is told to use a ramdisk and to start /sbin/init
RAMDISK: Compressed image found at block 0 VFS: Mounted root (ext2 filesystem).
The kernel succesfully mounts the ramdisk image.
Failed to execute /sbin/init. Attempting defaults... Kernel panic - not syncing: No init found. Try passing init= option to kernel.
And it tells you that it does not find /sbin/init in your ramdisk.
What is so difficult to understand here?
And why are you posting this on the U-Boot mailing list? This is a Linux kernel problem (well, actually it's probably a PEBKAC) and as such off topic here.
Best regards,
Wolfgang Denk
participants (2)
-
harsh poshtiwala
-
Wolfgang Denk