Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: 悬赏100btsx弄个ubuntu USB无线网卡驱动  (Read 1479 times)

0 Members and 1 Guest are viewing this topic.

Offline crazybit

  • Sr. Member
  • ****
  • Posts: 410
    • View Profile
悬赏100btsx弄个ubuntu USB无线网卡驱动
« on: August 01, 2014, 12:47:16 PM »

100个btsx现在虽然不值多少钱,但待到btsxs500刀时,弄个网卡驱动值得5w刀就会变成1w比特币买一块披萨一样的传说呀。

小度wifi usb无线网卡,在win下正常上网。但是在ubuntu下没有官方驱动,搜了一轮,是MT7601的芯片,说要编译内核,搞了一通没搞定,100btsx求大神帮忙。

Offline 麥可貓

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: 悬赏100btsx弄个ubuntu USB无线网卡驱动
« Reply #1 on: August 01, 2014, 01:04:26 PM »
有人寫了教學在這裡:
http://ubuntuforums.org/showthread.php?t=2210930

你可以採用他的方法:

到這裡下載:
http://www.mediatek.com/en/downloads/mt7601u-usb/

然後解壓進去編譯模組
Code: [Select]
sudo apt-get install linux-headers-generic build-essential
cd ~/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913
make clean
make
sudo make install
sudo modprobe mt7601Usta

不知道可不可以?
« Last Edit: August 01, 2014, 01:11:31 PM by 麥可貓 »
PTS: PmRVDPymZqSAZEXauHZSewrUrE66af7epT
BTSX: michaelcat
Delegate Team: x1.sun  x2.sun

Offline crazybit

  • Sr. Member
  • ****
  • Posts: 410
    • View Profile
Re: 悬赏100btsx弄个ubuntu USB无线网卡驱动
« Reply #2 on: August 01, 2014, 01:29:16 PM »
有人寫了教學在這裡:
http://ubuntuforums.org/showthread.php?t=2210930

你可以採用他的方法:

到這裡下載:
http://www.mediatek.com/en/downloads/mt7601u-usb/

然後解壓進去編譯模組
Code: [Select]
sudo apt-get install linux-headers-generic build-essential
cd ~/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913
make clean
make
sudo make install
sudo modprobe mt7601Usta

不知道可不可以?
我按这个教程弄过了,make的时候过不了。


Offline 麥可貓

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: 悬赏100btsx弄个ubuntu USB无线网卡驱动
« Reply #3 on: August 01, 2014, 01:33:06 PM »
有人寫了教學在這裡:
http://ubuntuforums.org/showthread.php?t=2210930

你可以採用他的方法:

到這裡下載:
http://www.mediatek.com/en/downloads/mt7601u-usb/

然後解壓進去編譯模組
Code: [Select]
sudo apt-get install linux-headers-generic build-essential
cd ~/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913
make clean
make
sudo make install
sudo modprobe mt7601Usta

不知道可不可以?
我按这个教程弄过了,make的时候过不了。

可以提供你的錯誤訊息嗎?
PTS: PmRVDPymZqSAZEXauHZSewrUrE66af7epT
BTSX: michaelcat
Delegate Team: x1.sun  x2.sun

Offline crazybit

  • Sr. Member
  • ****
  • Posts: 410
    • View Profile
Re: 悬赏100btsx弄个ubuntu USB无线网卡驱动
« Reply #4 on: August 01, 2014, 01:39:58 PM »
有人寫了教學在這裡:
http://ubuntuforums.org/showthread.php?t=2210930

你可以採用他的方法:

到這裡下載:
http://www.mediatek.com/en/downloads/mt7601u-usb/

然後解壓進去編譯模組
Code: [Select]
sudo apt-get install linux-headers-generic build-essential
cd ~/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913
make clean
make
sudo make install
sudo modprobe mt7601Usta

不知道可不可以?
我按这个教程弄过了,make的时候过不了。

可以提供你的錯誤訊息嗎?

