Forum Discussion
Altera_Forum
Honored Contributor
20 years agoKernel panic - not syncing: No init found.
Altera Nios II support © 2004 Microtronix Datacom Ltd.
Built 1 zonelists Kernel command line: PID hash table entries: 64 (order: 6, 1024 bytes) Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory available: 6912k/8192k RAM, 0k/0k ROM (741k kernel code, 426k data) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) Linux NoNET1.0 for Linux 2.6 SCSI subsystem initialized NIOS serial driver version 0.0 ttyS0 (irq = 0) is a builtin NIOS UART io scheduler noop registered io scheduler deadline registered mice: PS/2 mouse device common for all mice Freeing unused kernel memory: 328k freed (0x8c6000 - 0x917000) BINFMT_FLAT: bad magic/rev (0x10101ff, need 0x4) BINFMT_FLAT: bad magic/rev (0x10101ff, need 0x4) BINFMT_FLAT: bad magic/rev (0x10101ff, need 0x4) BINFMT_FLAT: bad magic/rev (0x10101ff, need 0x4) BINFMT_FLAT: bad magic/rev (0x10101ff, need 0x4) BINFMT_FLAT: bad magic/rev (0x10101ff, need 0x4) Kernel panic - not syncing: No init found. Try passing init= option to kernel. my inittab is from hippo14 Replies
- Altera_Forum
Honored Contributor
if I delete the symbol link init->/sbin/init,
the error message ia diffrent. so the init was found by kernel,but why it complain? --- Quote Start --- originally posted by leonqin@Jan 12 2006, 09:28 PM altera nios ii support © 2004 microtronix datacom ltd.built 1 zonelists
kernel command line:
pid hash table entries: 64 (order: 6, 1024 bytes)
dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
memory available: 6912k/8192k ram, 0k/0k rom (741k kernel code, 426k data)
mount-cache hash table entries: 512 (order: 0, 4096 bytes)
linux nonet1.0 for linux 2.6
scsi subsystem initialized
nios serial driver version 0.0
ttys0 (irq = 0) is a builtin nios uart
io scheduler noop registered
io scheduler deadline registered
mice: ps/2 mouse device common for all mice
freeing unused kernel memory: 328k freed (0x8c6000 - 0x917000)
binfmt_flat: bad magic/rev (0x10101ff, need 0x4)
binfmt_flat: bad magic/rev (0x10101ff, need 0x4)
binfmt_flat: bad magic/rev (0x10101ff, need 0x4)
binfmt_flat: bad magic/rev (0x10101ff, need 0x4)
binfmt_flat: bad magic/rev (0x10101ff, need 0x4)
binfmt_flat: bad magic/rev (0x10101ff, need 0x4)
kernel panic - not syncing: no init found. try passing init= option to kernel.
my inittab is from hippo
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12162)
--- quote end ---
--- Quote End ---
- Altera_Forum
Honored Contributor
Hi leonqin,
I am happy, that you are close to the end, the error was that the busybox is not in correct flat format, it was elf. I discussed with vapier about adding the ldflag for elf2flt to busybox, but it is not supported yet. 1. The current snapshot of buildroot did not include the latest fix for elf2flt. It should be available tommorow. Or (better) use svn, it will update elf2flt source, cd ~/buildroot svn update rm -rf toolchain_build_nios2/elf2flt make 2. then, follow step 4.1 in the updated post, http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174) 3. update busybox to the rootfs cp ~/buildroot/build_nios2/busybox/busybox ~/rootfs/bin 4. rebuild the kernel to update initram image - Altera_Forum
Honored Contributor
The buildroot update to elf2flt will be available in tommorow, 20060115.
It would be better to use svn update. But it still has bug. please download the patch into ~/download http://bugs.uclibc.org/file_download.php?f...id=537&type=bug (http://bugs.uclibc.org/file_download.php?file_id=537&type=bug) Apply the patch after svn update, cd ~/buildroot patch -p1 <~/download/nios2-buildroot-02.diff rm -rf toolchain_build_nios2/elf2flt make I posted this patch to buildroot, but it would take three or more days to sync up. Let me know if you have gone through the problem or not. - Altera_Forum
Honored Contributor
the bug in elf2flt is fixed in svn and the snapshot on 20060115.
so no need to patch elf2flt now. - Altera_Forum
Honored Contributor
the buidroot project is udpated 200601161000.
please check again. - Altera_Forum
Honored Contributor
thanks to hippo
the problem was changed: Free pages: 0kB (0kB HighMem) Active:1023 inactive:193 dirty:0 writeback:0 unstable:0 free:0 slab:151 mapped:0 DMA free:0kB min:0kB low:0kB high:0kB active:4092kB inactive:772kB present:8192o lowmem_reserve[]: 0 0 0 Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pao lowmem_reserve[]: 0 0 0 HighMem free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB po lowmem_reserve[]: 0 0 0 DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kBB Normal: empty HighMem: empty oom-killer: gfp_mask=0xd2 DMA per-cpu: cpu 0 hot: low 2, high 6, batch 1 cpu 0 cold: low 0, high 2, batch 1 Normal per-cpu: empty HighMem per-cpu: empty --- Quote Start --- originally posted by hippo@Jan 15 2006, 12:08 AM the bug in elf2flt is fixed in svn and the snapshot on 20060115.so no need to patch elf2flt now.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12201)
--- quote end ---
--- Quote End ---
- Altera_Forum
Honored Contributor
where can I get ver 200601161000?
on http://buildroot.uclibc.org/downloads/snapshots/,the (http://buildroot.uclibc.org/downloads/snapshots/,the) latese ver is http://buildroot.uclibc.org/downloads/snap...0060115.tar.bz2 (http://buildroot.uclibc.org/downloads/snapshots/buildroot-20060115.tar.bz2) --- Quote Start --- originally posted by hippo@Jan 15 2006, 09:03 PM the buidroot project is udpated 200601161000.please check again.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12204)
--- quote end ---
--- Quote End ---
- Altera_Forum
Honored Contributor
sorry, I mean I have updated the "post your own ip" page.
Please follow it and try again. - Altera_Forum
Honored Contributor
hi,it seems that "svn co svn://uclibc.org/trunk/uClibc" doesn't work for me,so I will try get snapshots from http tomorrow.
--- Quote Start --- originally posted by hippo@Jan 15 2006, 10:10 PM sorry, i mean i have updated the "post your own ip" page.please follow it and try again.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12207)
--- quote end ---
--- Quote End ---
- Altera_Forum
Honored Contributor
The snapshot dir are updated to 20060116 now.
I have updated the configs.zip, downloaded and tested with the buildroot-20060116, uClibc-20060116 and busybox-1.1.0. Please check again.