Setting up wirless network adapter

Hi I’m new to Linux (Using openSUSE 11.1) and am having some issues setting up my usb wireless network adapter (Belkin N1). I’ve followed the instructions in the following thread. Ndiswrapper - openSUSE. The device driver appears to install properly when i run the command: ndiswrapper -l, i get the message that the driver and device have been detected. I’ve then tried to configure with Yast, but have not been able to set it up properly and connect to the internet. Any help would be greatly appreciated.

Lets check a few things.
Open a terminal window and enter these commands:

  1. lsusb
  2. rpm -qa | grep ndiswrapper
  3. uname -r
  4. ndiswrapper -l

And copy the dialogue you get in the terminal window back here.
And answer these questions:

  1. Did you use the windows 2000, xp or vista drivers?
  2. Did you use the drivers from the CD that came with the adapter?
  3. When you goto Yast → Network Devices → Network settings and highlight the card → edit → Hardware → Module Name: what’s in the frame of the drop-down box called Module Name.
  4. And click the drop-down arrow on Module Name to see if there’s another entry under the name that is showing first in the list. Is there or is there only the one entry?

That should tell us what the status is.

Hi thanks for the help, I’ve posted responses below. I used the XP driver version from the cd that came with network adapter.

  1. lsusb
    Bus 005 Device 004: ID 050d:805c Belkin Components
    Bus 005 Device 002: ID 0457:0151 Silicon Integrated Systems Corp. Super Flash 1GB / GXT 64MB Flash Drive
    Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 003: ID 04b4:120f Cypress Semiconductor Corp.
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

  2. rpm -qa|grep ndiswrapper
    ndiswrapper-1.53-12.36
    ndiswrapper-kmp-pae-1.53_2.6.27.7_9.1-12.36

  3. uname -r
    2.6.27.7-9-pae

4.ndiswrapper -l
rt2870 : driver installed
device (050D:805C) present

The module name box appears blank, and when i click on the drop down box this too is also blank.

You did everything right by the looks of things. Except perhaps in the Yast configuration. Check your configuration out against an example with screenshots like this one might help: Configure the Wireless Card Using Yast

I’ve checked the YAST configuration against whats in the link that you sent me. Everything appears to be right, however wireless adapter still not working. Any advice on what i should do now??

Looks bad for ndiswrapper. Try these console commands, all as the root user.
Try command:

modprobe ndiswrapper
Response is?
This is what an active wireless card returns from command iwconfig:

wlan0 IEEE 802.11bg ESSID:“abcdefgh”
Mode:Managed Frequency:2.452 GHz Access Point: 00:14:6C:3D:81:8A
Bit Rate=2 Mb/s Tx-Power=27 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:ABCDE-FG-HIJ Security mode:open
Power Management:off
Link Quality=48/100 Signal level:-70 dBm Noise level=-101 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

Try command:

ifup wlan0
Response is?
Try command:
ifconfig
Response is?

I just found a HowTo for the Ralink driver here:
Ralink RT2870 - Gentoo Linux Wiki
If ndiswrapper fails, as I think it will, you can think about that avenue.

1.modprobe ndiswrapper

no response

2.iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
pan0 no wireless extensions.

3.ifup wlan0
Interface wlan0 is not available

4.ifconfig
eth0 Link encap:Ethernet HWaddr 00:1F:D0:0A:20:62
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:221 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:214 errors:0 dropped:0 overruns:0 frame:0
TX packets:214 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16804 (16.4 Kb) TX bytes:16804 (16.4 Kb)

pan0 Link encap:Ethernet HWaddr 36:F0:43:6B:A1:A2
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

have also tried the other method that ou suggested, when i get to the make && make install i get the following response.

linux-fu3g:/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0 # make
make -C tools
make[1]: Entering directory /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/tools' gcc -g bin2h.c -o bin2h make[1]: gcc: Command not found make[1]: *** [all] Error 127 make[1]: Leaving directory /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/tools’
make: *** [build_tools] Error 2