/home/crazybit/driver/os/linux/../../os/linux/rt_linux.c:2052:4: note: expected ‘const char *’ but argument is of type ‘UINT32 *’
/home/crazybit/driver/os/linux/../../os/linux/rt_linux.c:2037:22: warning: unused variable ‘macValue’ [-Wunused-variable]
UINT32 macAddr = 0, macValue = 0;
home/crazybit/driver/os/linux/../../os/linux/rt_linux.c:2037:9: warning: unused variable ‘macAddr’ [-Wunused-variable]
UINT32 macAddr = 0, macValue = 0;
^
/home/crazybit/driver/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSIRQRelease’:
/home/crazybit/driver/os/linux/../../os/linux/rt_linux.c:2173:21: warning: unused variable ‘net_dev’ [-Wunused-variable]
struct net_device *net_dev = (struct net_device *)pNetDev;
make[2]: *** [/home/crazybit/driver/os/linux/../../os/linux/rt_linux.o] Error 1
make[1]: *** [_module_/home/crazybit/driver/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'
make: *** [LINUX] Error 2

Offline yyh2o

  • Jr. Member
  • **
  • Posts: 21
    • View Profile
悬赏100btsx弄个ubuntu USB无线网卡驱动
« Reply #5 on: August 01, 2014, 01:55:29 PM »
有人寫了教學在這裡:
http://ubuntuforums.org/showthread.php?t=2210930

你可以採用他的方法:

到這裡下載:
http://www.mediatek.com/en/downloads/mt7601u-usb/

然後解壓進去編譯模組
Code: [Select]
sudo apt-get install linux-headers-generic build-essential
cd ~/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913
make clean
make
sudo make install
sudo modprobe mt7601Usta

不知道可不可以?
我按这个教程弄过了,make的时候过不了。

可以提供你的錯誤訊息嗎?

/home/crazybit/driver/os/linux/../../os/linux/rt_linux.c:2052:4: note: expected ‘const char *’ but argument is of type ‘UINT32 *’
/home/crazybit/driver/os/linux/../../os/linux/rt_linux.c:2037:22: warning: unused variable ‘macValue’ [-Wunused-variable]
UINT32 macAddr = 0, macValue = 0;
home/crazybit/driver/os/linux/../../os/linux/rt_linux.c:2037:9: warning: unused variable ‘macAddr’ [-Wunused-variable]
UINT32 macAddr = 0, macValue = 0;
^
/home/crazybit/driver/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSIRQRelease’:
/home/crazybit/driver/os/linux/../../os/linux/rt_linux.c:2173:21: warning: unused variable ‘net_dev’ [-Wunused-variable]
struct net_device *net_dev = (struct net_device *)pNetDev;
make[2]: *** [/home/crazybit/driver/os/linux/../../os/linux/rt_linux.o] Error 1
make[1]: *** [_module_/home/crazybit/driver/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'
make: *** [LINUX] Error 2

第一步,下载linux上的驱动,可以去官网下载


第二步:没有gcc的,安装gcc。。。 解压下载得到的驱动的压缩包,修改里面的/os/linux/rt_linux.c 的1211行和1222行的

                pOSFSInfo->fsuid = current_fsuid();
                pOSFSInfo->fsuid = current_fsuid();

                把他们两个改为

                pOSFSInfo->fsuid = *(int *)&current_fsuid();
                pOSFSInfo->fsuid = *(int *)&current_fsuid();

               在common/rtusb_dev_id.c中找到#ifdef MT7601U

                在其下面添加

                {USB_DEVICE(0x148f,0x760b)}, /* 360 Wifi Gen 2*/
                {USB_DEVICE(0x2955,0x1001)}, /* Xiao Du Wifi*/

                {USB_DEVICE(0x2717,0x4106)}, /* XiaoMi wifi */

第三步:

make
make install
modprobe mt7601Usta

« Last Edit: August 01, 2014, 02:01:51 PM by yyh2o »

Offline 麥可貓

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: 悬赏100btsx弄个ubuntu USB无线网卡驱动
« Reply #6 on: August 01, 2014, 02:35:21 PM »
有人寫了教學在這裡:
http://ubuntuforums.org/showthread.php?t=2210930

你可以採用他的方法:

到這裡下載:
http://www.mediatek.com/en/downloads/mt7601u-usb/

然後解壓進去編譯模組
Code: [Select]
sudo apt-get install linux-headers-generic build-essential
cd ~/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913
make clean
make
sudo make install
sudo modprobe mt7601Usta

不知道可不可以?
我按这个教程弄过了,make的时候过不了。

可以提供你的錯誤訊息嗎?

/home/crazybit/driver/os/linux/../../os/linux/rt_linux.c:2052:4: note: expected ‘const char *’ but argument is of type ‘UINT32 *’
/home/crazybit/driver/os/linux/../../os/linux/rt_linux.c:2037:22: warning: unused variable ‘macValue’ [-Wunused-variable]
UINT32 macAddr = 0, macValue = 0;
home/crazybit/driver/os/linux/../../os/linux/rt_linux.c:2037:9: warning: unused variable ‘macAddr’ [-Wunused-variable]
UINT32 macAddr = 0, macValue = 0;
^
/home/crazybit/driver/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSIRQRelease’:
/home/crazybit/driver/os/linux/../../os/linux/rt_linux.c:2173:21: warning: unused variable ‘net_dev’ [-Wunused-variable]
struct net_device *net_dev = (struct net_device *)pNetDev;
make[2]: *** [/home/crazybit/driver/os/linux/../../os/linux/rt_linux.o] Error 1
make[1]: *** [_module_/home/crazybit/driver/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'
make: *** [LINUX] Error 2


我下載了也碰到一樣的狀況
我是了yyh2o的方法還是一樣


我後來是採用下列連結提到的方法才成功的:
http://www.arnelborja.com/compiling-rt2870-wifi-driver-in-fedora/


也就是說
重新解壓縮一份驅動檔案
修改目錄底下include/os/rt_linux.h
這一個檔案

裡面開頭有一段原本是:
Code: [Select]
typedef struct _OS_FS_INFO_
 {
int fsuid;
int fsgid;



把中間那兩個改成:


Code: [Select]
typedef struct _OS_FS_INFO_
 {
kuid_t fsuid;
kgid_t fsgid;

重新編譯
我這邊是成功, 不會有錯誤訊息
make完你可以用
Code: [Select]
echo $?看是不是0, 0就是成功

然後再接著作make install等等
如果模組認不到你的裝置
我想你需要作像是yyh2o在common/rtusb_dev_id.c的事情
你可以插入你的無線網卡
用lsusb得知它的ID
搜尋common/rtusb_dev_id.c裡面看有沒有你的ID
沒有的話就用yyh2o的方法插入
« Last Edit: August 01, 2014, 02:59:11 PM by 麥可貓 »
PTS: PmRVDPymZqSAZEXauHZSewrUrE66af7epT
BTSX: michaelcat
Delegate Team: x1.sun  x2.sun

Offline Musewhale

  • Hero Member
  • *****
  • Posts: 2806
  • 丑,实在是太丑了 !
    • View Profile
Re: 悬赏100btsx弄个ubuntu USB无线网卡驱动
« Reply #7 on: August 01, 2014, 02:44:23 PM »
走错门了  :P
当初你说炒币不烧钱,现在我全家都怀疑我吸毒

Offline 当年很厉害

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
Re: 悬赏100btsx弄个ubuntu USB无线网卡驱动
« Reply #8 on: August 01, 2014, 03:04:52 PM »
居然在一个帖子里见到麦可猫踩了这么多楼.不容易呀.
BTS粉里有SB!

Offline 麥可貓

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: 悬赏100btsx弄个ubuntu USB无线网卡驱动
« Reply #9 on: August 01, 2014, 03:42:30 PM »
居然在一个帖子里见到麦可猫踩了这么多楼.不容易呀.

真是不好意思 :-[
PTS: PmRVDPymZqSAZEXauHZSewrUrE66af7epT
BTSX: michaelcat
Delegate Team: x1.sun  x2.sun

Offline crazybit

  • Sr. Member
  • ****
  • Posts: 410
    • View Profile
Re: 悬赏100btsx弄个ubuntu USB无线网卡驱动
« Reply #10 on: August 01, 2014, 03:52:34 PM »
i think we will make it soon, it is a bit wired that the root account can not create the required folder to install the driver.any idea? i even can not "cd" to the existing folder 'etc/Wireless'

sudo make install
make[1]: Entering directory `/home/crazybit/driver/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux'
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
mkdir: cannot create directory ‘/etc/Wireless/RT2870STA’: Not a directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/crazybit/driver/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux'
make: *** [install] Error 2
« Last Edit: August 01, 2014, 03:56:05 PM by crazybit »

Offline 麥可貓

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: 悬赏100btsx弄个ubuntu USB无线网卡驱动
« Reply #11 on: August 01, 2014, 04:08:21 PM »
i think we will make it soon, it is a bit wired that the root account can not create the required folder to install the driver.any idea? i even can not "cd" to the existing folder 'etc/Wireless'

sudo make install
make[1]: Entering directory `/home/crazybit/driver/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux'
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
mkdir: cannot create directory ‘/etc/Wireless/RT2870STA’: Not a directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/crazybit/driver/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux'
make: *** [install] Error 2


你得先裝dkms:
Code: [Select]
sudo apt-get install dkms
然後
把$sudo make install
改成這樣:

Code: [Select]
$sudo su
$make install
$echo $?

我這邊成功了
« Last Edit: August 01, 2014, 04:11:23 PM by 麥可貓 »
PTS: PmRVDPymZqSAZEXauHZSewrUrE66af7epT
BTSX: michaelcat
Delegate Team: x1.sun  x2.sun

Offline crazybit

  • Sr. Member
  • ****
  • Posts: 410
    • View Profile
Re: 悬赏100btsx弄个ubuntu USB无线网卡驱动
« Reply #12 on: August 01, 2014, 04:12:50 PM »
same error encountered.

[email protected]:/etc# su
[email protected]:/etc# ls Wireless
Wireless
[email protected]:/etc# cd Wireless
bash: cd: Wireless: Not a directory

i think we will make it soon, it is a bit wired that the root account can not create the required folder to install the driver.any idea? i even can not "cd" to the existing folder 'etc/Wireless'

sudo make install
make[1]: Entering directory `/home/crazybit/driver/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux'
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
mkdir: cannot create directory ‘/etc/Wireless/RT2870STA’: Not a directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/crazybit/driver/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux'
make: *** [install] Error 2


你得先裝dkms:
Code: [Select]
sudo apt-get install dkms
然後
把$sudo make install
改成這樣:

Code: [Select]
$sudo su
$make install
$echo $?

我這邊成功了
« Last Edit: August 01, 2014, 04:14:29 PM by crazybit »

Offline 麥可貓

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: 悬赏100btsx弄个ubuntu USB无线网卡驱动
« Reply #13 on: August 01, 2014, 04:22:51 PM »
same error encountered.

[email protected]:/etc# su
[email protected]:/etc# ls Wireless
Wireless
[email protected]:/etc# cd Wireless
bash: cd: Wireless: Not a directory

i think we will make it soon, it is a bit wired that the root account can not create the required folder to install the driver.any idea? i even can not "cd" to the existing folder 'etc/Wireless'

sudo make install
make[1]: Entering directory `/home/crazybit/driver/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux'
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
mkdir: cannot create directory ‘/etc/Wireless/RT2870STA’: Not a directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/crazybit/driver/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux'
make: *** [install] Error 2


你得先裝dkms:
Code: [Select]
sudo apt-get install dkms
然後
把$sudo make install
改成這樣:

Code: [Select]
$sudo su
$make install
$echo $?

我這邊成功了

我這邊本來就有這個資料夾
或許是內建的某個套件安裝時建立的
但是我的目錄裡面又只有你這個驅動程式

或許你可以先試試看安裝wireless的套件:
Code: [Select]
sudo apt-get install wireless-tools iw

看看這個資料夾有沒有出現
如果沒有

乾脆先自己建立:
Code: [Select]
sudo su
mkdir /etc/Wireless

然後再make install
PTS: PmRVDPymZqSAZEXauHZSewrUrE66af7epT
BTSX: michaelcat
Delegate Team: x1.sun  x2.sun

Offline crazybit

  • Sr. Member
  • ****
  • Posts: 410
    • View Profile
Re: 悬赏100btsx弄个ubuntu USB无线网卡驱动
« Reply #14 on: August 01, 2014, 04:30:09 PM »
oh yeah, we make it, thanks for your kindly help, please give me your BTSX account.

same error encountered.

[email protected]:/etc# su
[email protected]:/etc# ls Wireless
Wireless
[email protected]:/etc# cd Wireless
bash: cd: Wireless: Not a directory

i think we will make it soon, it is a bit wired that the root account can not create the required folder to install the driver.any idea? i even can not "cd" to the existing folder 'etc/Wireless'

sudo make install
make[1]: Entering directory `/home/crazybit/driver/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux'
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
mkdir: cannot create directory ‘/etc/Wireless/RT2870STA’: Not a directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/crazybit/driver/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux'
make: *** [install] Error 2


你得先裝dkms:
Code: [Select]
sudo apt-get install dkms
然後
把$sudo make install
改成這樣:

Code: [Select]
$sudo su
$make install
$echo $?

我這邊成功了

我這邊本來就有這個資料夾
或許是內建的某個套件安裝時建立的
但是我的目錄裡面又只有你這個驅動程式

或許你可以先試試看安裝wireless的套件:
Code: [Select]
sudo apt-get install wireless-tools iw

看看這個資料夾有沒有出現
如果沒有

乾脆先自己建立:
Code: [Select]
sudo su
mkdir /etc/Wireless

然後再make install

 

Google+