giaur500 post at 2015-10-5 05:46:04

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?

tranki post at 2015-10-22 06:17:31

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?

worakorn post at 2015-10-29 00:11:16

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/downloads1/downloads/rt8070-rt3070-rt3370-rt3572-rt5370-rt5372-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!!

worakorn post at 2015-10-31 12:11:35

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.
dpkg --add-architecture i386
apt-get update   I install these packagesgcc-5-base:i386
libc6:i386
libc6-dev:i386
libc6-dev-i386
libc6-i386
libgcc1:i386
libgpm2:i386
libncurses5:i386
libtinfo5:i386
linux-libc-dev:i386
zlib1g:i386
zlib1g-dev:i386   don't forget ":i386"
7. Goto OrangePI-Kernel, run
./config_linux_kernel.sh   Change anything you like, and don't forget to save before you exit

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

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
./build_scripts.sh   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. Bootto 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
tar cvzf orangepi.tgzYourPATH/OrangePI-Kernel/      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.
rm -f source build
ln -s YOURPATH/OrangePI-PC/linux-3.4 build
ln -s YOURPATH/OrangePI-PC/linux-3.4 source16. 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
apt-get -y install gcc make   ***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
HAS_WPA_SUPPLICANT=y
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y20. Do compile your driver. Many warnings appeared don't be panic.
make
make install21. 'depmod -a 3.4.39-01-lobo' again and edit your '/etc/modprobe.d/blacklist.conf'
blacklist rt2800usb
blacklist rt2800lib
blacklist rt2x00usb
blacklist rt2x00lib22. Reboot your system and use 'dmesg' to verify the new driver loaded.
23. Turn the radio on with
ifconfig ra0 up24. Try to connect the WIFI by using NetworkManager
nmtui-connect   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


rosimildo post at 2015-10-7 18:29:19

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.

giaur500 post at 2015-10-12 02:13:29

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.

moinejf post at 2015-10-14 16:22:19

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...

Harald post at 2015-10-19 07:06:09

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/orangepibbsen/forum.php?mod=viewthread&tid=805&extra=&page=2

it works with my RTL8188 WIFI and CambridgeBT dongles.

cino post at 2015-10-20 07:04:15

Hello, ich need Ralink Support too.

giaur500 post at 2015-10-20 14:16:15

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?

Harald post at 2015-10-20 16:29:34

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.?
LEDon 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.






giaur500 post at 2015-10-20 16:56:44

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.

wbdan post at 2015-10-20 22:33:00

Hi,

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


root@OrangePI:~#nmcli -a dev wifi list
*SSID         MODE   CHANRATE       SIGNALBARSSECURITY
*SSID_01Infra11    54 Mbit/s73      ▂▄▆_WPA2
   SSID_02Infra1   54 Mbit/s29      ▂___WPA2
root@OrangePI:~# lsusb
Bus 008 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 1bcf:0c31 Sunplus Innovation Technology Inc. SPIF30x Serial-ATA bridge
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter

dan
page: [1] 2 3 4
View full version: Ralink wifi cards