Mne nefunguje kompilácia v 9.04. Príkaz Make mi vyhodí nasledovnú chybu:
make -C /lib/modules/2.6.28-11-generic/build M=/home/matej/Desktop/Pokus1 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-11-generic'
CC [M] /home/matej/Desktop/Pokus1/ft1000_usb.o
/home/matej/Desktop/Pokus1/ft1000_usb.c: In function ‘ft1000_probe’:
/home/matej/Desktop/Pokus1/ft1000_usb.c:186: warning: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘struct FT1000_INFO *’
/home/matej/Desktop/Pokus1/ft1000_usb.c: In function ‘ft1000_disconnect’:
/home/matej/Desktop/Pokus1/ft1000_usb.c:243: warning: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘struct FT1000_INFO *’
CC [M] /home/matej/Desktop/Pokus1/ft1000_hw.o
/home/matej/Desktop/Pokus1/ft1000_hw.c: In function ‘ft1000_control’:
/home/matej/Desktop/Pokus1/ft1000_hw.c:164: warning: ISO C90 forbids mixed declarations and code
/home/matej/Desktop/Pokus1/ft1000_hw.c: In function ‘ft1000_reset_card’:
/home/matej/Desktop/Pokus1/ft1000_hw.c:854: warning: unused variable ‘flags’
/home/matej/Desktop/Pokus1/ft1000_hw.c:853: warning: unused variable ‘i’
/home/matej/Desktop/Pokus1/ft1000_hw.c:852: warning: unused variable ‘templong’
/home/matej/Desktop/Pokus1/ft1000_hw.c: In function ‘init_ft1000_netdev’:
/home/matej/Desktop/Pokus1/ft1000_hw.c:1052: warning: assignment from incompatible pointer type
/home/matej/Desktop/Pokus1/ft1000_hw.c: In function ‘ft1000_read_fifo_reg’:
/home/matej/Desktop/Pokus1/ft1000_hw.c:1246: warning: ISO C90 forbids mixed declarations and code
/home/matej/Desktop/Pokus1/ft1000_hw.c: In function ‘ft1000_read_fifo_len’:
/home/matej/Desktop/Pokus1/ft1000_hw.c:1361: warning: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘struct ft1000_device *’
/home/matej/Desktop/Pokus1/ft1000_hw.c:1364: warning: ISO C90 forbids mixed declarations and code
/home/matej/Desktop/Pokus1/ft1000_hw.c: In function ‘ft1000_submit_rx_urb’:
/home/matej/Desktop/Pokus1/ft1000_hw.c:1764: warning: passing argument 6 of ‘usb_fill_bulk_urb’ from incompatible pointer type
/home/matej/Desktop/Pokus1/ft1000_hw.c: In function ‘ft1000_receive_cmd’:
/home/matej/Desktop/Pokus1/ft1000_hw.c:2064: warning: passing argument 3 of ‘ft1000_read_dpram16’ from incompatible pointer type
/home/matej/Desktop/Pokus1/ft1000_hw.c:2062: warning: unused variable ‘tempbuffer’
/home/matej/Desktop/Pokus1/ft1000_hw.c:2060: warning: unused variable ‘flags’
/home/matej/Desktop/Pokus1/ft1000_hw.c:2058: warning: unused variable ‘j’
/home/matej/Desktop/Pokus1/ft1000_hw.c:2055: warning: unused variable ‘info’
/home/matej/Desktop/Pokus1/ft1000_hw.c: In function ‘ft1000_proc_drvmsg’:
/home/matej/Desktop/Pokus1/ft1000_hw.c:2479: warning: passing argument 2 of ‘CardSendCommand’ from incompatible pointer type
/home/matej/Desktop/Pokus1/ft1000_hw.c:2226: warning: unused variable ‘j’
/home/matej/Desktop/Pokus1/ft1000_hw.c: In function ‘ft1000_poll’:
/home/matej/Desktop/Pokus1/ft1000_hw.c:2509: warning: unused variable ‘j’
/home/matej/Desktop/Pokus1/ft1000_hw.c: At top level:
/home/matej/Desktop/Pokus1/ft1000_hw.c:801: warning: ‘ft1000_disable_interrupts’ defined but not used
/home/matej/Desktop/Pokus1/ft1000_hw.c:823: warning: ‘ft1000_enable_interrupts’ defined but not used
/home/matej/Desktop/Pokus1/ft1000_hw.c: In function ‘ft1000_poll’:
/home/matej/Desktop/Pokus1/ft1000_hw.c:2608: warning: array subscript is above array bounds
/home/matej/Desktop/Pokus1/ft1000_hw.c:2608: warning: array subscript is above array bounds
CC [M] /home/matej/Desktop/Pokus1/ft1000_download.o
/home/matej/Desktop/Pokus1/ft1000_download.c: In function ‘get_handshake’:
/home/matej/Desktop/Pokus1/ft1000_download.c:301: warning: unused variable ‘temp’
/home/matej/Desktop/Pokus1/ft1000_download.c: In function ‘get_handshake_usb’:
/home/matej/Desktop/Pokus1/ft1000_download.c:454: warning: ISO C90 forbids mixed declarations and code
/home/matej/Desktop/Pokus1/ft1000_download.c: In function ‘write_blk_fifo’:
/home/matej/Desktop/Pokus1/ft1000_download.c:871: warning: unused variable ‘pblk’
/home/matej/Desktop/Pokus1/ft1000_download.c:870: warning: unused variable ‘pipe’
/home/matej/Desktop/Pokus1/ft1000_download.c:868: warning: unused variable ‘cnt’
/home/matej/Desktop/Pokus1/ft1000_download.c: In function ‘scram_dnldr’:
/home/matej/Desktop/Pokus1/ft1000_download.c:969: warning: unused variable ‘i’
/home/matej/Desktop/Pokus1/ft1000_download.c:950: warning: unused variable ‘pDspImageInfo’
CC [M] /home/matej/Desktop/Pokus1/ft1000_chdev.o
/home/matej/Desktop/Pokus1/ft1000_chdev.c: In function ‘exec_mknod’:
/home/matej/Desktop/Pokus1/ft1000_chdev.c:121: warning: ISO C90 forbids mixed declarations and code
/home/matej/Desktop/Pokus1/ft1000_chdev.c:112: warning: unused variable ‘i’
/home/matej/Desktop/Pokus1/ft1000_chdev.c: In function ‘rm_mknod’:
/home/matej/Desktop/Pokus1/ft1000_chdev.c:156: warning: ISO C90 forbids mixed declarations and code
/home/matej/Desktop/Pokus1/ft1000_chdev.c: In function ‘ft1000_CreateDevice’:
/home/matej/Desktop/Pokus1/ft1000_chdev.c:261: warning: format ‘%x’ expects type ‘unsigned int’, but argument 3 has type ‘struct ft1000_device *’
/home/matej/Desktop/Pokus1/ft1000_chdev.c: In function ‘ft1000_ChOpen’:
/home/matej/Desktop/Pokus1/ft1000_chdev.c:424: warning: ISO C90 forbids mixed declarations and code
/home/matej/Desktop/Pokus1/ft1000_chdev.c:428: warning: format ‘%x’ expects type ‘unsigned int’, but argument 3 has type ‘struct ft1000_device *’
/home/matej/Desktop/Pokus1/ft1000_chdev.c: In function ‘ft1000_ChIoctl’:
/home/matej/Desktop/Pokus1/ft1000_chdev.c:628: warning: passing argument 3 of ‘ft1000_read_dpram16’ from incompatible pointer type
/home/matej/Desktop/Pokus1/ft1000_chdev.c:631: warning: passing argument 3 of ‘ft1000_read_dpram16’ from incompatible pointer type
/home/matej/Desktop/Pokus1/ft1000_chdev.c:795: warning: passing argument 2 of ‘CardSendCommand’ from incompatible pointer type
/home/matej/Desktop/Pokus1/ft1000_chdev.c:658: warning: unused variable ‘ptr’
LD [M] /home/matej/Desktop/Pokus1/ft1000usb.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/matej/Desktop/Pokus1/ft1000usb.mod.o
LD [M] /home/matej/Desktop/Pokus1/ft1000usb.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-11-generic'
Programovať neviem, prosím o pomoc, pravdepodobne bude problém v novom jadre, určite treba zmeniť len pár vecí v zdrojáku, ale ja neviem kde a ani čo.
Driver ft1000usb.ko sa ale vytvoril, keď zapojím kartu do slotu aj sa na net propojím, vďaka tomu teraz toto píšem. Po chvíli (je to rôzne, od 10 do 40 minút) sa ale spojenie preruší a nepomáha nič. Odstránenie driveru pomocou rmmod zmrzne úplne do tuha, aj vysunutie karty zo slotu.
Čo s tým?