Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Ricompilare i moduli esterni del kernel
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
Giambo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2004
Posts: 129
Location: Switzerland

PostPosted: Sun Aug 21, 2005 2:46 pm    Post subject: [TIP] Ricompilare i moduli esterni del kernel Reply with quote

Ogni volta che compilo un nuovo kernel ("A manina": make && make modules_install) devo poi ricordarmi di ri-emergere i moduli ALSA, ndiswraapper, gli ati-drivres, ...
Una seccatura, insomma :wink:

Non ci spero molto, ma non esiste una procedura "automagica" ?
_________________
Giambo
Back to top
View user's profile Send private message
lopio
Veteran
Veteran


Joined: 22 Dec 2003
Posts: 1161
Location: savona, Italy

PostPosted: Sun Aug 21, 2005 2:50 pm    Post subject: Reply with quote

credo che a parte farsi uno script che fa tutte le operazioni da te citate no :wink:
Back to top
View user's profile Send private message
102376
l33t
l33t


Joined: 19 Mar 2005
Posts: 608

PostPosted: Sun Aug 21, 2005 2:57 pm    Post subject: Reply with quote

porca mi hai ricordato che dovo fare anche io questa cosa !!!!!!

che stupido!!!,

ma devo farlo anche se cambio un solo modulo????:roll: :roll: :roll: :roll:
Back to top
View user's profile Send private message
neryo
Veteran
Veteran


Joined: 09 Oct 2004
Posts: 1292
Location: Ferrara, Italy, Europe

PostPosted: Sun Aug 21, 2005 3:15 pm    Post subject: Reply with quote

zocram wrote:

ma devo farlo anche se cambio un solo modulo????:roll: :roll: :roll: :roll:


in ogni caso ricompili tutto.. quindi si.
_________________
cache: a safe place for hiding or storing things..

D-link DWL-G650 AirPlus
Apache Php Mysql
Back to top
View user's profile Send private message
oRDeX
Veteran
Veteran


Joined: 19 Oct 2003
Posts: 1325
Location: Italy

PostPosted: Sun Aug 21, 2005 4:13 pm    Post subject: Reply with quote

e se invece di ricompilare questi "moduli esterni" te li copi da qualche parte quando fai la prima installazione di questi e poi li rimetti a posto tramite un semplice cp ogni qual volta che ricompili il kernel??
Back to top
View user's profile Send private message
Giambo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2004
Posts: 129
Location: Switzerland

PostPosted: Sun Aug 21, 2005 4:37 pm    Post subject: Reply with quote

oRDeX wrote:
e se invece di ricompilare questi "moduli esterni" te li copi da qualche parte quando fai la prima installazione di questi e poi li rimetti a posto tramite un semplice cp ogni qual volta che ricompili il kernel??


A dire il vero sarebbero gia' disponibili sotto /lib/modules, ma non mi fido a inserire il modulo compilato per un certo kernel dentro un kernel con un'altra versione.
Inoltre il driver ati deve ogni volta essere compilato per _quel_ kernel e con _quel_ gcc 8O
Credo che mi faro' un piccolo scriptino che ri-emerge quei due o tre pacchetti, tanto per non dimenticare :)
_________________
Giambo
Back to top
View user's profile Send private message
fabius
Guru
Guru


Joined: 29 Nov 2004
Posts: 525

PostPosted: Mon Aug 29, 2005 9:44 pm    Post subject: Reply with quote

Forse l'utility sys-kernel/module-rebuild può fare al caso tuo
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Tue Aug 30, 2005 8:56 am    Post subject: Reply with quote

fabius wrote:
Forse l'utility sys-kernel/module-rebuild può fare al caso tuo


Interessante non la conoscevo.

L'hai usata ? Se si, che feedback fornisci?
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
fabius
Guru
Guru


Joined: 29 Nov 2004
Posts: 525

PostPosted: Tue Aug 30, 2005 9:12 am    Post subject: Reply with quote

gutter wrote:
L'hai usata ? Se si, che feedback fornisci?

Si, la uso normalmente dopo aver installato un nuovo kernel con un
Code:
module-rebuild rebuild

Mi sembra fatta bene, gestisce un database per i package da ricompilare ad ogni aggiornamento del kernel. Io ho aggiunto manualmente i package che mi servivano con il comando add, c'è però anche il comando populate che non ho mai provato.
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Tue Aug 30, 2005 9:17 am    Post subject: Reply with quote

