Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
Author: giaur500

Ralink wifi cards

[Copy link]

3

Threads

24

Posts

184

Credits

Registered member

Rank: 2

Credits
184
Post time 2015-10-22 06:08:21 | Show all posts
In lubuntu PI-PC doen't work

3

Threads

24

Posts

184

Credits

Registered member

Rank: 2

Credits
184
Post time 2015-10-22 06:17:31 | Show all posts
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?

1

Threads

47

Posts

189

Credits

Registered member

Rank: 2

Credits
189
Post time 2015-10-24 16:07:17 | Show all posts
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...

13

Threads

199

Posts

791

Credits

Senior member

Rank: 4

Credits
791
 Author| Post time 2015-10-25 20:30:43 | Show all posts
But ralink drivers are already included and already compiled. Any reason for compiling them again?

0

Threads

2

Posts

45

Credits

Novice

Rank: 1

Credits
45
Post time 2015-10-26 13:21:27 | Show all posts
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.

13

Threads

199

Posts

791

Credits

Senior member

Rank: 4

Credits
791
 Author| Post time 2015-10-26 19:15:24 | Show all posts
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.

0

Threads

3

Posts

66

Credits

Registered member

Rank: 2

Credits
66
Post time 2015-10-29 00:11:16 | Show all posts
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!!

18

Threads

303

Posts

7740

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
7740
Post time 2015-10-30 23:18:15 From the mobile phone | Show all posts
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?

0

Threads

3

Posts

66

Credits

Registered member

Rank: 2

Credits
66
Post time 2015-10-31 12:11:35 | Show all posts
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 the 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 the Code
  don't forget ":i386"
7. Goto OrangePI-Kernel, run
  1. ./config_linux_kernel.sh
Copy the 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 the 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 the 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 the 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 the 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 the 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 the Code
20. Do compile your driver. Many warnings appeared don't be panic.
  1. make
  2. make install
Copy the 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 the 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 the Code
24. Try to connect the WIFI by using NetworkManager
  1. nmtui-connect
Copy the 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


This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

13

Threads

77

Posts

444

Credits

Intermediate member

Rank: 3Rank: 3

Credits
444
Post time 2015-12-6 20:37:13 | Show all posts
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



You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-11-23 04:20 GMT+8 , Processed in 0.037186 second(s), 20 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list