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++
12689 Discussions

Kernel panic - not syncing: No init found ??

Altera_Forum
Honored Contributor II
1,312 Views

Hi group, 

I have a custom board for which I built a new linux using the latest sources as per instructions on the wiki. Here is what happens when it boots 

any thoughts anyone help!! please 

 

 

//////////// 

uClinux/Nios II 

Built 1 zonelists in Zone order, mobility grouping off. Total pages: 8128 

Kernel command line: 

NR_IRQS:32 

PID hash table entries: 128 (order: 7, 512 bytes) 

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) 

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) 

Memory available: 30204k/2264k RAM, 0k/0k ROM (1393k kernel code, 870k data) 

Calibrating delay loop... 28.77 BogoMIPS (lpj=143872) 

Mount-cache hash table entries: 512 

net_namespace: 264 bytes 

NET: Registered protocol family 16 

init_BSP(): registering device resources 

bio: create slab <bio-0> at 0 

NET: Registered protocol family 2 

IP route cache hash table entries: 1024 (order: 0, 4096 bytes) 

TCP established hash table entries: 1024 (order: 1, 8192 bytes) 

TCP bind hash table entries: 1024 (order: 0, 4096 bytes) 

TCP: Hash tables configured (established 1024 bind 1024) 

TCP reno registered 

NET: Registered protocol family 1 

io scheduler noop registered 

io scheduler deadline registered (default) 

ttyJ0 at MMIO 0x4003440 (irq = 2) is a Altera JTAG UART 

console [ttyJ0] enabled 

brd: module loaded 

TCP cubic registered 

NET: Registered protocol family 17 

Freeing unused kernel memory: 688k freed (0x218a000 - 0x2235000) 

Failed to execute /init 

Kernel panic - not syncing: No init found. Try passing init= option to kernel.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
638 Views

Please check the initramfs source config. Or try "make" the second time. 

 

- Hippo
0 Kudos
Altera_Forum
Honored Contributor II
638 Views

tryed make second time (did a make clean first) did not help 

 

not quite sure how to check the initramfs source config. 

Some clues: 

 

The final image is about 1.2M. 

The init file in the romfs folder is only 9 bytes and shows to be a broken link 

 

any thoughts
0 Kudos
Altera_Forum
Honored Contributor II
638 Views

a couple of resets to default and its up and running thanks for the support much apreciated I am onto getting the SD card and the ethernet to work!!

0 Kudos
Reply