LINUX.ORG.RU

Alfa AWUS 1900 и BackBox Linux

 


0

1

Народ, помогите, кто может. Сразу попрошу ограничить комменты, типа, «на фига тебе это надо», " учи азы" и т.п.- причины и необходимость действий, с вашего позволения, объяснять не хочу и не буду. Нужна ПОШАГОВАЯ инструкция ( ну, для идиотов, короче ), как «прикрутить» эту шайтан - машину, Alfa AWUS 1900 ( RTL8814AU ), к последней BackBox 6. Мозг уже вывернут наглухо. Последний результат попыток установки «дров» был такой:

root@BACKBOX-SEC:~# cd RTL8814AU

root@BACKBOX-SEC:~/RTL8814AU# make

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.3.0-46- generic/build M=/root/RTL8814AU modules

make[1]: вход в каталог «/usr/src/linux-headers-5.3.0-46-generic» CC [M] /root/RTL8814AU/os_dep/osdep_service.o

In file included from /root/RTL8814AU/include/drv_types.h:35:0,

from /root/RTL8814AU/os_dep/osdep_service.c:24:

/root/RTL8814AU/include/wifi.h:1055:0: warning: «IEEE80211_MAX_AMPDU_BUF» redefined

#define IEEE80211_MAX_AMPDU_BUF 0x40 In file included from ./include/net/cfg80211.h:21:0,

from /root/RTL8814AU/include/osdep_service_linux.h:87,

from /root/RTL8814AU/include/osdep_service.h:41,

from /root/RTL8814AU/include/drv_types.h:32,

from /root/RTL8814AU/os_dep/osdep_service.c:24:

./include/linux/ieee80211.h:1441:0: note: this is the location of the previous definition

#define IEEE80211_MAX_AMPDU_BUF 0x100 /root/RTL8814AU/os_dep/osdep_service.c: In function ‘isFileReadable’:

/root/RTL8814AU/os_dep/osdep_service.c:1945:28: error: implicit declaration of function ‘get_ds’; did you mean ‘get_da’? [-Werror=implicit-function-declaration]

oldfs = get_fs(); set_fs(get_ds());

^~~~~~

get_da

/root/RTL8814AU/os_dep/osdep_service.c:1945:28: error: incompatible type for argument 1 of ‘set_fs’

In file included from ./include/linux/uaccess.h:11:0,

from ./include/linux/crypto.h:21,

from ./include/crypto/hash.h:11,

from ./include/linux/uio.h:10,

from ./include/linux/socket.h:8,

from ./include/linux/compat.h:15,

from ./include/linux/ethtool.h:17,

from ./include/linux/netdevice.h:37,

from /root/RTL8814AU/include/osdep_service_linux.h:35,

from /root/RTL8814AU/include/osdep_service.h:41,

from /root/RTL8814AU/include/drv_types.h:32,

from /root/RTL8814AU/os_dep/osdep_service.c:24:

./arch/x86/include/asm/uaccess.h:29:20: note: expected ‘mm_segment_t {aka struct <anonymous>}’ but argument is of type ‘int’ static inline void set_fs(mm_segment_t fs)

^~~~~~

/root/RTL8814AU/os_dep/osdep_service.c: In function ‘retriveFromFile’:

/root/RTL8814AU/os_dep/osdep_service.c:1973:29: error: incompatible type for argument 1 of ‘set_fs’

oldfs = get_fs(); set_fs(get_ds());

^~~~~~

In file included from ./include/linux/uaccess.h:11:0,

from ./include/linux/crypto.h:21,

from ./include/crypto/hash.h:11,

from ./include/linux/uio.h:10,

from ./include/linux/socket.h:8,

from ./include/linux/compat.h:15,

from ./include/linux/ethtool.h:17,

from ./include/linux/netdevice.h:37,

from /root/RTL8814AU/include/osdep_service_linux.h:35,

from /root/RTL8814AU/include/osdep_service.h:41,

from /root/RTL8814AU/include/drv_types.h:32,

from /root/RTL8814AU/os_dep/osdep_service.c:24:

./arch/x86/include/asm/uaccess.h:29:20: note: expected ‘mm_segment_t {aka struct <anonymous>}’ but argument is of type ‘int’

static inline void set_fs(mm_segment_t fs)

^~~~~~

/root/RTL8814AU/os_dep/osdep_service.c: In function ‘storeToFile’:

/root/RTL8814AU/os_dep/osdep_service.c:2007:29: error: incompatible type for argument 1 of ‘set_fs’

