Have readme, still confused

I’m new to SUSE, familiar with 'nix. After fresh install of 11.2 KDE, I found the driver for my usb wifi card, just am a bit lost on compiling the source code, plus a few other things it asks for.

The linux package is here] at the bottom of the page if you would like to see the included files.

Here’s my confusion:

Build Instructions:

1> $tar -xvzf RT2870_Linux_STA_x.x.x.x.tgz
go to “./RT2870_Linux_STA_x.x.x.x” directory.

2> In Makefile
set the “MODE = STA” in Makefile and chose the TARGET to Linux by set “TARGET = LINUX”
define the linux kernel source include file path LINUX_SRC
modify to meet your need.

3> In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.
** Build for being controlled by NetworkManager or wpa_supplicant wext functions
Please set ‘HAS_WPA_SUPPLICANT=y’ and ‘HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y’.
=> #>cd wpa_supplicant-x.x
=> #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
** Build for being controlled by WpaSupplicant with Ralink Driver
Please set ‘HAS_WPA_SUPPLICANT=y’ and ‘HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n’.
=> #>cd wpa_supplicant-0.5.7
=> #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d

4> $make

compile driver source code

To fix “error: too few arguments to function ¡¥iwe_stream_add_event”

=> $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c

5> $cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat

6> load driver, go to “os/linux/” directory.
#[kernel 2.4]
# $/sbin/insmod rt2870sta.o
# $/sbin/ifconfig ra0 inet YOUR_IP up

#[kernel 2.6]
#    $/sbin/insmod rt2870sta.ko
#    $/sbin/ifconfig ra0 inet YOUR_IP up

7> unload driver
$/sbin/ifconfig ra0 down
$/sbin/rmmod rt2870sta

=======================================================================

I don’t think anything needs to be changed in item number 2 - it’s number 3 that is giving me the problems. Should I find this wpa_supplicant pkg? And number 4 ‘make’ command doesn’t do anything.

I’m not an expert source compiler, but i’m pretty good at following directions. Care to break this down a bit simpler for me? Many thanks

–Mahn

Here are the files so you don’t have to fetch. Sorry.

Sorry, but there’s a 15000 character limit = 3 posts

Driver module rt2870sta is already there. You don’t have to compile and build it.
Just do:

modprobe rt2870sta

Then, configure it.

Modprobe’d, dmesg stays the same, looking for the bin driver. Wireless networks are visible, but not connectable. Stalls out at ‘obtaining network ID’.

You sure I don’t have to compile it? I’ve read from the sticky about this driver that you do. Just not sure exactly how to ‘make’ it. Where i’ve tried, i’ve failed.

Should i try to find this ‘wpa_supplicant’ from my other OS that has net?

On 01/27/2010 11:56 AM, Mahngiel wrote:
>
> Modprobe’d, dmesg stays the same, looking for the bin driver. Wireless
> networks are visible, but not connectable. Stalls out at ‘obtaining
> network ID’.

Is that bin driver firmware? Please post the actual message.

> You sure I don’t have to compile it? I’ve read from the sticky about
> this driver that you do. Just not sure exactly how to ‘make’ it. Where
> i’ve tried, i’ve failed.

The sticky predates inclusion of the driver. You DO NOT have to build it any
more. Linux moves on, but the documentation lags behind.

> Should i try to find this ‘wpa_supplicant’ from my other OS that has
> net?

I’m sure that wpa_supplicant has already been installed.

First, thank you all for your time in this. I know from my time with Ubuntu wireless is one of the hardest and foremost problems. In my haste I didn’t look up my hardware before I bought it. Shame on me.

Here is some info I found that may help me solve this, again, thank you. (Colorized what i felt was pertinent)

Bus 001 Device 002: ID 148f:3070 Ralink Technology, Corp.

dmesg | grep firmware
   19.328996] rt2800usb 1-5:1.0: firmware: requesting rt2870.bin

hwinfo:
71: None 00.0: 10780 Network Interface
  [Created at net.124]
  Unique ID: agy+.GSopYcFr9cF
  Parent ID: wkjR.i+8+cNT5FUE
  SysFS ID: /class/net/wmaster0
  SysFS Device Link: /devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0
  Hardware Class: network interface
  Model: "Network Interface"
  Driver: "rt2800usb"
  Driver Modules: "rt2800usb"
  Device File: wmaster0
  HW Address: 00:02:6f:6f:6e:a5
  Link detected: yes
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #58 (WLAN controller)

