A compilação do driver Realtek RTS5229 falha

0

Atualmente estou tentando compilar o driver para o leitor de cartão SD, um Realtek RTS5229, do meu novo laptop. No entanto, ao executar make , são apresentados os seguintes erros:

$ make       # reduced messages to errors
/home/sebastian/UbuntuSetup/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx.c:266:2: error: unknown field ‘proc_info’ specified in initializer
  .proc_info =   proc_info,
  ^
/home/sebastian/UbuntuSetup/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx.c:914:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtsx_probe’
 static int __devinit rtsx_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
                      ^
/home/sebastian/UbuntuSetup/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx.c:1069:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtsx_remove’
 static void __devexit rtsx_remove(struct pci_dev *pci)
                       ^
/home/sebastian/UbuntuSetup/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx.c:1094:11: error: ‘rtsx_probe’ undeclared here (not in a function)
  .probe = rtsx_probe,
           ^
/home/sebastian/UbuntuSetup/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx.c:1095:2: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
  .remove = __devexit_p(rtsx_remove),
  ^
/home/sebastian/UbuntuSetup/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx.c:1095:24: error: ‘rtsx_remove’ undeclared here (not in a function)
  .remove = __devexit_p(rtsx_remove),
                        ^
cc1: some warnings being treated as errors
make[2]: *** [/home/sebastian/UbuntuSetup/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx.o] Error 1
make[1]: *** [_module_/home/sebastian/UbuntuSetup/Realtek_RTS5229_Linux_Driver_v1.07/rts5229] Error 2
make: *** [default] Error 2

Os erros ocorrem no rtsx.c (carregado para o meu Dropbox)

Ubuntu Trusty x64

    
por s3lph 26.06.2014 / 18:09

1 resposta

2

Você não precisa compilá-los. Eles estão nos seguintes pacotes, instalá-los.

sudo apt-get install build-essential libssl-dev linux-headers-'uname -r' linux-firmware-nonfree
    
por user308564 28.06.2014 / 20:44