Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Instalace, aktualizace a spouštění => Téma založeno: warking 01 Prosince 2014, 00:40:30
-
Zdravím, snažím se zprovoznit wifinu na Linuxu podle návodu:
http://www.edimax.com/images/Image/QIG/Wireless/EW-7811UAC_DAC/EW-7811UAC_DAC_QIG_CZ(Czech).pdf (http://www.edimax.com/images/Image/QIG/Wireless/EW-7811UAC_DAC/EW-7811UAC_DAC_QIG_CZ(Czech).pdf)
ale při prvním kroku: sudo make
mi to hodí nekolik eroru, prikladam obrazek:
(http://screenshot.cz/M0P9G/20141201_003457.jpg)
(foceno mobilem, nemam ted k dispozici internet v notasu)
Jsem zacatecnik s Linuxem, mohli by ste mi poradit? Díky :)
-
blbej zvyk dělat z textu obrázek...
-
blbej zvyk, odepsat, ale ne k tématu :(
-
protoze je z textu obrazek, tak to tam neni cely takze z toho obrazku pozname "prdlajz" (tedy pokud nepocitam, ze je zjevne, ze buildeni toho modulu sfailovalo)
-
root@wk:~# cd Desktop
root@wk:~/Desktop# cd aaa
root@wk:~/Desktop/aaa# cd gh
root@wk:~/Desktop/aaa/gh# sudo make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.14-kali1-amd64/build M=/root/Desktop/aaa/gh modules
make[1]: Entering directory '/usr/src/linux-headers-3.14-kali1-amd64'
Makefile:10: *** mixed implicit and normal rules: deprecated syntax
CC [M] /root/Desktop/aaa/gh/os_dep/linux/os_intfs.o
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c: In function ‘rtw_proc_init_one’:
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:352:3: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:352:11: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:359:3: error: implicit declaration of function ‘create_proc_read_entry’ [-Werror=implicit-function-declaration]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:359:9: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:370:21: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:401:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:407:7: error: dereferencing pointer to incomplete type
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:409:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:415:7: error: dereferencing pointer to incomplete type
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:418:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:426:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:434:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:442:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:449:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:456:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:463:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:470:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:477:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:484:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:491:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:498:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:505:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:512:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:519:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:526:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:533:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:542:9: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:549:9: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:559:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:577:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:585:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:591:7: error: dereferencing pointer to incomplete type
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:593:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:599:7: error: dereferencing pointer to incomplete type
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:601:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:607:7: error: dereferencing pointer to incomplete type
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:609:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:615:7: error: dereferencing pointer to incomplete type
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:617:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:623:7: error: dereferencing pointer to incomplete type
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:626:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:629:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:635:7: error: dereferencing pointer to incomplete type
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:647:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:653:7: error: dereferencing pointer to incomplete type
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c: At top level:
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:1031:2: warning: initialization from incompatible pointer type [enabled by default]
/root/Desktop/aaa/gh/os_dep/linux/os_intfs.c:1031:2: warning: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’) [enabled by default]
cc1: some warnings being treated as errors
/usr/src/linux-headers-3.14-kali1-common/scripts/Makefile.build:308: recipe for target '/root/Desktop/aaa/gh/os_dep/linux/os_intfs.o' failed
make[4]: *** [/root/Desktop/aaa/gh/os_dep/linux/os_intfs.o] Error 1
/usr/src/linux-headers-3.14-kali1-common/Makefile:1291: recipe for target '_module_/root/Desktop/aaa/gh' failed
make[3]: *** [_module_/root/Desktop/aaa/gh] Error 2
Makefile:133: 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.14-kali1-amd64'
Makefile:1041: recipe for target 'modules' failed
make: *** [modules] Error 2
root@wk:~/Desktop/aaa/gh#
-
dej nam prosim link na ten .tgz s tema zdrojakama ...
-
warking.eu/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517_fix_led.tar.gz (http://warking.eu/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517_fix_led.tar.gz)
-
ty zdrojaky ze tvyho linku jsou nejake vyprasene .. pouzij tyhle
https://github.com/abperiasamy/rtl8812AU_8821AU_linux (eg. je tam vpravo cudlik stahnout zip)
rozbal a udelej (pozor, nebuildi to jako root !!!!!) tohle v rootu te nove rozbalene slozky
make
sudo make install
tohle uz by melo jit
-
a jak to mam buildit, kdyz mam jen root acc?
-
@ Ntz
(pozor, nebuildi to jako root !!!!!)
Kompiluje to na Kali distru, tam je výchozím uživatelem root.
@ warking
Nezlob se na mě, ale co chceš dělat s distrem určené k penetračním testům, když tě ani nenapadne založit si standardního uživatele?
-
aha .. me zmatlo, jak tam pred to rve to sudo .. jinak apropos kdybych vedel ze to je na kali a ne na ubuntu + ta jeho popuzena odpoved na to ze dava obrazek a ne text, tak za me uz by to davno skoncilo na kompostu, kdyz jsme teda u toho :P
-
nevadi, rad se zopakuji jeste jednou:
NIKDY (opravdu NIKDY) nebuildi nic (NIKDE) jako root ... a uz vubec ne make install .. pouzij radsi tohle:
make DESTDIR=_build/ install
to ti vytvori v soucasne slozce (root tech zdrojaku) slozku _build a narve to do ni ty veci tak jak by sly normalne do "/" .. obcas to nejde, ma to male limity, ale kdyz pohlednes treba na tohle Makefile, tak pochopit co ten make install dela je opravdu jednoduche:
install:
install -p -m 644 $(MODULE_NAME).ko $(MODDESTDIR)
/sbin/depmod -a ${KVER}
uninstall:
rm -f $(MODDESTDIR)/$(MODULE_NAME).ko
/sbin/depmod -a ${KVER}
-
Tak pokus číslo 2, vytvoril sem noveho uzivatele a zkusil make toho noveho archivu cos poslal:
bfu@wk:~$ cd Desktop
bfu@wk:~/Desktop$ cd i
bfu@wk:~/Desktop/i$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.14-kali1-amd64/build M=/home/bfu/Desktop/i modules
make[1]: Entering directory '/usr/src/linux-headers-3.14-kali1-amd64'
Makefile:10: *** mixed implicit and normal rules: deprecated syntax
CC [M] /home/bfu/Desktop/i/os_dep/linux/os_intfs.o
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c: In function ‘rtw_proc_init_one’:
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:352:3: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:352:11: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:359:3: error: implicit declaration of function ‘create_proc_read_entry’ [-Werror=implicit-function-declaration]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:359:9: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:370:21: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:401:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:407:7: error: dereferencing pointer to incomplete type
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:409:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:415:7: error: dereferencing pointer to incomplete type
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:418:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:426:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:434:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:442:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:449:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:456:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:463:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:470:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:477:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:484:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:491:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:498:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:505:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:512:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:519:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:526:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:533:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:542:9: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:549:9: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:559:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:577:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:585:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:591:7: error: dereferencing pointer to incomplete type
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:593:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:599:7: error: dereferencing pointer to incomplete type
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:601:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:607:7: error: dereferencing pointer to incomplete type
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:609:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:615:7: error: dereferencing pointer to incomplete type
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:617:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:623:7: error: dereferencing pointer to incomplete type
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:626:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:629:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:635:7: error: dereferencing pointer to incomplete type
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:647:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:653:7: error: dereferencing pointer to incomplete type
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c: At top level:
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:1031:2: warning: initialization from incompatible pointer type [enabled by default]
/home/bfu/Desktop/i/os_dep/linux/os_intfs.c:1031:2: warning: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’) [enabled by default]
cc1: some warnings being treated as errors
/usr/src/linux-headers-3.14-kali1-common/scripts/Makefile.build:308: recipe for target '/home/bfu/Desktop/i/os_dep/linux/os_intfs.o' failed
make[4]: *** [/home/bfu/Desktop/i/os_dep/linux/os_intfs.o] Error 1
/usr/src/linux-headers-3.14-kali1-common/Makefile:1291: recipe for target '_module_/home/bfu/Desktop/i' failed
make[3]: *** [_module_/home/bfu/Desktop/i] Error 2
Makefile:133: 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.14-kali1-amd64'
Makefile:1041: recipe for target 'modules' failed
make: *** [modules] Error 2
bfu@wk:~/Desktop/i$
-
ne, make toho noveho archivu jsi vubec nezkusil .. zkus to znovu ..
-
Jo omlouvám se, spatnej archiv, make uz funguje ale sudo make install, jak to po me chce heslo, heslo tam zadám a vyplyvne to todle:
bfu is not in the sudoers file. This incident will be reported.
-
tak to sem fixnul > echo 'bfu ALL=(ALL) ALL' >> /etc/sudoers tak uvidime
-
Jsi si jistý, že ten ovladač je přesně pro můj typ? Podle mě je to pro jiný typ
-
mel by byt pro tvuj typ ..
ukaz vystup z
lsusb
modprobe -l | grep 8812