.png)
Eu compilei anteriormente este driver no que acredito ser um kernel mais antigo. No entanto, estou agora em 15.10 e simplesmente não consigo descobrir.
dylan@xaelah:~$ uname -r
4.2.0-18-generic
Aquié a saída desudo lshw
Eu baixei a fonte deaqui
Em seguida, coloco o CD no diretório e emito sudo make
. Abaixo está a saída:
make -C tools
make[1]: Entering directory '/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/tools'
/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/tools/bin2h
cp -f os/linux/Makefile.6 /home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/os/linux/Makefile
make -C /lib/modules/4.2.0-18-generic/build SUBDIRS=/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.2.0-18-generic'
CC [M] /home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/os/linux/../../sta/sta_cfg.o
In file included from /home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/include/rtmp_os.h:44:0,
from /home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/include/rtmp_comm.h:69,
from /home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/include/rt_config.h:33,
from /home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/os/linux/../../sta/sta_cfg.c:28:
/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/os/linux/../../sta/sta_cfg.c: In function ‘RTMPQueryInformation’:
/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/os/linux/../../sta/sta_cfg.c:3953:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
DBGPRINT(RT_DEBUG_TRACE, ("sizeof UCHAR=%d, channel=%d \n", sizeof(UCHAR), p
^
/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/include/os/rt_linux.h:665:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^
/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/os/linux/../../sta/sta_cfg.c:3953:4: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_TRACE, ("sizeof UCHAR=%d, channel=%d \n", sizeof(UCHAR), p
^
/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/os/linux/../../sta/sta_cfg.c:4896:85: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
intf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, _
^
/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/os/linux/../../sta/sta_cfg.c:4896:95: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/os/linux/../../sta/sta_cfg.o' failed
make[2]: *** [/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/os/linux/../../sta/sta_cfg.o] Error 1
Makefile:1398: recipe for target '_module_/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/os/linux' failed
make[1]: *** [_module_/home/dylan/Downloads/patched-Asus-PCE-N53-linux-driver-master/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.2.0-18-generic'
Makefile:384: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
Obviamente não possosudo make install
Também não estou preocupado com as incompatibilidades de tipo e outros avisos, pois apareceram na compilação anterior e ainda funcionavam. Eu também tentei sudo make -i
sem sorte
Eu baixei os fundamentos da compilação, a fonte do kernel e os cabeçalhos...
Por favor, deixe-me saber se vocês precisarem de mais alguma coisa. Pesquisei no Google e encontrei problemas semelhantes, mas sem soluções. Existe atéesseneste site, mas não há resposta e as outras alternativas não funcionam.
Qualquer ajuda seria apreciada!
EDITAR:
Eu também tentei executar make da seguinte maneira-
sudo make RT_CFLAGS="-Wno-error=date-time"
Mesmos erros....
Eu então fiz um sudo make clean
e depois corrisudo make RT_CFLAGS="-Wno-error=date-time" -i
aqui está o passador
Responder1
Eu poderia compilar sobre ela:
$ lsb_release -dc
Description: Ubuntu 15.10
Codename: wily
$ uname -r
4.2.0-18-generic
É recomendado não usar sudo
para compilação. Se as instruções abaixo falharem, talvez você deva começar de novo.
Clonou o repositório git.
git clone https://github.com/unused/patched-Asus-PCE-N53-linux-driver.git cd patched-Asus-PCE-N53-linux-driver/
Adicionar
-Wno-error=date-time
aos sinalizadores de compilaçãovim os/linux/config.mk +178
Procurar
WFLAGS:=
WFLAGS := -DAGGREGATION_SUPPORT -DPIGGYBACK_SUPPORT -DWMM_SUPPORT -DLINUX -Wall -Wstrict-prototypes -Wno-trigraphs -Wno-error=date-time
Compilar
make
Neste ponto, o módulo foi compilado com sucesso:
ls -l os/linux/rt5592sta.ko
-rw-rw-r-- 1 user user 1767056 Nov 21 10:29 /home/user/Desktop/sand_box/patched-Asus-PCE-N53-linux-driver/os/linux/rt5592sta.ko
modinfo /home/user/Desktop/sand_box/patched-Asus-PCE-N53-linux-driver/os/linux/rt5592sta.ko
filename: /home/user/Desktop/sand_box/patched-Asus-PCE-N53-linux-driver/os/linux/rt5592sta.ko version: 2.6.0.0_20120326 srcversion: 150B71061DC1EBE4DE31E22 alias: pci:v00001814d00005592sv*sd*bc*sc*i* depends: vermagic: 4.2.0-18-generic SMP mod_unload modversions parm: mac:rt28xx: wireless mac addr (charp)
Mas acho estranho que make
o script tenha tentado copiá-lo para /tftpboot
uma pasta. Pode ser que o desenvolvedor esteja procurando uma maneira rápida de atualizá-lo/testá-lo em outra máquina.
LD [M] /home/user/Desktop/sand_box/patched-Asus-PCE-N53-linux-driver/os/linux/rt5592sta.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.2.0-18-generic'
cp -f /home/user/Desktop/sand_box/patched-Asus-PCE-N53-linux-driver/os/linux/rt5592sta.ko /tftpboot
cp: cannot create regular file ‘/tftpboot’: Permission denied
Makefile:384: recipe for target 'LINUX' failed
make: *** [LINUX] Error 1
De qualquer forma, tente concluir as etapas restantes da instalação. Deixe-me saber se você enfrentar algum problema relacionado.