Mailinglist Archive: opensuse (1438 mails)

< Previous Next >
Re: [opensuse] Installing Madwifi
  • From: "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>
  • Date: Thu, 13 Nov 2008 23:48:05 -0600
  • Message-id: <491D1115.8070409@xxxxxxxxxxxxxxxxxx>
Andre den Oudsten wrote:
David C. Rankin schreef:
Andre den Oudsten wrote:

David C. Rankin schreef:

David C. Rankin wrote:


Andre den Oudsten wrote:


David C. Rankin schreef:


Andre den Oudsten wrote:










Andre

You got it running yet?



Not yet!!
From
rpm -Uvh madwifi-kmp-default-r3725+AR5007EG_2.6.25.5_1.1-2.2.x86_64

I got the message 'opening failed'

so I installed it again with Yast2, removed ath5k and got still the same
message:

missing Kernel device (eth0, wlan0)

so I can't come to the choice as you showed in your screenshot.

From Jimmy Pierre I learned

ifup wlan0 -o auto
and that reacted with:
Interface wlan0 is not available

Should that be the trouble?:
And how would I make that available?


André


No, with madwifi it would be ifup wifi0 -o auto anyway: see

11:02 alchemy~/linux/scripts/test> ifconfig | grep encap:
ath0 Link encap:Ethernet HWaddr 00:1B:9E:7C:F6:E7
eth0 Link encap:Ethernet HWaddr 00:1B:38:AF:36:B8
lo Link encap:Local Loopback
wifi0 Link encap:UNSPEC HWaddr
00-1B-9E-7C-F6-E7-00-00-00-00-00-00-00-00-00-00

linux-zpoq:/home/andredo # ifconfig | grep encap
eth0 Link encap:Ethernet HWaddr 00:1B:38:5B:9B:49
lo Link encap:Local Loopback

You're sure you tried manually creating ath0 with:

# wlanconfig ath0 create wlandev wifi0 wlanmode sta

unknown command
Show me again the output of lsmod | grep ath:

11:10 alchemy/home/david] # lsmod | grep ath
ath_rate_sample 31232 1
ath_pci 255168 0
wlan 265840 5
wlan_wep,wlan_scan_sta,ath_rate_sample,ath_pci
ath_hal 346896 3 ath_rate_sample,ath_pci

linux-zpoq:/home/andredo # lsmod | grep ath
ath_pci 255168 0
wlan 265840 1 ath_pci
ath_hal 346896 1 ath_pci
ath5k 118532 0
mac80211 220568 1 ath5k

and a current locate ath_pci.ko

linux-zpoq:/home/andredo # locate ath_pci.ko
bash: locate: command not found

[11:11 alchemy/home/david] # locate ath_pci.ko
/lib/modules/2.6.25.18-0.2-default/weak-updates/ath/ath_pci.ko
/lib/modules/2.6.25.5-1.1-default/updates/ath/ath_pci.ko
/usr/lib/debug/lib/modules/2.6.25.5-1.1-debug/updates/ath/ath_pci.ko.debug

and then an ls -al of the current ath_pci.ko file:

[11:12 alchemy/home/david] # ls -al
/lib/modules/2.6.25.18-0.2-default/weak-updates/ath/ath_pci.ko
lrwxrwxrwx 1 root root 56 2008-10-28 03:48
/lib/modules/2.6.25.18-0.2-default/weak-updates/ath/ath_pci.ko ->
/lib/modules/2.6.25.5-1.1-default/updates/ath/ath_pci.ko

and finally a ls -al of the link target:

[11:13 alchemy/home/david] # ls -al

linux-zpoq:/home/andredo # ls -al
totaal 188
drwxr-xr-x 28 andredo users 4096 nov 12 13:52 .
drwxr-xr-x 4 root root 4096 okt 28 17:26 ..
drwx------ 3 andredo users 4096 okt 28 11:05 .adobe
-rw------- 1 andredo users 257 nov 4 16:19 .bash_history
-rw-r--r-- 1 andredo users 1177 okt 27 21:21 .bashrc
drwx------ 7 andredo users 4096 nov 12 13:50 .beagle
drwxr-xr-x 3 andredo users 4096 okt 30 14:19 .config
drwx------ 3 andredo users 4096 okt 27 21:22 .dbus
-rw-r--r-- 1 andredo users 57 nov 12 08:45 .DCOPserver_linux-zpoq__0
lrwxrwxrwx 1 andredo users 39 nov 12 08:45 .DCOPserver_linux-zpoq_:0
-> /home/andredo/.DCOPserver_linux-zpoq__0
drwx------ 2 andredo users 4096 okt 30 17:49 Desktop
-rw------- 1 andredo users 26 okt 27 21:22 .dmrc
drwxr-xr-x 3 andredo users 4096 nov 10 15:03 Download
-rw-r--r-- 1 andredo users 1637 okt 27 21:21 .emacs
drwxr-xr-x 2 andredo users 4096 nov 3 20:43 .fontconfig
drwxr-xr-x 2 andredo users 4096 okt 27 21:22 .fonts
drwx------ 3 andredo users 4096 nov 12 08:45 .gconf
drwx------ 2 andredo users 4096 nov 12 08:46 .gconfd
drwxr-xr-x 22 andredo users 4096 nov 10 15:17 .gimp-2.4
drwx------ 3 andredo users 4096 nov 6 12:46 .gnome2
drwx------ 2 andredo users 4096 okt 28 10:57 .gnome2_private
drwx------ 3 andredo users 4096 okt 28 17:54 .gnupg
-rw------- 1 andredo users 197 nov 12 08:45 .ICEauthority
-rw-r--r-- 1 andredo users 861 okt 27 21:21 .inputrc
drwx------ 4 andredo users 4096 okt 28 19:18 .kde
drwx------ 3 andredo users 4096 okt 27 21:22 .kde4
drwx------ 3 andredo users 4096 okt 27 21:22 .local
drwx------ 3 andredo users 4096 okt 28 11:05 .macromedia
drwxr-xr-x 3 andredo users 4096 okt 27 21:36 .mcop
drwxr-xr-x 4 andredo users 4096 okt 28 17:28 .mozilla
drwx------ 3 andredo users 4096 nov 12 08:45 .ooo-2.0
-rw-r--r-- 1 andredo users 50 nov 3 20:42 .padminrc
-rw-r--r-- 1 andredo users 1028 okt 27 21:21 .profile
drwxr-xr-x 2 andredo users 4096 nov 12 08:45 .qt
-rw------- 1 andredo users 5637 nov 12 09:04 .recently-used
-rw-r--r-- 1 andredo users 2136 nov 6 16:59 .recently-used.xbel
drwxr-xr-x 2 andredo users 4096 okt 27 21:22 .skel
drwx------ 4 andredo users 4096 okt 28 19:47 .thumbnails
drwx------ 3 andredo users 4096 okt 28 17:28 .thunderbird
-rw-r--r-- 1 andredo users 615 okt 31 20:00 .ufrawrc
drwxr-xr-x 2 andredo users 4096 nov 12 08:45 .wapi
-rw------- 1 andredo users 214 nov 12 08:45 .Xauthority
-rw-r--r-- 1 andredo users 1940 okt 27 21:21 .xim.template
-rwxr-xr-x 1 andredo users 1446 okt 27 21:21 .xinitrc.template
-rw------- 1 andredo users 11423 nov 12 13:42 .xsession-errors

