OpenWrt Forum Archive

Topic: Problem Working with Ap121 board...

The content of this topic has been archived between 22 Apr 2018 and 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

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

Also Forgot to mention.....
My flash is splitted in the following way in my U-BOOT

I have 128kb of Uboot, followed by 64K uboot-env, 2.8M of rootfs, 896k kernel, 64k nvram,64k ART

Regards

Nikhil

(Last edited by nikhillife11 on 12 Apr 2013, 19:14)

If you don't change the openwrt kernel code,the openwrt kernel code will not use the u-boot passed "command line mtd info".The first 128k is u-boot,the flash last 64k is art.and also forget the nvram which only in atheros design and the history openwrt release...
You need provide more info about you project,the steps you do make the openwrt work on your ap121 board.You only want to use the openwrt kernel and reuse other design from athero SDK design?

Hello Mips,

Thanks for you reply. Actually I am using atheros u-boot and I want to port openwrt on it. Basically I have got a board from one of my friends... I am not understanding where to start. I had captured a log before which gave me the information about partitions. But when I tried to port kernel and rootfs code of openwrt, it gave me the above error. I can provide you any details you want... Let me know what you want and I can provide you the same.

Also i have to use existing u-boot as i have to return the board to my friend whenever he asks for. So how to go forward from here.

Regards
Nikhil

(Last edited by nikhillife11 on 14 Apr 2013, 18:15)

First you use wrong device name for your flash (should be spi0.0 I think), let me know if you need help with porting, I recently ported openWRT to AP94 (AR7161 CPU).

@Nikhil:
The default atheros SDK bootloader can't load and boot the openwrt code,you need replace it,if this step have do,the next step is more easy.
You don't need change more code to let openwrt work on Atheros AP121,because there is a AP121 target in the current code.

@mips: current code for AP121 has non matching flash layout so it's not good for nikhil this is current makefile:

ap121_mtdlayout_2M=mtdparts=spi0.0:64k(u-boot)ro,1216k(rootfs),704k(kernel),64k(art)ro,1920k@0x10000(firmware)
ap121_mtdlayout_4M=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,2752k(rootfs),896k(kernel),64k(nvram),64k(art)ro,3648k@0x50000(firmware)

@Nikhil:
I see more problems there, flash is not detected at all, no entry in dmesg, should probably me something like:

m25p80 spi0.0: found mx25l6405d, expected m25p80

Also as I said before, your kernelcmd is wrong, spi flash in openwrt is called spi0.0 (as per lines from openWRT makefile)

(Last edited by jaceq on 16 Apr 2013, 18:06)

Hello Jaceq and Mips,

Actually I am stuck with this atheros u-boot and cant change it as I have to return this board after a month or so. Also as I see in the printenv of the u-boot, they have set flash to ar7240-nor. I have more console prints for you. Can anyone help me to work out with this format. Also can any one arrange a proper openwrt u-boot for this board. As i plan to remove the present u-boot code through console and tftp and when I have to return the board I can load back the u-boot. But will this work. Will the flash get detected or is it that I have to change the flash itself to workout openwrt on it..

The present log is as below

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
Hit any key to stop autoboot:  4     0
Telenet>
Telenet> printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:128k(u-boot),64k(u-boot-env),2944k(rootfs),896k(uImage),64k(NVRAM),64k(config),2944k(brootfs),896k(buImage),64k(chksm),64k(bchksm),64k(ART)
bootcmd=bootm 0x9f310000
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.0.99
serverip=192.168.0.10
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 424/65532 bytes
Telenet> b   
bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:128k(u-boot),64k(u-boot-env),2944k(rootfs),896k(uImage),64k(NVRAM),64k(config),2944k(brootfs),896k(buImage),64k(chksm),64k(bchksm),64k(ART)
bootcmd=bootm 0x9f310000
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.0.99
serverip=192.168.0.10
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 424/65532 bytes
Telenet>
bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:128k(u-boot),64k(u-boot-env),2944k(rootfs),896k(uImage),64k(NVRAM),64k(config)
bootcmd=bootm 0x9f310000
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.0.99
serverip=192.168.0.10
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 424/65532 bytes
Telenet> setenv bootargs=console=ttyATH0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:128k(u-boot),64k(u-boot-env),2944k(rootfs),896k(uImage),64k(NVRAM),64k(config)
Telenet> boot
## Booting image at 9f310000 ...
   Image Name:   MIPS OpenWrt Linux-3.3.8
   Created:      2013-04-12  16:28:08 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    911485 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 (root@root) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #4 Fri Apr 12 21:57:57 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-env),2944k(rootfs),896k(uImage),64k(NVRAM),64k(config),2944k(brootfs),896k(buImage),64k(chksm),64k(bchksm),64k(ART) 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)


