From: Art Martz on
I've been following the instructions posted at
http://madwifiwiki.thewebhost.de/wiki/Mandrake100AndDLinkDWLG520
to make and load drivers for my Netgear WG511T. I've done
cvs -z3 -d:pserver:anonymous(a)cvs.sourceforge.net:/cvsroot/madwifi co madwifi
urpmi kernel-source
urpmi libiw wireless-tools
ln -s /usr/src/linux-2.6.8.1-12mdk/ /lib/modules/2.6.8.1-12mdk/build
cd madwifi
make clean
make
make install
created /etc/sysconfig/network-scripts/ifcfg-ath0 and
echo "alias ath0 ath_pci" >> /etc/modules.conf
echo "alias ath0 ath_pci" >> /etc/modules
echo "alias ath0 ath_pci" >> /etc/modprobe.conf
depmod

however, after all this, modprobe ath_pci returns
FATAL: Module ath_pci not found.

Can anybody help get me back on track with this?




In case it is useful, the output from the makes was:

[root(a)localhost madwifi]# make clean
for i in ./ath_hal ath_rate/onoe ./net80211 ./ath; do \
(cd $i; make clean); \
done
make[1]: Entering directory `/home/art/madwifi/ath_hal'
rm -f *~ *.o *.ko *.mod.c
rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
rm -f ah_osdep.c opt_ah.h hal.o
make[1]: Leaving directory `/home/art/madwifi/ath_hal'
make[1]: Entering directory `/home/art/madwifi/ath_rate/onoe'
rm -f *~ *.o *.ko *.mod.c
rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
make[1]: Leaving directory `/home/art/madwifi/ath_rate/onoe'
make[1]: Entering directory `/home/art/madwifi/net80211'
rm -f *~ *.o *.ko *.mod.c
rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[1]: Leaving directory `/home/art/madwifi/net80211'
make[1]: Entering directory `/home/art/madwifi/ath'
rm -f *~ *.o *.ko *.mod.c
rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[1]: Leaving directory `/home/art/madwifi/ath'
rm -rf ./symbols