linux-fu3g:/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0 # make install
make -C /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux -f Makefile.6 install
mkdir: cannot create directory /etc/Wireless': File exists make[1]: Entering directory /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux’
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
cp /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/RT2870STA.dat /etc/Wireless/RT2870STA/.
install -d /lib/modules/2.6.27.7-9-pae/kernel/drivers/net/wireless/
install -m 644 -c rt2870sta.ko /lib/modules/2.6.27.7-9-pae/kernel/drivers/net/wireless/
install: cannot stat rt2870sta.ko': No such file or directory make[1]: *** [install] Error 1 make[1]: Leaving directory /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux’
make: *** [install] Error 2

andrew 87 adjusted his/her tinfoil beanie to write:

>
> have also tried the other method that ou suggested, when i get to the
> make && make install i get the following response.
>
> linux-fu3g:/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0 # make
> make -C tools
> make[1]: Entering directory
> `/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/tools’

gcc -g bin2h.c -o bin2h
make[1]: gcc: Command not found
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
make[1]: *** [all] Error 127
make[1]: Leaving directory
`/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/tools’
> make: *** [build_tools] Error 2

Looks like you have not got the gcc compiler installed?


Mark

Nil illegitimi carborundum

linux-fu3g:/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0 # make
make -C tools
make[1]: Entering directory /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/tools' gcc -g bin2h.c -o bin2h make[1]: Leaving directory /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/tools’
/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/tools/bin2h
cp -f os/linux/Makefile.6 /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux/Makefile
make -C /lib/modules/2.6.27.7-9-pae/build SUBDIRS=/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux modules
make[1]: Entering directory /usr/src/linux-2.6.27.7-9-obj/i386/pae' make[1]: *** No rule to make target modules’. Stop.
make[1]: Leaving directory /usr/src/linux-2.6.27.7-9-obj/i386/pae' make: *** [LINUX] Error 2 linux-fu3g:/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0 # make install make -C /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux -f Makefile.6 install mkdir: cannot create directory /etc/Wireless’: File exists
make[1]: Entering directory /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux' rm -rf /etc/Wireless/RT2870STA mkdir /etc/Wireless/RT2870STA cp /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/RT2870STA.dat /etc/Wireless/RT2870STA/. install -d /lib/modules/2.6.27.7-9-pae/kernel/drivers/net/wireless/ install -m 644 -c rt2870sta.ko /lib/modules/2.6.27.7-9-pae/kernel/drivers/net/wireless/ install: cannot stat rt2870sta.ko’: No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux’
make: *** [install] Error 2

Have now installed gcc compiler, now when i run make and make run i get the following messages

I can’t help with these compilation errors. Hopefully someone else can. But if nobody takes up the challenge because they can’t see this old thread, then you should post a new thread about “errors when compiling a driver using gcc and make”, perhaps in forum “applications”.

Also be aware of the special modifications the Gentoo user made to the config files for this device.

andrew 87 adjusted his/her tinfoil beanie to write:

>
> linux-fu3g:/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0 # make
> make -C tools
> make[1]: Entering directory
> `/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/tools’

gcc -g bin2h.c -o bin2h
make[1]: Leaving directory
`/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/tools’
> /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/tools/bin2h
> cp -f os/linux/Makefile.6
> /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux/Makefile
> make -C /lib/modules/2.6.27.7-9-pae/build
> SUBDIRS=/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux
> modules


> make[1]: Entering directory `/usr/src/linux-2.6.27.7-9-obj/i386/pae’

make[1]: *** No rule to make target `modules’. Stop.


Have you got the kernel source installed and prepped for compiling
against?

If not then install through Yast the kernel source that matches your
running kernel, then as root:

cd /usr/src/linux
make cloneconfig
make prepare

Then try the rt compile again, but do a :

make clean

first in the dir to clear any extra files in there, then as user do:

…/configure
make

su to root and then:

make install

Unless the module needs anything else done to it.

Looking at swerdna post though it looks like it might not be that simple
I have not tried this src file so have no specific knowledge just the
basics of compiling modules against the running kernel with clean
sources and not one modified for other distros

