Hi,
Greetings!

I am trying to put openwrt on Atheros PB92 board 
and I get "Kernel panic - not syncing: No init found.  Try passing init=
 option to kernel."

I took the kernel and jffs2 files (openwrt-ar71xx-generic-pb92-rootfs-jffs2.bin 
openwrt-ar71xx-generic-pb92-kernel.bin ) 
from http://downloads.openwrt.org/snapshots/trunk/ar71xx/ and upgraded to my 
board using tftp. 

I used following commands to upgrade the board:

tftp 0x80060000 openwrt-ar71xx-generic-pb92-rootfs-jffs2.bin
erase 0x9f010000 +0x2f0000
cp.b $fileaddr 0x9f010000 $filesize

tftp 0x80060000 openwrt-ar71xx-generic-pb92-kernel.bin
erase 0x9f300000 +0xe0000
cp.b $fileaddr 0x9f300000 $filesize

I noticed that there is not init= passed to the kernel. The entire message 
looks like this:
"Kernel command line: rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 
board=PB92"

Then I compiled the source code from trunk with init=/etc/preinit option in the 
default kernel parameters.
With this the kernel command line looks like this:
"Kernel command line: rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 
init=/etc/preinit board=PB92"
And the error message looks like this:
"Failed to execute /etc/preinit.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel."

Am I missing something or am I doing something wrong? 
Any help would be appreciated.

Thanks. 
-Rafiq.

--------------------------------------------------------------------------------------------------------------------
Here is the detailed boot messages:
## Booting image at 9f300000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.32.29
   Created:      2011-02-21   1:07:18 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    864831 Bytes = 844.6 kB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x9f300040 ...OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 33554432

Starting kernel ...

Linux version 2.6.32.29 (buildsl...@dd.das-iro.de) (gcc version 4.3.3 (GCC) ) 
#1 Mon Feb 21 02:06:07 CET 2011
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR7242 rev 1, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel
 command line: rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 
board=PB92  <-------Note that no init= passed to kernel
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29376k/32768k available (2060k kernel code, 3392k reserved, 392k data, 
152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Atheros PB92
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:00.0: PME# disabled
PCI: mapping irq 48 to pin1@0000:00:00.0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 
2001-2006 Red Hat, Inc.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: s25sl064a (8192 Kbytes)
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000050000 : "u-boot-env"
0x000000050000-0x000000300000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "spi0.0"
0x000000300000-0x0000003e0000 : "uImage"
0x0000003e0000-0x000000400000 : "ART"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth1: Atheros AG71xx at 0xba000000, irq 5
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <gree...@candelatech.com>
All bugs added by David S. Miller <da...@redhat.com>
VFS: Mounted root (jffs2 filesystem) readonly on device 31:2.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.


      
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to