Modify

Opened 9 years ago

Closed 9 years ago

Last modified 4 years ago

#4082 closed defect (fixed)

atheros on ap43

Reported by: bartswinnen@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version:
Keywords: Cc:

Description

My atheros platform is not booting since moved from kernel 2.6.23 to 2.6.26.
Using the latest svn trunk version, I get this at boot time:

Copying image from flash to SDRAM ...
Linux version 2.6.26.5 (swinnenb@macbook) (gcc version 4.1.2) #1 Tue Oct 7 10:27:45 CEST 2008
CPU revision is: 0001800a (MIPS 4Kc)
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->     8192
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->     8192
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2 init=/etc/preinit root=/dev/mtdblock5 rw
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 128 (order: 7, 512 bytes)
console [ttyS0] enabled

After this it doesn't show anything else. Any idea where to look to get the atheros working again on a AP43 board (AR2313A + AR5112A)

Attachments (0)

Change History (11)

comment:1 Changed 9 years ago by Th0m4S

On my Dlink DIR300 with ar2317 disabling gpio in kernel resolve this problem so you can tray it.

comment:2 Changed 9 years ago by bartswinnen@…

Disabling gpio in kernel did not help for me :S

comment:3 Changed 9 years ago by juhosg

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with [12928].

comment:4 follow-up: Changed 9 years ago by anonymous

I've tried trunk version 12946 (and previous) with a Nanostation5 (AR2313) and I've got the following during boot time:

Linux version 2.6.26.5 (xevi@calaixdesastre) (gcc version 4.1.2) #2 Sat Oct 11 03:26:24 CEST 2008
CPU revision is: 0001800a (MIPS 4Kc)
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->     4096
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->     4096
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 64 (order: 6, 256 bytes)
console [ttyS0] enabled

And the unit hangs. Disabling gpio has not helped. Any ideas? So, I reopen the bug since it doesn't seem to be closed.

comment:5 Changed 9 years ago by xavier_martinez <xavier.martinez.llado@…>

I was the author of the last post. Sorry for the anonymous...

comment:6 in reply to: ↑ 4 Changed 9 years ago by juhosg

Replying to anonymous:

...

And the unit hangs. Disabling gpio has not helped. Any ideas? So, I reopen the bug since it doesn't seem to be closed.

Weird, works for me on LiteStation5:

+Ethernet eth1: MAC address 00:15:6d:b4:02:d7
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.50

RedBoot(tm) bootstrap and debug environment [ROM]
Ubiquiti Networks certified release, version 0.9.2.31 - built 03:54:12, Aug 19 2008

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

Board: Ubiquiti ar2313 based board
RAM: 0x80000400-0x80ff0400, [0x80000400-0x80fd1400] available
FLASH: 0xbe000000 - 0xbe3f0000, 64 blocks of 0x00010000 bytes each.
== Executing boot script in 5.000 seconds - enter ^C to abort
^C
RedBoot> urescue
TFTPD initialized on 192.168.1.1/255.255.255.0 port: 69 (Memory: [0x80004400-0x80fd1400])
TFTPD: waiting for connection...
TFTPD: Incoming connection from 192.168.1.50:3207
Received:  2032024 bytes
Firmware Version: XS5.ar2313.OpenWrt
Initializing default partitions for 4M flash size.
Created 'kernel' - base: 0xBFC30000, mem base; 0x80041000, entry: 0x80041000, size: 0x000B0000
Created 'rootfs' - base: 0xBFCE0000, mem base; 0xBE100000, entry: 0x00000000, size: 0x002E0000

Updating FIS directory!
... Erase from 0xbe3e0000-0xbe3f0000: .
... Program from 0x80fe0400-0x80ff0400 at 0xbe3e0000: .

Flashing partition 'kernel' (size: 0x000B0000, actual data: 0x000B0000)
... Erase from 0xbfc30000-0xbfce0000: ...........
... Program from 0x80004544-0x800b4544 at 0xbfc30000: ...........

Flashing partition 'rootfs' (size: 0x002E0000, actual data: 0x00140000)
... Erase from 0xbfce0000-0xbffc0000: ..............................................
... Program from 0x800b4584-0x801f4584 at 0xbfce0000: ....................
+Ethernet eth1: MAC address 00:15:6d:b4:02:d7
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.50

RedBoot(tm) bootstrap and debug environment [ROM]
Ubiquiti Networks certified release, version 0.9.2.31 - built 03:54:12, Aug 19 2008

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

