Fenlig
Posts: 15
Joined: Tue May 29, 2012 4:38 am

Building my Rokland N3 drivers for my PI

Sun Jun 10, 2012 3:55 pm

Hey Guys,

I'm having issues building the drivers for my raspberry.

http://store.rokland.com/products/the-n ... r-macs-pcs

Im going through the instructions and getting lost, whenever run the make i get the following error:

Code: Select all

skay@raspberrypi:~/Linux/2008_0925_RT2870_Linux_STA_v1.4.0.0$ sudo make
[sudo] password for skay:
make -C tools
make[1]: Entering directory `/home/skay/Linux/2008_0925_RT2870_Linux_STA_v1.4.0.0/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/skay/Linux/2008_0925_RT2870_Linux_STA_v1.4.0.0/tools'
/home/skay/Linux/2008_0925_RT2870_Linux_STA_v1.4.0.0/tools/bin2h
cp -f os/linux/Makefile.6 /home/skay/Linux/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux/Makefile
make  -C  /lib/modules/3.1.9+/build SUBDIRS=/home/skay/Linux/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux modules
make[1]: Entering directory `/lib/modules/3.1.9+/build'
make[1]: *** No rule to make target `modules'.  Stop.
make[1]: Leaving directory `/lib/modules/3.1.9+/build'
make: *** [LINUX] Error 2
skay@raspberrypi:~/Linux/2008_0925_RT2870_Linux_STA_v1.4.0.0$
I'm pretty sure I am failing at configuring the os/linux/config.mk in part 3 of the instructions.

Anyone able to offer assistance?

Code: Select all

Build Instructions:
====================

1> $tar -xvzf DPB_RT2870_Linux_STA_x.x.x.x.tgz
    go to "./DPB_RT2870_Linux_STA_x.x.x.x" directory.

2> In Makefile
         set the "MODE = STA" in Makefile and chose the TARGET to Lin
ux 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_suppli
cant wext functions
           Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPP
LICANT_SUPPORT=y'.
           => #>cd wpa_supplicant-x.x
           => #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf
-d
        ** Build for being controlled by WpaSupplicant with Ralink Dr
iver
           Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPP
LICANT_SUPPORT=n'.
           => #>cd wpa_supplicant-0.5.7
           => #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.con
f -d

4> $make
        # compile driver source code
        # To fix "error: too few arguments to function ¡¥iwe_stream_a
dd_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

Fenlig
Posts: 15
Joined: Tue May 29, 2012 4:38 am

Re: Building my Rokland N3 drivers for my PI

Sun Jun 10, 2012 4:55 pm

looking in the Make file i see this

Code: Select all

ifeq ($(PLATFORM),PC)
# Linux 2.6
LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
#LINUX_SRC = /usr/src/linux-2.4
LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/
CROSS_COMPILE =
endif

Fenlig
Posts: 15
Joined: Tue May 29, 2012 4:38 am

Re: Building my Rokland N3 drivers for my PI

Sun Jun 10, 2012 7:36 pm

I can see the USB device but its just not working :(

Code: Select all

skay@raspberrypi:~/2010_0709_RT2870_Linux_STA_v2.4.0.1$ lsusb
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

skay@raspberrypi:~/2010_0709_RT2870_Linux_STA_v2.4.0.1$ sudo iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

Return to “General discussion”

Who is online

Users browsing this forum: No registered users and 29 guests