Flarion usb
Snazim sa rozbehat modem flarion pod fedorou 11. Postupoval som podla navodu, ktory mi na fedore 10 fungoval.
Tentoraz mi to stroskotalo na:
[root@localhost flarion]# make
make -C /lib/modules/2.6.29.3-155.fc11.i686.PAE/build M=/usr/etc/flarion modules
make[1]: Entering directory `/usr/src/kernels/2.6.29.3-155.fc11.i686.PAE'
CC [M] /usr/etc/flarion/ft1000_usb.o
/usr/etc/flarion/ft1000_usb.c: In function ‘ft1000_probe’:
/usr/etc/flarion/ft1000_usb.c:184: error: ‘struct net_device’ has no member named ‘priv’
/usr/etc/flarion/ft1000_usb.c:186: warning: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘struct FT1000_INFO *’
/usr/etc/flarion/ft1000_usb.c: In function ‘ft1000_disconnect’:
/usr/etc/flarion/ft1000_usb.c:243: warning: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘struct FT1000_INFO *’
make[2]: *** [/usr/etc/flarion/ft1000_usb.o] Error 1
make[1]: *** [_module_/usr/etc/flarion] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.29.3-155.fc11.i686.PAE'
make: *** [default] Error 2
tu je kod z ft1000_usb.c :
//download dsp image
DEBUG("ft1000_probe: start downloading dsp image...\n");
init_ft1000_netdev(ft1000dev);
pft1000info = ft1000dev->net->priv;
Je to kvoli zmene nazvu premennej v jadre?
dakujem
Pre pridávanie komentárov sa musíte prihlásiť.
skor je to tym, ze ten zdrojak co si pouzil je pre nejake niekolko rokov stare jadro a v novom je uz ina struktura net_device.
d.
kvoli flarionu (a netu) mam zatial v zalohe stare jadro - 2.6.27.xx ... a testujem dokedy mi system vydrzi funkcny
pft1000info = ft1000dev->net->priv;
za
pft1000info = (PFT1000_INFO)netdev_priv(ft1000dev->net);