Board: Ubiquiti ar2313 based board
RAM: 0x80000400-0x80ff0400, [0x80000400-0x80fd1400] available
FLASH: 0xbe000000 - 0xbe3f0000, 64 blocks of 0x00010000 bytes each.
== Executing boot script in 5.000 seconds - enter ^C to abort
RedBoot> cache off
RedBoot> fis load -d -e kernel
Trying LZMA decompression...
Image loaded from 0x80041000-0x8026e086
Image is not ELF, skipping ELF parsing...
RedBoot> go
Linux version 2.6.26.5 (juhosg@idared) (gcc version 4.1.2) #2 Sat Oct 11 12:14:11 CEST 2008
CPU revision is: 0001800a (MIPS 4Kc)
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->     4096
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->     4096
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 64 (order: 6, 256 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13644k/16384k available (1815k kernel code, 2740k reserved, 294k data, 120k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 484 bytes
NET: Registered protocol family 16
Radio config found at offset 0x2000(0x100)
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
ar531x: Registering GPIODEV device
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 26
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 $Revision: 1.90 $ 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xbc000003 (irq = 37) is a 16550A
eth0: Atheros AR231x: 00:15:6d:b4:02:d7, irq 4
ar2313_eth_mii: probed
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01)
physmap platform flash device: 00800000 at 1e000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
physmap-flash.0: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
Searching for RedBoot partition table in physmap-flash.0 at offset 0x3d0000
Searching for RedBoot partition table in physmap-flash.0 at offset 0x3e0000
6 RedBoot partitions found on MTD device physmap-flash.0
Creating 6 MTD partitions on "physmap-flash.0":
0x00000000-0x00030000 : "RedBoot"
0x00030000-0x000e0000 : "kernel"
0x000e0000-0x003e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=200000, len=1E0000
0x00200000-0x003e0000 : "rootfs_data"
0x003e0000-0x003ef000 : "FIS directory"
0x003ef000-0x003f0000 : "RedBoot config"
0x003f0000-0x00400000 : "boardconfig"
Registered led device: wlan
TCP vegas 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.
Freeing unused kernel memory: 120k freed
eth0: Configuring MAC for full duplex
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
Press CTRL-C for failsafe
mini_fo: using base directory: /
jffs2 not ready mini_fo: using storage directory: /tmp/root
yet; using ramdisk
- init -

Please press Enter to activate this console. device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 2008-10-02 (AR5212, AR5312, RF5111, RF5112, RF2316, RF2317, REGOPS_FUNC, TX_DESC_SWAP, DFS, XR)
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
wlan: mac acl policy registered
ath_ahb: trunk
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
ath_ahb: wifi0: Atheros 2313 WiSoC: mem=0xb8500000, irq=5
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: /jffs



BusyBox v1.11.2 (2008-10-07 16:43:17 CEST) 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
 KAMIKAZE (bleeding edge, r12951) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:/# uname -a
Linux OpenWrt 2.6.26.5 #2 Sat Oct 11 12:14:11 CEST 2008 mips unknown
root@OpenWrt:/# cat /proc/cpuinfo
system type             : Atheros AR2313
processor               : 0
cpu model               : MIPS 4Kc V0.10
BogoMIPS                : 179.81
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes
ASEs implemented        :
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

root@OpenWrt:/#

Did you run 'make target/linux/clean world'?

comment:7 follow-up: Changed 9 years ago by anonymous

maybe you ave different bootloader version? did both of you flash to 3.0 before flashing to openwrt?

comment:8 in reply to: ↑ 7 Changed 9 years ago by juhosg

Replying to anonymous:

maybe you ave different bootloader version? did both of you flash to 3.0 before flashing to openwrt?

I have flashed 'LS5.ar2313.v3.2.3734.080909.1637.bin' before. However i also tried LS5.2.2.1 and it works too.

comment:9 follow-up: Changed 9 years ago by xavier_martinez <xavier.martinez.llado@…>

With 'make target/linux/clean world' it worked. Sorry, my fault, but what is the difference between make world and make target/linux/clean world?

Thanks for your quick answers!

comment:10 in reply to: ↑ 9 Changed 9 years ago by juhosg

Replying to xavier_martinez <xavier.martinez.llado@gmail.com>:

With 'make target/linux/clean world' it worked. Sorry, my fault, but what is the difference between make world and make target/linux/clean world?

The changes in target/linux/*/ will not be applied automatically with 'make world'.

comment:11 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.