oldfs = get_fs(); set_fs(get_ds());

^~~~~~

In file included from ./include/linux/uaccess.h:11:0,

from ./include/linux/crypto.h:21,

from ./include/crypto/hash.h:11,

from ./include/linux/uio.h:10,

from ./include/linux/socket.h:8,

from ./include/linux/compat.h:15,

from ./include/linux/ethtool.h:17,

from ./include/linux/netdevice.h:37,

from /root/RTL8814AU/include/osdep_service_linux.h:35,

from /root/RTL8814AU/include/osdep_service.h:41,

from /root/RTL8814AU/include/drv_types.h:32,

from /root/RTL8814AU/os_dep/osdep_service.c:24:

./arch/x86/include/asm/uaccess.h:29:20: note: expected ‘mm_segment_t {aka struct <anonymous>}’ but argument is of type ‘int’

static inline void set_fs(mm_segment_t fs)

^~~~~~ cc1: some warnings being treated as errors

scripts/Makefile.build:288: recipe for target '/root/RTL8814AU/os_dep/osdep_service.o' failed

make[2]: *** [/root/RTL8814AU/os_dep/osdep_service.o] Error 1

Makefile:1655: recipe for target '_module_/root/RTL8814AU' failed

make[1]: *** [_module_/root/RTL8814AU] Error 2

make[1]: выход из каталога «/usr/src/linux-headers-5.3.0-46-generic»

Makefile:373: recipe for target 'modules' failed

make: *** [modules] Error 2

root@BACKBOX-SEC:~/RTL8814AU# dkms-remove.sh

dkms-remove.sh: команда не найдена

root@BACKBOX-SEC:~/RTL8814AU# sudo ./dkms-install.sh

About to run dkms install steps...

mkdir: невозможно создать каталог «/usr/src/rtl8814au-4.3.21»: Файл существует

Error! DKMS tree already contains: rtl8814au-4.3.21

You cannot add the same module/version combo more than once.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:

cleaning build area...

'make'.................^C

root@BACKBOX-SEC:~/RTL8814AU# sudo ./dkms-install.sh

About to run dkms install steps...

Error! DKMS tree already contains: rtl8814au-4.3.21

You cannot add the same module/version combo more than once.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:

cleaning build area...

'make'...................(bad exit status: 2)

ERROR (dkms apport): binary package for rtl8814au: 4.3.21 not found

Что, сс-но, не так и КАК надо? Заранее благодарен за возможную помощь.



Последнее исправление: Greymin (всего исправлений: 1)

Сразу попрошу ограничить комменты, типа, «на фига тебе это надо», " учи азы" и т.п.- причины и необходимость действий, с вашего позволения, объяснять не хочу и не буду.

в переводе это звучит так: «флудите, тролльте, ловите лулзы»

Нужна ПОШАГОВАЯ инструкция ( ну, для идиотов, короче ), как «прикрутить» эту шайтан - машину, Alfa AWUS 1900 ( RTL8814AU ), к последней BackBox 6

не получиться, там первый пункт «учи азы», а ты уже его вычеркнул.

КАК надо?

через dkms поставить (ты же это и пытался делать?)

uname -a

исходники откуда?

anonymous
()
Ответ на: комментарий от Greymin

я вообще увидел 33 репо и «последние» эти вроде

anonymous
()
Ответ на: комментарий от anonymous

Т.е., надо искать «дрова», под 4.18? Здесь стоит последний BackBox 6, на ядре 4.18, если я правильно понял. Блин, ввязался, на свою…

Greymin
() автор топика
Ответ на: комментарий от Greymin

и эти кажется тоже «рабочие»… посмотри на форуме кали, там же ведут какой-то учёт рабочим драйверам… твой адаптер они тоже любят использовать, даже на ЛОРе кто-то его чинил, емнип… правда, того калиюзера убунтой таки «совратили» :))

anonymous
()
Ответ на: комментарий от anonymous

Спасибо. Будем посмотреть, как говорят.)))

Greymin
() автор топика
Ответ на: комментарий от Greymin

ты начинаешь понимать тему )

посмотри в похожих темах. там все этапы должны упоминаться или ссылки на мануалы будут. может и этот твой драйвер подойдет, я код не смотрел.

anonymous
()
Ответ на: комментарий от Greymin

Т.е., надо искать «дрова», под 4.18?

надо собирать под 4.18. не получится, тогда другие берешь (править код не предлагаю)

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.