Dear All,
I am trying to compile attitude package for AP121 board but facing the problem due to my Flash I think. I have a board which is using a ar7240-nor0 flash as I know. I have compiled the code and i am able to boot but comes across this problem of Kernel panic. Below I have attached the log for console. Hope anyone can help me through this
U-Boot 1.1.4 (Apr 25 2012 - 14:40:19)
AP121 (ar9331) U-boot
DRAM: 32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 138k for U-Boot at: 81fdc000
Reserving 192k for malloc() at: 81fac000
Reserving 44 Bytes for Board Info at: 81fabfd4
Reserving 36 Bytes for Global Data at: 81fabfb0
Reserving 128k for boot params() at: 81f8bfb0
Stack Pointer at: 81f8bf98
Now running in RAM - U-Boot at: 81fdc000
Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x17
flash size 8388608, sector count = 128
Flash: 8 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ag7240_enet_initialize...
No valid address in Flash. Using fixed address
Fetching MAC Address from 0x81ff3d58
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:1a:10:10
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Image Name: MIPS OpenWrt Linux-3.3.8
Created: 2013-04-02 19:38:39 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 911424 Bytes = 890.1 kB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum at 0x9f310040 ...OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 33554432
Starting kernel ...
[ 0.000000] Linux version 3.3.8 (nikhil@root) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Wed Apr 3 01:08:30 IST 2013
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR9330 rev 1
[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00002000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00002000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: console=ttyATH0,115200=root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:128k(u-boot),64k(u-boot-en) mem=32M rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 29148k/32768k available (2086k kernel code, 3620k reserved, 403k data, 208k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[ 0.080000] pid_max: default: 32768 minimum: 301
[ 0.080000] Mount-cache hash table entries: 512
[ 0.090000] NET: Registered protocol family 16
[ 0.090000] gpiochip_add: registered GPIOs 0 to 29 on device: ath79
[ 0.100000] MIPS: machine is Generic AR71XX/AR724X/AR913X based board
[ 0.110000] bio: create slab <bio-0> at 0
[ 0.120000] Switching to clocksource MIPS
[ 0.120000] NET: Registered protocol family 2
[ 0.130000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.130000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.130000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.140000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.150000] TCP reno registered
[ 0.150000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.160000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.160000] NET: Registered protocol family 1
[ 0.190000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.190000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.200000] msgmni has been set to 56
[ 0.200000] io scheduler noop registered
[ 0.210000] io scheduler deadline registered (default)
[ 0.210000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.220000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
[ 0.220000] console [ttyATH0] enabled, bootconsole disabled
[ 0.220000] console [ttyATH0] enabled, bootconsole disabled
[ 0.240000] TCP cubic registered
[ 0.250000] NET: Registered protocol family 17
[ 0.250000] 8021q: 802.1Q VLAN Support v1.8
[ 0.260000] VFS: Cannot open root device "(null)" or unknown-block(0,0)
[ 0.260000] Please append a correct "root=" boot option; here are the available partitions:
[ 0.270000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Thanks and Regards
Nikhil