[root(a)localhost madwifi]# make
Checking if all requirements are met... ok.
mkdir -p ./symbols
for i in ./ath_hal ath_rate/onoe ./net80211 ./ath; do \
(cd $i; make) || exit 1; \
done
make[1]: Entering directory `/home/art/madwifi/ath_hal'
cp ./../hal/linux/ah_osdep.c ah_osdep.c
uudecode ./../hal/public/i386-elf.hal.o.uu
cp ./../hal/public/i386-elf.opt_ah.h opt_ah.h
make -C /lib/modules/2.6.8.1-12mdk/build
SUBDIRS=/home/art/madwifi/ath_hal
MODVERDIR=/home/art/madwifi/ath_hal/../symbols modules
make[2]: Entering directory `/usr/src/linux-2.6.8.1-12mdk'
CC [M] /home/art/madwifi/ath_hal/ah_osdep.o
LD [M] /home/art/madwifi/ath_hal/ath_hal.o
Building modules, stage 2.
MODPOST
CC /home/art/madwifi/ath_hal/ath_hal.mod.o
LD [M] /home/art/madwifi/ath_hal/ath_hal.ko
make[2]: Leaving directory `/usr/src/linux-2.6.8.1-12mdk'
make[1]: Leaving directory `/home/art/madwifi/ath_hal'
make[1]: Entering directory `/home/art/madwifi/ath_rate/onoe'
make -C /lib/modules/2.6.8.1-12mdk/build
SUBDIRS=/home/art/madwifi/ath_rate/onoe
MODVERDIR=/home/art/madwifi/ath_rate/onoe/../../symbols modules
make[2]: Entering directory `/usr/src/linux-2.6.8.1-12mdk'
CC [M] /home/art/madwifi/ath_rate/onoe/onoe.o
LD [M] /home/art/madwifi/ath_rate/onoe/ath_rate_onoe.o
Building modules, stage 2.
MODPOST
CC /home/art/madwifi/ath_rate/onoe/ath_rate_onoe.mod.o
LD [M] /home/art/madwifi/ath_rate/onoe/ath_rate_onoe.ko
make[2]: Leaving directory `/usr/src/linux-2.6.8.1-12mdk'
make[1]: Leaving directory `/home/art/madwifi/ath_rate/onoe'
make[1]: Entering directory `/home/art/madwifi/net80211'
make -C /lib/modules/2.6.8.1-12mdk/build
SUBDIRS=/home/art/madwifi/net80211
MODVERDIR=/home/art/madwifi/net80211/../symbols modules
make[2]: Entering directory `/usr/src/linux-2.6.8.1-12mdk'
CC [M] /home/art/madwifi/net80211/if_media.o
CC [M] /home/art/madwifi/net80211/rc4.o
CC [M] /home/art/madwifi/net80211/ieee80211.o
CC [M] /home/art/madwifi/net80211/ieee80211_crypto.o
CC [M] /home/art/madwifi/net80211/ieee80211_input.o
CC [M] /home/art/madwifi/net80211/ieee80211_node.o
CC [M] /home/art/madwifi/net80211/ieee80211_output.o
CC [M] /home/art/madwifi/net80211/ieee80211_proto.o
CC [M] /home/art/madwifi/net80211/ieee80211_wireless.o
CC [M] /home/art/madwifi/net80211/ieee80211_linux.o
CC [M] /home/art/madwifi/net80211/ieee80211_crypto_none.o
CC [M] /home/art/madwifi/net80211/ieee80211_acl.o
CC [M] /home/art/madwifi/net80211/ieee80211_crypto_ccmp.o
CC [M] /home/art/madwifi/net80211/ieee80211_crypto_tkip.o
CC [M] /home/art/madwifi/net80211/ieee80211_crypto_wep.o
CC [M] /home/art/madwifi/net80211/ieee80211_xauth.o
LD [M] /home/art/madwifi/net80211/wlan.o
LD [M] /home/art/madwifi/net80211/wlan_wep.o
LD [M] /home/art/madwifi/net80211/wlan_tkip.o
LD [M] /home/art/madwifi/net80211/wlan_ccmp.o
LD [M] /home/art/madwifi/net80211/wlan_acl.o
LD [M] /home/art/madwifi/net80211/wlan_xauth.o
Building modules, stage 2.
MODPOST
CC /home/art/madwifi/ath_rate/onoe/ath_rate_onoe.mod.o
LD [M] /home/art/madwifi/ath_rate/onoe/ath_rate_onoe.ko
CC /home/art/madwifi/net80211/wlan.mod.o
LD [M] /home/art/madwifi/net80211/wlan.ko
CC /home/art/madwifi/net80211/wlan_acl.mod.o
LD [M] /home/art/madwifi/net80211/wlan_acl.ko
CC /home/art/madwifi/net80211/wlan_ccmp.mod.o
LD [M] /home/art/madwifi/net80211/wlan_ccmp.ko
CC /home/art/madwifi/net80211/wlan_tkip.mod.o
LD [M] /home/art/madwifi/net80211/wlan_tkip.ko
CC /home/art/madwifi/net80211/wlan_wep.mod.o
LD [M] /home/art/madwifi/net80211/wlan_wep.ko
CC /home/art/madwifi/net80211/wlan_xauth.mod.o
LD [M] /home/art/madwifi/net80211/wlan_xauth.ko
make[2]: Leaving directory `/usr/src/linux-2.6.8.1-12mdk'
make[1]: Leaving directory `/home/art/madwifi/net80211'
make[1]: Entering directory `/home/art/madwifi/ath'
make -C /lib/modules/2.6.8.1-12mdk/build SUBDIRS=/home/art/madwifi/ath
MODVERDIR=/home/art/madwifi/ath/../symbols modules
make[2]: Entering directory `/usr/src/linux-2.6.8.1-12mdk'
CC [M] /home/art/madwifi/ath/if_ath.o
CC [M] /home/art/madwifi/ath/if_ath_pci.o
LD [M] /home/art/madwifi/ath/ath_pci.o
Building modules, stage 2.
MODPOST
CC /home/art/madwifi/ath/ath_pci.mod.o
LD [M] /home/art/madwifi/ath/ath_pci.ko
make[2]: Leaving directory `/usr/src/linux-2.6.8.1-12mdk'
make[1]: Leaving directory `/home/art/madwifi/ath'



