OpenWrt Forum Archive

Topic: DG834GB not working because of wlan

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

Hi, I compiled Kamikaze 10290 for AR7. I copied it to the router, but the router freeze at boot. the Last I see in my Serial is

...
- 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. PHY: fixed@100:1 - Link is Up - 10/Half
NET: Registered protocol family 8
NET: Registered protocol family 20
PPP generic driver version 2.4.2
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
acx: this driver is still EXPERIMENTAL
acx: reading README file and/or Craig's HOWTO is recommended, visit http://acx100.sf.net in case of further questions/discn
acx: compiled to use 32bit I/O access. I/O timing issues might occur, such as non-working firmware upload. Report them
acx: running on a little-endian CPU
acx: PCI/VLYNQ module v0.3.37 initialized, waiting for cards to probe...
acx: found TI TNETW1130-based wireless network card at vlynq0, irq:80, phymem:0x4000000, mem:0xa4000000
initial debug setting is 0x000A
using IRQ 80
acx: need to load firmware for acx111 chipset with radio ID 16, please provide via firmware hotplug:
acx: either one file only (<c>ombined firmware image file, radio-specific) or two files (radio-less base image file *plus*)
requesting firmware image 'tiacx111c16'

NowI can't use my Serial anymore, the router just freeze. I can only reboot. Any help?
Default wlan does not work (kmod-acx-mac80211). So what should I install that wlan is working?

Are you using the acx or acx-mac80211 driver? Try and build the image again, but without these kernel modules built in; i.e. build them as packages. Then install the package via ipkg *after* getting into the router and disabling their automatic start-up (look in /etc/modules.d I think). In this way you can insmod the module interactively and a) verify that it is actually this causing the crash b) pass debug=0xffff to the module to give more info about the crash.

Thanks for answering that fast.

nabcore wrote:

Are you using the acx or acx-mac80211 driver?

I tried both but same result!

pass debug=0xffff to the module to give more info about the crash.

How do I do that?

edit:

nabcore wrote:

Then install the package via ipkg *after* getting into the router and disabling their automatic start-up (look in /etc/modules.d I think).

There is nothing for wlan in "/etc/modules.d". If I install acx, I get the same error because it loads the module automaticly and I can't use the router anymore. Accept Installing again openwrt.

(Last edited by Oconnor on 28 Jan 2008, 20:42)

Ok, try commenting out the AUTOLOAD section in the respective makefile: trunk/package/{acx,acx-mac80211}/Makefile and rebuilding the package.

Hi, yesterday I played a little bit with building both driver.
First thing I recognized was than I compile Ti AR7 2.6 with Target Profile (Texas Instruments WiFi default)  it doesn't matter if I compile acx or mac-acx80211 in both cases the router (DG834GB v.1 and v.2) freeze.

Second thing was than I compile Ti AR7 2.6 with Target Profile (no wifi) but with acx driver the DG834GB v.2 is booting  but with mac-acx80211 the router still freeze.

How do I now configure wlan? "/etc/config/wireless" is empty, Can you show me your config? The wireless page in webif is also empty. Only "ifconfig -a" shows wlan0.

The Last thing I recognized was that the DG834GB Version 1 freeze every time, it doesn't matter if acx or mac-acx80211 or if Target Profile is "Texas Instruments WiFi default" or "no wifi".

I will compile the two driver without the line "AUTOLOAD:=$(call AutoLoad,50,acx)" and test them. But how do I  enable the debug mode?


Thanks for answering my questions.

Thomas

(Last edited by Oconnor on 30 Jan 2008, 12:55)

Oconnor wrote:

How do I now configure wlan? "/etc/config/wireless" is empty, Can you show me your config? The wireless page in webif is also empty. Only "ifconfig -a" shows wlan0.

I do something very non-standard; I use a series of iwconfig commands in /etc/init.d/rcS

iwconfig wlan0 essid mynetwork
iwconfig wlan0 key s:secret
iwconfig wlan0 mode master key restricted
iwconfig wlan0 channel 3
sleep 1
ifconfig wlan0 192.168.1.1 up

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -i ppp0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wlan0 -o ppp0 -j ACCEPT

The reason for this is in https://dev.openwrt.org/ticket/2988

Oconnor wrote:

I will compile the two driver without the line "AUTOLOAD:=$(call AutoLoad,50,acx)" and test them. But how do I  enable the debug mode?

cd /lib/modules/2.6.23.1/
insmod acx debug=0xffff

It is this debug output that will help work out why acx is crashing the router. You should then open a ticket and put this information in it.

(Last edited by nabcore on 30 Jan 2008, 16:22)

Thanks I will try that this weekend.

See also https://dev.openwrt.org/ticket/2559

acx and acx-mac80211 still hang my AR7.  I was using gcc 4.1 and I think maybe I should try 3.x to see if it makes a difference.

Unfortunately debug mode did not print out anything useful for me.  i.e. nothing that indicated what the problem is.  It's as if the code is poking the wrong register on the card or something and causing the router to hang.

Oconnor, what wireless chip do you have?  Mine is a TNETW1350A.

Wodin wrote:

Unfortunately debug mode did not print out anything useful for me.  i.e. nothing that indicated what the problem is.

Hi Woodin, is there any chance you can append this debug output to that ticket?

nabcore: If you insist, but it looks really useless to me.

Will do it after lunch.

I've added the debug=0xffff output to the ticket.

Have fun smile

Thanks Woodin!

See?  I told you it was useless wink

I've now tried compiling with gcc 3.4.6 to see if that makes a difference, but it does not.

Oconnor wrote:

Hi, I compiled Kamikaze 10290 for AR7. I copied it to the router, but the router freeze at boot. the Last I see in my Serial is

...
requesting firmware image 'tiacx111c16'

NowI can't use my Serial anymore, the router just freeze. I can only reboot. Any help?

I'm sure I had that exact crash happen to me once in my recent adventures!  The issue then seemed to go away, however.

(At least) the trunk version I built works with kmod-acx-mac80211:-
http://openwrt.enyc.org.uk/openwrt/trun … 25-r27771/
I also built a backfire version with the same 20110704 version of acx-mac80211:-
http://openwrt.enyc.org.uk/openwrt/back … 30-r27838/

It definitely works with TNETW1130(acx111) wireless (on DG834Gv2, should be the same on original DG834G), but NOT DG834Gv3(TNETW1350A).

The discussion might have continued from here.