OpenWrt Forum Archive

Topic: openwrt and madwifi

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

Hi,

I recently got a WRT54G Rev. 1.0. This Revision has it's Wireless-Card plugged in on a Minipci Slot. Now I want to try removing this card and plugging a Minipci Card with Atheros Chipset (802.11a support).

The question is if the Minipci Slot is fully standard, so any Minipci Card would work. And second Question, were to get the ath_* modules for mips or how to compile.

Has anybody done such a project? Or could help me?

Thanks

tehlers

There is the necessary hal code published with the madwifi driver :

ls hal/public/ |grep mips
mips1-be-elf.hal.o.uu
mips1-be-elf.inc
mips1-be-elf.opt_ah.h
mips1-le-elf.hal.o.uu
mips1-le-elf.inc
mips1-le-elf.opt_ah.h
mips-be-elf.hal.o.uu
mips-be-elf.inc
mips-be-elf.opt_ah.h
mipsisa32-be-elf.hal.o.uu
mipsisa32-be-elf.inc
mipsisa32-be-elf.opt_ah.h
mipsisa32-le-elf.hal.o.uu
mipsisa32-le-elf.inc
mipsisa32-le-elf.opt_ah.h
mips-le-elf.hal.o.uu
mips-le-elf.inc
mips-le-elf.opt_ah.h

Just compile the driver using your x-compilator and the linksys kernel sources if needed.

Ok, I compiled the buildroot and put /hda5/wrt54g/buildroot/build_mipsel/staging_dir/bin into the path.

Then downloaded madwifi and tried:

make TARGET=mips-le-elf KERNELPATH=/hda5/wrt54g/buildroot/build_mipsel/WRT54GS/release/src/linux/linux

Checking if all requirements are met... FAILED
Please enable crypto API.
make: *** [configcheck] Fehler 1

So it seems CONFIG_CRYPTO=y is not possible for mips?

Who knows a solution?

thanks

tehlers

Effectively, there is no CRYPT support in the kernel for the MIPS architecture.

A way to solve it may be the backporting of the crypto API to the 2.4.20 kernel, but I don't think it is really easy. Maybe you can try.

A way to solve it may be the backporting of the crypto API to the 2.4.20 kernel, but I don't think it is really easy. Maybe you can try.

Already done : http://openwrt.org/forum/viewtopic.php?t=941

--
Nico

A way to solve it may be the backporting of the crypto API to the 2.4.20 kernel, but I don't think it is really easy. Maybe you can try.

Already done : http://openwrt.org/forum/viewtopic.php?t=941

--
Nico

Cool. Thanks for that. Now I have successfully compiled the modules.

But has anybody tried on Revision 1.0 another Minipci Card than the original? I don't want to spend 60 Euro for that before knowing, that the Card would work in the WRT...

thanks

tehlers

Hi,

now I've got a Minipci Atheros Card, capable of a/b/g (Super G). Wenn putting this card in the Minipci-Slot of the WRT. It hanging in a reset loop. It is booting and the it resets again.

This seems to be before init comes up. I put something on top of /etc/init.d/rcS and it seems to be not executed.

The AP is shortly pingable on it's IP set in nvram. Then resets.

The card is ok, I tested it in an notebook. So what could it be? Wenn I put a old 802.11b Minipci Card in the WRT, there is no problem. It is booting well and I can see it in /proc/pci.

Has anybody an idea?

Thanks

Have you got a logfile telling you what is precisly happening ?

Maybe it's a wireless extensions problem. Logging to another machine may be the solution. I don't know.

Have you got a logfile telling you what is precisly happening ?

Maybe it's a wireless extensions problem. Logging to another machine may be the solution. I don't know.

The Problem is, that I don't have done the serial mod. So I would see preboot messages. And as I told, it already resets before init. So the syslog is never startet...

Nico wrote:

A way to solve it may be the backporting of the crypto API to the 2.4.20 kernel, but I don't think it is really easy. Maybe you can try.

Already done : http://openwrt.org/forum/viewtopic.php?t=941

--
Nico

Is there a way to find were these old pointers actually point ??

tuzzer wrote:

Yes, just replace the "t" with "id":

http://openwrt.org/forum/viewtopic.php?id=941

Great thanks !!

tuzzer wrote:

Would be nice if it could be automated though...

How about: find /where_ever_forum-archives-reside  -name '*' -print|xargs perl -pi -e 's/viewtopic.php?t=/viewtopic.php?id=/g'

tehlers wrote:

Hi,

now I've got a Minipci Atheros Card, capable of a/b/g (Super G). Wenn putting this card in the Minipci-Slot of the WRT. It hanging in a reset loop. It is booting and the it resets again.

This seems to be before init comes up. I put something on top of /etc/init.d/rcS and it seems to be not executed.

The AP is shortly pingable on it's IP set in nvram. Then resets.

The card is ok, I tested it in an notebook. So what could it be? Wenn I put a old 802.11b Minipci Card in the WRT, there is no problem. It is booting well and I can see it in /proc/pci.

Has anybody an idea?

Thanks

I've made an openwrt image based on the latest experimental tree that includes support for wifi miniPCI cards such as senao, cisco and atheros and have the same problem you describe when I place an atheros card on the miniPCI slot.  The only way I came arround this problem for using an atheros with openwrt is to use an older firmware made by jaha2x.

The issue with the atheros not booting has been resolved.  You may check here for more info.

The discussion might have continued from here.