下記のRalink USBネットワークインターフェースデバイスを購入しました。
$lsusb
Bus 004 Device 002: ID 148f:7601 Ralink Technology, Corp.
私はたくさんのスレッドを見ましたが、すべて同じチップセットドライバであるmt7601uを指しています。
だから私はGitHubに行きました:https://github.com/kuba-moo/mt7601u
起動中にカーネルパニックが発生する前に数日間うまく機能していたカスタムドライバを使用しました。 (このドライブを使用しないでください!)
それで戻って、そのベンダーのドライバをダウンロードしました(http://www.mediatek.com/en/downloads1/downloads/mt7601u-usb/)
しかし、とにかくコンパイルすることはできません。 「$make」クラッシュが発生する理由は、Linuxバージョン3.16を使用していて少なくとも3.19以上が必要なためです。
$uname -r
3.16.0-4-amd64
私はDebianを使用しており、最新の安定版が私が現在持っているものであり、そのまま維持したいと思います。プランBとは何ですか? "firmware-ralink"パッケージをインストールしました。
本当に次に何をすべきかわかりません。たぶん別のUSBネットワークインターフェイスを購入する必要がありますか?もしそうなら、簡単なDebianインストールのための提案を残してください。
この問題はすべて、私のコンピュータのネットワークインターフェイスの問題が原因であることをお伝えしたいと思います。 (REALTEKチップセットを使用するときは注意してください!)
$lspci -vnn | grep "Network"
04:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd.
RTL8821AE 802.11ac PCIe Wireless Network Adapter [10ec:8821]
*****編集する*****
答えてくれてありがとう。
すべてが正しくインストールされていることを確認しました。その後、すべてをアップグレードする必要があります。
$sudo apt-get update
$sudo apt-get upgrade
config.mk ファイルに修正を追加しました。
# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Manger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
コンパイル時にエラーが発生します。
$ sudo make && make install
make -C tools
make[1]: Entering directory '/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools'
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools/bin2h
cp -f os/linux/Makefile.6 /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/Makefile
make -C /lib/modules/3.16.0-4-amd64/build SUBDIRS=/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64'
Makefile:10: *** mixed implicit and normal rules: deprecated syntax
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64'
CC [M] /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.o
In file included from /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rtmp_os.h:42:0,
from /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rt_config.h:72,
from /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:28:
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c: In function ‘duplicate_pkt’:
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:477:18: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast
NdisMoveMemory(skb->tail, pHeader802_3, HdrLen);
^
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/os/rt_linux.h:450:61: note: in definition of macro ‘NdisMoveMemory’
#define NdisMoveMemory(Destination, Source, Length) memmove(Destination, Source, Length)
^
In file included from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/string.h:4:0,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/string.h:17,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/bitmap.h:8,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/cpumask.h:11,
from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/cpumask.h:4,
from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/msr.h:10,
from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/processor.h:20,
from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/thread_info.h:23,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/thread_info.h:54,
from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/preempt.h:6,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/preempt.h:18,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/spinlock.h:50,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/seqlock.h:35,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/time.h:5,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/stat.h:18,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/module.h:10,
from /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/os/rt_linux.h:40,
from /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rtmp_os.h:42,
from /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rt_config.h:72,
from /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:28:
/usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
void *memmove(void *dest, const void *src, size_t count);
^
In file included from /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rtmp_os.h:42:0,
from /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rt_config.h:72,
from /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:28:
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:479:18: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast
NdisMoveMemory(skb->tail, pData, DataSize);
^
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/os/rt_linux.h:450:61: note: in definition of macro ‘NdisMoveMemory’
#define NdisMoveMemory(Destination, Source, Length) memmove(Destination, Source, Length)
^
In file included from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/string.h:4:0,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/string.h:17,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/bitmap.h:8,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/cpumask.h:11,
from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/cpumask.h:4,
from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/msr.h:10,
from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/processor.h:20,
from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/thread_info.h:23,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/thread_info.h:54,
from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/preempt.h:6,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/preempt.h:18,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/spinlock.h:50,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/seqlock.h:35,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/time.h:5,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/stat.h:18,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/module.h:10,
from /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/os/rt_linux.h:40,
from /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rtmp_os.h:42,
from /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rt_config.h:72,
from /home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:28:
/usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
void *memmove(void *dest, const void *src, size_t count);
^
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c: In function ‘ClonePacket’:
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:629:23: warning: assignment makes integer from pointer without a cast
pClonedPkt->tail = pClonedPkt->data + pClonedPkt->len;
^
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c: In function ‘update_os_packet_info’:
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:651:15: warning: assignment makes integer from pointer without a cast
pOSPkt->tail = pOSPkt->data + pOSPkt->len;
^
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c: In function ‘wlan_802_11_to_802_3_packet’:
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:672:15: warning: assignment makes integer from pointer without a cast
pOSPkt->tail = pOSPkt->data + pOSPkt->len;
^
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c: In function ‘send_monitor_packets’:
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:945:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
DBGPRINT(RT_DEBUG_ERROR, ("%s : Size is too large! (%d)\n", __FUNCTION__, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));
^
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSFSInfoChange’:
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:1228:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
pOSFSInfo->fsuid = current_fsuid();
^
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:1229:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
pOSFSInfo->fsgid = current_fsgid();
^
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSNetDevDetach’:
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:1694:38: warning: initialization discards ‘const’ qualifier from pointer target type
struct net_device_ops *pNetDevOps = pNetDev->netdev_ops;
^
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSNetDevAttach’:
/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:1731:38: warning: initialization discards ‘const’ qualifier from pointer target type
struct net_device_ops *pNetDevOps = pNetDev->netdev_ops;
^
/usr/src/linux-headers-3.16.0-4-common/scripts/Makefile.build:262: recipe for target '/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.o' failed
make[4]: *** [/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.o] Error 1
/usr/src/linux-headers-3.16.0-4-common/Makefile:1352: recipe for target '_module_/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux' failed
make[3]: *** [_module_/home/sugar/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux] Error 2
Makefile:181: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64'
Makefile:243: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
sugar@sugarraysam:~/downloads/2010_0709_RT2870_Linux_STA_v2.4.0.1$
ドライバーで仕事を見つけることができません。
オンラインで見つけた「Leiling公式ソース」は次のとおりです。http://www.ralinktech.com/。これはただの広告です...
MediaTek(親会社)のRalinkドライバを探す - >http://mediatek.com/en/downloads1/downloads/mt7612u/。ただし、コンパイル時にエラーが発生します。
助けてくれてありがとう。
答え1
依存関係をインストールします。
apt-get install build-essential fakeroot dpkg-dev
apt-get install linux-headers-$(uname -r)
driver 2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2
次からダウンロードここ
解凍してディレクトリをロードします。
tar -jxvf 2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2
cd 2010_0709_RT2870_Linux_STA_v2.4.0.1
config.mkの編集
nano os/linux/config.mk
# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Manger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
編む
make
make install
答え2
http://gentoo-en.vfose.ru/wiki/Ralink_RT2870役に立つ。特に、このデバイスのカーネルサポートはドライバの形でカーネルに含まれているようですrt2800usb
。また、見ることができますhttps://wiki.debian.org/rt2800usb
ページにはファームウェアが記載されていますrt2870.bin
。apt-file
これに対して2つのヒットを返します。
apt-file search rt2870.bin
firmware-misc-nonfree: /lib/firmware/rt2870.bin
firmware-ralink: /lib/firmware/rt2870.bin
firmware-ralink
Jesseで使用されます。firmware-misc-nonfree
不安定な状態でのみ可能です。