72: None 00.0: 1070a WLAN
  [Created at net.124]
  Unique ID: AYEt.QXn1l67RSa1
  Parent ID: wkjR.i+8+cNT5FUE
  SysFS ID: /class/net/wlan0
  SysFS Device Link: /devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0
  Hardware Class: network interface
  Model: "WLAN network interface"
  Driver: "rt2800usb"
  Driver Modules: "rt2800usb"
  Device File: wlan0
  HW Address: 00:02:6f:6f:6e:a5
  Link detected: no
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #58 (WLAN controller)

Hardware info from YaST:
  112: udi = '/org/freedesktop/Hal/devices/usb_device_148f_3070_1_0_if0'
  usb.interface.number = 0 (0x0)
  usb.interface.class = 255 (0xff)
  usb.interface.subclass = 255 (0xff)
  usb.interface.protocol = 255 (0xff)
  usb.interface.description = '1.0'
  linux.hotplug_type = 2 (0x2)
  info.linux.driver = 'rt2800usb'
  linux.subsystem = 'usb'
  info.subsystem = 'usb'
  info.product = 'USB Vendor Specific Interface'
  info.udi = '/org/freedesktop/Hal/devices/usb_device_148f_3070_1_0_if0'
  usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0'
  usb.configuration_value = 1 (0x1)
  usb.num_configurations = 1 (0x1)
  usb.device_class = 0 (0x0)
  usb.device_subclass = 0 (0x0)
  usb.num_interfaces = 1 (0x1)
  usb.device_protocol = 0 (0x0)
  usb.product_id = 12400 (0x3070)
  usb.vendor = 'Ralink Technology, Corp.'
  usb.vendor_id = 5263 (0x148f)
  usb.device_revision_bcd = 257 (0x101)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0'
  info.parent = '/org/freedesktop/Hal/devices/usb_device_148f_3070_1_0'
  usb.num_ports = 0 (0x0)
  usb.max_power = 450 (0x1c2)
  usb.serial = '1.0'
  usb.linux.device_number = 2 (0x2)
  usb.version = 2.00000
  usb.speed = 480.000
  usb.can_wake_up = false
  usb.is_self_powered = false
  usb.product = 'USB Vendor Specific Interface'
  usb.bus_number = 1 (0x1)

  113: udi = '/org/freedesktop/Hal/devices/usb_device_148f_3070_1_0'
  info.vendor = 'Ralink Technology, Corp.'
  linux.hotplug_type = 2 (0x2)
  linux.subsystem = 'usb'
  info.linux.driver = 'usb'
  info.subsystem = 'usb_device'
  info.product = '802.11 n WLAN'
  info.udi = '/org/freedesktop/Hal/devices/usb_device_148f_3070_1_0'
  usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:12.2/usb1/1-5'
  usb_device.configuration_value = 1 (0x1)
  usb_device.num_configurations = 1 (0x1)
  usb_device.device_class = 0 (0x0)
  usb_device.device_subclass = 0 (0x0)
  usb_device.num_interfaces = 1 (0x1)
  usb_device.device_protocol = 0 (0x0)
  usb_device.product_id = 12400 (0x3070)
  usb_device.vendor = 'Ralink Technology, Corp.'
  usb_device.vendor_id = 5263 (0x148f)
  usb_device.device_revision_bcd = 257 (0x101)
  usb_device.max_power = 450 (0x1c2)
  usb_device.num_ports = 0 (0x0)
  usb_device.linux.device_number = 2 (0x2)
  usb_device.serial = '1.0'
  usb_device.speed = 480.000
  usb_device.version = 2.00000
  usb_device.is_self_powered = false
  usb_device.can_wake_up = false
  usb_device.bus_number = 1 (0x1)
  linux.device_file = '/dev/bus/usb/001/002'
  usb_device.product = '802.11 n WLAN'
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:12.2/usb1/1-5'
  info.parent = '/org/freedesktop/Hal/devices/usb_device_1d6b_2_0000_00_12_2'
58: USB 00.0: 0282 WLAN controller
  [Created at usb.122]
  UDI: /org/freedesktop/Hal/devices/usb_device_148f_3070_1_0_if0
  Unique ID: wkjR.i+8+cNT5FUE
  Parent ID: k4bc.YdoZZg0c8i6
  SysFS ID: /devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0
  SysFS BusID: 1-5:1.0
  Hardware Class: network
  Model: "Ralink 802.11 n WLAN"
  Hotplug: USB
  Vendor: usb 0x148f "Ralink Technology, Corp."
  Device: usb 0x3070 "802.11 n WLAN"
  Revision: "1.01"
  Serial ID: "1.0"
  Driver: "rt2800usb"
  Driver Modules: "rt2800usb"
  Device File: wlan0
  Features: WLAN
  Speed: 480 Mbps
  HW Address: 00:02:6f:6f:6e:a5
  Link detected: yes
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 2.467 2.472 2.484
  WLAN encryption modes: WEP40 WEP104 TKIP CCMP
  WLAN authentication modes: open sharedkey wpa-psk wpa-eap
  Module Alias: "usb:v148Fp3070d0101dc00dsc00dp00icFFiscFFipFF"
  Driver Info #0:
    Driver Status: rt2800usb is active
    Driver Activation Cmd: "modprobe rt2800usb"
  Driver Info #1:
    Driver Status: rt2870sta is active
    Driver Activation Cmd: "modprobe rt2870sta"
  Driver Info #2:
    Driver Status: rt3070sta is not active
    Driver Activation Cmd: "modprobe rt3070sta"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #51 (Hub)
71: None 00.0: 10780 Network Interface
  [Created at net.124]
  Unique ID: agy+.GSopYcFr9cF
  Parent ID: wkjR.i+8+cNT5FUE
  SysFS ID: /class/net/wmaster0
  SysFS Device Link: /devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0
  Hardware Class: network interface
  Model: "Network Interface"
  Driver: "rt2800usb"
  Driver Modules: "rt2800usb"
  Device File: wmaster0
  HW Address: 00:02:6f:6f:6e:a5
  Link detected: yes
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #58 (WLAN controller)

72: None 00.0: 1070a WLAN
  [Created at net.124]
  Unique ID: AYEt.QXn1l67RSa1
  Parent ID: wkjR.i+8+cNT5FUE
  SysFS ID: /class/net/wlan0
  SysFS Device Link: /devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0
  Hardware Class: network interface
  Model: "WLAN network interface"
  Driver: "rt2800usb"
  Driver Modules: "rt2800usb"
  Device File: wlan0
  HW Address: 00:02:6f:6f:6e:a5
  Link detected: no
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #58 (WLAN controller)

When trying to connect, it stalls out here:
http://i806.photobucket.com/albums/yy341/mahngiel/snapshot1.png

What is the output of the following:

su
iwconfig
iwlist scan

Sorry for the delay, i’ve been hacking at this.

mahngiel@linux-55gm:~> su
Password:
linux-55gm:/home/mahngiel # iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:“goesh”
Mode:Managed Frequency:2.412 GHz Access Point: 00:0F:61:FE:B3:B0
Bit Rate=1 Mb/s Tx-Power=16 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=70/70 Signal level=30 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

linux-55gm:/home/mahngiel # iwlist scan
lo Interface doesn’t support scanning.

eth0 Interface doesn’t support scanning.

wmaster0 Interface doesn’t support scanning.

wlan0 Scan completed :
Cell 01 - Address: 00:0F:61:FE:B3:B0
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=70/70 Signal level=27 dBm
Encryption key:off
ESSID:“goesh”
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
Mode:Master
Extra:tsf=0000022392458181
Extra: Last beacon: 138ms ago
IE: Unknown: 0005676F657368
IE: Unknown: 010482848B96
IE: Unknown: 030101

Looks like you do need the firmware, the dmesg output says so clearly.

Perform a search in the software installer for the file including “provides” and “file list”. You’ll see the package ‘kernel-firmware’. I just checked, it’s in there. So install it, reboot to make sure, and see if it works.

It sure it. But it was already installed. I put the driver in /lib/firmware, and it’s not being acknowledged. I have seen somewhere that i need to blacklist out the old driver, but I don’t know the file location for that in SUSE. I know where it is in Ubuntu though. :slight_smile:

I’m going to keep reading different people’s threads and howto’s. Either A) I figure out how to do it or B) I go and buy a new card.

You can verify if firmware was correctly loaded or not:

dmesg | grep 5 firmware

As far as I can see, your wireless is up.
What is the output of:

/sbin/ifconfig
/sbin/route

Again, sorry for the delay. I can confirm that I was able to get this wifi card up and active in Kubuntu after I blacklisted the 2800 driver. I’m not sure how I can do that in SUSE, the file locations are not parallel.

/etc/modprobe.d/50-blacklist.conf

Also read my previous post and post the result.