/lib/modules/2.6.25.5-1.1-default/updates/ath/ath_pci.ko
-rw-r--r-- 1 root root 430600 2008-06-18 12:51
/lib/modules/2.6.25.5-1.1-default/updates/ath/ath_pci.ko

I changed to
linux-zpoq:/home/andredo # cd /lib/modules
linux-zpoq:/lib/modules # ls -al
totaal 28
drwxr-xr-x 7 root root 4096 okt 31 13:14 .
drwxr-xr-x 12 root root 4096 okt 28 10:23 ..
drwxr-xr-x 2 root root 4096 okt 28 10:46 2.6.25.18-0.2-debug
drwxr-xr-x 4 root root 4096 nov 11 11:00 2.6.25.18-0.2-default
drwxr-xr-x 2 root root 4096 okt 28 10:46 2.6.25.18-0.2-lockdep
drwxr-xr-x 2 root root 4096 okt 28 10:46 2.6.25.18-0.2-xen
drwxr-xr-x 3 root root 4096 jun 18 19:51 2.6.25.5-1.1-default

At least with this exercise, we have found another possibility -- that
you are missing the sym link to weak updates

In Konquerer I found a line
/lib/modules/2.6.25.18-0.2-default/weak-updates/ath with a link to ath_pci.ko

Here ends again my knowledge

André


Andre,

I think I know what the problem is. You may have been bitten by the same
thing. If it is, we will have your wireless running in 5 minutes. First, you
will need to install make. IIRC you don't have that installed. So first as root:

zypper in make cmake automake unsermake

To confirm the problem I suspect, as root do:

cd /usr/src/linux
make mrproper

If you get something like this:

22:58 alchemy/usr/src/linux] # make mrproper
make: *** No rule to make target `mrproper'. Stop.

Problem confirmed. To fix the link problem, as root do:

cd /usr/src

The next are all ONE-LINE commands so make sure you copy them as one
line.
What I do is just copy from the email to kedit, then you can make it one-line
and then copy the confirmed one-line from kedit and paste it in the command
line:

if [[ -d linux-2.6.25.18-0.2 ]]; then ln -s linux-2.6.25.18-0.2 linux; else
echo "SOURCE NOT FOUND"; fi


if [[ -d linux-2.6.25.18-0.2-obj ]]; then ln -s linux-2.6.25.18-0.2-obj
linux-obj; else echo "SOURCE-OBJ NOT FOUND"; fi

If you get the NOT FOUND messages, then stop and post back to the list.
If the
sym links are created, then as root:

cd linux
make mrproper

If that works this time, then:

make cloneconfig > /dev/null 2>&1
make modules_prepare
make clean

Then install madwifi from the rpms and I will (almost) guarantee you
your
problem is solved.

If I'm right, what happened is the last kernel update failed to update
the
needed links in /usr/src to point to the latest kernel source and object
directories when the kernel was updated from 2.6.25.16-0.1 to 2.6.25.18-0.2.
This prevented the post-install scripts in the madwifi rpms from being able to
compile the ath_pci.ko kernel module needed to make your wireless work. Meaning
you were doing everything correctly to install madwifi, but were prevented from
doing so by 2 (two) little sym links in /usr/src. If this is confirmed, then
please add your comments to the bug I opened:

https://bugzilla.novell.com/show_bug.cgi?id=444912

We'll skin this cat yet!


--
David C. Rankin, J.D.,P.E. |
Rankin Law Firm, PLLC | Countdown for openSuSE 11.1
510 Ochiltree Street | http://counter.opensuse.org/11.1/small
Nacogdoches, Texas 75961 |
Telephone: (936) 715-9333 | openSoftware und SystemEntwicklung
Facsimile: (936) 715-9339 | http://www.opensuse.org/
www.rankinlawfirm.com |
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups