View previous topic :: View next topic |
Author |
Message |
realthing Apprentice
Joined: 29 Jul 2003 Posts: 163 Location: Milano, Italy
|
Posted: Mon Aug 18, 2003 8:10 am Post subject: USB e moduli |
|
|
Ciao a tutti.
Ho una fotocamera digitale Minolta.
Leggendo qua e là in rete, sono riuscito a configurare Gentoo per usarla.
Carico i miei moduli del kernel, la monto come un disco SCSI e scarico le foto.
I moduli del kernel che ho abilitato e che devo caricare sono (vado a memoria) usb-uhci e usb-storage.
Esiste un modo per caricarli in automatico?
Non all'avvio con modules.autoload ovviamente.
Vorrei che tali moduli si caricassero da soli quando viene rilevata la fotocamera sul bus USB.
Chiedo troppo?
Sono pigro e vorrei evitare di fare il modprobe "a mano" dei due moduli ogni volta che mi servono, ma allo stesso tempo vorrei evitare di caricarli se non mi servono....
Ciao |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31449 Location: here
|
Posted: Mon Aug 18, 2003 8:38 am Post subject: |
|
|
Sono quei moduli che fanno si che la fotocamera usb venga riconosciuta.
Quindi la risposta e' no, e' come voler far funzionare una stampante
senza driver. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
realthing Apprentice
Joined: 29 Jul 2003 Posts: 163 Location: Milano, Italy
|
Posted: Mon Aug 18, 2003 10:28 am Post subject: |
|
|
OK.
Immaginavo fosse così..
Riformulo la domanda..
E' possibile caricare i moduli tramite uno script bash?
Potrei farmi uno script che carica i moduli che mi servono, mi monta la fotocamere e mi copia le foto in una directoty..
Andrebbe eseguito con privilegi di root giusto?
Stasera provo.. |
|
Back to top |
|
|
cerri Bodhisattva
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Mon Aug 18, 2003 11:11 am Post subject: |
|
|
Hai attivata la funzione CONFIG_KMOD=y nel kernel? _________________ Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito |
|
Back to top |
|
|
shev Bodhisattva
Joined: 03 Feb 2003 Posts: 4084 Location: Italy
|
Posted: Mon Aug 18, 2003 11:41 am Post subject: |
|
|
cerri wrote: | Hai attivata la funzione CONFIG_KMOD=y nel kernel? |
Allora non sono matto. Non osavo dirlo perchè mi sembrava di spararla troppo grossa, ma io i moduli non li carico mai a mano (quasi...), ci pensa il mio bel kernel a fare tutto.
Per l'amico che poneva la domanda, ti riporto l'help dell'opzione che giustamente Cerri ti diceva di abilitare:
CONFIG_KMOD:
Normally when you have selected some drivers and/or file systems to
be created as loadable modules, you also have the responsibility to
load the corresponding modules (using the programs insmod or
modprobe) before you can use them. If you say Y here however, the
kernel will be able to load modules for itself: when a part of the
kernel needs a module, it runs modprobe with the appropriate
arguments, thereby loading the module if it is available. (This is a
replacement for kerneld.) Say Y here and read about configuring it
in Documentation/kmod.txt. _________________ Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo |
|
Back to top |
|
|
Benve l33t
Joined: 13 Mar 2003 Posts: 897 Location: Italy Romagna
|
Posted: Mon Aug 18, 2003 11:57 am Post subject: |
|
|
cerri wrote: | Hai attivata la funzione CONFIG_KMOD=y nel kernel? |
Ecco perchè tutto funziona automaticamente, me lo sto chiedendo da quando ho Gentoo |
|
Back to top |
|
|
realthing Apprentice
Joined: 29 Jul 2003 Posts: 163 Location: Milano, Italy
|
Posted: Mon Aug 18, 2003 12:02 pm Post subject: |
|
|
...ecco il punto!
Non ricordo a memoria se ho abilitato quell'opzine nel kernel....ora non sono a casa e non posso controllare, stasera controllerò!
Cmq.. cosi a occhio direi di no.... infatti mi devo sempre caricare i moduli con modprobe.
Grazie... vi farò sapere i risultati! |
|
Back to top |
|
|
cerri Bodhisattva
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Mon Aug 18, 2003 2:07 pm Post subject: |
|
|
Shev wrote: | Cos'è l'impossibile, se non una questione di tempo? |
Mi hai risollevato la giornata.
Grazie Shev. _________________ Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito |
|
Back to top |
|
|
shev Bodhisattva
Joined: 03 Feb 2003 Posts: 4084 Location: Italy
|
Posted: Mon Aug 18, 2003 2:50 pm Post subject: |
|
|
cerri wrote: | Shev wrote: | Cos'è l'impossibile, se non una questione di tempo? |
Mi hai risollevato la giornata.
Grazie Shev. |
Addirittura?
Mi fa piacere, considerando che l'ho scritta di getto senza nemmeno pensarci _________________ Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo |
|
Back to top |
|
|
cerri Bodhisattva
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Mon Aug 18, 2003 2:58 pm Post subject: |
|
|
Ti dico solo che ho preso l'etichettatrice, ho fatto una etichetta e l'ho appiccicata sul mio notebook. Sei anche finito nella mia lavagna.
Un'altra scritta che c'e': "Quando puoi, diventa antimateria." _________________ Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito |
|
Back to top |
|
|
|