[root(a)localhost madwifi]# make install
for i in ./ath_hal ath_rate/onoe ./net80211 ./ath; do \
(cd $i; make install) || exit 1; \
done
make[1]: Entering directory `/home/art/madwifi/ath_hal'
test -d //lib/modules/2.6.8.1-12mdkcustom/net || mkdir -p
//lib/modules/2.6.8.1-12mdkcustom/net
strip -S ath_hal.ko
cp ath_hal.ko //lib/modules/2.6.8.1-12mdkcustom/net
make[1]: Leaving directory `/home/art/madwifi/ath_hal'
make[1]: Entering directory `/home/art/madwifi/ath_rate/onoe'
test -d //lib/modules/2.6.8.1-12mdkcustom/net || mkdir -p
//lib/modules/2.6.8.1-12mdkcustom/net
strip -S ath_rate_onoe.ko
cp ath_rate_onoe.ko //lib/modules/2.6.8.1-12mdkcustom/net
make[1]: Leaving directory `/home/art/madwifi/ath_rate/onoe'
make[1]: Entering directory `/home/art/madwifi/net80211'
test -d //lib/modules/2.6.8.1-12mdkcustom/net || mkdir -p
//lib/modules/2.6.8.1-12mdkcustom/net
for i in wlan.o wlan_wep.o wlan_tkip.o wlan_ccmp.o wlan_acl.o
wlan_xauth.o; do \
f=`basename $i .o`; \
strip -S $f.ko; \
cp $f.ko //lib/modules/2.6.8.1-12mdkcustom/net; \
done
make[1]: Leaving directory `/home/art/madwifi/net80211'
make[1]: Entering directory `/home/art/madwifi/ath'
test -d //lib/modules/2.6.8.1-12mdkcustom/net || mkdir -p
//lib/modules/2.6.8.1-12mdkcustom/net
strip -S ath_pci.ko
cp ath_pci.ko //lib/modules/2.6.8.1-12mdkcustom/net
make[1]: Leaving directory `/home/art/madwifi/ath'
From: Dustin Surawicz on
Hi Art!

Am Fri, 11 Mar 2005 02:27:57 +0000 schrieb Art Martz:

> I've been following the instructions posted at
> http://madwifiwiki.thewebhost.de/wiki/Mandrake100AndDLinkDWLG520
> to make and load drivers for my Netgear WG511T. I've done
> cvs -z3 -d:pserver:anonymous(a)cvs.sourceforge.net:/cvsroot/madwifi co madwifi
> urpmi kernel-source
> urpmi libiw wireless-tools
> ln -s /usr/src/linux-2.6.8.1-12mdk/ /lib/modules/2.6.8.1-12mdk/build
> cd madwifi
> make clean
> make
> make install
> created /etc/sysconfig/network-scripts/ifcfg-ath0 and
> echo "alias ath0 ath_pci" >> /etc/modules.conf
> echo "alias ath0 ath_pci" >> /etc/modules
> echo "alias ath0 ath_pci" >> /etc/modprobe.conf
> depmod
>
> however, after all this, modprobe ath_pci returns
> FATAL: Module ath_pci not found.
>
> Can anybody help get me back on track with this?

Let's see. I've done this some time ago myself. Using the same card and it
works nicely.

[snip output make clean]

[snip output make]

