Newsgroup: it.comp.os.linux.mandrake
Titolo: Help installare driver

Ho trovato su internet i driver per la mia porta irda in due versioni
diverse: una con un file *.diff e una col file makefile entrambe
accompagnate dai file *.c e *.h
Quale mi conviene usare e come faccio ad installarlo?

 Quale mi conviene usare e come faccio ad installarlo?
... ti conviene installare la seconda.
-- 
Lorenzo "Paulatz" Paulatto
Trieste
Dagli errori di Windows 98:
1070 0x042E Dopo l'avvio, il servizio si è sospeso in uno stato di attesa.
1440 0x05A0 Schermo già bloccato.

 ... ti conviene installare la seconda.
ah ok grazie!
ma adesso come uso il makefile?



ho provato a fare >make all dalla cartella dove l'ho scompattato
(file:/home/kombatt/Internet Downloads/stir4200) ma mi da vari errori...
chi mi può aiutare?

>ma adesso come uso il makefile?
Hai letto il file INSTALL?
Se non c'è un file INSTALL o README segnalalo come bug agli sviluppatori.
ciao



non c'è nessun file INSTALL ma solo un troubleshooting che non dice
niente sull'installazione ma solo su certe impostazioni del dispositivo.
il problema è che è un driver in versione non definitiva creato da un
tipo perchè i driver sembrano non esistere

 tipo perchè i driver sembrano non esistere
Ok. Forse c'è un script configure nelal directory (lo avii con 
./configure) altrimenti devi andare a dare un'occhiata a mano al 
Makefile per sistemare eventuali parametri da adattare al tuo sistema 
(tipo qualche PATH o simili).
In linea di massima avrai bisogno di installare vari pacchetti develop.
Prova a postare gli errori che ottieni, forse posso darti una mano.


 Prova a postare gli errori che ottieni, forse posso darti una mano.
