Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12590 Discussions

Kernel panic - not syncing: No init found.

Altera_Forum
Honored Contributor II
1,183 Views

After successfully starting the kernel I get an error message  

Kernel panic - not syncing: No init found.  Try passing init= option to kernel. 

 

After mounting the rootfs it can't find the the init in /bin/init. I mounted the flash image as loop device and everthing seems ok. The init file is in /bin, it is executable and /bin is accessableand the flash image is at address 0x200000. So I don't see, where the problem could be! Even when I pass the boot option init=/bin/sh, the error occurs. 

 

uClinux/Nios II Altera Nios II support (C) 2004 Microtronix Datacom Ltd. Built 1 zonelists Kernel command line: root=/dev/mtdblock0 ro PID hash table entries: 128 (order: 7, 2048 bytes) Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory available: 15120k/16384k RAM, 0k/0k ROM (859k kernel code, 209k data) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) Linux NoNET1.0 for Linux 2.6 Serial: JTAG UART driver $Revision: 1.4 $ ttyJ0 at MMIO 0x80820ca8 (irq = 6) is a jtag_uart io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize Altera NDK flash (AMD): Found 1 x8 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 Altera NDK flash (AMD): CFI does not contain boot bank location. Assuming top. number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. cmdlinepart partition parsing not available RedBoot partition parsing not available Using Altera NDK partition definition Creating 4 MTD partitions on "Altera NDK flash (AMD)": 0x00200000-0x00600000 : "romfs/jffs2" 0x00000000-0x00200000 : "loader/kernel" 0x00600000-0x00700000 : "User configuration" 0x00700000-0x00800000 : "safe configuration" VFS: Mounted root (romfs filesystem) readonly. Freeing unused kernel memory: 52k freed (0x20f4000 - 0x2100000) Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
383 Views

Hi... how about you send me your romfs image? I can take a peek and try mounting it on one of our dev boards here. I'll send you my e-mail address via pm.

0 Kudos
Altera_Forum
Honored Contributor II
383 Views

After building the same kernel with ethernet support, I get a slightly different output: 

Freeing unused kernel memory: 64k freed (0x217c000 - 0x218b000) Warning: unable to open an initial console. Kernel panic - not syncing: No init found.  Try passing init= option to kernel. 

 

Now I get the warning, that the initial console could not be opened. The console is JTAG-UART. The device file has major,minor 5,1.
0 Kudos
Reply