Modify

Opened 6 years ago

Last modified 2 years ago

#11969 new defect

EOC-1650 Squashfs RootFS not working

Reported by: djanice1980@… Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

This is the most recent precompiled trunk version available for atheros. Using squashfs rootfs.

It is an EOC-1650. Backfire works fine.

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version 1.1 - built 11:17:13, Dec  4 2008

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: ap51 
RAM: 0x80000000-0x82000000, [0x80040f30-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 15.000 seconds - enter ^C to abort
RedBoot> fis load -l vmlinux.bin.l7
Image loaded from 0x80041000-0x802ec200
RedBoot> exec
Now booting linux kernel:
 Base address 0x80030000 Entry 0x80041000
 Cmdline : 
Linux version 2.6.30.10 (jow@nd-build-02.linux-appliance.net) (gcc version 4.3.3 (GCC) ) #5 Wed Dec 21 03:48:30 CET 2011
console [early0] enabled
CPU revision is: 00019064 (MIPS 4KEc)
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: console=ttyS0,9600 rootfstype=squashfs,jffs2
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
NR_IRQS:128
PID hash table entries: 128 (order: 7, 512 bytes)
console handover: boot [early0] -> real [ttyS0]
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29244k/32768k available (2182k kernel code, 3524k reserved, 415k data, 136k init, 0k highmem)
Calibrating delay loop... 183.50 BogoMIPS (lpj=917504)
Mount-cache hash table entries: 512
net_namespace: 1008 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
pci 0000:00:00.0: BAR 1: can't allocate mem resource [0x84000000-0x857f7fff]
pci 0000:00:03.0: BAR 1: can't allocate mem resource [0x84000000-0x857f7fff]
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
Radio config found at offset 0x1000(0x100)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  B) 2001-2006 Red Hat, Inc.
msgmni has been set to 57
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
gpiodev: gpio platform device registered with access mask FFFFFFFF
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xb1100003 (irq = 37) is a 16550A
eth0: Atheros AR231x: 00:02:6f:cc:3b:a0, irq 4
ar231x_eth_mii: probed
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01)
cmdlinepart partition parsing not available
Searching for RedBoot partition table in spiflash at offset 0x7d0000
Searching for RedBoot partition table in spiflash at offset 0x7e0000
6 RedBoot partitions found on MTD device spiflash
Creating 6 MTD partitions on "spiflash":
0x000000000000-0x000000030000 : "RedBoot"
0x000000030000-0x000000110000 : "vmlinux.bin.l7"
0x000000110000-0x0000007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=2B0000, len=530000 
0x0000002b0000-0x0000007e0000 : "rootfs_data"
0x0000007e0000-0x0000007ef000 : "FIS directory"
0x0000007ef000-0x0000007f0000 : "RedBoot config"
0x0000007f0000-0x000000800000 : "boardconfig"
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 136k freed
Please be patient, while OpenWrt loads ...
eth0: Configuring MAC for full duplex
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
jffs2 not ready yet; using ramdisk
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
- init -

