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
thanks to hippo again!
linux is running well on my custum cyclone ep1c6 board now. uClinux/Nios II 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: 6936k/8192k RAM, 0k/0k ROM (646k kernel code, 492k data) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) unpack_to_rootfs 8bfc28+52579 check 0 populate_rootfs: unpack_to_rootfs return <NULL> <6>Linux NoNET1.0 for Linux 2.6 NIOS serial driver version 0.0 ttyS0 (irq = 0) is a builtin NIOS UART io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered Freeing unused kernel memory: 368k freed (0x8b6000 - 0x911000) BusyBox v1.1.0 (2006.01.16-08:41+0000) Built-in shell (msh) Enter 'help' for a list of built-in commands. # uname -a uClinux (none) 2.6.11-uc0# 37 Mon Jan 16 16:57:42 CST 2006 nios2nommu unknown# top top: not found# free total used free shared buffers Mem: 7328 5124 2204 0 0# ls -al drwxr-xr-x 17 root root 0 Nov 29 17:00 . drwxr-xr-x 17 root root 0 Nov 29 17:00 .. drwxr-xr-x 2 default users 0 Nov 29 17:00 bin drwxr-xr-x 6 default users 0 Nov 29 17:00 dev drwxr-xr-x 4 default users 0 Nov 29 17:00 etc drwxr-xr-x 3 default users 0 Nov 29 17:00 home lrwxrwxrwx 1 default users 10 Nov 29 17:00 init -> /sbin/init drwxr-xr-x 2 default users 0 Nov 29 17:00 lib lrwxrwxrwx 1 default users 11 Nov 29 17:00 linuxrc -> bin/busybox drwx------ 2 default users 0 Nov 29 17:00 lost+found drwxr-xr-x 2 default users 0 Nov 29 17:00 mnt drwxr-xr-x 2 default users 0 Nov 29 17:00 opt dr-xr-xr-x 22 root root 0 Nov 29 17:00 proc drwxr-xr-x 2 default users 0 Nov 29 17:00 root drwxr-xr-x 2 default users 0 Nov 29 17:00 sbin drwxr-xr-x 9 root root 0 Nov 29 17:00 sys drwxrwxrwt 2 default users 0 Nov 29 17:00 tmp drwxr-xr-x 5 default users 0 Nov 29 17:00 usr drwxr-xr-x 3 default users 0 Nov 29 17:00 var# vi as above ,linux cost memory more than other small rtos,for run real apps,8MB SDRAM is not enough,oh,I need a bigger one. --- Quote Start --- originally posted by hippo@Jan 16 2006, 03:57 AM 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.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12214)
--- quote end ---
--- Quote End ---
- Altera_Forum
Honored Contributor
Great!! I am happy with your success.
You can use "free" to find out the memory usage. You can try the following to reduce the memory usage. 1. The default busybox use more options than you will need. You can reduce the commands or features supported by busybox, only keep those you will use. cd ~/buildroot/build_nios2/busybox make menuconfig make cd ~/buildroot make 2. reduce the kernel, reduce unused driver and file system. cd ~/linux-2.6.x make ...... menuconfig make 3. remove unused files and nodes in rootfs/etc and rootfs/dev 4. you can delete files at run time when they are no longer in use. After carefully checking, the memory usage can be reduced by almost 50%. - Altera_Forum
Honored Contributor
I am trying to get an update, via subversion.....
<div class='quotetop'>QUOTE </div> --- Quote Start --- hootsmon@ce00205:~/buildroot$ svn update svn: Can't connect to host 'uclibc.org': No route to host[/b] --- Quote End --- Any suggestions what is going wrong? Perhaps a firewall problem.... I can ping uclibc.org OK. - Altera_Forum
Honored Contributor
Hi hootsmon,
The latest/svn uClibc/Buildroot has problem with Nios2. The buildroot has problem in elf2flt.ld and gcc patches. I am busy with other projects, and did not have time to get them fixed. 20060207 or 20070208 are the last known good snapshot. Busybox should be OK. If you're from China, they seem to block svn access.