OpenWrt Forum Archive

Topic: mi424wr & ath5k problem

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

Hi, forks
I got a problem, I have tried many times, but it could work.

I have a mi424wr, and I replace the wirelss card to ath5k(I have tried CM9, WLL4070-D50).
I have make sure selected the ath5k driver in "make menuconfig".

but the wireless cannot work.
I used https://svn.openwrt.org/openwr/trunk

dmesg is:

root@OpenWrt:/# dmesg
Linux version 2.6.28.9 (mi424wr@bogon) (gcc version 4.1.2) #1 Wed Mar 25 16:47:31 EDT 2009
CPU: XScale-IXP42x Family [690541c1] revision 1 (ARMv5TE), cr=000039ff
CPU: VIVT data cache, VIVT instruction cache
Machine: Intel IXDPG425
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 4096
free_area_init_node: node 0, pgdat c0200848, node_mem_map c0216000
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 0 pages used for memmap
  Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit
PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 14104KB available (1864K code, 146K data, 88K init)
Calibrating delay loop... 532.48 BogoMIPS (lpj=2662400)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 480 bytes
NET: Registered protocol family 16
IXP4xx: Using 16MiB expansion bus window size
PCI: IXP4xx is host
PCI: IXP4xx Using direct access for memory space
PCI: bus0: Fast back to back transfers enabled
NET: Registered protocol family 2
Switched to high resolution mode on CPU 0
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
IXP4xx Queue Manager initialized.
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 27
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
console [ttyS0] enabled
eth0: MII PHY 5 on NPE-B
eth1: MII PHY 4 on NPE-C
IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
IXP4XX-Flash.0: Found an alias at 0x800000 for the chip at 0x0
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
erase region 0: offset=0x0,size=0x20000,blocks=64
Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0x7e0000
5 RedBoot partitions found on MTD device IXP4XX-Flash.0
Creating 5 MTD partitions on "IXP4XX-Flash.0":
0x00000000-0x00060000 : "RedBoot"
0x00060000-0x00160000 : "linux"
0x00160000-0x007e0000 : "rootfs"
mtd: partition "rootfs_data" created automatically, ofs=2E0000, len=500000
0x002e0000-0x007e0000 : "rootfs_data"
0x007e0000-0x007ff000 : "FIS directory"
0x007ff000-0x00800000 : "RedBoot config"
i2c /dev entries driver
IXP4xx Watchdog Timer: heartbeat 60 sec
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>
XScale DSP coprocessor detected.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Mounted root (squashfs filesystem) readonly.
Freeing init memory: 88K
Please be patient, while OpenWrt loads ...
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
net eth0: firmware: requesting NPE-B
NPE-B: firmware's license can be found in /usr/share/doc/LICENSE.IPL
NPE-B: firmware functionality 0x2, revision 0x2:1
eth0: link down
device eth0 entered promiscuous mode
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
        (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
        (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
        (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (256 buckets, 1024 max)
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 2008-10-02 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, REGOPS_FUNC, 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_pci: trunk
root@OpenWrt:/# lsmod | grep ath
ath_pci               100612  0
ath_rate_minstrel       7808  0
ath_hal               265012  2 ath_pci,ath_rate_minstrel
wlan                  133060  9 ath_pci,wlan_xauth,wlan_wep,wlan_tkip,wlan_ccmp,wlan_acl,ath_rate_minstrel,wlan_scan_sta,wlan_scan_ap
ath5k                 134948  0
mac80211              165184  1 ath5k
cfg80211               49464  2 ath5k,mac80211
root@OpenWrt:/#

(Last edited by garibaldi on 26 Mar 2009, 01:14)

You haven't given much to go on. What is the problem? What have you tried?
Start easy by seeing if the atheros card works at all in managed mode. Can you list
nearby AP? Can you connect to them? Once you know it works you can tackle
master mode.

How did you build your kernel? What version of OpenWrt are you using?
The PHY settings don't look right.

Hi, cherry31459
thanks your reply.

I think I found the problem, it cause by PCI.

in

http://wiki.openwrt.org/OpenWrtDocs/Hardware/Actiontec/MI424-WR

give us the version of redboot(rb-mi424wr-[rom|ram]).

i have download them.
I upgrade MI424WR's bootloader use cli command "load -u http://192.168.1.2/rb-mi424wr-ROM.bin -r 0", reset device, it goto redboot cli shell. fine.
but I don't know the ROM redboot weather has som issue or my following has wrong.  execute "lspci" cli, redboot just found one PCI device(INTEL NPE?)

RAM version is ok. it found 6 PCI device(4, but network is failed

RedBoot> lspci
0:0:0   Vendor[8086] Device[8500] Type[00] Class[0b4000]
        BAR0: 00000008
        BAR1: 01000008
        BAR2: 02000008
        BAR3: 03000008
        BAR4: 80000008
        BAR5: 90000001
0:7:0   Vendor[17e6] Device[0010] Type[80] Class[020000]
0:7:1   Vendor[17e6] Device[0011] Type[80] Class[048000]
0:8:0   Vendor[168c] Device[001b] Type[00] Class[020000]
0:9:0   Vendor[17e6] Device[0010] Type[80] Class[020000]
0:9:1   Vendor[17e6] Device[0011] Type[80] Class[048000]
RedBoot> ip_addr
Sorry, networking is not available.
RedBoot>

so my method is that

fis init
load -r -b %{FREEMEMLO} -h 192.168.1.2 rb-mi424wr-RAM.img
fis create RedBootRAM
load -r -b %{FREEMEMLO} -h 192.168.1.2 openwrt-ixp4xx-squashfs.img
fis create rootfs
load -r -b %{FREEMEMLO} -h 192.168.1.2 openwrt-ixdpg425-zImage
fis create linux

fis load RedBootRAM
fis load linux
go

in busybox ash shell, I found wifi0 :-)

so I think mi424wr need a new version of RedBoot, it must found all PCI device first.

I'm trying build a new redboot now.

I use openwrt trunk branch
svn co https://svn.openwrt.org/openwrt/trunk

In wiki, it provide two .config, I have tried, but openwrt.config haven't selected IXDPG425 item, so the openwrt-ixdpg425-zImage will hang in MI424WR. in my version, I selected IXDPG425.

my image only found 16M memory :-(, I think it caused by redboot also. I have tried FreeBSD too. it show correct memeory 32M in MI424WR.

hi, cherry31459, is that right?

+
Trying NPE-B...[error] ixEthMiiPhyScan : unexpected Mii PHY17 ID 00221619
success. Using NPE-B with PHY 17.
Ethernet eth0: MAC address 00:03:47:df:32:ae
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 [ROM]
Non-certified release, version Jose-4 - built 12:24:13, Jan  2 2009

Platform: Actiontec MI424WR (IXP42X 533MHz) BE
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited

RAM: 0x00000000-0x02000000, [0x00029fb8-0x01fc1000] available
FLASH: 0x50000000-0x507fffff, 64 x 0x20000 blocks
RedBoot> fis list
Name              FLASH addr  Mem addr    Length      Entry point
RedBoot           0x50000000  0x50000000  0x00060000  0x00000000
RedBootRAM        0x50060000  0x00100000  0x00060000  0x00100040
rootfs            0x500C0000  0x0002A000  0x00260000  0x0002A000
linux             0x50320000  0x0017C800  0x00100000  0x0017C800
FIS directory     0x507E0000  0x507E0000  0x0001F000  0x00000000
RedBoot config    0x507FF000  0x507FF000  0x00001000  0x00000000
RedBoot>
RedBoot> lspci
0:0:0   Vendor[8086] Device[8500] Type[00] Class[0b4000]
        BAR0: 00000008
        BAR1: 01000008
        BAR2: 02000008
        BAR3: 03000008
        BAR4: 80000008
        BAR5: 90000001
RedBoot>
RedBoot> fis load redbootram
RedBoot> go
+
Trying NPE-B...[error] ixEthMiiPhyScan : unexpected Mii PHY17 ID 00221619
success. Using NPE-B with PHY 17.
Ethernet eth0: MAC address 00:03:47:df:32:ae
No IP info for device!

RedBoot(tm) bootstrap and debug environment [RAM]
Non-certified release, version Jose-4 - built 12:24:59, Jan  2 2009

Platform: Actiontec MI424WR (IXP42X 533MHz) BE
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited

RAM: 0x00000000-0x02000000, [0x0017c5b0-0x01fc1000] available
FLASH: 0x50000000-0x507fffff, 64 x 0x20000 blocks
RedBoot> lspci
0:0:0   Vendor[8086] Device[8500] Type[00] Class[0b4000]
        BAR0: 00000008
        BAR1: 01000008
        BAR2: 02000008
        BAR3: 03000008
        BAR4: 80000008
        BAR5: 90000001
0:7:0   Vendor[17e6] Device[0010] Type[80] Class[020000]
0:7:1   Vendor[17e6] Device[0011] Type[80] Class[048000]
0:8:0   Vendor[168c] Device[001b] Type[00] Class[020000]
0:9:0   Vendor[17e6] Device[0010] Type[80] Class[020000]
0:9:1   Vendor[17e6] Device[0011] Type[80] Class[048000]
RedBoot>
RedBoot> fis load linux
RedBoot> go
Uncompressing Linux.................................................................. done, booting the kernel.
Linux version 2.6.28.9HiWiFi-svn15044 (mi424wr@bogon) (gcc version 4.1.2) #2 Thu Mar 26 10:24:39 EDT 2009
CPU: XScale-IXP42x Family [690541c1] revision 1 (ARMv5TE), cr=000039ff
CPU: VIVT data cache, VIVT instruction cache
Machine: Intel IXDPG425
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit
PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 14120KB available (1848K code, 144K data, 88K init)
Calibrating delay loop... 532.48 BogoMIPS (lpj=2662400)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 480 bytes
NET: Registered protocol family 16
IXP4xx: Using 16MiB expansion bus window size
PCI: IXP4xx is host
PCI: IXP4xx Using direct access for memory space
PCI: bus0: Fast back to back transfers enabled
pci 0000:00:0d.0: dmabounce: registered device
pci 0000:00:0d.1: dmabounce: registered device
pci 0000:00:0e.0: dmabounce: registered device
pci 0000:00:0f.0: dmabounce: registered device
pci 0000:00:0f.1: dmabounce: registered device
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
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 27
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
console [ttyS0] enabled
IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0x7e0000
6 RedBoot partitions found on MTD device IXP4XX-Flash.0
Creating 6 MTD partitions on "IXP4XX-Flash.0":
0x00000000-0x00060000 : "RedBoot"
0x00060000-0x000c0000 : "RedBootRAM"
0x000c0000-0x00320000 : "rootfs"
mtd: partition "rootfs_data" created automatically, ofs=300000, len=20000
0x00300000-0x00320000 : "rootfs_data"
0x00320000-0x00420000 : "linux"
0x007e0000-0x007ff000 : "FIS directory"
0x007ff000-0x00800000 : "RedBoot config"
i2c /dev entries driver
IXP4xx Watchdog Timer: heartbeat 60 sec
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>
XScale DSP coprocessor detected.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Mounted root (squashfs filesystem) readonly.
Freeing init memory: 88K
Please be patient, while OpenWrt loads ...
- preinit -
Press CTRL-C for failsafe
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. jffs2: Too few erase blocks (1)



BusyBox v1.11.3 (2009-03-26 08:55:15 EDT) 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, r15044) -------------------
  * 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:/#

Wow! You're really making things much more difficult for yourself.

There are several problems. The partitions are not setup correctly. First, you don't RedBootRAM; it doesn't do anything for you other than take up space and slow the boot process. You need to delete the linux and rootfs partitions and recreate them. Important: create linux partition first! OpenWrt will use the FLASH space between the end of rootfs and the start of the next partition as a JFFS2 filesystem.
I'm not sure why you don't follow the instructions I posted on the wiki! Please explain.

Don't use openwrt-ixdpg425-zImage; you have an mi424-wr! So rebuild the kernel (using kernel_menuconfig) and select support for the mi424-wr. Then use the openwrt-ixp4xx-zImage to put on FLASH.

Hi, cherry31459

in the beginning, i followed the instruction in wiki of MI424WR. but I got some issue. the important is when re-flashing my zImage, the device should hang after uncompress, the POWER light wasn't change,  is "red & green",

+
Trying NPE-B...[error] ixEthMiiPhyScan : unexpected Mii PHY17 ID 00221619
success. Using NPE-B with PHY 17.
Ethernet eth0: MAC address 00:03:47:df:32:ae
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 [ROM]
Non-certified release, version Jose-4 - built 12:24:13, Jan  2 2009

Platform: Actiontec MI424WR (IXP42X 533MHz) BE
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited

RAM: 0x00000000-0x02000000, [0x00029fb8-0x01fc1000] available
FLASH: 0x50000000-0x507fffff, 64 x 0x20000 blocks
RedBoot> load -r -b %{FREEMEMLO} -h 192.168.1.2 openwrt-ixp4xx-zImage
Using default protocol (TFTP)
Raw file loaded 0x0002a000-0x0011af1f, assumed entry at 0x0002a000
RedBoot> go
Uncompressing Linux................................................................... done, booting the kernel.

so I think my "openwrt-ixp4xx-zImage" has some wrong.

I used the trunk version of openwrt. I have used "make kernel_menuconfig", but it hasn't the select item of MI424WR in "system type->Intel IXP4XX Implementation Options". the item can show in menu after execute "make V=99".

You need to select the MI424-WR in the ixp4xx->options yourself. Since support for it is not in the standard kernel, you need to let the openwrt build patch it in. So it may be that the MI424-WR  option will appear in "make kernel_menuconfig" after running "make".

Garibaldi , you have madwifi installed and then installed ath5k, it dosent work, should have only one of them, cause they are diferent modules for the same hardware .

(Last edited by Elphidium on 28 Nov 2009, 15:25)

The discussion might have continued from here.