Mi dispiace ma è un po' lungo
volevo comunque puntare l'attenzione sul primo problema che penso sia
fondamentale
(lo penso d'istinto perchè non so cosa sia):
<command line>:138832085:26904: /lib/modules/2.6.3-7mdk/build/include/linux/modv
ersions.h: No such file or directory
Per il resto questo è quello che mi sputa dopo aver fatto "make" da su:
cc -I/lib/modules/2.6.3-7mdk/build/include -I../include -Wall -Wcast-align -Wstr
ict-prototypes -O2 -DLINUX -D__KERNEL__ -DMODULE -DMODVERSIONS -fomit-frame-poin
ter -fno-common -pipe -mpreferred-stack-boundary=2 -include /lib/modules/2.6.3-7
mdk/build/include/linux/modversions.h -DKBUILD_BASENAME=stir4200 -o stir4200.o -
c stir4200.c
<command line>:138832085:26904: /lib/modules/2.6.3-7mdk/build/include/linux/modv
ersions.h: No such file or directory
In file included from /lib/modules/2.6.3-7mdk/build/include/asm/processor.h:18,
                 from /lib/modules/2.6.3-7mdk/build/include/asm/thread_info.h:13
,
                 from /lib/modules/2.6.3-7mdk/build/include/linux/thread_info.h:
21,
                 from /lib/modules/2.6.3-7mdk/build/include/linux/spinlock.h:12,
                 from /lib/modules/2.6.3-7mdk/build/include/linux/capability.h:4
5,
                 from /lib/modules/2.6.3-7mdk/build/include/linux/sched.h:7,
                 from /lib/modules/2.6.3-7mdk/build/include/linux/module.h:10,
                 from stir4200.c:39:
/lib/modules/2.6.3-7mdk/build/include/asm/system.h: In function `__set_64bit_var
':
/lib/modules/2.6.3-7mdk/build/include/asm/system.h:193: warning: dereferencing t
ype-punned pointer will break strict-aliasing rules
/lib/modules/2.6.3-7mdk/build/include/asm/system.h:193: warning: dereferencing t
ype-punned pointer will break strict-aliasing rules
In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:20,
                 from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6,
                 from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11
,
                 from /lib/modules/2.6.3-7mdk/build/include/linux/netdevice.h:50
1,
                 from stir4200.c:46:
/lib/modules/2.6.3-7mdk/build/include/asm/irq.h:16:25: irq_vectors.h: No such fi
le or directory
In file included from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6,
                 from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11
,
                 from /lib/modules/2.6.3-7mdk/build/include/linux/netdevice.h:50
1,
                 from stir4200.c:46:
/lib/modules/2.6.3-7mdk/build/include/linux/irq.h: At top level:
/lib/modules/2.6.3-7mdk/build/include/linux/irq.h:70: error: `NR_IRQS' undeclare
d here (not in a function)
In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:72,
                 from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6,
                 from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11
,
                 from /lib/modules/2.6.3-7mdk/build/include/linux/netdevice.h:50
1,
                 from stir4200.c:46:
/lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' u
ndeclared here (not in a function)
/lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclar
ed here (not in a function)
stir4200.c:60:41: missing binary operator before token "("
stir4200.c: In function `stir_tx_submit':
stir4200.c:401: warning: implicit declaration of function `FILL_BULK_URB'
stir4200.c:409: error: `USB_QUEUE_BULK' undeclared (first use in this function)
stir4200.c:409: error: (Each undeclared identifier is reported only once
stir4200.c:409: error: for each function it appears in.)
stir4200.c:409: error: `USB_ASYNC_UNLINK' undeclared (first use in this function
)
stir4200.c:454: error: too few arguments to function `usb_submit_urb'
stir4200.c:483:41: missing binary operator before token "("
stir4200.c: In function `stir_change_speed_async':
stir4200.c:486: error: `devrequest' undeclared (first use in this function)
stir4200.c:486: error: `dr' undeclared (first use in this function)
stir4200.c:505: error: `USB_ST_NOERROR' undeclared (first use in this function)
stir4200.c:517: warning: implicit declaration of function `FILL_CONTROL_URB'
stir4200.c:544: error: too few arguments to function `usb_submit_urb'
stir4200.c: In function `stir_change_speed_callback':
stir4200.c:581: error: too few arguments to function `usb_submit_urb'
stir4200.c: In function `stir_check_urb':
stir4200.c:789: error: `USB_ST_URB_PENDING' undeclared (first use in this functi
on)
stir4200.c: In function `stir_rx_submit':
stir4200.c:935: error: `USB_QUEUE_BULK' undeclared (first use in this function)
stir4200.c:937: error: structure has no member named `next'
stir4200.c:939: error: too few arguments to function `usb_submit_urb'
stir4200.c: In function `stir_net_open':
stir4200.c:1218: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/mo
dules/2.6.3-7mdk/build/include/linux/module.h:502)
stir4200.c: In function `stir_net_close':
stir4200.c:1254: error: `USB_ASYNC_UNLINK' undeclared (first use in this functio
n)
stir4200.c:1266: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/mo
dules/2.6.3-7mdk/build/include/linux/module.h:514)
stir4200.c: In function `stir_open':
stir4200.c:1431: warning: `dev_alloc' is deprecated (declared at /lib/modules/2.
6.3-7mdk/build/include/linux/netdevice.h:530)
stir4200.c: In function `stir_probe':
stir4200.c:1614: error: request for member `altsetting' in something not a struc
ture or union
stir4200.c:1615: error: structure has no member named `endpoint'
stir4200.c: In function `stir_disconnect':
stir4200.c:1672: error: `USB_ASYNC_UNLINK' undeclared (first use in this functio
n)
stir4200.c: At top level:
stir4200.c:1693: warning: initialization from incompatible pointer type
stir4200.c:1694: warning: initialization from incompatible pointer type
make: *** [stir4200.o] Error 1

 ersions.h: No such file or directory
Se non altro ti mancano i sorgenti del kernel.
Li installi con il comando
   urpmi kernel-source
o eventualmente
   urpmi kernel-source-`uname -r`


    urpmi kernel-source-`uname -r`
devo installare per forza la versione del kernel che ho su oppure posso
metterne una + recente?
grazie mille

 grazie mille
Ho installato 2.6.3-19mdk (anche se avevo già prima 2.6.3-7mdk) ma da
sempre errore
non penso sia li il problema