fabius wrote:
Mi sembra fatta bene, gestisce un database per i package da ricompilare ad ogni aggiornamento del kernel. Io ho aggiunto manualmente i package che mi servivano con il comando add, c'è però anche il comando populate che non ho mai provato.


Grazie per le informazioni, la proverò :)
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
Giambo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2004
Posts: 129
Location: Switzerland

PostPosted: Tue Aug 30, 2005 6:18 pm    Post subject: Reply with quote

fabius wrote:
Forse l'utility sys-kernel/module-rebuild può fare al caso tuo


Geniale, credo sia proprio quel che cercavo, grazie !
_________________
Giambo
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2489
Location: イタリアのロディで

PostPosted: Tue Aug 30, 2005 9:03 pm    Post subject: Reply with quote

Per me che ho solo il modulo nvidia-kernel e non tocco spesso il mio kernel (a parte questo caso), è meglio usare emerge nvidia-kernel...
.. ma devo dire che è comodo per chi ha molti moduli...

A.*
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Sat Sep 17, 2005 7:12 pm    Post subject: Reply with quote

fabius wrote:

Mi sembra fatta bene, gestisce un database per i package da ricompilare ad ogni aggiornamento del kernel. Io ho aggiunto manualmente i package che mi servivano con il comando add, c'è però anche il comando populate che non ho mai provato.


Ho appena fatto qualche test e mi sembra che funzioni abbastanza bene :)

Per quanto riguarda il database si tratta di un file di testo opportunamente formattato che si trova in:

Code:
/var/lib/module-rebuild/


Grazie ancora per il TIP.
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Thu Nov 24, 2005 10:13 am    Post subject: [TIP] nuovo kernel nuovi moduli esterni (module-rebuild) Reply with quote

Quanti di voi usano moduli esterni al kernel? Molti immagino, chi per necessita [i possessori di schede 3d] chi per scelta [i moduli alsa o ipw2*00 del wireless centrino sono più aggiornati rispetto ai drivers presenti nel kernel].

Ora come molti di voi avranno sperimentato, un nuovo kernel comporta la reinstallazione di tutti i pacchetti costruiti specificatamente su una release del kernel. Per ovviare al problema di doversi ricordare quali moduli si hanno installati, quei geniacci degli sviluppatori di gentoo hanno partorito module-rebuild. Questo pacchetto non fa altro che tener traccia dei moduli installati, così che terminata l'installazione del nuovo kernel basterà dare un
Code:
module-rebuild rebuild
per effettuare la reinstallazione di tutti i moduli insteressati.

Se desiderate escludere n modulo dall'aggiornamento, sarà sufficiente digitare
Quote:
module-rebuild toggle $tipo_pacchetto/nome_pacchetto
Per riabilitarlo, digitate il medesimo comando.

Questo è l'help del programma:

Code:
module-rebuild [options] action [category/package]
Version: 0.5

Where options are:
        -X       - Emerge based on package names,
                   not exact versions.
        -C       - Disable all coloured output.

Where action is one of:
        add      - Add package to moduledb.
        del      - Delete a package from moduledb.
        toggle   - Toggle auto-rebuild of Package.
        list     - List packages to auto-rebuild.
        rebuild  - Rebuild packages.
        populate - Populate the database with any
                   packages which currently install
                   drivers into the running kernel.


Come vedete il programma è molto intuitivo ma potente.

Spero vi possa esser d'aiuto nell'uso quotidiano :wink:
_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)


Last edited by .:deadhead:. on Thu Nov 24, 2005 10:23 am; edited 1 time in total
Back to top
View user's profile Send private message
nick_spacca
l33t
l33t


Joined: 29 May 2004
Posts: 689
Location: Paris/France

PostPosted: Thu Nov 24, 2005 10:17 am    Post subject: Reply with quote

Che figata...lo provero' subito... (tutto cio' che viene in aiuto alla mia ben scarsa memoria e' ben accetto 8) )
_________________
I can resist anything but temptation.
(O. Wilde)
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Thu Nov 24, 2005 11:29 am    Post subject: Reply with quote

Merge done.
_________________
Ciao da me!
Back to top
View user's profile Send private message
SilverXXX
l33t
l33t


Joined: 18 Sep 2004
Posts: 885

PostPosted: Thu Nov 24, 2005 12:43 pm    Post subject: Reply with quote

Io lo uso da parecchio e l'ho trovato ottimo. Ero convinto lo usassero tutti :lol:
Cmq, fate attenzione se usate l'opzione -X, a volte bisogna aggiornare anche altri componenti se fa l'update.
_________________
about:mozilla
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum