OrangePi

title: Ralink wifi cards [Print this page]

Author: giaur500    time: 2015-10-5 05:46
title: Ralink wifi cards
Hi,

Tried to use ralink based card but no success. I installed firmware-ralink package but dmesg still is saying that firmware is missing.

The file it's looking for is present. What's the problem? Kernel driver bug?
Author: rosimildo    time: 2015-10-7 18:29
Yes, I am facing similar problem. Somehow the kernel is not able to find "Firmwares" and I think it is a user mode thing that is missing on the image.
Author: giaur500    time: 2015-10-12 02:13
Damn... I thought that all drivers included in this specific kernel version should work. No I can see I was very wrong. Every hardware I have ever tried was not working, except mouse, keyboard or storage. Even if appropriate module is present in kernel.

Sadly, OrangePI hardware is indeed great but software seems to be very poor. Old and broken kernel... not nice.
Author: moinejf    time: 2015-10-14 16:22
giaur500 replied at 2015-10-12 02:13
Damn... I thought that all drivers included in this specific kernel version should work. No I can se ...

There are 2 different problems in what you say:
- some drivers are not generated in the gracefully offered and ready to use kernels (loboris),
- the kernel is old and broken.
For the 1st problem, you can get the kernel source and compile what you want. That's easy.
For the 2nd problem, yes, the Allwinner's kernel is a piece of shit, and they are waiting for the free software community to debug it. And we must do this job to have working machines. That's the hard law of business...

Author: Harald    time: 2015-10-19 07:06
Edited by Harald at 2015-12-11 11:40

Wifi
are any wifi dongles supported under any available OS for the OPI-PC ?
Which ones?  And how to get wifi to work?
My answer:
this is the best distribution so far for me:http://www.orangepi.org/orangepi ... p;extra=&page=2

it works with my RTL8188 WIFI and Cambridge  BT dongles.

Author: cino    time: 2015-10-20 07:04
Hello, ich need Ralink Support too.
Author: giaur500    time: 2015-10-20 14:16
Harald replied at 2015-10-19 07:06
Wifi
are any wifi dongles supported under any available OS for the OPI-PC ?
Which ones?  And how to  ...

I suspect the only hardware supported are: storage, mouse, keyboard. All the rest modules are dropped from kernel or they won't work.

Example: my dvb-t ite9135 based dongle - there is no driver for it, so it was dropped from kernel.

Isn't it exactly the same kernel that is used on Android?

Author: Harald    time: 2015-10-20 16:29
Edited by Harald at 2015-10-20 16:57

Thanks, my experience is the same as Post7 with my OPI_PC, however:
Wired Ethernet works with the correct uimage and script.bin.
OTG USB works and is seen with Filemanager.
IR receiver? Camera Interface?
When I run Android:
I get audio out via HDMI.
and audio in via the mic on board, tested with Skype, which works.
USB hub(unpoweered) works, but I lose built in USB port(s).
LEDs:
two Ethernet leds are on solid when power connected; leds flash when Ethernet connected.
red LED:
off with power connected initially.
LED on when boot starts. But stays off, if bad SD or missing start files?
LED flashes, when boot starts, but bad SD.?
LED  on when OS stable.
There is another green LED on board.
I see it flash occasionally: What does it indicate?
Power switch:
Mostly does nothing, however:
If system turned off via OS, and red LED goes off:
the power switch will turn the system back on if pressed for a second. (you can turn system on and off without pulling the power cord)
Please add your experience, or point to documentation which I have not discovered.







Author: giaur500    time: 2015-10-20 16:56
Yep ir receiver and mic are not supported on Debian. USB ports - not supported both on Android and on Debian. Power switch is not supported anywhere from my experience.
Author: wbdan    time: 2015-10-20 22:33
Hi,

with Debian Mini Image and scriptbin_kernel from 2015/10/18 my Ralink Dongle is working:


  1. root@OrangePI:~#  nmcli -a dev wifi list
  2. *  SSID           MODE   CHAN  RATE       SIGNAL  BARS  SECURITY
  3. *  SSID_01  Infra  11    54 Mbit/s  73      ▂▄▆_  WPA2
  4.    SSID_02  Infra  1     54 Mbit/s  29      ▂___  WPA2
  5. root@OrangePI:~# lsusb
  6. Bus 008 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
  7. Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  8. Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  9. Bus 006 Device 002: ID 1bcf:0c31 Sunplus Innovation Technology Inc. SPIF30x Serial-ATA bridge
  10. Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  11. Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  12. Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  13. Bus 003 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Copy code


dan
Author: tranki    time: 2015-10-22 06:08
In lubuntu PI-PC doen't work
Author: tranki    time: 2015-10-22 06:17
Edited by tranki at 2015-10-22 06:18
moinejf replied at 2015-10-14 16:22
There are 2 different problems in what you say:
- some drivers are not generated in the gracefully ...

You say it's easy to compile the drivers with kernel source code. where can I find a tutorial/video straight forward of this?


Author: moinejf    time: 2015-10-24 16:07
tranki replied at 2015-10-22 06:17
You say it's easy to compile the drivers with kernel source code. where can I find a tutorial/video ...

I put here some instructions on how you may generate a kernel on your OPI2/plus/PC.

Generating on an other computer is more complicated, asking for a cross-compiler and SD card manipulation...

Author: giaur500    time: 2015-10-25 20:30
But ralink drivers are already included and already compiled. Any reason for compiling them again?
Author: kernelpanic    time: 2015-10-26 13:21
The kernel modules are compiled, and they load. The problem seems to be somewhere in userspace, as the module can not find the firmware for the card, even though it is located within /lib/firmware. I do not know where, or if there is a place to specify where the firmware files are located.
Author: giaur500    time: 2015-10-26 19:15
Edited by giaur500 at 2015-10-26 19:26

I tested 4 ralink cards models. Some of them are unable to load firmware, some others cause module segmentation fault. None worked.
Author: worakorn    time: 2015-10-29 00:11
I just success WIFI Connection with RALink (ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter)

I used OrangePI-PC_Ubuntu_Vivid_Mate.img and re-compile the kernel by using source code from loboris (https://github.com/loboris/OrangePI-Kernel) and driver from mediatek (http://www.mediatek.com/en/downl ... 372-rt5572-usb-usb/)

After everything compiled and installed, I blacklist my old driver (rt2800) and use the new one with 'ifconfig ra0 up' and connect the network with 'nmtui-connect'

It's worked!!


Author: jacer    time: 2015-10-30 23:18
worakorn replied at 2015-10-29 00:11
I just success WIFI Connection with RALink (ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wire ...

Care to post a guide?
Author: worakorn    time: 2015-10-31 12:11
Edited by worakorn at 2015-12-23 07:13

I'm novice one, Some step may not make sense

1. Install 64bit version of Ubuntu on the virtual machine (amd64)
2. Install 'git-core', 'build-essential', 'u-boot-tools', 'libncurses5-dev'
3. Clone loboris repo. 'git clone https://github.com/loboris/OrangePI-Kernel'
4. I cut a new gen_check_code from http://moinejf.free.fr/opi2/kernel-3.4.patch (I attached gen_check_code at the attachment part) 5. Compile it 'gcc -o gen_check_code gen_check_code.c' and copy to 'YourPATH/OrangePI-Kernel/linux-3.4/arch/arm/mach-sunxi/power/brom/' and 'YourPATH/OrangePI-Kernel/linux-3.4/arch/arm/mach-sunxi/pm/standby'
6. Install 32bit library that toolchain needed.
  1. dpkg --add-architecture i386
  2. apt-get update
Copy code
  I install these packages
  1. gcc-5-base:i386
  2. libc6:i386
  3. libc6-dev:i386
  4. libc6-dev-i386
  5. libc6-i386
  6. libgcc1:i386
  7. libgpm2:i386
  8. libncurses5:i386
  9. libtinfo5:i386
  10. linux-libc-dev:i386
  11. zlib1g:i386
  12. zlib1g-dev:i386
Copy code
  don't forget ":i386"
7. Goto OrangePI-Kernel, run
  1. ./config_linux_kernel.sh
Copy code
  Change anything you like, and don't forget to save before you exit

8. Run the compile script (
  1. ./build_scripts.sh 2                ## 2 - is for OPI2 and OPI-PC
Copy code


9. Take a cup of coffee, have breakfast or whatever you want until the compile process complete. If Error please check 'kbuild_2_.log'
10. After the kernel built, run
  1. ./build_scripts.sh
Copy code
    to create script.bin for your OPI-PC
11. Check your 'YourPATH/OrangePI-Kernel/build', Files 'uImage_OPI-2' and 'script.bin.OPI-PC*' should be existed.
12. Copy those files into your SD-Card
13. Boot  to the system with your new uboot image. For the first boot many modules will failed because of mismatch kernel and modules version. I solved this issue and get the whole source code to my OPI-PC
  1. tar cvzf orangepi.tgz  YourPATH/OrangePI-Kernel/
Copy code
     transfer the tar'ed file to your OPI-PC and unpack it. Navigate to 'OrangePI-Kernel/linux-3.4/output/lib' and copy everything to your '/lib' on OPI-PC
14. Run 'depmod -a 3.4.39-01-lobo' and reboot the OPI-PC
15. After the OPI-PC boot up. go to '/lib/modules/3.4.39-01-lobo', fix the soft linked files 'source' and 'build' to the correct path.
  1. rm -f source build
  2. ln -s YOURPATH/OrangePI-PC/linux-3.4 build
  3. ln -s YOURPATH/OrangePI-PC/linux-3.4 source
Copy code
16. Download RT2800 from Mediatek 'http://www.mediatek.com/en/downloads1/downloads/rt8070-rt3070-rt3370-rt3572-rt5370-rt5372-rt5572-usb-usb/', You get '
DPO_RT5572_LinuxSTA_2.6.1.3_20121022.tar.bz2', unpack it!
17. Install some compiler on your OPI-PC
  1. apt-get -y install gcc make
Copy code
    ***If you get compile error in the future, Please try to install the missing.
18. To prevent the error, Please go to 'YOURPATH/OrangePI-Kernel/linux-3.4' after that, 'make clean' and 'make modules_prepare' to prevent 'modpost' and 'recordmcount' make your compile failed.
19. Go to your unpacked RT Driver in step 16 . Edit os/linux/config.mk
  1. HAS_WPA_SUPPLICANT=y
  2. HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
Copy code
20. Do compile your driver. Many warnings appeared don't be panic.
  1. make
  2. make install
Copy code
21. 'depmod -a 3.4.39-01-lobo' again and edit your '/etc/modprobe.d/blacklist.conf'
  1. blacklist rt2800usb
  2. blacklist rt2800lib
  3. blacklist rt2x00usb
  4. blacklist rt2x00lib
Copy code
22. Reboot your system and use 'dmesg' to verify the new driver loaded.
23. Turn the radio on with
  1. ifconfig ra0 up
Copy code
24. Try to connect the WIFI by using NetworkManager
  1. nmtui-connect
Copy code
    If the WIFI works well, you will see some access points around you.

25. Enjoy!

=================
Some questions:
Q: Why I install 64 bit version of Ubuntu
A: Last time, the error of 'gen_check_code' and can't fix, no source code. Until I got the alternative version of it with source code but it take a time to re-install the system.

Q: How long that I use to make it work?
A: Around 1 week

!!! DON'T FORGET I AM A KIND OF NOVICE -- ERROR MAY OCCUR !!!

Pre-Compiled with RT2x00 Driver: http://cloudbox.3bb.co.th/share3/MTYwMzV8ZDYzNjhlYjFhZGEwMTQ2ZmJhYmVlNDBlNzlmM2I0ZTR8MzE1MDg5
Pre-Compiled with MT7601u Driver: http://cloudbox.3bb.co.th/share3/MTYwMzl8MDA5ZDY5ZDJkMWI5ODY4MTVlN2I4MjUzODJkNzNhZjV8MzE1MDg5



Author: Manjup    time: 2015-12-6 20:37
worakorn replied at 2015-10-31 12:11
I'm novice one, Some step may not make sense

1. Install 64bit version of Ubuntu on the virtual m ...

i am a noob how to install the precompiled tar ball.
what to do about lib,etc folder
does this contains MT7601 usb wifi dongle.
Please give instruction more simpler than above, how to compile for MT7601




Author: Manjup    time: 2015-12-6 20:48
moinejf replied at 2015-10-24 16:07
I put here some instructions on how you may generate a kernel on your OPI2/plus/PC.

Generating on ...

I am sorry i am a complete NOOB.
Can you PLEASE Give list of commands that i should blindly copy to install MT7601 wifi driver on ORANGEPI-PC

Author: spyke    time: 2015-12-8 03:38
worakorn replied at 2015-10-31 12:11
I'm novice one, Some step may not make sense

1. Install 64bit version of Ubuntu on the virtual m ...

Hi, I was trying to compile kernel on my pc with Ubuntu 14.04 LTS, but in OPI-PC I had Ubuntu 15.10, one of problem was another GCC version. After a few days I tryied again with Debian 8 and I found your tutorial and I use pre-compiled kernel tar file.
Now it's working fine without any big problems.
Thanks for this tutorial

Author: Manjup    time: 2015-12-13 12:24
spyke replied at 2015-12-8 03:38
Hi, I was trying to compile kernel on my pc with Ubuntu 14.04 LTS, but in OPI-PC I had Ubuntu 15.1 ...

Can you upload OPI-PC image on the google drive. and i am stuck @ step 4 where he says"I cut a new gen_check_code" how to pass that step.
Please Help


Author: Manjup    time: 2015-12-19 15:37
i have solved this issue please check.
http://www.orangepi.org/orangepi ... wthread&tid=858
Author: jacer    time: 2015-12-28 12:14
Edited by jacer at 2015-12-28 12:16
worakorn replied at 2015-10-31 12:11
I'm novice one, Some step may not make sense

1. Install 64bit version of Ubuntu on the virtual m ...

@worakorn Tried my MT7601U Usb Wifi with your prebuilt MT7601U kernel and firmware but not working. No ro0 devices found.
My lsusb shows below.
  1. Bus 004 Device 003: ID 13d3:3434 IMC Networks
Copy code
My lsmod shows below.
  1. Module                  Size  Used by
  2. rt5572sta             749675  0
  3. gpio_sunxi              8273  0
  4. rt2800usb              13664  0
  5. rt2800lib              43606  1 rt2800usb
  6. 8189es                909436  0
  7. rt2x00usb               8337  1 rt2800usb
  8. rt2x00lib              34447  3 rt2x00usb,rt2800lib,rt2800usb
  9. mali_drm                6634  1
  10. drm                   179855  2 mali_drm
  11. mac80211              368199  3 rt2x00lib,rt2x00usb,rt2800lib
  12. mali                  212838  0
  13. ump                    40485  3 mali
Copy code
Can you add my device ID 13d3:3434 to the driver?
B.t.w, my RT2870/RT3070 works. But not on ra0 but on wlan1. Do I have to blacklist these below? What is the point?
  1. blacklist rt2800usb
  2. blacklist rt2800lib
  3. blacklist rt2x00usb
  4. blacklist rt2x00lib
Copy code



Author: worakorn    time: 2016-1-15 19:22
Edited by worakorn at 2016-1-15 19:23
jacer replied at 2015-12-28 12:14
@worakorn Tried my MT7601U Usb Wifi with your prebuilt MT7601U kernel and firmware but not working. ...

Please use "mt7601Usta" for MT7601U


Author: apalau    time: 2016-1-15 19:59
worakorn replied at 2015-10-31 12:11
I'm novice one, Some step may not make sense

1. Install 64bit version of Ubuntu on the virtual m ...

How to work with this?

Pre-Compiled with RT2x00 Driver: http://cloudbox.3bb.co.th/share3/MTYwMzV8ZDYzNjhlYjFhZGEwMTQ2ZmJhYmVlNDBlNzlmM2I0ZTR8MzE1MDg5
which are the steps to be followed?


what to do about lib,etc folder...?

I want to work with RT5370 ( ubuntu mate, OP PC)


thank you!!!




Author: spyke    time: 2016-1-20 02:45
Hi, My Ralink mt7601 works fine, but one think is very annoying: a lot trash debug info in dmesg about wifi connection.
Is any way to disable or move debug wifi to separate file?

Example:
  1. 508324.422384] bImprovedScan ............. Resume for bImprovedScan, SCAN_PENDING ..............
  2. [508324.422658] SCANNING, suspend MSDU transmission ...
  3. [508324.423622] RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...
  4. [508324.423648] MlmeScanReqAction -- Send PSM Data frame for off channel RM, SCAN_IN_PROGRESS=1!
  5. [508324.441979] SYNC - BBP R4 to 20MHz.l
  6. [508324.442007] MT7601_ChipSwitchChannel: SwitchChannel#8(RF=15, 1T)
  7. [508324.590147] MT7601_ChipSwitchChannel: SwitchChannel#9(RF=15, 1T)
  8. [508324.730141] MT7601_ChipSwitchChannel: SwitchChannel#10(RF=15, 1T)
  9. [508324.870137] MT7601_ChipSwitchChannel: SwitchChannel#11(RF=15, 1T)
  10. [508325.010164] MT7601_ChipSwitchChannel: SwitchChannel#12(RF=15, 1T)
  11. [508325.150154] MT7601_ChipSwitchChannel: SwitchChannel#13(RF=15, 1T)
  12. [508325.290153] MT7601_ChipSwitchChannel: SwitchChannel#14(RF=15, 1T)
  13. [508325.431951] MT7601_ChipSwitchChannel: SwitchChannel#5(RF=15, 1T)
  14. [508325.441946] SYNC - End of SCAN, restore to 40MHz channel 5, Total BSS[06]
  15. [508325.441973] scan_ch_restore -- Send null frame
  16. [508325.441997] SCAN done, resume MSDU transmission ...
  17. [508325.442590] MT2_SCAN_CONF INFRA_ON -- Send PSM Data frame for off channel RM, SCAN_IN_PROGRESS=0!
  18. [508325.460103] MlmeCntlMachinePerformAction -- Send null frame pAd->StaCfg.Psm=0
  19. [508325.460936] ===>rt_ioctl_giwscan. 5(5) BSS returned, data->length = 827
  20. [508325.468947] MediaState is connected
  21. [508325.469009] ==>rt_ioctl_giwmode(mode=2)
  22. [508325.469039] ==>rt_ioctl_giwfreq  3
  23. [508325.469112] rt28xx_get_wireless_stats --->
  24. [508325.469135] <--- rt28xx_get_wireless_stats
  25. [508327.002480] MediaState is connected
  26. [508327.002543] ==>rt_ioctl_giwmode(mode=2)
  27. [508327.002572] ==>rt_ioctl_giwfreq  3
  28. [508327.002653] rt28xx_get_wireless_stats --->
  29. [508327.002676] <--- rt28xx_get_wireless_stats
  30. [508330.973780] PeerAddBAReqAction ==> (Wcid = 1)
  31. [508330.973819] BA - PeerAddBAReqAction---->
  32. [508330.973837] Rcv Wcid(1) AddBAReq
  33. [508330.973862] BARecSessionAdd(1): Idx = 1, BAWinSize(req 64) = 64
  34. [508330.973883] Start Seq = 00000ecd
  35. [508330.973906] RTMPInitTimer: f3775444
  36. [508330.973956] MACEntry[1]RXBAbitmap = 0x1. BARecWcidArray=1
  37. [508330.974004] CmdThread : CMDTHREAD_SET_ASIC_WCID : WCID = 1, SetTid  = 10000, DeleteTid = ffffffff.
  38. [508330.974031] PeerAddBAReqAction(1): TID(0), BufSize(64) <==
  39. [508330.974054] 1-MACValue= 94671af8,
  40. [508330.974829] 2-MACValue= 18292,
  41. [508333.003983] MediaState is connected
  42. [508333.004050] ==>rt_ioctl_giwmode(mode=2)
  43. [508333.004078] ==>rt_ioctl_giwfreq  3
  44. [508333.004157] rt28xx_get_wireless_stats --->
  45. [508333.004179] <--- rt28xx_get_wireless_stats
  46. [508333.538639] RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...
Copy code

Author: Ben    time: 2016-2-11 00:44
Edited by Ben at 2016-2-11 10:57

@worakorn
I try using RT3070 usb  ( orangepi pc   ubuntu mate )
Download your my-compile.tbz2 and replace the files
I have 2 wifi router ,totolink and netcore   totolink--route
netcore --ap (like switch )

totolink is ok
netcore can't get the ip address.  


I can using  RT3070 wifi usb
TANK YOU




Author: apalau    time: 2016-2-24 20:53
worakorn replied at 2015-10-31 12:11
I'm novice one, Some step may not make sense

1. Install 64bit version of Ubuntu on the virtual m ...

"Navigate to 'OrangePI-Kernel/linux-3.4/output/lib' and copy everything to your '/lib' on OPI-PC"

Where is  the "ouput" folder?

thanks.


Author: WereCatf    time: 2016-2-24 22:30
spyke replied at 2016-1-20 02:45
Hi, My Ralink mt7601 works fine, but one think is very annoying: a lot trash debug info in dmesg abo ...

I haven't noticed your question before, I just noticed it now, but yes, you can reduce the amount of debug - stuff it spits out. Change the line ULONG RTDebugLevel = RT_DEBUG_TRACE; to ULONG RTDebugLevel = 0; in src/os/linux/rt_linux.c before compiling.


Author: prasanth    time: 2016-9-28 18:02

Author: aali    time: 5 daybefore
The following seriously sometimes a really good offer we the fact is seriously experienced looking into. It is far from essentially common we add substitute for find out a specialized element.        https://lv88.ltd/

Author: aali    time: 5 daybefore
The following seriously sometimes a really good offer we the fact is seriously experienced looking into. It is far from essentially common we add substitute for find out a specialized element.        https://go8.tips/





Welcome to OrangePi (http://www.orangepi.org/orangepibbsen/) Powered by Discuz! X3.4