|
Флудер
Регистрация: 06.07.2015
Сообщений: 3,644
С нами:
5713526
Репутация:
51
|
|
Сообщение от kex40
Привет всем.Такая проблема,имеется ноут с kali linux 2.0. и wi-fi адаптер alfa awus036nh.Никак не могу установить драйвера,скачал драйвер rt3070,отредактировал файлы config.mk и linux/rt_linux и при установке получаю ошибку
- root@alex:~/Загрузки/alex# make<br/>
make -C tools<br/>
make[1]: вход в каталог «/root/Загрузки/alex/tools»<br/>
gcc -g bin2h.c -o bin2h<br/>
make[1]: выход из каталога «/root/Загрузки/alex/tools»<br/>
/root/Загрузки/alex/tools/bin2h<br/>
cp -f os/linux/Makefile.6 /root/Загрузки/alex/os/linux/Makefile<br/>
make -C /lib/modules/4.0.0-kali1-amd64/build SUBDIRS=/root/Загрузки/alex/os/linux modules<br/>
make[1]: вход в каталог «/usr/src/linux-headers-4.0.0-kali1-amd64»<br/>
Makefile:10: *** mixed implicit and normal rules: deprecated syntax<br/>
CC [M] /root/Загрузки/alex/os/linux/../../common/rtmp_init.o<br/>
CC [M] /root/Загрузки/alex/os/linux/../../os/linux/rt_linux.o<br/>
In file included from /root/Загрузки/alex/include/rt_config.h:51:0,<br/>
from /root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c:28:<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c: In function ‘duplicate_pkt’:<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c:555:18: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast<br/>
NdisMoveMemory(skb->tail, pHeader802_3, HdrLen);<br/>
^<br/>
/root/Загрузки/alex/include/rt_linux.h:752:61: note: in definition of macro ‘NdisMoveMemory’<br/>
#define NdisMoveMemory(Destination, Source, Length) memmove(Destination, Source, Length)<br/>
^<br/>
In file included from /usr/src/linux-headers-4.0.0-kali1-common/arch/x86/include/asm/string.h:4:0,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/string.h:17,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/bitmap.h:8,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/cpumask.h:11,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/arch/x86/include/asm/cpumask.h:4,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/arch/x86/include/asm/msr.h:10,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/arch/x86/include/asm/processor.h:20,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/arch/x86/include/asm/thread_info.h:23,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/thread_info.h:54,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/arch/x86/include/asm/preempt.h:6,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/preempt.h:18,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/spinlock.h:50,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/seqlock.h:35,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/time.h:5,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/stat.h:18,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/module.h:10,<br/>
from /root/Загрузки/alex/include/rt_linux.h:44,<br/>
from /root/Загрузки/alex/include/rt_config.h:51,<br/>
from /root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c:28:<br/>
/usr/src/linux-headers-4.0.0-kali1-common/arch/x86/include/asm/string_64.h:60:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’<br/>
void *memmove(void *dest, const void *src, size_t count);<br/>
^<br/>
In file included from /root/Загрузки/alex/include/rt_config.h:51:0,<br/>
from /root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c:28:<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c:557:18: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast<br/>
NdisMoveMemory(skb->tail, pData, DataSize);<br/>
^<br/>
/root/Загрузки/alex/include/rt_linux.h:752:61: note: in definition of macro ‘NdisMoveMemory’<br/>
#define NdisMoveMemory(Destination, Source, Length) memmove(Destination, Source, Length)<br/>
^<br/>
In file included from /usr/src/linux-headers-4.0.0-kali1-common/arch/x86/include/asm/string.h:4:0,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/string.h:17,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/bitmap.h:8,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/cpumask.h:11,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/arch/x86/include/asm/cpumask.h:4,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/arch/x86/include/asm/msr.h:10,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/arch/x86/include/asm/processor.h:20,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/arch/x86/include/asm/thread_info.h:23,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/thread_info.h:54,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/arch/x86/include/asm/preempt.h:6,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/preempt.h:18,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/spinlock.h:50,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/seqlock.h:35,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/time.h:5,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/stat.h:18,<br/>
from /usr/src/linux-headers-4.0.0-kali1-common/include/linux/module.h:10,<br/>
from /root/Загрузки/alex/include/rt_linux.h:44,<br/>
from /root/Загрузки/alex/include/rt_config.h:51,<br/>
from /root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c:28:<br/>
/usr/src/linux-headers-4.0.0-kali1-common/arch/x86/include/asm/string_64.h:60:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’<br/>
void *memmove(void *dest, const void *src, size_t count);<br/>
^<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c: In function ‘ClonePacket’:<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c:641:23: warning: assignment makes integer from pointer without a cast<br/>
pClonedPkt->tail = pClonedPkt->data + pClonedPkt->len;<br/>
^<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c: In function ‘update_os_packet_info’:<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c:663:15: warning: assignment makes integer from pointer without a cast<br/>
pOSPkt->tail = pOSPkt->data + pOSPkt->len;<br/>
^<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c: In function ‘wlan_802_11_to_802_3_packet’:<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c:683:15: warning: assignment makes integer from pointer without a cast<br/>
pOSPkt->tail = pOSPkt->data + pOSPkt->len;<br/>
^<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c: In function ‘send_monitor_packets’:<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c:883:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]<br/>
DBGPRINT(RT_DEBUG_ERROR, ("%s : Size is too large! (%d)\n", __FUNCTION__, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));<br/>
^<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c:930:19: warning: assignment makes integer from pointer without a cast<br/>
pOSPkt->tail = pOSPkt->data + pOSPkt->len;<br/>
^<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c:938:19: warning: assignment makes integer from pointer without a cast<br/>
pOSPkt->tail = pOSPkt->data + pOSPkt->len;<br/>
^<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c: In function ‘rtmp_os_thread_init’:<br/>
/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.c:1024:2: error: implicit declaration of function ‘daemonize’ [-Werror=implicit-function-declaration]<br/>
daemonize(pThreadName /*"%s",pAd->net_dev->name*/);<br/>
^<br/>
cc1: some warnings being treated as errors<br/>
/usr/src/linux-headers-4.0.0-kali1-common/scripts/Makefile.build:263: ошибка выполнения рецепта для цели «/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.o»<br/>
make[4]: *** [/root/Загрузки/alex/os/linux/../../os/linux/rt_linux.o] Ошибка 1<br/>
/usr/src/linux-headers-4.0.0-kali1-common/Makefile:1407: ошибка выполнения рецепта для цели «_module_/root/Загрузки/alex/os/linux»<br/>
make[3]: *** [_module_/root/Загрузки/alex/os/linux] Ошибка 2<br/>
Makefile:145: ошибка выполнения рецепта для цели «sub-make»<br/>
make[2]: *** [sub-make] Ошибка 2<br/>
Makefile:8: ошибка выполнения рецепта для цели «all»<br/>
make[1]: *** [all] Ошибка 2<br/>
make[1]: выход из каталога «/usr/src/linux-headers-4.0.0-kali1-amd64»<br/>
Makefile:105: ошибка выполнения рецепта для цели «LINUX»<br/>
make: *** [LINUX] Ошибка 2<br/>
У меня Alfa awus036nh и ноутбук с Kali linux 2.0 - адаптер запустился из коробки, kali 2.0 по умолчанию поддерживает такой чип.
|