Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 12-12-2008, 01:02 AM   #1
LQ Newbie
Registered: Dec 2008
Posts: 6

Rep: Reputation: 0
Unhappy Kernel panic - not syncing: Attempted to kill init! (Embedded ARM Board)

I'm punting...I've been dealing with the same kernel panic at work for about a week and it's getting to me. I'm trying to get a small system built from scratch on an ARM development board. The kernel fails while trying to run init with the following error:

eth0: link up
IP-Config: Complete:
     device=eth0, addr=<BOARD IP>, mask=, gw=<GATEWAY>,
     host=<HOSTNAME>, domain=, nis-domain=(none),
     bootserver=, rootserver=<SERVER IP>, rootpath=
Looking up port of RPC 100003/2 on <SERVER IP>
Looking up port of RPC 100005/1 on <SERVER IP>
VFS: Mounted root (nfs filesystem).
Freeing init memory: 120K
Kernel panic - not syncing: Attempted to kill init!
Here's my target config:
Now the host config:
  • Redhat Enterprise Linux v5.2
  • Code Sourcery G++ Lite 2008q3-41 (gnu gcc 4.3.2, glibc 2.8)

Also, here's the param's uBoot is passing to the kernel:
nfsroot=<PROJECT PATH>/rootfs_beta,nolock,wsize=1024,rsize=1024
I'm using the Code Sourcery toolchain on the host to compile the kernel and busybox, along with a few other tools for the target. Everything builds just fine and I'm deploying to a directory called "rootfs_beta" under my project folder on the host. That dir is then mounted as the root filesystem by the target board. The bootloader passes params to the kernel and the kernel seems to boot fine until the panic.

What's really got me stumped is that there aren't any other errors. The panic doesn't give you much information by itself, but I got a lot of good info from this post. Since I never see the busybox load message and last successful message from the kernel is "Freeing init memory..", I'm not sure what's generating the panic.

If I delete "init" from /sbin in the filesystem, I get the exact same kernel panic, which is odd because I would expect a warning like "init cannot be found". If, however, I add "init=/sbin/init" to the kernel params, I do get a warning similar to "specified init could not be executed, using default". This is also odd because I think /sbin/init IS the default. If I replace init after that, the warning dissapears, but I get the panic still.

I've also tried replacing the busybox init with sysvinit, same I'm inclined to blame the kernel or something I've screwed up in /dev...or something else I'm missing. The only two entries I have in /dev are "console" and "null". I get a warning about "console" being missing if I remove them.

I could also be network related. The filesystem seems to mount just fine, and I don't see any "NFS server not responding" errors...but init is the first binary run over the network, so it could still be a possibility.

Please help.
Old 12-12-2008, 01:22 AM   #2
LQ Newbie
Registered: Dec 2008
Posts: 6

Original Poster
Rep: Reputation: 0

Apologies, I didn't see the embedded forum. Please respond here:


arm, embedded, init, kernel, kill, panic

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel panic - not syncing: attempted to kill init! asif2k Fedora 3 02-14-2007 08:44 AM
Kernel panic -not syncing:Attempted to kill init! vengadesan Linux - Server 1 10-28-2006 11:17 AM
Kernel panic-not syncing:Attempted to kill init skie_knite007 Linux - General 3 10-02-2006 10:46 PM
kernel panic - not syncing attempted to kill init KennyS Fedora 1 02-22-2006 07:51 PM
kernel panic - no syncing: Attempted to kill init majara Linux - General 3 02-06-2006 01:01 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration