[U-Boot] Kernel panic - not syncing: No init found. Try passing init= option to kernel.

sandeep suresh sandeep.suresh at yahoo.co.in
Fri Aug 27 10:37:29 CEST 2010


Hello All,
Even though there are several posts on the net on the same, I could not find a 
concrete solution for the same. I am using the prebuilt binaries from the 
www.AT91.com for AT91SAM9G20 linux kernel and jffs2 file system. I strongly feel 
if there is an issue with the bootargs and hence the U-boot environment is also 
available below. Please help me to solve this problem.



U-Boot> printenv
bootcmd=nand read 0x22000000 0xA0000 0x200000; bootm
bootdelay=3
baudrate=115200
ethact=macb0
ethaddr=3e:36:65:ba:6f:be
ipaddr=199.63.247.50
serverip=199.63.247.100
stdin=serial
stdout=serial
stderr=serial
bootargs=mem=64M console=ttyS0,115200 root=mtd2 rw rootfstype=jffs2

Environment size: 274/131067 bytes
U-Boot> tftp 0x21400000 genericfs.arm_nofpu.jffs2
macb0: link up, 100Mbps full-duplex (lpa: 0xc5e1)
Using macb0 device
TFTP from server 199.63.247.100; our IP address is 199.63.247.50
Filename 'genericfs.arm_nofpu.jffs2'.
Load address: 0x21400000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
########################################
done
Bytes transferred = 12985524 (c624b4 hex)
U-Boot> nand write.jffs2 0x21400000 0x2A0000 0xc624b4

NAND write: device 0 offset 0x2a0000, size 0xc624b4

Writing data at 0xf02000 -- 100% complete.
12985524 bytes written: OK
U-Boot> tftp 0x21400000 linux-2.6.27.bin
macb0: link up, 100Mbps full-duplex (lpa: 0xc5e1)
Using macb0 device
TFTP from server 199.63.247.100; our IP address is 199.63.247.50
Filename 'linux-2.6.27.bin'.
Load address: 0x21400000
Loading: #################################################################
######################################
done
Bytes transferred = 1498980 (16df64 hex)
U-Boot> bootm
## Booting kernel from Legacy Image at 21400000 ...
Image Name: linux-2.6
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1498916 Bytes = 1.4 MB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing 
Linux.................................................................................................
 done, booting the kernel.
Linux version 2.6.27 (nferre at bendor) (gcc version 4.2.0 20070413 (prerelease) 
(CodeSourcery Sourcery G++ Lite 2007q1-10)) #1 Thu Sep 24 17:26:24 CEST 2009
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: Atmel AT91SAM9G20-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 396 MHz, master 132 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
CPU0: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: mem=64M console=ttyS0,115200 root=mtd2 rw rootfstype=jffs2
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61760KB available (2756K code, 225K data, 120K init)
Calibrating delay loop... 197.83 BogoMIPS (lpj=989184)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 288 bytes
NET: Registered protocol family 16
AT91: Power Management
AT91: Starting after general reset
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
msgmni has been set to 120
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
ssc ssc.0: Atmel SSC device at 0xc4870000 (irq 14)
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (3e:36:65:ba:6f:be)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
Driver 'sd' needs updating - please use bus_type methods
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 
8-bit)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Bad eraseblock 740 at 0x05c80000
Creating 3 MTD partitions on "atmel_nand":
0x00000000-0x00400000 : "Bootstrap"
0x00400000-0x04000000 : "Partition 1"
0x04000000-0x10000000 : "Partition 2"
usbmon: debugfs is not available
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
input: gpio-keys as /class/input/input0
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
i2c /dev entries driver
i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
Registered led device: ds5
Registered led device: ds1
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.17.
ASoC version 0.13.2
WM8731 Audio Codec 0.13<6>asoc: WM8731 <-> atmel-ssc0 mapping ok
ALSA device list:
#0: WM8731 (WM8731)
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 120K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
Regards
Sandeep Suresh




________________________________
From: "Xu, Hong" <Hong.Xu at atmel.com>
To: sandeep.suresh at yahoo.co.in
Cc: u-boot at lists.denx.de
Sent: Tue, 24 August, 2010 6:23:46 PM
Subject: Re: Non-experimental U-Boot compilation


Hi,

> Dear all,
>      I am using the AT91SAM9G20EK kit and want to port Linux on this.

Actually Atmel has already done this, see http://www.linux4sam.org

> the AT91SAM9260ek configuration as it seems the closest. The problem is after
> building the U-boot with the sources for this board, generating the .bin,
> loading and a power on reset (POR), there isn't a command prompt exposed
> (u-boot>). After POR, 1 1 2 1 1 2 continuosly prints on the hyperterminal. I
> read from AT91.com that this is the expected behavior for the demo version.

Yes, this is the expected behaviour for the demo package. When you see this, it 
means you do not boot from the media where you burn your U-Boot into.

> What  is rge procedure to get the prompt ? Are there any separate 
configuration
> settings?

AT91SAM9G20EK are well supported by both mainline code and Atmel's current 
binary. ( u-boot 1.3.4, a little bit old)
For detailed steps to run U-Boot/Linux on your board, still, goto 
http://www.linux4sam.org

BR,
Eric 



More information about the U-Boot mailing list