> [root(a)localhost madwifi]# make install
> for i in ./ath_hal ath_rate/onoe ./net80211 ./ath; do \
> (cd $i; make install) || exit 1; \
> done
> make[1]: Entering directory `/home/art/madwifi/ath_hal'
> test -d //lib/modules/2.6.8.1-12mdkcustom/net || mkdir -p
> //lib/modules/2.6.8.1-12mdkcustom/net
> strip -S ath_hal.ko
> cp ath_hal.ko //lib/modules/2.6.8.1-12mdkcustom/net
^^^^^^^^^
Here it seems that you use a self-compiled kernel.

What yields # uname -a ?
Is it 2.6.8.1-12mdkcustom or 2.6.8.1-12mdk? If latter you might want to
copy the modules to this kernel version as well, otherwise they are not
found.

Before doing that, try to insert the module typing

# insmod /lib/modules/2.6.8.1-12mdkcustom/net/ath_pci.ko

If this does not return an error message it should work.

[snip rest of output]

Dustin

-------------------------

Please reply to "news [DOT] 10 [DOT] dsurawicz [AT] spamgourmet [DOT] com"

From: Art Martz on
Thanks so much for the help!

Dustin Surawicz wrote:
> Let's see. I've done this some time ago myself. Using the same card and it
> works nicely.
>(snip)
> What yields # uname -a ?
a uname -r returns 2.6.8.1-12mdk
(snip)

> # insmod /lib/modules/2.6.8.1-12mdkcustom/net/ath_pci.ko

this is where it got interesting. This said that ath_pci.ko was already
a file. Same results with ./madwifi/ath/ath_pci.ko. Still learning about
things like modprobe and insmod, I did an "info rmmod", and sure enough.
So I tried rmmod ath_pci.ko, and it executed without comment. Then I
tried the insmod ./madwifi/ath/ath_pci.ko, and it executed without
comment. An lsmod *finally* showed the ath_pci modules, and the lights
on the card are finally blinking back and forth like it does with WinXP.
I don't know if the problem was that I had tried the Mandrake madwifi
drivers before I compiled my own, or what. Any thoughts?

I'm not within range of a wireless router right now, but I was watching
the boot-time messages as it configured ath0. What I got was:

Determining IP information for ath0:
/sbin/dhclient-script line 12 3 command not found failed


I don't know if this is just what the dhcp process does when you are not
within range of a router to do the dhcp function, or if I've still got
another gremlin I've got to chase out. Comments?

Thanks again, Art
From: Art Martz on
Art Martz wrote:
> I'm not within range of a wireless router right now, but I was watching
> the boot-time messages as it configured ath0. What I got was:
>
> Determining IP information for ath0:
> /sbin/dhclient-script line 12 3 command not found failed
>
Well, I took a little drive over lunch to a near-by hotel that I knew
had wireless access, and *Success!*. It also turns out that the above
error message is linux's way of saying "I can't find a wireless router."
When within range, ath0 just configures, without any additional messages.

One thing I can't figure: under the winxp netgear utility, it shows
several access points available, of varying signal strengths. I think
they have transmitters on each floor, and I can pick up more than one of
them. With the netgear utility, I can see the signal strength of each,
and pick one to use. What would be the linux equivalent to doing this?
Each AP has a different SSID. I currently have "any" in the ssid field
in the ifcfg-ath0 record. I suppose I could put a specific name in the
ssid field, but what if you didn't know the available names? Is there
anything like netstumbler for linux?

Art
From: Dan C on
On Fri, 11 Mar 2005 19:24:45 +0000, Art Martz wrote:

> Each AP has a different SSID. I currently have "any" in the ssid field
> in the ifcfg-ath0 record. I suppose I could put a specific name in the
> ssid field, but what if you didn't know the available names? Is there
> anything like netstumbler for linux?

I think there is a graphical application for this included with KDE, but I
don't use KDE so can't recall the name... Using command line, you can try
(as root):

iwlist ath0 scanning

and/or

iwlist ath0 ap

--
If you're not on the edge, you're taking up too much space.
Linux Registered User #327951

 |  Next  |  Last
Pages: 1 2 3 4
Next: Burning software