아래 나열된 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 네트워크 인터페이스를 구입해야 할까요? 그렇다면 쉬운 데비안 설치를 위한 제안을 남겨주세요.
이 모든 문제는 내 컴퓨터의 네트워크 인터페이스 문제로 인해 발생한다는 점을 말씀드리고 싶습니다. (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
이에 대해 두 개의 히트를 반환합니다.
apt-file search rt2870.bin
firmware-misc-nonfree: /lib/firmware/rt2870.bin
firmware-ralink: /lib/firmware/rt2870.bin
firmware-ralink
Jesse와 함께 사용됩니다. firmware-misc-nonfree
불안정한 상태에서만 가능합니다.