Hi, I'm also interested by this driver !
Thank you Julien Le lundi 19 août 2013 14:10:13 UTC-4, [email protected] a écrit : > > Dear Jerrill, > > It looks like you have the driver file I need - any chance you could send > me your compiled driver file? > > It looks easier than the pain you went through to 'make it'., > > I can then just do the install. Post here would be useful for all of us > running round with the maplin wireless card! > > thank you - Andrew > > On Friday, 13 April 2012 04:24:00 UTC+1, Jerrill wrote: >> >> It looks like you don't have a driver on your system that supports your >> wlan card or that it isn't configured correctly. >> >> Run lsusb to get the VID:PID of your device. In my case it's 148f:5370. >> >> # lsusb >> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> Bus 001 Device 002: ID 148f:5370 Ralink Technology, Corp. >> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> >> You need to determine if a driver compatible with your device is on your >> system via the modules.alias file. >> >> # cat /lib/modules/3.2.14/modules.alias | grep "v148Fp5370" >> alias usb:v148Fp5370d*dc*dsc*dp*ic*isc*ip* rt2800usb >> >> NOTE: Your folder names may be different if you haven't updated lately. >> >> My system tells me that this VID:PID is supported by the rt2800usb >> module. I tried to make this module work, but wasn't ever successful. I >> ultimately cracked open the device, got the chip set ID, went to Ralink's >> website and downloaded the linux drivers specific to my device and learned >> how to build it. I had to blacklist the rt2800usb driver because it kept >> trying to load that one instead of the other when I inserted the usb wlan >> device. >> >> The ultimate goal is to get the CORRECT driver to show up automatically >> under lsmod when you insert the wlan device after a reboot: >> >> # lsmod >> Module Size Used by >> rt5370sta 566248 0 >> >> Once you get that far, then you have to get the network setting >> configured for your access point. Check back when you get there or if you >> get stuck on the way. >> >> Hope that helps, >> Jerrill >> >> On Friday, March 30, 2012 4:48:03 AM UTC-4, [email protected] wrote: >>> >>> hi jerill, >>> I'm new in linux especially BeagleBoard >>> I have BBxM rev C installed with angstrom kernel 3.0.4+ and want to >>> enable wireless adapter TP-Link TL-WN321G >>> but till now i couldnt do that, I begin to feel pain in my head now,, >>> >>> when I type ifconfig, it yields nothing for wlan, >>> and when I try to ifup wlan0, it shows : >>> >>> Error for wireless request "Set Mode" (8B06) : >>> SET failed on device wlan0 ; No such device. >>> Error for wireless request "Set Frequency" (8B04) : >>> SET failed on device wlan0 ; No such device. >>> Error for wireless request "Set ESSID" (8B1A) : >>> SET failed on device wlan0 ; No such device. >>> SIOCSIFADDR: No such device >>> wlan0: unknown interface: No such device >>> SIOCSIFNETMASK: No such device >>> SIOCGIFADDR: No such device >>> SIOCSIFBROADCAST: No such device >>> wlan0: unknown interface: No such device >>> Failed to bring up wlan0. >>> >>> it seems, angstrom couldnt generate the usb wireless. >>> thank you very much for your helping >>> >>> >>> Pada Kamis, 29 Desember 2011 2.55.09 UTC+7, Jerrill menulis: >>>> >>>> I copied the kernel source generated when I built the SD card image to >>>> the BeagleBone from the following folder: >>>> /home/jerrill/projects/angstrom/setup-scripts/build/tmp- >>>> angstrom_2010_x-eglibc/sysroots/beaglebone/kernel >>>> >>>> >>>> >>>> and created the /lib/modules/3.1.0+/build symlink to /usr/src/linux. >>>> >>>> >>>> >>>> Also there were a couple of binaries that wouldn't run on ARM and >>>> needed to be rebuilt as well because they were apparently built on the >>>> Ubuntu machine, but that was fairly trivial using gcc. make complained >>>> about them and I fixed them as they came up. >>>> >>>> >>>> >>>> At any rate, I was FINALLY able to build the driver on the BeagleBone >>>> board to get the rt5370sta.ko file I needed. I successfully used >>>> modprobe rt5370sta to install the module. >>>> >>>> >>>> >>>> Now, for the next problem... >>>> >>>> >>>> >>>> Immediately following a reboot without the wireless USB adapter >>>> plugged in, I get the following: >>>> >>>> >>>> >>>> root@beaglebone:~# lsmod >>>> >>>> Module Size Used by >>>> >>>> g_mass_storage 24072 0 >>>> >>>> ipv6 209417 14 >>>> >>>> root@beaglebone:~# >>>> >>>> >>>> >>>> After inserting the wireless USB adapter, I get the following: >>>> >>>> >>>> >>>> root@beaglebone:~# lsmod >>>> >>>> Module Size Used by >>>> >>>> arc4 1115 2 >>>> >>>> rt2800usb 11258 0 >>>> >>>> rt2800lib 34213 1 rt2800usb >>>> >>>> rt2x00usb 9197 1 rt2800usb >>>> >>>> rt2x00lib 32007 3 rt2800usb,rt2800lib,rt2x00usb >>>> >>>> mac80211 140379 3 rt2800lib,rt2x00usb,rt2x00lib >>>> >>>> cfg80211 120716 2 rt2x00lib,mac80211 >>>> >>>> rfkill 14301 1 cfg80211 >>>> >>>> rt5370sta 566248 0 >>>> >>>> g_mass_storage 24072 0 >>>> >>>> ipv6 209417 14 >>>> >>>> root@beaglebone:~# >>>> >>>> >>>> >>>> However, I still get the following: >>>> >>>> >>>> >>>> root@beaglebone:~# ifup wlan0 >>>> >>>> [ 161.181627] phy0 -> rt2x00lib_request_firmware: Error - Failed >>>> to request Firmware.Could not set interface wlan0 flags: No such file >>>> or directoryFailed to initialize driver interface >>>> >>>> [ 161.232083] phy0 -> rt2x00lib_request_firmware: Error - Failed >>>> to request Firmware.ifconfig: SIOCSIFFLAGS: No such file or directory >>>> >>>> root@beaglebone:~# >>>> >>>> >>>> >>>> So, it looks like it's still loading the wrong driver for the device >>>> IN ADDITION to the correct one. This is the next problem I have to >>>> educate myself on how to resolve. If anyone has any advice on where to >>>> head to resolve this to save me some searching and self-education I'd >>>> appreciate it. If not, I'll report back when I get it figured out to >>>> hopefully save someone else a few days worth of work. >>>> >>>> >>>> >>>> Thanks in advance. >>>> >>>> Jerrill >>>> On Dec 27, 10:08 pm, Jerrill <[email protected]> wrote: >>>> > I decided to give cross-compiling the module on my Ubuntu machine a >>>> > shot. >>>> > >>>> > I started off getting the Angstrom SD card image to build to confirm >>>> > that things are working: >>>> > >>>> > Install Bitbake from the Ubuntu Software Center >>>> > sudo apt-get install build-essential >>>> > sudo apt-get install diffstat >>>> > sudo apt-get install texi2html >>>> > sudo apt-get install texinfo >>>> > sudo apt-get install gawk >>>> > sudo apt-get install chrpath >>>> > sudo apt-get install lzop >>>> > mkdir angstrom >>>> > cd angstrom >>>> > git clone git://git.angstrom-distribution.org/setup-scripts >>>> > cd setup-scripts >>>> > git checkout origin/oe-core -b oe-core >>>> > ./oebb.sh config beaglebone >>>> > MACHINE=beaglebone ./oebb.sh bitbake systemd-image >>>> > MACHINE=beaglebone ./oebb.sh bitbake virtual/kernel >>>> > >>>> > I was also able to use Bitbake to compile a simple "Hello, World!" >>>> > application that was was able to load and execute on the BeagleBone. >>>> > >>>> > So I tried to build a Bitbake recipe around the Makefile for the >>>> > driver build. Here it is: >>>> > >>>> > DESCRIPTION = "RT5370 Kernel Module" >>>> > SECTION = "kernel/modules" >>>> > PRIORITY = "optional" >>>> > LICENSE = "CLOSED" >>>> > RDEPENDS = "kernel (${KERNEL_VERSION})" >>>> > DEPENDS = "virtual/kernel" >>>> > PR = "r0" >>>> > SRC_URI = "" >>>> > S = "${WORKDIR}" >>>> > inherit module >>>> > >>>> > When I run it I get the following: >>>> > >>>> > jerrill@JerrillUbuntuLT:~/projects/angstrom/setup-scripts$ bitbake >>>> > rt5370 >>>> > Loading cache: 100% |###########################################| >>>> > ETA: 00:00:00 >>>> > Loaded 1891 entries from dependency cache. >>>> > Parsing recipes: 100% |#########################################| >>>> > Time: 00:00:01 >>>> > Parsing of 1467 .bb files complete (1466 cached, 1 parsed). 1889 >>>> > targets, 76 skipped, 0 masked, 0 errors. >>>> > >>>> > OE Build Configuration: >>>> > BB_VERSION = "1.15.0" >>>> > TARGET_ARCH = "arm" >>>> > TARGET_OS = "linux-gnueabi" >>>> > MACHINE = "beaglebone" >>>> > DISTRO = "angstrom" >>>> > DISTRO_VERSION = "v2011.12-core" >>>> > TUNE_FEATURES = "armv7a vfp neon cortexa8" >>>> > TARGET_FPU = "vfp-neon" >>>> > meta-angstrom = "master:f0f99ea3cd132a6a69a9f4bad22da55403f9f940" >>>> > meta-oe >>>> > meta-efl >>>> > meta-gpe >>>> > meta-gnome >>>> > meta-xfce = "master:2642db3615ea2d4196b9c73537d9ebff6c57de2d" >>>> > meta-ti = "master:1f506217992776b7f07983240e497cf6e068fc80" >>>> > meta-ettus = "master:f097bb61772d07610d84a668dc19a47e180962b3" >>>> > meta-efikamx = "master:2ef47fdd4e8232d766c0c63d9427253ee56e31d0" >>>> > meta-nslu2 = "master:17853811179f2760791c6b138f96e9dd15493517" >>>> > meta-htc >>>> > meta-nokia >>>> > meta-openmoko >>>> > meta-palm = "master:0166243d2bc87124c8db2868b57df5d166f9ffaa" >>>> > meta-sugarbay >>>> > meta-crownbay >>>> > meta-emenlow >>>> > meta-fishriver >>>> > meta-jasperforest >>>> > meta-n450 = "master:7c3db7010479970f3f92501349827c517de3c36a" >>>> > meta = "master:8f348ccad083d6c02c200652ff6295e701e88f0d" >>>> > >>>> > NOTE: Resolving any missing task queue dependencies >>>> > NOTE: Preparing runqueue >>>> > NOTE: Executing SetScene Tasks >>>> > NOTE: Executing RunQueue Tasks >>>> > NOTE: Running task 1100 of 1109 (ID: 8, /home/jerrill/projects/ >>>> > >>>> angstrom/setup-scripts/sources/openembedded-core/meta/recipes-jerrill/ >>>> > rt5370/rt5370_0.0.bb, do_compile) >>>> > NOTE: package rt5370-0.0-r0: task do_compile: Started >>>> > ERROR: Function 'do_compile' failed (see /home/jerrill/projects/ >>>> > angstrom/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/ >>>> > beaglebone-angstrom-linux-gnueabi/rt5370-0.0-r0/temp/log.do_compile. >>>> > 17742 for further information) >>>> > ERROR: Logfile of failure stored in: /home/jerrill/projects/angstrom/ >>>> > setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beaglebone- >>>> > angstrom-linux-gnueabi/rt5370-0.0-r0/temp/log.do_compile.17742 >>>> > Log data follows: >>>> > | ERROR: Function 'do_compile' failed (see /home/jerrill/projects/ >>>> > angstrom/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/ >>>> > beaglebone-angstrom-linux-gnueabi/rt5370-0.0-r0/temp/log.do_compile. >>>> > 17742 for further information) >>>> > | + cd /home/jerrill/projects/angstrom/setup-scripts/build/tmp- >>>> > angstrom_2010_x-eglibc/work/beaglebone-angstrom-linux-gnueabi/ >>>> > rt5370-0.0-r0 >>>> > | + do_compile >>>> > | + module_do_compile >>>> > | + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS >>>> > | + oe_runmake KERNEL_PATH=/home/jerrill/projects/angstrom/setup- >>>> > scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/beaglebone/kernel >>>> > KERNEL_SRC=/home/jerrill/projects/angstrom/setup-scripts/build/tmp- >>>> > angstrom_2010_x-eglibc/sysroots/beaglebone/kernel >>>> > KERNEL_VERSION=3.1.0+ 'CC=arm-angstrom-linux-gnueabi-gcc -mno-thumb- >>>> > interwork -marm -mno-thumb-interwork -mno-thumb' 'LD=arm-angstrom- >>>> > linux-gnueabi-ld ' 'AR=arm-angstrom-linux-gnueabi-ar ' >>>> > | + '[' xmake = x ']' >>>> > | + bbnote make -j2 -e MAKEFLAGS= KERNEL_PATH=/home/jerrill/projects/ >>>> > angstrom/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/ >>>> > beaglebone/kernel KERNEL_SRC=/home/jerrill/projects/angstrom/setup- >>>> > scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/beaglebone/kernel >>>> > KERNEL_VERSION=3.1.0+ 'CC=arm-angstrom-linux-gnueabi-gcc -mno-thumb- >>>> > interwork -marm -mno-thumb-interwork -mno-thumb' 'LD=arm-angstrom- >>>> > linux-gnueabi-ld ' 'AR=arm-angstrom-linux-gnueabi-ar ' >>>> > | + echo 'NOTE: make -j2 -e MAKEFLAGS= KERNEL_PATH=/home/jerrill/ >>>> > projects/angstrom/setup-scripts/build/tmp-angstrom_2010_x-eglibc/ >>>> > sysroots/beaglebone/kernel >>>> KERNEL_SRC=/home/jerrill/projects/angstrom/ >>>> > setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/beaglebone/ >>>> > kernel KERNEL_VERSION=3.1.0+ CC=arm-angstrom-linux-gnueabi-gcc -mno- >>>> > thumb-interwork -marm -mno-thumb-interwork -mno-thumb >>>> LD=arm-angstrom- >>>> > linux-gnueabi-ld AR=arm-angstrom-linux-gnueabi-ar ' >>>> > | NOTE: make -j2 -e MAKEFLAGS= KERNEL_PATH=/home/jerrill/projects/ >>>> > angstrom/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/ >>>> > beaglebone/kernel KERNEL_SRC=/home/jerrill/projects/angstrom/setup- >>>> > scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/beaglebone/kernel >>>> > KERNEL_VERSION=3.1.0+ CC=arm-angstrom-linux-gnueabi-gcc -mno-thumb- >>>> > interwork -marm -mno-thumb-interwork -mno-thumb >>>> LD=arm-angstrom-linux- >>>> > gnueabi-ld AR=arm-angstrom-linux-gnueabi-ar >>>> > | + make -j2 -e MAKEFLAGS= >>>> KERNEL_PATH=/home/jerrill/projects/angstrom/ >>>> > setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/beaglebone/ >>>> > kernel >>>> KERNEL_SRC=/home/jerrill/projects/angstrom/setup-scripts/build/ >>>> > tmp-angstrom_2010_x-eglibc/sysroots/beaglebone/kernel >>>> > KERNEL_VERSION=3.1.0+ 'CC=arm-angstrom-linux-gnueabi-gcc -mno-thumb- >>>> > interwork -marm -mno-thumb-interwork -mno-thumb' 'LD=arm-angstrom- >>>> > linux-gnueabi-ld ' 'AR=arm-angstrom-linux-gnueabi-ar ' >>>> > | make: *** No targets specified and no makefile found. Stop. >>>> > | + die 'oe_runmake >>>> > NOTE: package rt5370-0.0-r0: task do_compile: Failed >>>> > ERROR: Task 8 (/home/jerrill/projects/angstrom/setup-scripts/sources/ >>>> > openembedded-core/meta/recipes-jerrill/rt5370/rt5370_0.0.bb, >>>> > do_compile) failed with exit code '1' >>>> > ERROR: '/home/jerrill/projects/angstrom/setup-scripts/sources/ >>>> > openembedded-core/meta/recipes-jerrill/rt5370/rt5370_0.0.bb' failed >>>> > jerrill@JerrillUbuntuLT:~/projects/angstrom/setup-scripts$ >>>> > >>>> > It appears that it isn't copying the source from the source folder to >>>> > the build folder. But I'm still trying to figure out the problem. I'm >>>> > sure it has to do with the SRC_URI value, but even when I specify the >>>> > Makefile, it doesn't seem to get copied. >>>> > >>>> > Thanks for any input anyone can offer! >>>> > Jerrill >>>> > >>>> > On Dec 23, 10:44 pm, Jerrill <[email protected]> wrote: >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > > I cracked open the USB dongle and confirmed that the chip set used >>>> was >>>> > > indeed the Ralink RT5370. There was some confusion online about the >>>> > > chip set used for this manufacturer part number. It appears that >>>> the >>>> > > manufacturer had used other chip sets (including Realtek) for the >>>> same >>>> > > part number, but the Ralink RT5370 is definitely what I have. >>>> > >>>> > > So, I proceeded to successfully build and install the drivers on my >>>> > > Ubuntu 11.10 machine as follows: >>>> > >>>> > > 1) make the following edits to /os/linux/config.mk >>>> > > HAS_WPA_SUPPLICANT=y' >>>> > > HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y >>>> > >>>> > > 2) sudo su >>>> > >>>> > > 3) make >>>> > >>>> > > 4) make install >>>> > >>>> > > 5) modprobe rt5370sta >>>> > >>>> > > 6) ifconfig -a >>>> > >>>> > > ... >>>> > > ra0 Link encap:Ethernet HWaddr [redacted MAC address] >>>> > > inet6 addr: [redacted IPv6 Address] Scope:Link >>>> > > 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:828 (828.0 B) TX bytes:1600 (1.6 KB) >>>> > > ... >>>> > >>>> > > 7) iwlist ra0 scan >>>> > >>>> > > ra0 Scan completed : >>>> > > Cell 01 - Address: 00:11:50:58:D9:27 >>>> > > Protocol:802.11b/g >>>> > > ESSID:[my SSID quoted with spaces] >>>> > > Mode:Managed >>>> > > Frequency:2.437 GHz (Channel 6) >>>> > > Quality=83/100 Signal level=-57 dBm Noise >>>> > > level=-92 dBm >>>> > > Encryption key:on >>>> > > Bit Rates:54 Mb/s >>>> > > IE: IEEE 802.11i/WPA2 Version 1 >>>> > > Group Cipher : CCMP >>>> > > Pairwise Ciphers (1) : CCMP >>>> > > Authentication Suites (1) : PSK >>>> > > ... >>>> > >>>> > > So, now back to the BeagleBone... When I try to reproduce this on >>>> the >>>> > > BeagleBone I get the following: >>>> > >>>> > > root@beaglebone:~/drivers/wlan/rt5370# make >>>> > > make -C tools >>>> > > make[1]: Entering directory `/home/root/drivers/wlan/rt5370/tools' >>>> > > gcc -g bin2h.c -o bin2h >>>> > > make[1]: Leaving directory `/home/root/drivers/wlan/rt5370/tools' >>>> > > /home/root/drivers/wlan/rt5370/tools/bin2h >>>> > > cp -f os/linux/Makefile.6 /home/root/drivers/wlan/rt5370/os/linux/ >>>> > > Makefile >>>> > > make -C /lib/modules/3.1.0+/build SUBDIRS=/home/root/drivers/wlan/ >>>> > > rt5370/os/linux modules >>>> > > make: *** /lib/modules/3.1.0+/build: No such file or directory. >>>> Stop. >>>> > > make: *** [LINUX] Error 2 >>>> > > root@beaglebone:~/drivers/wlan/rt5370# >>>> > >>>> > > Looking at this file location, I see the following...... >>>> > >>>> > read more » >>> >>> -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
