View: 6897|Reply: 8

Orange pi pc and usb wireless

[Copy link]

2

threads

21

posts

121

credits

Registered member

Rank: 2

credits
121
Published in 2016-3-13 05:49:47 from mobile | Show all floors |Read mode
Hi there.
I checked all forum and also tried to find some resources from intetnet but failed.

Is there anybody can help for install usb wifi adapter on Ubuntu for pi pc ?
I am planning to apply solution and put it on youtube to help everbody who suffer the same problem

Thanks

2

threads

144

posts

1102

credits

Gold member

Rank: 6Rank: 6

credits
1102
Published in 2016-3-14 17:23:11 | Show all floors
Edited by WereCatf at 2016-3-14 17:25
tgenc replied at 2016-3-14 15:09
hi WereCatf,
it's perfect that you have one of this device. have you ever tried (or could you pls  ...
to install this device to ubuntu?

No. The instructions are the same no matter what distro you use. You need kernel-headers, you need working git, gcc, make and the likes, then you can just simply use this script I just made for you:
  1. #!/bin/bash
  2. git clone https://github.com/porjo/mt7601/
  3. if [ $? -eq 1 ]; then echo "Error fetching sources."; exit 1; fi

  4. cd mt7601
  5. cat >> fix_build.patch << _EOF_
  6. index 3726b9e..b8be886 100755
  7. --- a/src/include/os/rt_linux.h
  8. +++ b/src/include/os/rt_linux.h
  9. @@ -279,7 +279,7 @@ typedef struct file* RTMP_OS_FD;

  10. typedef struct _OS_FS_INFO_
  11. {
  12. -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)
  13. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)
  14.          uid_t                                fsuid;
  15.          gid_t                                fsgid;
  16. #else
  17. diff --git a/src/os/linux/rt_linux.c b/src/os/linux/rt_linux.c
  18. index 1b6a631..c336611 100755
  19. --- a/src/os/linux/rt_linux.c
  20. +++ b/src/os/linux/rt_linux.c
  21. @@ -51,7 +51,7 @@
  22. #define RT_CONFIG_IF_OPMODE_ON_STA(__OpMode)
  23. #endif

  24. -ULONG RTDebugLevel = RT_DEBUG_TRACE;
  25. +ULONG RTDebugLevel = 0;
  26. ULONG RTDebugFunc = 0;

  27. #ifdef OS_ABL_FUNC_SUPPORT
  28. _EOF_

  29. patch -f -s -p1 -r - <fix_build.patch >/dev/null
  30. if [ ! -f /lib/modules/$(uname -r)/build/Makefile ]; then echo "Can't find kernel-headers where they should be, exiting!"; exit 1; fi
  31. if [ ! -f /lib/modules/$(uname -r)/build/scripts/recordmcount ]; then pushd; cd /lib/modules/$(uname -r)/build/; make -j4 scripts; popd; fi
  32. if [ ! -f /lib/modules/$(uname -r)/build/scripts/recordmcount ]; then echo "Something is wrong with your setup and/or kernel-headers, exiting!"; exit 1; fi
  33. cd src
  34. make -j4
  35. if [ $? -eq 1 ]; then echo "Error compiling MT7601U!"; exit 1; fi
  36. cp os/linux/*.ko /lib/modules/$(uname -r)/kernel/net/wireless/
  37. mkdir -p /etc/Wireless/RT2870STA
  38. cp RT2870STA.dat /etc/Wireless/RT2870STA/
  39. depmod -a
  40. cd ../..
Copy code

Save the script to some file, like e.g. mt76.sh and execute it -- voila, you now have the driver compiled and installed. I do repeat, though: you MUST have working kernel-headers installed properly.


2

threads

144

posts

1102

credits

Gold member

Rank: 6Rank: 6

credits
1102
Published in 2016-3-13 10:21:38 | Show all floors
There is no generic way of installing drivers, it all depends on what chipset the USB-dongle uses -- some drivers are as simple as "make && make install" and some require extra fiddling, like e.g. getting MT7601U working right does. Also, if you're using one of Loboris's images then there are probably no kernel-headers installed and you need those in order to be able to compile drivers in the first place.

2

threads

21

posts

121

credits

Registered member

Rank: 2

credits
121
 Author| Published in 2016-3-14 03:59:49 | Show all floors
WereCatf replied at 2016-3-13 10:21
There is no generic way of installing drivers, it all depends on what chipset the USB-dongle uses -- ...

hi WereCarf,
is your mean this product? if yes, I think we can make a guide includely product detail and how the people can buy it and how can install.

http://www.aliexpress.com/item/1 ... t=searchweb201556_2,searchweb201602_4_505_506_503_504_10034_10032_10020_502_10001_10002_10017_10010_10005_10006_10011_10003_10021_10004_10022_10009_10008_10018_10019,searchweb201603_3&btsid=a7b72af1-fab2-43d9-a43d-7e9aa69d3fc0

2

threads

144

posts

1102

credits

Gold member

Rank: 6Rank: 6

credits
1102
Published in 2016-3-14 07:18:07 | Show all floors
tgenc replied at 2016-3-14 03:59
hi WereCarf,
is your mean this product? if yes, I think we can make a guide includely product deta ...

The dongle you linked to uses an MT7601U - chipset, I have one of those dongles myself. There are plenty of instructions on the Internet on how to build drivers for it and the Armbian - distro already has the driver built-in.

2

threads

21

posts

121

credits

Registered member

Rank: 2

credits
121
 Author| Published in 2016-3-14 15:09:19 | Show all floors
WereCatf replied at 2016-3-14 07:18
The dongle you linked to uses an MT7601U - chipset, I have one of those dongles myself. There are  ...

hi WereCatf,
it's perfect that you have one of this device. have you ever tried (or could you pls try) to install this device to ubuntu? I will order and create a tutorial if it works. it will be also very helpful to all orange pi pc owners

2

threads

21

posts

121

credits

Registered member

Rank: 2

credits
121
 Author| Published in 2016-3-14 19:18:18 | Show all floors
WereCatf replied at 2016-3-14 17:23
No. The instructions are the same no matter what distro you use. You need kernel-headers, you need ...

perfect!
I have just ordered the device this morning. now just waiting to delivery

0

threads

15

posts

56

credits

Registered member

Rank: 2

credits
56
Published in 2022-3-13 17:32:14 | Show all floors
this is one of my favorite songs, thanks for sharing this song, spanish to english its melody is so beautiful and full of love

0

threads

15

posts

56

credits

Registered member

Rank: 2

credits
56
Published in 2022-3-16 18:51:06 | Show all floors
I'm not sure what to say about what you give; driving directions mapquest it's extremely well-done and beneficial to the community, and I believe it helps to build our community. Thanks.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list