Discussion:
[Gumstix-users] kernel panic - no init found
Joshua Warren Priestley
2006-06-26 16:23:47 UTC
Permalink
I searched the archives for this problem, but I couldn't seem to find any solutions. I recently reflashed the linux system on my gumstix, and when I boot the kernel, I hit a "Kernel panic - not syncing: No init found. Try passing init= option to kernel" error. Currently my bootargs environment variable is "console=ttyS0,115200n8 root=1f01 rootfstype=jffs2" however I've tried appending " init=/sbin/init" and " init=/bin/sh", which were two init parameters I was able to find on the u-boot page. Both of these result in a "Failed to execute <filename>. Attempting defaults..." error, followed by the same kernel panic message. The new linux image is version 2.6.15.

Does anyone know why I'm getting this error?

- Josh.
Dave Hylands
2006-06-26 17:32:25 UTC
Permalink
Hi Josh,
Post by Joshua Warren Priestley
I searched the archives for this problem, but I couldn't seem to find any solutions. I recently reflashed the linux system on my gumstix, and when I boot the kernel, I hit a "Kernel panic - not syncing: No init found. Try passing init= option to kernel" error. Currently my bootargs environment variable is "console=ttyS0,115200n8 root=1f01 rootfstype=jffs2" however I've tried appending " init=/sbin/init" and " init=/bin/sh", which were two init parameters I was able to find on the u-boot page. Both of these result in a "Failed to execute <filename>. Attempting defaults..." error, followed by the same kernel panic message. The new linux image is version 2.6.15.
Does anyone know why I'm getting this error?
Sounds like something is wonky with the file system. Do you have an XM
card? Did you erase all of memory before downloading (and not just the
firt 4 Mb)?

In your buildroot, what do you see in the build_arm_nofpu/root
directory? (check in bin to make sure that there is an sh and that
busybox also exists. sh should be soft-linked to busybox.
--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/
Joshua Warren Priestley
2006-06-26 18:50:47 UTC
Permalink
I believe I did erase all the memory before flashing. Here is the list of commands I used to do the reflashing:

mmcinit
protect off all
protect on 1:0-1
fatload mmc 1 a2000000 rootfs_arm_nofpu.jffs2
erase all
cp.b a2000000 40000 ${filesize}



I checked in the build_arm_nofpu/root/bin directory, and there are only two executables: busybox and lsmod. Do you have any idea why this is? Could I simply use subversion to redownload the latest buildroot and try again?

Come to think of it, when making the kernel image (typing make from gumstix buildroot after cross-compiling from linux-2.6.15gum) the last message is "hostname: Host name lookup failure" when defining the BUILD_HOSTNAME variable. Do you suppose that this jffs2 image has not been created successfully?


- Josh

-----Original Message-----
From: "Dave Hylands" <***@gmail.com>
To: ***@uky.edu, "General mailing list for gumstix users." <gumstix-***@lists.sourceforge.net>
Date: Mon, 26 Jun 2006 10:32:25 -0700
Subject: Re: [Gumstix-users] kernel panic - no init found

Hi Josh,
Post by Joshua Warren Priestley
I searched the archives for this problem, but I couldn't seem to find any solutions. I recently reflashed the linux system on my gumstix, and when I boot the kernel, I hit a "Kernel panic - not syncing: No init found. Try passing init= option to kernel" error. Currently my bootargs environment variable is "console=ttyS0,115200n8 root=1f01 rootfstype=jffs2" however I've tried appending " init=/sbin/init" and " init=/bin/sh", which were two init parameters I was able to find on the u-boot page. Both of these result in a "Failed to execute <filename>. Attempting defaults..." error, followed by the same kernel panic message. The new linux image is version 2.6.15.
Does anyone know why I'm getting this error?
Sounds like something is wonky with the file system. Do you have an XM
card? Did you erase all of memory before downloading (and not just the
firt 4 Mb)?

In your buildroot, what do you see in the build_arm_nofpu/root
directory? (check in bin to make sure that there is an sh and that
busybox also exists. sh should be soft-linked to busybox.
--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Dave Hylands
2006-06-26 19:02:17 UTC
Permalink
Hi Josh,
Post by Joshua Warren Priestley
I checked in the build_arm_nofpu/root/bin directory, and there are only two executables: busybox and lsmod. Do you have any idea why this is? Could I simply use subversion to redownload the latest buildroot and try again?
That's the problem then. Somewhere in the buildroot it creates all of
the symlinks to busybox and it looks like your build failed.

You could re-download. I know I'm using 1008 and it seems to work fine.

You could also just remove build_arm_no_fpu and toolchain_arm_nofpu
and try the make defconfig & make again.
Post by Joshua Warren Priestley
Come to think of it, when making the kernel image (typing make from gumstix buildroot after cross-compiling from linux-2.6.15gum) the last message is "hostname: Host name lookup failure" when defining the BUILD_HOSTNAME variable. Do you suppose that this jffs2 image has not been created successfully?
Something is obivously wrong since your root/bin directory should have
about 50 files in it.
--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/
Continue reading on narkive:
Search results for '[Gumstix-users] kernel panic - no init found' (Questions and Answers)
4
replies
How can I understand the numbers below?
started 2006-03-09 04:18:16 UTC
computers & internet
Loading...