Please press Enter to activate this console. device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (512 buckets, 2048 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
ath_hal: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ath_hal: 2009-05-08 (AR5212, AR5312, RF5111, RF5112, RF2316, RF2317, REGOPS_FUNC, TX_DESC_SWAP, XR)
ath_ahb: trunk
wlan: trunk
wlan: mac acl policy registered
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
ath_ahb: wifi0: Atheros 2315 WiSoC: mem=0xb0000000, irq=3
IRQ 3/wifi0: IRQF_DISABLED is not guaranteed on shared IRQs
jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... done.
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay



BusyBox v1.15.3 (2011-11-24 02:38:24 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 Backfire (10.03.1, r29592) ------------------------
  * 1/3 shot Kahlua    In a shot glass, layer Kahlua 
  * 1/3 shot Bailey's  on the bottom, then Bailey's, 
  * 1/3 shot Vodka     then Vodka.
 ---------------------------------------------------
RedBoot> fis list
Name              FLASH addr  Mem addr    Length      Entry point
RedBoot           0xA8000000  0xA8000000  0x00030000  0x00000000
vmlinux.bin.l7    0xA8030000  0x80041000  0x00100000  0x80041000
rootfs            0xA8130000  0x80041000  0x001A0000  0x80041000
FIS directory     0xA87E0000  0xA87E0000  0x0000F000  0x00000000
RedBoot config    0xA87EF000  0xA87EF000  0x00001000  0x00000000
RedBoot> reset
Ethernet eth0: MAC address 00:02:6f:cc:3b:a0
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version 1.1 - built 11:17:13, Dec  4 2008

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: ap51 
RAM: 0x80000000-0x82000000, [0x80040f30-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 15.000 seconds - enter ^C to abort
RedBoot> fis load -l vmlinux.bin.l7
Image loaded from 0x80041000-0x803265c0
RedBoot> exec
Now booting linux kernel:
 Base address 0x80030000 Entry 0x80041000
 Cmdline : 
[    0.000000] Linux version 3.3.8 (openwrt@builder) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Wed Aug 1 13:28:00 MDT 2012
[    0.000000] gpiochip_add: registered GPIOs 0 to 21 on device: ar2315-gpio
[    0.000000] ar2315-gpio: registered 22 GPIOs
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019064 (MIPS 4KEc)
[    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:  console=ttyS0,9600 rootfstype=squashfs,jffs2
[    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 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] Memory: 29116k/32768k available (2288k kernel code, 3652k reserved, 511k data, 168k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.000000] console [ttyS0] enabled, bootconsole disabled
[    0.000000] console [ttyS0] enabled, bootconsole disabled
[    0.010000] Calibrating delay loop... 183.70 BogoMIPS (lpj=918528)
[    0.110000] pid_max: default: 32768 minimum: 301
[    0.120000] Mount-cache hash table entries: 512
[    0.130000] NET: Registered protocol family 16
[    0.850000] bio: create slab <bio-0> at 0
[    0.870000] PCI host bridge to bus 0000:00
[    0.880000] pci_bus 0000:00: root bus resource [mem 0x80800000-0x857f7fff]
[    0.890000] pci_bus 0000:00: root bus resource [io  0x817f8000-0x817ffffe]
[    0.900000] pci 0000:00:00.0: BAR 1: can't assign mem (size 0x4000000)
[    0.910000] pci 0000:00:03.0: BAR 1: can't assign mem (size 0x4000000)
[    0.920000] pci 0000:00:00.0: BAR 2: assigned [mem 0x80800000-0x80bfffff]
[    0.930000] pci 0000:00:03.0: BAR 2: assigned [mem 0x80c00000-0x80ffffff]
[    0.940000] pci 0000:00:00.0: BAR 0: assigned [mem 0x81000000-0x8101ffff]
[    0.950000] pci 0000:00:03.0: BAR 0: assigned [mem 0x81020000-0x8103ffff]
[    0.960000] Switching to clocksource MIPS
[    0.990000] NET: Registered protocol family 2
[    1.040000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.130000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    1.210000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.290000] TCP: Hash tables configured (established 1024 bind 1024)
[    1.360000] TCP reno registered
[    1.400000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.470000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.550000] NET: Registered protocol family 1
[    1.610000] Radio config found at offset 0x1000(0x100)
[    1.690000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.760000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.880000] msgmni has been set to 56
[    1.930000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[    2.020000] io scheduler noop registered
[    2.070000] io scheduler deadline registered (default)
[    2.130000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.230000] serial8250: ttyS0 at MMIO 0xb1100003 (irq = 37) is a 16550A
[    2.340000] gpiodev: gpio device registered with major 253
[    2.420000] Searching for RedBoot partition table in spiflash at offset 0x7d0000
[    2.610000] Searching for RedBoot partition table in spiflash at offset 0x7e0000
[    2.790000] 6 RedBoot partitions found on MTD device spiflash
[    2.860000] Creating 6 MTD partitions on "spiflash":
[    2.920000] 0x000000000000-0x000000030000 : "RedBoot"
[    2.990000] 0x000000030000-0x000000130000 : "vmlinux.bin.l7"
[    3.070000] 0x000000130000-0x0000007e0000 : "rootfs"
[    3.140000] mtd: partition "rootfs" set to be root filesystem
[    3.210000] mtd: partition "rootfs_data" created automatically, ofs=280000, len=560000 
[    3.310000] 0x000000280000-0x0000007e0000 : "rootfs_data"
[    3.380000] 0x0000007e0000-0x0000007ef000 : "FIS directory"
[    3.460000] 0x0000007ef000-0x0000007f0000 : "RedBoot config"
[    3.540000] 0x0000007f0000-0x000000800000 : "boardconfig"
[    3.690000] eth0: Atheros AR231x: 00:02:6f:cc:3b:a0, irq 4
[    3.820000] ar231x_eth_mii: probed
[    3.870000] eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01)
[    3.970000] TCP cubic registered
[    4.010000] NET: Registered protocol family 17
[    4.060000] Bridge firewalling registered
[    4.110000] 8021q: 802.1Q VLAN Support v1.8
[    4.170000] SQUASHFS error: Major/Minor mismatch, older Squashfs -1.-1 filesystems are unsupported
[    4.280000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0xcd0f instead
[    4.380000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0xef79 instead
[    4.490000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x1423 instead
[    4.600000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0xf086 instead
[    4.700000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x373d instead
[    4.810000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x5b84 instead
[    4.920000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x7ed2 instead
[    5.020000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0xd15f instead
[    5.130000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0xe8cf instead
[    5.240000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x77de instead
[    5.340000] Further such events for this erase block will not be printed
[    5.540000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010000: 0xf8a9 instead
[    5.640000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010004: 0x4ea6 instead
[    5.750000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010008: 0x4b2c instead
[    5.860000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001000c: 0xd0e4 instead
[    5.960000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010010: 0x3d0b instead
[    6.070000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010014: 0xe330 instead
[    6.180000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010018: 0x6a46 instead
[    6.280000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001001c: 0x14f2 instead
[    6.390000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010020: 0x1712 instead
[    6.500000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010024: 0xce80 instead
[    6.600000] eth0: Configuring MAC for full duplex
[    6.660000] Further such events for this erase block will not be printed
[    6.780000] Old JFFS2 bitmask found at 0x00015754
[    6.840000] You cannot use older JFFS2 filesystems with newer kernels
[    6.990000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0xc7fe instead
[    7.100000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0x619f instead
[    7.200000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0x8dc8 instead
[    7.310000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c: 0x4f07 instead
[    7.420000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010: 0xdd82 instead
[    7.520000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014: 0x1234 instead
[    7.630000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018: 0x289e instead
[    7.740000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c: 0x0b77 instead
[    7.840000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020: 0x0c41 instead
[    7.950000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024: 0x436b instead
[    8.060000] Further such events for this erase block will not be printed
[    8.250000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030000: 0x3f8c instead
[    8.360000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030004: 0xbff0 instead
[    8.460000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030008: 0xbe15 instead
[    8.570000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003000c: 0x0549 instead
[    8.680000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030010: 0xd432 instead
[    8.780000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030014: 0x2a2f instead
[    8.890000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030018: 0x06a9 instead
[    9.000000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003001c: 0x4c94 instead
[    9.100000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030020: 0x0a3c instead
[    9.210000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030024: 0xcc8f instead
[    9.320000] Further such events for this erase block will not be printed
[    9.510000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0x78c4 instead
[    9.620000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0xcf5f instead
[    9.720000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0x946d instead
[    9.830000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004000c: 0xcf1c instead
[    9.940000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040010: 0xd2b6 instead
[   10.050000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040014: 0xd3ed instead
[   10.150000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040018: 0x03a2 instead
[   10.260000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004001c: 0x5344 instead
[   10.370000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040020: 0x0e61 instead
[   10.470000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040024: 0x3f3b instead
[   10.580000] Further such events for this erase block will not be printed
[   10.770000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050000: 0xb795 instead
[   10.880000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050004: 0x19b2 instead
[   10.990000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050008: 0x1296 instead
[   11.090000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005000c: 0xf625 instead
[   11.200000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050010: 0x7eae instead
[   11.310000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050014: 0xe656 instead
[   11.410000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050018: 0xac27 instead
[   11.520000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005001c: 0xd9e7 instead
[   11.630000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050020: 0xdf39 instead
[   11.730000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050024: 0x672d instead
[   11.840000] Further such events for this erase block will not be printed
[   12.030000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060000: 0xafbd instead
[   12.140000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060004: 0x3dd6 instead
[   12.250000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060008: 0x27c5 instead
[   12.350000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006000c: 0x33f3 instead
[   12.460000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060010: 0x051c instead
[   12.570000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060014: 0x98b9 instead
[   12.670000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060018: 0xb1d3 instead
[   12.780000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006001c: 0xc3ce instead
[   12.890000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060020: 0xf251 instead
[   12.990000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060024: 0xd752 instead
[   13.100000] Further such events for this erase block will not be printed
[   13.270000] Old JFFS2 bitmask found at 0x0006c84c
[   13.330000] You cannot use older JFFS2 filesystems with newer kernels
[   13.430000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070000: 0x3e25 instead
[   13.540000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070004: 0x2109 instead
[   13.640000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070008: 0xd5a7 instead
[   13.750000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007000c: 0xc8ad instead
[   13.860000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070010: 0xc7cc instead
[   13.960000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070014: 0xd1a3 instead
[   14.070000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070018: 0xa50b instead
[   14.180000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007001c: 0xab19 instead
[   14.280000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070020: 0x39ee instead
[   14.390000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070024: 0xba63 instead
[   14.500000] Further such events for this erase block will not be printed
[   14.690000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080000: 0x08d6 instead
[   14.800000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080004: 0x688b instead
[   14.900000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080008: 0xd1be instead
[   15.010000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008000c: 0xdffc instead
[   15.120000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080010: 0x5678 instead
[   15.220000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080014: 0x963b instead
[   15.330000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080018: 0xe46f instead
[   15.440000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008001c: 0x89aa instead
[   15.540000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080020: 0x7ce9 instead
[   15.650000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080024: 0xfd64 instead
[   15.760000] Further such events for this erase block will not be printed
[   15.950000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090000: 0xc77e instead
[   16.060000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090004: 0xcf78 instead
[   16.160000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090008: 0x5071 instead
[   16.270000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0009000c: 0x80fc instead
[   16.380000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090010: 0xd7f9 instead
[   16.480000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090014: 0xb8d3 instead
[   16.590000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090018: 0x1de0 instead
[   16.700000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0009001c: 0xae6e instead
[   16.810000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090020: 0xb25b instead
[   16.910000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090024: 0xa8b6 instead
[   17.020000] Further such events for this erase block will not be printed
[   17.210000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0000: 0xd49d instead
[   17.320000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0004: 0xd59b instead
[   17.430000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0008: 0x9cca instead
[   17.530000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a000c: 0xd094 instead
[   17.640000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0010: 0x2b90 instead
[   17.750000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0014: 0x7fc9 instead
[   17.850000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0018: 0x674d instead
[   17.960000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a001c: 0x2f6c instead
[   18.070000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0020: 0xfed8 instead
[   18.170000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0024: 0x3b8f instead
[   18.280000] Further such events for this erase block will not be printed
[   18.400000] Empty flash at 0x000a4d58 ends at 0x000a5304
[   18.480000] Empty flash at 0x000a5308 ends at 0x000a68b4
[   18.590000] Empty flash at 0x000a68b8 ends at 0x000ade64
[   18.710000] Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[   18.800000] empty_blocks 96, bad_blocks 0, c->nr_blocks 107
[   18.870000] VFS: Cannot open root device "(null)" or unknown-block(31,2)
[   18.950000] Please append a correct "root=" boot option; here are the available partitions:
[   19.050000] 1f00             192 mtdblock0  (driver?)
[   19.110000] 1f01            1024 mtdblock1  (driver?)
[   19.170000] 1f02            6848 mtdblock2  (driver?)
[   19.230000] 1f03            5504 mtdblock3  (driver?)
[   19.290000] 1f04              60 mtdblock4  (driver?)
[   19.350000] 1f05               4 mtdblock5  (driver?)
[   19.410000] 1f06              64 mtdblock6  (driver?)
[   19.480000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
.

Attachments (0)

Change History (14)

comment:1 Changed 5 years ago by djanice1980@…

Here's using JFFS2 64K image.

Now booting linux kernel:
 Base address 0x80030000 Entry 0x80041000
 Cmdline : 
[    0.000000] Linux version 3.3.8 (djanice@djanice-MacBookAir) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Tue Aug 7 15:47:25 CDT 2012
[    0.000000] gpiochip_add: registered GPIOs 0 to 21 on device: ar2315-gpio
[    0.000000] ar2315-gpio: registered 22 GPIOs
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019064 (MIPS 4KEc)
[    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:  console=ttyS0,9600 rootfstype=squashfs,jffs2
[    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 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] Memory: 29116k/32768k available (2288k kernel code, 3652k reserved, 511k data, 168k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.000000] console [ttyS0] enabled, bootconsole disabled
[    0.000000] console [ttyS0] enabled, bootconsole disabled
[    0.010000] Calibrating delay loop... 183.70 BogoMIPS (lpj=918528)
[    0.110000] pid_max: default: 32768 minimum: 301
[    0.120000] Mount-cache hash table entries: 512
[    0.130000] NET: Registered protocol family 16
[    0.850000] bio: create slab <bio-0> at 0
[    0.870000] PCI host bridge to bus 0000:00
[    0.880000] pci_bus 0000:00: root bus resource [mem 0x80800000-0x857f7fff]
[    0.890000] pci_bus 0000:00: root bus resource [io  0x817f8000-0x817ffffe]
[    0.900000] pci 0000:00:00.0: BAR 1: can't assign mem (size 0x4000000)
[    0.910000] pci 0000:00:03.0: BAR 1: can't assign mem (size 0x4000000)
[    0.920000] pci 0000:00:00.0: BAR 2: assigned [mem 0x80800000-0x80bfffff]
[    0.930000] pci 0000:00:03.0: BAR 2: assigned [mem 0x80c00000-0x80ffffff]
[    0.940000] pci 0000:00:00.0: BAR 0: assigned [mem 0x81000000-0x8101ffff]
[    0.950000] pci 0000:00:03.0: BAR 0: assigned [mem 0x81020000-0x8103ffff]
[    0.960000] Switching to clocksource MIPS
[    0.990000] NET: Registered protocol family 2
[    1.040000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.130000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    1.210000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.290000] TCP: Hash tables configured (established 1024 bind 1024)
[    1.360000] TCP reno registered
[    1.400000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.470000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.550000] NET: Registered protocol family 1
[    1.610000] Radio config found at offset 0x1000(0x100)
[    1.690000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.760000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.880000] msgmni has been set to 56
[    1.930000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[    2.020000] io scheduler noop registered
[    2.070000] io scheduler deadline registered (default)
[    2.130000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.230000] serial8250: ttyS0 at MMIO 0xb1100003 (irq = 37) is a 16550A
[    2.340000] gpiodev: gpio device registered with major 253
[    2.420000] Searching for RedBoot partition table in spiflash at offset 0x7d0000
[    2.610000] Searching for RedBoot partition table in spiflash at offset 0x7e0000
[    2.790000] 6 RedBoot partitions found on MTD device spiflash
[    2.860000] Creating 6 MTD partitions on "spiflash":
[    2.920000] 0x000000000000-0x000000030000 : "RedBoot"
[    2.990000] 0x000000030000-0x000000130000 : "vmlinux.bin.l7"
[    3.070000] 0x000000130000-0x0000007e0000 : "rootfs"
[    3.140000] mtd: partition "rootfs" set to be root filesystem
[    3.210000] split_squashfs: no squashfs found in "spiflash"
[    3.280000] 0x0000007e0000-0x0000007ef000 : "FIS directory"
[    3.360000] 0x0000007ef000-0x0000007f0000 : "RedBoot config"
[    3.430000] 0x0000007f0000-0x000000800000 : "boardconfig"
[    3.580000] eth0: Atheros AR231x: 00:02:6f:cc:3b:a0, irq 4
[    3.720000] ar231x_eth_mii: probed
[    3.760000] eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01)
[    3.860000] TCP cubic registered
[    3.900000] NET: Registered protocol family 17
[    3.960000] Bridge firewalling registered
[    4.010000] 8021q: 802.1Q VLAN Support v1.8
[    4.060000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x0ffc instead
[    4.170000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x4d8a instead
[    4.280000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x58fb instead
[    4.380000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x7009 instead
[    4.490000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x80fe instead
[    4.600000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x7360 instead
[    4.700000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0xd617 instead
[    4.810000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0xeae9 instead
[    4.920000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0xc053 instead
[    5.020000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x2041 instead
[    5.130000] Further such events for this erase block will not be printed
[    5.320000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010000: 0x8362 instead
[    5.430000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010004: 0xae6a instead
[    5.540000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010008: 0x6e47 instead
[    5.640000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001000c: 0x6ba2 instead
[    5.750000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010010: 0x3c55 instead
[    5.860000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010014: 0xfc46 instead
[    5.960000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010018: 0x2493 instead
[    6.070000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001001c: 0xad83 instead
[    6.180000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010020: 0x573e instead
[    6.290000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010024: 0x0244 instead
[    6.390000] Further such events for this erase block will not be printed
[    6.470000] eth0: Configuring MAC for full duplex
[    6.640000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0x09cd instead
[    6.750000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0xe577 instead
[    6.860000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0xd105 instead
[    6.960000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c: 0x7954 instead
[    7.070000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010: 0x38af instead
[    7.180000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014: 0xb60b instead
[    7.280000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018: 0xec83 instead
[    7.390000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c: 0xd78a instead
[    7.500000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020: 0x0517 instead
[    7.600000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024: 0x3692 instead
[    7.710000] Further such events for this erase block will not be printed
[    7.850000] Empty flash at 0x00027a68 ends at 0x00027a6c
[    7.970000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030000: 0xc5da instead
[    8.080000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030004: 0xede9 instead
[    8.180000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030008: 0x5f4e instead
[    8.290000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003000c: 0x0ecc instead
[    8.400000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030010: 0x1aac instead
[    8.500000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030014: 0xb7ca instead
[    8.610000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030018: 0x716d instead
[    8.720000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003001c: 0xdb36 instead
[    8.820000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030020: 0xfa80 instead
[    8.930000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030024: 0x4274 instead
[    9.040000] Further such events for this erase block will not be printed
[    9.180000] Empty flash at 0x000373c4 ends at 0x000373c8
[    9.300000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0x3760 instead
[    9.410000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0x7ee9 instead
[    9.510000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0xc4ea instead
[    9.620000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004000c: 0x86af instead
[    9.730000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040010: 0xc2ed instead
[    9.830000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040014: 0xabd9 instead
[    9.940000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040018: 0x6f27 instead
[   10.050000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004001c: 0x3a7e instead
[   10.150000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040020: 0x53b4 instead
[   10.260000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040024: 0x2637 instead
[   10.370000] Further such events for this erase block will not be printed
[   10.560000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050000: 0xba0d instead
[   10.670000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050004: 0xd856 instead
[   10.770000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050008: 0xde3f instead
[   10.880000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005000c: 0xd9ae instead
[   10.990000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050010: 0x2864 instead
[   11.100000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050014: 0x06ee instead
[   11.200000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050018: 0x694a instead
[   11.310000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005001c: 0x10a8 instead
[   11.420000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050020: 0x89c7 instead
[   11.520000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050024: 0xa671 instead
[   11.630000] Further such events for this erase block will not be printed
[   11.820000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060000: 0xee03 instead
[   11.930000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060004: 0x7eab instead
[   12.040000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060008: 0x2d30 instead
[   12.140000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006000c: 0xf50a instead
[   12.250000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060010: 0x3578 instead
[   12.360000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060014: 0xc3bf instead
[   12.460000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060018: 0x201c instead
[   12.570000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006001c: 0xc24e instead
[   12.680000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060020: 0xd978 instead
[   12.780000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060024: 0x5167 instead
[   12.890000] Further such events for this erase block will not be printed
[   13.080000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070000: 0xd0bd instead
[   13.190000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070004: 0xd292 instead
[   13.300000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070008: 0xb070 instead
[   13.400000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007000c: 0x2cc5 instead
[   13.510000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070010: 0x54e3 instead
[   13.620000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070014: 0xc48d instead
[   13.720000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070018: 0x4bfb instead
[   13.830000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007001c: 0x1f8f instead
[   13.940000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070020: 0xeb9f instead
[   14.040000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070024: 0x43ea instead
[   14.150000] Further such events for this erase block will not be printed
[   14.290000] Empty flash at 0x00076480 ends at 0x00076484
[   14.410000] Old JFFS2 bitmask found at 0x0007ffe8
[   14.470000] You cannot use older JFFS2 filesystems with newer kernels
[   14.550000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080000: 0x103c instead
[   14.650000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080004: 0xf055 instead
[   14.760000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080008: 0x10da instead
[   14.870000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008000c: 0x7e29 instead
[   14.970000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080010: 0xfeac instead
[   15.080000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080014: 0x0607 instead
[   15.190000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080018: 0x04e3 instead
[   15.300000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008001c: 0x027d instead
[   15.400000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080020: 0x8cce instead
[   15.510000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080024: 0xddeb instead
[   15.620000] Further such events for this erase block will not be printed
[   15.810000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090000: 0x5927 instead
[   15.920000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090004: 0x9eb0 instead
[   16.020000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090008: 0xa899 instead
[   16.130000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0009000c: 0x3d48 instead
[   16.240000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090010: 0x1c70 instead
[   16.340000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090014: 0x8b25 instead
[   16.450000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090018: 0x681b instead
[   16.560000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0009001c: 0x6ad0 instead
[   16.660000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090020: 0xdf08 instead
[   16.770000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090024: 0x480c instead
[   16.880000] Further such events for this erase block will not be printed
[   17.070000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0000: 0x34b4 instead
[   17.180000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0004: 0x36bf instead
[   17.280000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0008: 0x3077 instead
[   17.390000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a000c: 0xdb9f instead
[   17.500000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0010: 0xac7d instead
[   17.600000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0014: 0x70c2 instead
[   17.710000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0018: 0x69f6 instead
[   17.820000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a001c: 0x8d8d instead
[   17.920000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0020: 0xc8aa instead
[   18.030000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0024: 0x3a1e instead
[   18.140000] Further such events for this erase block will not be printed
[   18.230000] Old JFFS2 bitmask found at 0x000a1754
[   18.290000] You cannot use older JFFS2 filesystems with newer kernels
[   18.400000] Empty flash at 0x000a56e4 ends at 0x000a56e8
[   18.530000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0000: 0x7ff3 instead
[   18.640000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0004: 0x7a95 instead
[   18.750000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0008: 0x6c0b instead
[   18.850000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b000c: 0x83d6 instead
[   18.960000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0010: 0x2b1e instead
[   19.070000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0014: 0xe7f3 instead
[   19.170000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0018: 0x92ee instead
[   19.280000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b001c: 0x7c4d instead
[   19.390000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0020: 0xd27d instead
[   19.490000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0024: 0x2c9e instead
[   19.600000] Further such events for this erase block will not be printed
[   19.790000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0000: 0xa443 instead
[   19.900000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0004: 0x6fcd instead
[   20.010000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0008: 0xdc05 instead
[   20.110000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c000c: 0x3821 instead
[   20.220000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0010: 0x8a21 instead
[   20.330000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0014: 0xbb8d instead
[   20.430000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0018: 0x0438 instead
[   20.540000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c001c: 0x7639 instead
[   20.650000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0020: 0x9078 instead
[   20.750000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0024: 0xe0f1 instead
[   20.860000] Further such events for this erase block will not be printed
[   21.060000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0000: 0x7207 instead
[   21.160000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0004: 0x733e instead
[   21.270000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0008: 0x57fd instead
[   21.380000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d000c: 0x0641 instead
[   21.480000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0010: 0x961c instead
[   21.590000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0014: 0x1422 instead
[   21.700000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0018: 0xc465 instead
[   21.800000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d001c: 0xa1d4 instead
[   21.910000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0020: 0x7836 instead
[   22.020000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0024: 0x2eec instead
[   22.120000] Further such events for this erase block will not be printed
[   22.320000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0000: 0x3218 instead
[   22.420000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0004: 0x7d92 instead
[   22.530000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0008: 0x9874 instead
[   22.640000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e000c: 0xeb6d instead
[   22.740000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0010: 0xfc93 instead
[   22.850000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0014: 0xba93 instead
[   22.960000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0018: 0x6c4f instead
[   23.060000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e001c: 0xfb18 instead
[   23.170000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0020: 0xbb5d instead
[   23.280000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0024: 0xf8d1 instead
[   23.380000] Further such events for this erase block will not be printed
[   23.580000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0000: 0x78da instead
[   23.680000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0004: 0x7063 instead
[   23.790000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0018: 0x5021 instead
[   23.900000] jffs2_scan_eraseblock(): Node at 0x000f0028 {0x1985, 0xe001, 0x392fe03e) has invalid CRC 0x00000239 (calculated 0xb3d385d6)
[   24.040000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f002c: 0x392f instead
[   24.150000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0034: 0x5021 instead
[   24.260000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0038: 0xc11c instead
[   24.360000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f003c: 0x6a73 instead
[   24.470000] jffs2_scan_eraseblock(): Node at 0x000f0040 {0x1985, 0xe002, 0x9930da2d) has invalid CRC 0x00000001 (calculated 0x0f759de9)
[   24.620000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0044: 0x9930 instead
[   24.720000] Further such events for this erase block will not be printed
[   24.840000] Empty flash at 0x000f03d8 ends at 0x000f3d64
[   25.020000] Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[   25.110000] empty_blocks 91, bad_blocks 0, c->nr_blocks 107
[   25.180000] VFS: Cannot open root device "(null)" or unknown-block(31,2)
[   25.260000] Please append a correct "root=" boot option; here are the available partitions:
[   25.360000] 1f00             192 mtdblock0  (driver?)
[   25.420000] 1f01            1024 mtdblock1  (driver?)
[   25.480000] 1f02            6848 mtdblock2  (driver?)
[   25.540000] 1f03              60 mtdblock3  (driver?)
[   25.610000] 1f04               4 mtdblock4  (driver?)
[   25.670000] 1f05              64 mtdblock5  (driver?)
[   25.730000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)

comment:2 Changed 5 years ago by anonymous

Got it WORKING!!! Woohoo

Had to change the following:

/trunk/target/linux/atheros/config-3.3

CONFIG_GENERIC_GPIO=n
CONFIG_GPIO_DEVICE=n
CONFIG_LEDS_GPIO=n

Here is the current file now:

CONFIG_AR8216_PHY=y
CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=y
CONFIG_ARCH_DISCARD_MEMBLOCK=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_REQUIRE_GPIOLIB=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ATHEROS_AR2315=y
CONFIG_ATHEROS_AR2315_PCI=y
CONFIG_ATHEROS_AR231X=y
CONFIG_ATHEROS_AR5312=y
CONFIG_ATHEROS_WDT=y
CONFIG_BCMA_POSSIBLE=y
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_CEVT_R4K=y
CONFIG_CEVT_R4K_LIB=y
CONFIG_CMDLINE="console=ttyS0,9600 rootfstype=squashfs,jffs2"
CONFIG_CMDLINE_BOOL=y
# CONFIG_CMDLINE_OVERRIDE is not set
CONFIG_CPU_BIG_ENDIAN=y
CONFIG_CPU_HAS_PREFETCH=y
CONFIG_CPU_HAS_SYNC=y
CONFIG_CPU_MIPS32=y
CONFIG_CPU_MIPS32_R1=y
CONFIG_CPU_MIPSR1=y
CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y
CONFIG_CPU_SUPPORTS_HIGHMEM=y
CONFIG_CSRC_R4K=y
CONFIG_CSRC_R4K_LIB=y
CONFIG_DECOMPRESS_LZMA=y
CONFIG_DMA_NONCOHERENT=y
CONFIG_EARLY_PRINTK=y
CONFIG_ETHERNET_PACKET_MANGLE=y
CONFIG_GENERIC_ATOMIC64=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
CONFIG_GENERIC_CMOS_UPDATE=y
CONFIG_GENERIC_GPIO=n
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_PCI_IOMAP=y
CONFIG_GPIOLIB=y
CONFIG_GPIO_DEVICE=n
CONFIG_GPIO_SYSFS=y
# CONFIG_HAMRADIO is not set
CONFIG_HARDWARE_WATCHPOINTS=y
CONFIG_HAS_DMA=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAVE_ARCH_JUMP_LABEL=y
CONFIG_HAVE_ARCH_KGDB=y
CONFIG_HAVE_C_RECORDMCOUNT=y
CONFIG_HAVE_DMA_API_DEBUG=y
CONFIG_HAVE_DMA_ATTRS=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=y
CONFIG_HAVE_GENERIC_DMA_COHERENT=y
CONFIG_HAVE_GENERIC_HARDIRQS=y
CONFIG_HAVE_IDE=y
CONFIG_HAVE_IRQ_WORK=y
CONFIG_HAVE_MEMBLOCK=y
CONFIG_HAVE_MEMBLOCK_NODE_MAP=y
CONFIG_HAVE_OPROFILE=y
CONFIG_HAVE_PERF_EVENTS=y
CONFIG_HW_HAS_PCI=y
CONFIG_HW_RANDOM=y
CONFIG_IMAGE_CMDLINE_HACK=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_IP17XX_PHY=y
CONFIG_IRQ_CPU=y
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_LEDS_GPIO=n
CONFIG_MDIO_BOARDINFO=y
CONFIG_MIPS=y
CONFIG_MIPS_L1_CACHE_SHIFT=5
# CONFIG_MIPS_MACHINE is not set
CONFIG_MIPS_MT_DISABLED=y
CONFIG_MTD_AR2315=y
CONFIG_MTD_CFI_ADV_OPTIONS=y
# CONFIG_MTD_CFI_GEOMETRY is not set
# CONFIG_MTD_CFI_INTELEXT is not set
CONFIG_MTD_MYLOADER_PARTS=y
CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-3
CONFIG_MTD_REDBOOT_PARTS=y
CONFIG_MVSWITCH_PHY=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_PER_CPU_KM=y
CONFIG_NET_VENDOR_AR231X=y
CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_PCI=y
CONFIG_PCI_DISABLE_COMMON_QUIRKS=y
CONFIG_PCI_DOMAINS=y
CONFIG_PERF_USE_VMALLOC=y
CONFIG_PHYLIB=y
# CONFIG_PREEMPT_RCU is not set
# CONFIG_SCSI_DMA is not set
CONFIG_SERIAL_8250_NR_UARTS=1
CONFIG_SERIAL_8250_RUNTIME_UARTS=1
# CONFIG_SWAP is not set
CONFIG_SWCONFIG=y
CONFIG_SYS_HAS_CPU_MIPS32_R1=y
CONFIG_SYS_HAS_EARLY_PRINTK=y
CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y
CONFIG_SYS_SUPPORTS_ARBIT_HZ=y
CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y
CONFIG_USB_ARCH_HAS_XHCI=y
CONFIG_USB_SUPPORT=y
CONFIG_XZ_DEC=y
CONFIG_ZONE_DMA_FLAG=0

So it seems that the GPIO is broken on the current trunk for my Atheros EOC-1650

I hope someone finds this and they don't have to spend days looking like I did.

comment:3 Changed 5 years ago by ben@…

I can confirm these changes to target/linux/atheros/config-3.8 are still required for current trunk (r36225) for EOC-1650 and EOC-2611P to boot w/o the flash access errors.

--- target/linux/atheros/config-3.8	(revision 36225)
+++ target/linux/atheros/config-3.8	(working copy)
@@ -40,13 +40,16 @@
 CONFIG_GENERIC_CLOCKEVENTS=y
 CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
 CONFIG_GENERIC_CMOS_UPDATE=y
-CONFIG_GENERIC_GPIO=y
+#CONFIG_GENERIC_GPIO=y
+CONFIG_GENERIC_GPIO=n
 CONFIG_GENERIC_IO=y
 CONFIG_GENERIC_IRQ_SHOW=y
 CONFIG_GENERIC_PCI_IOMAP=y
 CONFIG_GENERIC_SMP_IDLE_THREAD=y
-CONFIG_GPIOLIB=y
-CONFIG_GPIO_SYSFS=y
+#CONFIG_GPIOLIB=y
+CONFIG_GPIOLIB=n
+#CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_SYSFS=n
 # CONFIG_HAMRADIO is not set
 CONFIG_HARDWARE_WATCHPOINTS=y
 CONFIG_HAS_DMA=y
@@ -79,7 +82,8 @@
 CONFIG_IP17XX_PHY=y
 CONFIG_IRQ_CPU=y
 CONFIG_IRQ_FORCED_THREADING=y
-CONFIG_LEDS_GPIO=y
+#CONFIG_LEDS_GPIO=y
+CONFIG_LEDS_GPIO=n
 CONFIG_MDIO_BOARDINFO=y
 CONFIG_MIPS=y
 CONFIG_MIPS_L1_CACHE_SHIFT=5

comment:4 Changed 5 years ago by ben@…

I've started a thread on the openwrt-dev list asking what are preferred next steps for moving atheros platform to board-specific profiles:

https://lists.openwrt.org/pipermail/openwrt-devel/2013-April/019676.html

comment:5 Changed 5 years ago by dirkvanderwalt@…

Hello all,

Thanks for reporting this issue and also informing us of a way to get around it.
I'm also using EnGenius (EAP-3660 and M36) devices with a custom build OpenWRT.

I've followed the above instructions to get it working and eventually started playing around with the various GPIO config options.

It turns out on my board I cound leave all on except the CONFIG_LEDS_GPIO and it would still boot.

Then I followed these instructions to try and determine from which pin the WLAN led is driven:

https://forum.openwrt.org/viewtopic.php?id=36561
(I also had to echo out into the direction file as the default seems to be in)
If you damage your board don't blame me ;-) since there seems to be a warning attached to this action.

So I've ended up with GPIO 2 on the M36.

Then I've turned CONFIG_LEDS_GPIO on again and modified the code which registers the leds (pins 1 to 8 it seems) to look like this:
(build_dir/linux-atheros/linux-3.3.8/arch/mips/ar231x/ar2315.c or the 100-board patch)

static void __init
ar2315_init_gpio_leds(void)
{
        static char led_names[6][6];
        int i, led = 0;

        ar2315_led_data.num_leds = 0;
        for(i = 1; i < 8; i++)
        {
                if((i == AR2315_RESET_GPIO) ||
                   (i == ar231x_board.config->resetConfigGpio))
                        continue;

                if(i == 2)
                        strcpy(led_names[led], "wlan");
                else
                        continue;

                ar2315_leds[led].name = led_names[led];
                ar2315_leds[led].gpio = i;
                ar2315_leds[led].active_low = 0;
                led++;
        }
        ar2315_led_data.num_leds = led;
        platform_device_register(&ar2315_gpio_leds);
}


This modification hard code GPIO pin 2 to the WLAN led and simply ignores the others.
It is probably one of the others that it tries to register as an LED which cause the problem in the original code.

Hope this will help you in getting your LED's up and running and also to find a more elegant way to handle the differences in these boards.

comment:6 Changed 5 years ago by ben@…

Thank you dirkvanderwalt for the detailed response. What version OpenWRT are you using (i.e. trunk, AA)?

Unfortunately, I can confirm the squashfs errors persist on Engenius EOC-1650 and EOC-2611P with the option CONFIG_LEDS_GPIO disabled. That is, the errors occur even with the ar2315_init_gpio_leds() function you're quoting from build_dir/linux-atheros/linux-3.3.8/arch/mips/ar231x/ar2315.c being completely disabled by setting CONFIG_LEDS_GPIO=n.

In particular, it looks like specifically CONFIG_GPIO_SYSFS must be disabled to avert these boot errors. I've since successfully booted trunk r36225 on the EOC-1650 now with only CONFIG_GPIO_SYSFS turned off, and with the other config options mentioned above left on, and even with the kmod-leds-gpio package enabled too. Of course, this works because CONFIG_GPIO_SYSFS presumably enables/disables all userland access to GPIO pins anyway.

Index: target/linux/atheros/config-3.8
===================================================================
--- target/linux/atheros/config-3.8	(revision 36225)
+++ target/linux/atheros/config-3.8	(working copy)
@@ -46,7 +46,8 @@
 CONFIG_GENERIC_PCI_IOMAP=y
 CONFIG_GENERIC_SMP_IDLE_THREAD=y
 CONFIG_GPIOLIB=y
-CONFIG_GPIO_SYSFS=y
+#CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_SYSFS=n
 # CONFIG_HAMRADIO is not set
 CONFIG_HARDWARE_WATCHPOINTS=y
 CONFIG_HAS_DMA=y

So, it looks like the errors are closely related to whatever the CONFIG_GPIO_SYSFS option enables.

comment:7 follow-up: Changed 5 years ago by ben@…

Whoops, I spoke too soon! Or possibly I had a build tree that wasn't entirely cleaned of the previous compile. Turns out the changes to ar2315_init_gpio_leds() suggested by dirkvanderwalt do indeed appear to let my EOC-2611P boot successfully under r36225. Thank you!

Here is the complete diff I'm using for target/linux/atheros to compile images for EOC-1650 and EOC-2611P. Note that I am also successfully compiling the package kmod-leds-gpio into the image too (tho its operation is possibly disabled by setting CONFIG_GPIO_SYSFS=y). The change to AR2315_RESET_GPIO is suggested in ticket #6202 to enable soft reboot.

Index: target/linux/atheros/config-3.8
===================================================================
--- target/linux/atheros/config-3.8	(revision 36225)
+++ target/linux/atheros/config-3.8	(working copy)
@@ -46,7 +46,8 @@
 CONFIG_GENERIC_PCI_IOMAP=y
 CONFIG_GENERIC_SMP_IDLE_THREAD=y
 CONFIG_GPIOLIB=y
-CONFIG_GPIO_SYSFS=y
+#CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_SYSFS=n
 # CONFIG_HAMRADIO is not set
 CONFIG_HARDWARE_WATCHPOINTS=y
 CONFIG_HAS_DMA=y
Index: target/linux/atheros/patches-3.8/100-board.patch
===================================================================
--- target/linux/atheros/patches-3.8/100-board.patch	(revision 36225)
+++ target/linux/atheros/patches-3.8/100-board.patch	(working copy)
@@ -1010,7 +1010,7 @@
 +#define AR2315_GPIO_INT_LVL_HIGH			2   /* High Level Triggered */
 +#define AR2315_GPIO_INT_LVL_EDGE			3   /* Edge Triggered */
 +
-+#define AR2315_RESET_GPIO       5
++#define AR2315_RESET_GPIO       0
 +#define AR2315_NUM_GPIO         22
 +
 +/*
@@ -2607,10 +2607,10 @@
 +		   (i == ar231x_board.config->resetConfigGpio))
 +			continue;
 +
-+		if(i == ar231x_board.config->sysLedGpio)
++		if(i == 2)
 +			strcpy(led_names[led], "wlan");
 +		else
-+			sprintf(led_names[led], "gpio%d", i);
++			continue;
 +
 +		ar2315_leds[led].name = led_names[led];
 +		ar2315_leds[led].gpio = i;

comment:8 in reply to: ↑ 7 Changed 4 years ago by anonymous

Is this fixed in the latest trunk snapshots ?

I am using an EOC2611P device which does not work with the trunk images but does work with the Backfire image, revision 29592. Any image later than that does not boot.

I cannot use serial to check what the issue is because I don't want to open up the waterproof seal.

I assume it is not working because of this issue.

Is there a way to include this patch in the main build environment ( so it will get included in the trunk snapshots ) OR do I have to compile from scratch ?

Thank you for any replies !

comment:9 Changed 4 years ago by ben@…

The problem is that the Engenius 802.11g devices use non-standard GPIO assignments. More recent versions of AA and trunk (i.e. post r29xxx) have different handling for GPIO assignments at bootup, with interfere with these devices booting from flash. I'm attaching the patches which I use for AA (v3.3 kernel) and trunk (v.3.10 kernel) to get my Engenius products to work. Apply these patches in the root of your OpenWRT build tree.

comment:10 Changed 4 years ago by ben@…

Seems that patch attachment is not working. Here is the patch I use for Engenius 802.11g devices under Attitude Adjustment.

diff --git a/target/linux/atheros/config-3.3 b/target/linux/atheros/config-3.3
index 524965f..c6cc59f 100644
--- a/target/linux/atheros/config-3.3
+++ b/target/linux/atheros/config-3.3
@@ -40,7 +40,6 @@ CONFIG_GENERIC_IRQ_SHOW=y
 CONFIG_GENERIC_PCI_IOMAP=y
 CONFIG_GPIOLIB=y
 CONFIG_GPIO_DEVICE=y
-CONFIG_GPIO_SYSFS=y
 # CONFIG_HAMRADIO is not set
 CONFIG_HARDWARE_WATCHPOINTS=y
 CONFIG_HAS_DMA=y
diff --git a/target/linux/atheros/patches-3.3/100-board.patch b/target/linux/atheros/patches-3.3/100-board.patch
index f51a59b..0d93dd8 100644
--- a/target/linux/atheros/patches-3.3/100-board.patch
+++ b/target/linux/atheros/patches-3.3/100-board.patch
@@ -1010,7 +1010,7 @@
 +#define AR2315_GPIO_INT_LVL_HIGH			2   /* High Level Triggered */
 +#define AR2315_GPIO_INT_LVL_EDGE			3   /* Edge Triggered */
 +
-+#define AR2315_RESET_GPIO       5
++#define AR2315_RESET_GPIO       0
 +#define AR2315_NUM_GPIO         22
 +
 +/*
@@ -2607,10 +2607,10 @@
 +		   (i == ar231x_board.config->resetConfigGpio))
 +			continue;
 +
-+		if(i == ar231x_board.config->sysLedGpio)
++		if(i == 2)
 +			strcpy(led_names[led], "wlan");
 +		else
-+			sprintf(led_names[led], "gpio%d", i);
++			continue;
 +
 +		ar2315_leds[led].name = led_names[led];
 +		ar2315_leds[led].gpio = i;

comment:11 Changed 4 years ago by ben@…

Here is the patch I use under trunk (with 3.10 kernel).

diff --git a/target/linux/atheros/patches-3.10/100-board.patch b/target/linux/atheros/patches-3.10/100-board.patch
index 96be80d..2d8ed85 100644
--- a/target/linux/atheros/patches-3.10/100-board.patch
+++ b/target/linux/atheros/patches-3.10/100-board.patch
@@ -1010,7 +1010,7 @@
 +#define AR2315_GPIO_INT_LVL_HIGH                      2   /* High Level Triggered */
 +#define AR2315_GPIO_INT_LVL_EDGE                      3   /* Edge Triggered */
 +
-+#define AR2315_RESET_GPIO       5
++#define AR2315_RESET_GPIO       0
 +#define AR2315_NUM_GPIO         22
 +
 +/*
@@ -2607,10 +2607,10 @@
 +                 (i == ar231x_board.config->resetConfigGpio))
 +                      continue;
 +
-+              if(i == ar231x_board.config->sysLedGpio)
++              if(i == 2)
 +                      strcpy(led_names[led], "wlan");
 +              else
-+                      sprintf(led_names[led], "gpio%d", i);
++                      continue;
 +
 +              ar2315_leds[led].name = led_names[led];
 +              ar2315_leds[led].gpio = i;

comment:12 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:13 Changed 3 years ago by anonymous

Hardware investigation reveals the EOC1650 board has an AND gate which will gate off the CS line to the flash chip when GPIO 3 is low. This blocks attempts to read or write the flash.

Early in the booting, the software should reserve GPIO 3 and configure it as an output and set it high. Presently the software assumes it is an LED and initializes it low to turn the LED off. Booting then fails because the JFFS filesystem is not accessible.

I've hardware modified mine to bypass the gate. This allows it to run the distribution 14.07rc3 binary directly. The hardware mod which seems simplest to do is to remove R159 and move it onto the blank pads for R161. These parts are on the other side of the board under the flash chip, so you will need to remove the internal antenna for access.

With the gate bypassed, GPIO 3 is a don't care to the flash chip and can be used for general purposes. It is available on pin 2 of U11.

comment:14 Changed 2 years ago by nouer3141gmail.com

eoc5610 light wlan stop

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.