newbie: Kernel panic: No init found

Hi all,

newbie needs help.

I try to get up a custom board (MPC857T; SDRAM 16MB; ttyS0:SMC1; eth0:SCC1). I have ported U-Boot-1.1.1 and the kernel (2.4.20...) but the kernel seems to fail mounting the RAM disk as rootfs. Has anyone an idea what's wrong?

Thanks in advance Oliver

some helpful prints:

--- U-Boot 1.1.1 (Jun 18 2004 - 11:44:16)

CPU: unknown MPC86x (0x06000000) at 50 MHz: 4 kB I-Cache 4 kB D-Cache FEC present *** Warning: CPU Core has Silicon Bugs -- Check the Errata *** ONU-S I2C: ready DRAM: 16 MB RAM test passed Top of RAM usable for U-Boot at: 01000000 Reserving 159k for U-Boot at: 00fd8000 Reserving 1028k for malloc() at: 00ed7000 Reserving 60 Bytes for Board Info at: 00ed6fc4 Reserving 48 Bytes for Global Data at: 00ed6f94 Stack Pointer at: 00ed6f78 New Stack Pointer is: 00ed6f78 relocate_code( 00ed6f78, 00ed6f94, 00fd8000 Now running in RAM - U-Boot at: 00fd8000 ... => setenv serverip 192.168.156.22 => setenv ipaddr 192.168.156.40 => setenv bootargs root=/dev/ram0 => tftpboot 00100000 oliver/uImage Using SCC ETHERNET device Load address: 0x100000 Loading:...done => tftpboot 00200000 oliver/rootfs Using SCC ETHERNET device Load address: 0x200000 Loading: ...done => bootm 00100000 00200000 ## Booting image at 00100000 ... Image Name: Linux-2.4.20-rthal5 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 558103 Bytes = 545 kB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK ## Loading RAMDisk Image at 00200000 ... Image Name: Ramdisk image from eldk Image Type: PowerPC Linux RAMDisk Image (gzip compressed) Data Size: 1459536 Bytes = 1.4 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Ramdisk to 00d71000, end 00ed5550 ... OK Linux version 2.4.20-rthal5 (oliver@r522susi) (gcc version 2.95.4

20010319 (prerelease/franzo/20011204)) #13 Mo Jun 14 1 3:35:42 CEST 2004 On node 0 totalpages: 4096 zone(0): 4096 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/ram0 Decrementer Frequency = 187500000/60 Warning: real time clock seems stuck! Calibrating delay loop... 49.76 BogoMIPS Memory: 14764k available (1044k kernel code, 328k data, 44k init, 0k highmem) ... RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 1024 bind 1024) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. mounting empty RAMFS as root fs SUCCESS VFS: Mounted root (ramfs filesystem). Freeing unused kernel memory: 44k init Warning: unable to open an initial console. Kernel panic: No init found. Try passing init= option to kernel. Rebooting in 180 seconds..
Reply to
Oliver Fuchs
Loading thread data ...

Maybe you should specify in bootargs initrd=00200000 too

Regards

Marco Cavallini ============================================== # K-Linux : linux for industrial applications #

Koan s.a.s. - Software Engineering (x86 and ARM) Linux and WinCE solutions for Embedded and Real-Time Software - Microsoft Windows Embedded Partner - Intel PCA Developer Network member Via Pascoli, 3 - 24121 Bergamo - ITALIA Tel./Fax (++39) +35 - 255.235 -

formatting link
==============================================

Reply to
Marco Cavallini

doesn't help I think the bootloader tells the kernel the address of the RAM disk image, because it moves it to another address:

--- ## Loading RAMDisk Image at 00200000 ... Image Name: Ramdisk image from eldk Image Type: PowerPC Linux RAMDisk Image (gzip compressed) Data Size: 1459536 Bytes = 1.4 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Ramdisk to 00d71000, end 00ed5550 ... OK ---

Reply to
Oliver Fuchs

here the bootloader is uncompressing the RAMDisk Image in ram, but nobody is telling to the kernel where the RamDisk is located That's because I suggest you to specify in bootargs initrd=00200000 too. Regards

Marco Cavallini ============================================== # K-Linux : linux for industrial applications #

Koan s.a.s. - Software Engineering (x86 and ARM) Linux and WinCE solutions for Embedded and Real-Time Software - Microsoft Windows Embedded Partner - Intel PCA Developer Network member Via Pascoli, 3 - 24121 Bergamo - ITALIA Tel./Fax (++39) +35 - 255.235 -

formatting link
==============================================

Reply to
Marco Cavallini

but it didn't help. I have also tried initrd=0x00d71000 - same result:-(

THX, Oliver

Reply to
Oliver Fuchs

have you verified that there is indeed an executable for init on the filesystem?

Reply to
Marc Britten

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.