HTH


Mark

Nil illegitimi carborundum

I’m not sure how to check if I’ve got the Kernell source installed? or how to go about installing it

open YaST; ok on that? if you click on programmes, and look for the system folder, and YaST (administrator settings) should be in there …

it will ask you for your substitute user, (also called root); password; enter that;

then

select software management;

click on “installed” button when it finally opens;
type in kernel in the filter section to the left, and see if kernel source comes out …

if not, click on , I think it is “available”; and look for kernel source, as Mark from N Wales suggests …

Yes I’ve checked and the kernel is installed, and have repeated the commands above but still no luck. Is it possible that it might be a problem with the firmware?

The rpm is “kernel-source”; you can check if it’s installed like this in a terminal window:

john@suse111:~> rpm -qa kernel-source
kernel-source-2.6.27.7-9.1

ok, turns out the kernel wasnt installed, have now looked through and made sure its installed.

linux-fu3g:/home/andrew # rpm -qa kernel-source
kernel-source-2.6.27.7-9.1

so i went back to the beginning and tried

linux-fu3g:/usr/src/linux # make cloneconfig
Cloning configuration file /proc/config.gz

configuration written to .config

linux-fu3g:/usr/src/linux # make prepare
scripts/kconfig/conf -s arch/x86/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/x86/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh

linux-fu3g:/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0 # make install

make -C /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux -f Makefile.6 install
mkdir: cannot create directory /etc/Wireless': File exists make[1]: Entering directory /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux’
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
cp /usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/RT2870STA.dat /etc/Wireless/RT2870STA/.
install -d /lib/modules/2.6.27.7-9-pae/kernel/drivers/net/wireless/
install -m 644 -c rt2870sta.ko /lib/modules/2.6.27.7-9-pae/kernel/drivers/net/wireless/
/sbin/depmod -a 2.6.27.7-9-pae
WARNING: Can’t read module /lib/modules/2.6.27.7-9-pae/weak-updates/updates/acx.ko: No such file or directory
make[1]: Leaving directory `/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux’

however now when i run iwconfig i get the following response.

linux-fu3g:/usr/src/rt2870/2008_0925_RT2870_Linux_STA_v1.4.0.0 # iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

pan0 no wireless extensions.

ra0 RT2870 Wireless ESSID:""
Mode:Auto Frequency=2.412 GHz
Link Quality=10/100 Signal level:0 dBm Noise level:-143 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

Also running ndiswrapper -l now returns

rt2870 : driver installed
device (050D:805C) present (alternate driver: rt2870sta)

Aslo now the light on my usb adapter seems to be flashing, which it had not been previously. Any advice on how to porceed from here?

rt2870 : driver installed
device (050D:805C) present (alternate driver: rt2870sta)

Aslo now the light on my usb adapter seems to be flashing, which it had not been previously. Any advice on how to porceed from here?
Well done. Great perseverance.

Now you uninstall Ndiswrapper. Here are the steps:

  1. In a console run this command as root: modprobe -r ndiswrapper
  2. Go back to Yast’s software module and uninstall the two RPMs
  3. Delete the folder ndiswrapper located at /etc/ndiswrapper
  4. Go to the directory /lib/modules/2.6.27.7-9-pae/misc/ and remove any modules relating to ndiswrapper

That’s a bit of an overkill, but I’m not sure exactly what the key elements are.
And I don’t know whether a reboot is necessary to unload any running modules because I don’t quite know what they are, so perhaps reboot too.

Then go into Yast → Network Devices and you should see the USB net device listed. Proceed to configure it similar to how you tried to configure Ndiswrapper.

ok steps 1,2 and 3 completed succesfully, as for step 4 there werent any modules that were obviously associated with ndiswrapper in that directory, so i didnt delete anything.

The USB device doesnt show up on network settings, although when i load this up this is when the network adapter seems to start flashing.

Have tried setting it up using the add button, although i’m not sure what to put for the module name (rt2870, rt2870sta, or something different??)