Hope you all can help me sort out this issue..

Regards
Nikhil

I see you already flashed kernel smile
From my experience it's easier to test kernels by running them from memory directly.
You used generic kernel which is wrong, I had exactly same problem with flash.
I am now looking at generic AP121 and I see that build are using initramfs...
Anyway, since you have a board, check what flash chip you have and then check if it's supported at all or not

(Last edited by jaceq on 16 Apr 2013, 19:59)

Sorry Jaceq, I myself have this particular board for a month or so and only if I am able to port openwrt in this, i will buy it.  Also Yes i had compiled for a generic flash. I think that the exact problem with the code not booting you. But how can I compile for the Flash I am using(flash used is MX25L6406EM2I. ). I can provide you the details if needed...

Thanks and Regards
Nikhil

Easiest way to go is:
Compile for AP96 target, take just kernel file, and try to run it from memory...
It will have totally wrong flash layout and will be gzipped -> meaning that it will not fit into your partition (hence run it from memory) but check if flash is supported at least with it (look for line I mentioned few posts above). If you get that to work it's a good sign but a long way to go still.

But how to run from Kernel from memory  buddy.. Can you help me with the steps..

Hey Jaceq,

I loaded a kernel file "openwrt-ar71xx-generic-ap121-4M-kernel.bin" that i directly downloaded from http://www.lispmob.org/downloads/openwrt/ar71xx  and now I am able to see my flash.. Just check the log below

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
Hit any key to stop autoboot:  4  3  2  1  0
## Booting image at 9f310000 ...
   Image Name:   MIPS OpenWrt Linux-3.3.8
   Created:      2013-03-06  11:08:48 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    912961 Bytes = 891.6 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 (alopez@pcmatali) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Wed Mar 6 12:05:35 CET 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] 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:  board=AP121 console=ttyATH0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,2752k(rootfs),896k(kernel),64k(nvram),64k(art)ro,3648k@0x50000(firmware) 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: 29140k/32768k available (2091k kernel code, 3628k reserved, 406k 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 Atheros AP121 reference board
[    0.550000] bio: create slab <bio-0> at 0
[    0.560000] Switching to clocksource MIPS
[    0.560000] NET: Registered protocol family 2
[    0.570000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.570000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.570000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.580000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.590000] TCP reno registered
[    0.590000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.600000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.600000] NET: Registered protocol family 1
[    0.630000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.630000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.640000] msgmni has been set to 56
[    0.640000] io scheduler noop registered
[    0.650000] io scheduler deadline registered (default)
[    0.650000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.660000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
[    0.660000] console [ttyATH0] enabled, bootconsole disabled
[    0.660000] console [ttyATH0] enabled, bootconsole disabled
[    0.680000] m25p80 spi0.0: found mx25l6405d, expected m25p80
[    0.680000] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    0.690000] 7 cmdlinepart partitions found on MTD device spi0.0
[    0.690000] Creating 7 MTD partitions on "spi0.0":
[    0.700000] 0x000000000000-0x000000040000 : "u-boot"
[    0.710000] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.710000] 0x000000050000-0x000000300000 : "rootfs"
[    0.720000] mtd: partition "rootfs" set to be root filesystem
[    0.720000] split_squashfs: no squashfs found in "spi0.0"
[    0.730000] 0x000000300000-0x0000003e0000 : "kernel"
[    0.730000] 0x0000003e0000-0x0000003f0000 : "nvram"
[    0.740000] 0x0000003f0000-0x000000400000 : "art"
[    0.740000] 0x000000050000-0x0000003e0000 : "firmware"
[    0.770000] ag71xx_mdio: probed
[    0.770000] eth0: Atheros AG71xx at 0xba000000, irq 5
[    1.320000] eth0: Found an AR7240/AR9330 built-in switch
[    2.360000] eth1: Atheros AG71xx at 0xb9000000, irq 4
[    2.910000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    2.920000] TCP cubic registered
[    2.920000] NET: Registered protocol family 17
[    2.930000] 8021q: 802.1Q VLAN Support v1.8
[    2.930000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x4f1d instead
[    2.940000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x0019 instead
[    2.950000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x2761 instead
[    2.960000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x31e2 instead
[    2.970000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x64c6 instead
[    2.980000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0xe2ed instead
[    2.980000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x54e9 instead
[    2.990000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x7658 instead
[    3.000000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x0d81 instead
[    3.010000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0xcfce instead
[    3.020000] Further such events for this erase block will not be printed
[    3.060000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010000: 0xca7c instead
[    3.070000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010004: 0x0d94 instead
[    3.080000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010008: 0x97d7 instead
[    3.080000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001000c: 0x8c60 instead
[    3.090000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010010: 0x4e0e instead
[    3.100000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010014: 0xf493 instead
[    3.110000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010018: 0x7f40 instead
[    3.120000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001001c: 0x3743 instead
[    3.130000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010020: 0x4a35 instead
[    3.140000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010024: 0x72bd instead
[    3.150000] Further such events for this erase block will not be printed
[    3.190000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0xe4d3 instead
[    3.190000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0x2bb7 instead
[    3.200000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0xf6bf instead
[    3.210000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c: 0xf50c instead
[    3.220000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010: 0x5802 instead
[    3.230000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014: 0xabe6 instead
[    3.240000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018: 0xc93e instead
[    3.250000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c: 0x6c78 instead
[    3.260000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020: 0x8f8f instead
[    3.260000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024: 0x5bf2 instead
[    3.270000] Further such events for this erase block will not be printed
[    3.310000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030000: 0xe300 instead
[    3.320000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030004: 0xcfbe instead
[    3.330000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030008: 0xe5ba instead
[    3.340000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003000c: 0xa71e instead
[    3.350000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030010: 0xcb75 instead
[    3.360000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030014: 0xe8f4 instead
[    3.370000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030018: 0x44d5 instead
[    3.370000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003001c: 0x3230 instead
[    3.380000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030020: 0xcd73 instead
[    3.390000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030024: 0xc087 instead
[    3.400000] Further such events for this erase block will not be printed
[    3.440000] Old JFFS2 bitmask found at 0x0003f3cc
[    3.440000] You cannot use older JFFS2 filesystems with newer kernels
[    3.450000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0xa46e instead
[    3.460000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0x71c9 instead
[    3.470000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0x2077 instead
[    3.480000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004000c: 0x2797 instead
[    3.490000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040010: 0x4907 instead
[    3.490000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040014: 0xb003 instead
[    3.500000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040018: 0x71bc instead
[    3.510000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004001c: 0x938e instead
[    3.520000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040020: 0x1801 instead
[    3.530000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040024: 0xa03a instead
[    3.540000] Further such events for this erase block will not be printed
[    3.580000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050000: 0x1012 instead
[    3.590000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050004: 0xf57b instead
[    3.590000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050008: 0xea89 instead
[    3.600000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005000c: 0x96f1 instead
[    3.610000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050010: 0xdc5d instead
[    3.620000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050014: 0x9afb instead
[    3.630000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050018: 0x4e10 instead
[    3.640000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005001c: 0x3e7f instead
[    3.650000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050020: 0x156a instead
[    3.660000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050024: 0xd0d6 instead
[    3.670000] Further such events for this erase block will not be printed
[    3.710000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060000: 0x733a instead
[    3.710000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060004: 0x6758 instead
[    3.720000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060008: 0x1c1a instead
[    3.730000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006000c: 0xcf9e instead
[    3.740000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060010: 0x5fe5 instead
[    3.750000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060014: 0x7568 instead
[    3.760000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060018: 0xd270 instead
[    3.770000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006001c: 0x0b86 instead
[    3.780000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060020: 0x3807 instead
[    3.780000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060024: 0xaba3 instead
[    3.790000] Further such events for this erase block will not be printed
[    3.830000] Old JFFS2 bitmask found at 0x0006fea8
[    3.840000] You cannot use older JFFS2 filesystems with newer kernels
[    3.840000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070000: 0x077d instead
[    3.850000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070004: 0xbb3a instead
[    3.860000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070008: 0xdd69 instead
[    3.870000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007000c: 0x792b instead
[    3.880000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070010: 0x34f0 instead
[    3.890000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070014: 0x0628 instead
[    3.900000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070018: 0x286e instead
[    3.900000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007001c: 0xc11e instead
[    3.910000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070020: 0xa57d instead
[    3.920000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070024: 0xe4fb instead
[    3.930000] Further such events for this erase block will not be printed
[    3.970000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080000: 0xe96f instead
[    3.980000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080004: 0x6556 instead
[    3.990000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080008: 0x4c79 instead
[    4.000000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008000c: 0x44ff instead
[    4.000000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080010: 0xb43f instead
[    4.010000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080014: 0x9717 instead
[    4.020000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080018: 0x7072 instead
[    4.030000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008001c: 0x8d1f instead
[    4.040000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080020: 0x6811 instead
[    4.050000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080024: 0x5229 instead
[    4.060000] Further such events for this erase block will not be printed
[    4.100000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090000: 0x397a instead
[    4.110000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090004: 0xc0c7 instead
[    4.110000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090008: 0x9675 instead
[    4.120000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0009000c: 0x35da instead
[    4.130000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090010: 0x91fc instead
[    4.140000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090014: 0x1a61 instead
[    4.150000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090018: 0x49ef instead
[    4.160000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0009001c: 0x1036 instead
[    4.170000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090020: 0x3a2a instead
[    4.180000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090024: 0x6179 instead
[    4.190000] Further such events for this erase block will not be printed
[    4.220000] Old JFFS2 bitmask found at 0x0009d440
[    4.220000] You cannot use older JFFS2 filesystems with newer kernels
[    4.230000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0000: 0x0d1a instead
[    4.240000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0004: 0x0874 instead
[    4.250000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0008: 0x907d instead
[    4.260000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a000c: 0xb21e instead
[    4.270000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0010: 0x5b7c instead
[    4.280000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0014: 0x8b6e instead
[    4.290000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0018: 0x1cb9 instead
[    4.300000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a001c: 0xdb5c instead
[    4.300000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0020: 0xbd68 instead
[    4.310000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0024: 0xb336 instead
[    4.320000] Further such events for this erase block will not be printed
[    4.360000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0000: 0xd431 instead
[    4.370000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0004: 0x3b5b instead
[    4.380000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0008: 0x55bc instead
[    4.390000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b000c: 0x7093 instead
[    4.400000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0010: 0xed55 instead
[    4.400000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0014: 0x7ad1 instead
[    4.410000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0018: 0x7a48 instead
[    4.420000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b001c: 0xad11 instead
[    4.430000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0020: 0x0d59 instead
[    4.440000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0024: 0xb7ca instead
[    4.450000] Further such events for this erase block will not be printed
[    4.470000] Old JFFS2 bitmask found at 0x000b7e38
[    4.480000] You cannot use older JFFS2 filesystems with newer kernels
[    4.500000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0000: 0xbd50 instead
[    4.510000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0004: 0x410e instead
[    4.520000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0008: 0x4890 instead
[    4.520000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c000c: 0x6419 instead
[    4.530000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0010: 0xb43c instead
[    4.540000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0014: 0x1b52 instead
[    4.550000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0018: 0x7f17 instead
[    4.560000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c001c: 0x3e35 instead
[    4.570000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0020: 0x1998 instead
[    4.580000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0024: 0x97b3 instead
[    4.590000] Further such events for this erase block will not be printed
[    4.630000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0000: 0x5af0 instead
[    4.630000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0004: 0xe710 instead
[    4.640000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0008: 0x5323 instead
[    4.650000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d000c: 0xffd4 instead
[    4.660000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0010: 0x3c1b instead
[    4.670000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0014: 0x388a instead
[    4.680000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0018: 0xdbe0 instead
[    4.690000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d001c: 0x8986 instead
[    4.700000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0020: 0x4843 instead
[    4.700000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0024: 0x4267 instead
[    4.710000] Further such events for this erase block will not be printed
[    4.750000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0000: 0xd22b instead
[    4.760000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0004: 0x6f74 instead
[    4.770000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0008: 0x42f1 instead
[    4.780000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e000c: 0x04bd instead
[    4.790000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0010: 0xeb27 instead
[    4.800000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0014: 0xa1c3 instead
[    4.800000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0018: 0xfdfa instead
[    4.810000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e001c: 0xcce0 instead
[    4.820000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0020: 0x6903 instead
[    4.830000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0024: 0xa20c instead
[    4.840000] Further such events for this erase block will not be printed
[    4.880000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0000: 0x5c52 instead
[    4.890000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0004: 0x0988 instead
[    4.900000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0008: 0x3c95 instead
[    4.910000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f000c: 0x42f3 instead
[    4.910000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0010: 0xb882 instead
[    4.920000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0014: 0xa386 instead
[    4.930000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0018: 0x5c9e instead
[    4.940000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f001c: 0xa979 instead
[    4.950000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0020: 0xe334 instead
[    4.960000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0024: 0x887c instead
[    4.970000] Further such events for this erase block will not be printed
[    5.010000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100000: 0x93ea instead
[    5.010000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100004: 0x1cba instead
[    5.020000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100008: 0x5b76 instead
[    5.030000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0010000c: 0x2f06 instead
[    5.040000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100010: 0x9ed3 instead
[    5.050000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100014: 0x9ece instead
[    5.060000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100018: 0x1f48 instead
[    5.070000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0010001c: 0x250e instead
[    5.080000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100020: 0xa0ac instead
[    5.090000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100024: 0xaea0 instead
[    5.090000] Further such events for this erase block will not be printed
[    5.130000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110000: 0xf4a6 instead
[    5.140000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110004: 0x118d instead
[    5.150000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110008: 0xfeb2 instead
[    5.160000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0011000c: 0xd281 instead
[    5.170000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110010: 0x409d instead
[    5.180000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110014: 0x1ad4 instead
[    5.190000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110018: 0x4884 instead
[    5.200000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0011001c: 0x1b52 instead
[    5.200000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110020: 0x4d11 instead
[    5.210000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110024: 0x29df instead
[    5.220000] Further such events for this erase block will not be printed
[    5.260000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120000: 0xcf87 instead
[    5.270000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120004: 0x7cda instead
[    5.280000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120008: 0x72ae instead
[    5.290000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012000c: 0x25d4 instead
[    5.300000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120010: 0x25c6 instead
[    5.300000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120014: 0x2b60 instead
[    5.310000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120018: 0x29ad instead
[    5.320000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012001c: 0x58b9 instead
[    5.330000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120020: 0xc9d2 instead
[    5.340000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120024: 0x687f instead
[    5.350000] Further such events for this erase block will not be printed
[    5.390000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00130000: 0x9ef8 instead
[    5.400000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00130004: 0xc100 instead
[    5.410000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00130008: 0x76f8 instead
[    5.410000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0013000c: 0x843e instead
[    5.420000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00130010: 0xbcb4 instead
[    5.430000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00130014: 0x2f95 instead
[    5.440000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00130018: 0xb884 instead
[    5.450000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0013001c: 0x7a02 instead
[    5.460000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00130020: 0xf0ce instead
[    5.470000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00130024: 0xf7f6 instead
[    5.480000] Further such events for this erase block will not be printed
[    5.510000] Old JFFS2 bitmask found at 0x0013b6d0
[    5.510000] You cannot use older JFFS2 filesystems with newer kernels
[    5.530000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140000: 0x8324 instead
[    5.530000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140004: 0xb6ef instead
[    5.540000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140008: 0x1e26 instead
[    5.550000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0014000c: 0xd9bc instead
[    5.560000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140010: 0xf8d3 instead
[    5.570000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140014: 0x06f1 instead
[    5.580000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140018: 0xa915 instead
[    5.590000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0014001c: 0x55d0 instead
[    5.600000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140020: 0xdebb instead
[    5.600000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140024: 0x3d05 instead
[    5.610000] Further such events for this erase block will not be printed
[    5.630000] Old JFFS2 bitmask found at 0x00145630
[    5.630000] You cannot use older JFFS2 filesystems with newer kernels
[    5.660000] Empty flash at 0x0014bedc ends at 0x0014c000
[    5.670000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x150000
[    5.670000] Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[    5.680000] empty_blocks 22, bad_blocks 0, c->nr_blocks 43
[    5.690000] VFS: Cannot open root device "(null)" or unknown-block(31,2)
[    5.690000] Please append a correct "root=" boot option; here are the available partitions:
[    5.700000] 1f00             256 mtdblock0  (driver?)
[    5.710000] 1f01              64 mtdblock1  (driver?)
[    5.710000] 1f02            2752 mtdblock2  (driver?)
[    5.720000] 1f03             896 mtdblock3  (driver?)
[    5.720000] 1f04              64 mtdblock4  (driver?)
[    5.730000] 1f05              64 mtdblock5  (driver?)
[    5.730000] 1f06            3648 mtdblock6  (driver?)
[    5.740000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)

Now I have to do the same.... First need to get my code to work till this part.... How to compile my code till this part jac.. Can you help me to build the same kernel as above. I think its a generic flash one. So how is this working...

Pl. help

So, flash is detect and seem to work ok (errors above are due to the fact that partition layout doesn't match).
So now what you need to do is get more into details.
Easy way from here I suppose is to:
add new partition layout that is matching your board (in target/linux/ar71xx/image/Makefile) and once you have this done, I'd say modify this line:

$(eval $(call MultiProfile,AP121,AP121_2M AP121_4M))

so it will contain your newly defined layout, for example:

$(eval $(call MultiProfile,AP121,AP121_2M AP121_4M AP121_8M))

Than recompile.
Than load freshly built kernel (you might need to flash rootfs into place for this to work).
Let us know what happens

EDIT: Now I see you downloaded image from somwhere and this particular file does not build in stock openwrt, this means they have modified makefile for image. So... it's tricker, unless they provide their source... do they?

(Last edited by jaceq on 17 Apr 2013, 17:12)

ok jaceq..Will try and let you know... updates soon

Jaceq

I found this line bit confusing in that makefile

$(eval $(call SingleProfile,AthLzma,$(fs_64k),AP121_4M,ap121-4M,AP121,ttyATH0,115200,$$(ap121_mtdlayout_4M),917504,2818048,RKuImage))

what does different variable of this line say..Such as

,$(fs_64k) --> ?

917504,2818048,RKuImag --> ?

Can you help me with this before i make changes to the MAKEFILE

Nikhil

(Last edited by nikhillife11 on 17 Apr 2013, 19:40)

Hello Jaceq,

When I compiled my own source and loaded "openwrt-ar71xx-generic-ap121-4M-kernel.bin". I got the same output as the one above. So know I have the kernel. I have also made the changes in makefile as you said. But when I compile the same, I am not able to see any new kernel or rootfs file for 8M. Also If I need to change the partition table in the kernel where should I do it. I am not able to find it anywhere. Do you have any idea Jac

Regards
Nikhil

before you re-compile (with new settings) do:
make clean
make dirclean
and re-try

Also, post what changes did you add to your make file.

(Last edited by jaceq on 18 Apr 2013, 12:23)

Hello Jaceq,

I added following things in the makefile

$(eval $(call MultiProfile,AP121,AP121_2M AP121_4M AP121_8M)) --> line number 919

ap121_mtdlayout_8M=mtdparts=spi0.0:128k(u-boot)ro,64k(u-boot-env)ro,2952k(rootfs),896k(kernel),64k(nvram),64k(bconfig),2952k(brootfs),896k(bkernel),64k@0x7f0000(art)ro

Added the above line since I am using 8MB flash and when i typed printenv on uboot it showed this.

Also when I make a mtdlayout for 8M flash will i get another kernel image for 8M or i should use the one for 4M only..

Regards
Nikhil

I did cleanup and then recompiled but i could not find any kernel for 8M buddy. Can you check the above and let me know. I can also send you the compilation log if you need..

Regards
Nikhil

Hi,

So you're still missing one line:

$(eval $(call SingleProfile,AthLzma,$(fs_64k),AP121_8M,ap121-8M,AP121,ttyATH0,115200,$$(ap121_mtdlayout_8M),3022848,917504,RKuImage))

I'd add it around line 830 where other AP_121 are.

Also, have a look at this: Flash layout I'd suggest to add 'firmware' partiton which covers your rootfs and kernel partitions (this is used for upgrades later etc.)

(Last edited by jaceq on 19 Apr 2013, 07:38)

jaceq what are the values 3022848 and 917504 and RKuImage

It's size of rootfs and kernel (in bytes), I modified them for you according to your partition layout:

ap121_mtdlayout_8M=mtdparts=spi0.0:128k(u-boot)ro,64k(u-boot-env)ro,2952k(rootfs),896k(kernel),64k(nvram),64k(bconfig),2952k(brootfs),896k(bkernel),64k@0x7f0000(art)ro

OK... AS i THOUGHT... But what does $(fs_64k) and RKuImage means.