Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ricompilare lo stesso kernel.[Risolto]
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)
View previous topic :: View next topic  
Author Message
saverik
Guru
Guru


Joined: 18 Oct 2008
Posts: 381

PostPosted: Thu Feb 21, 2013 8:45 am    Post subject: Ricompilare lo stesso kernel.[Risolto] Reply with quote

Buongiorno,
vi espongo il mio problema.
Seguendo il manuale di Gentoo Amd64 ho installato la GENTOO64bit sul mio notebook Hp DM3 3130 .
Mi sono compilato a mano il kernel e ho dato al file bzImage compilato il nome Gentoo3611.
Copiato in boot e grub funziona.La macchina si ravvia etc etc e tutto funziona bene .
Adesso volevo installare Xorg-server e mi dice di ricompilare il kernel per attivare nuove flag nel kernel.
Fino a qui mi e' tutto chiaro però mi sorge una domanda.
controllando con il comando ls -l /usr/src/linux questo mi riporta ai sorgenti che ho scaricato, e mi chiedo: ma se adesso ricompilo il kernel,quale vado a modificare?Quello gia compilato oppure quello scaricato originariamente e quindi privo di modifiche?
Spero di essere stato chiaro nell'esporre i fatti affinche qualcuno mi possa aiutare.
Grazie
_________________
Dell_7490 i5-8350u ,32GbRam,Adata8200proNvme512Gb
Linux= Gentoo64bit+Kde_Plasma+systemd


Last edited by saverik on Sun Feb 24, 2013 11:02 am; edited 1 time in total
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Thu Feb 21, 2013 10:49 am    Post subject: Reply with quote

quella che viene cambiata è il binario del kernel (bzImage) che hai sotto /usr/src/linux. il kernel nella boot non viene minimamente modificato quindi per rendere effettive le modifiche devi ricopiarlo in /boot ed, eventualmente, aggiornare il nome che metti in grub.conf

ci sono tool (tipo genkernel e forse anche make install) che, credo, automatizzano anche questo passaggio.
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
saverik
Guru
Guru


Joined: 18 Oct 2008
Posts: 381

PostPosted: Thu Feb 21, 2013 3:05 pm    Post subject: Reply with quote

si, ricopiare in boot il bzimage compilato va bene.. ma non so se io facendo il make meuconfig le vecchie impostazioni le mantengo.
mi spiego meglio: se ricompilo devo rifare anche le flag precedenti o solo quelle nuove?Tieni presente che parliamo dello stesso source gentoo...quindi non ho scaricato nulla di nuovo.il sistema ha poche ore di vita.. :oops:
_________________
Dell_7490 i5-8350u ,32GbRam,Adata8200proNvme512Gb
Linux= Gentoo64bit+Kde_Plasma+systemd
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Thu Feb 21, 2013 3:28 pm    Post subject: Reply with quote

la configurazione del kernel è scritta nel file (nascosto) .config all'interno della directory dei sorgenti. quando tu modifichi una configurazione (menuconfig) allora questo viene modificato solo nelle parti interessate al cambiamento.

Ti basta poco per fare una prova e vedere che solamente qualche riga viene modificata, alla fine è un file di testo. (hint: copia e diff)

Quando, invece, ti capita di cambiare sorgenti anche in quel caso puoi non partire da zero. Basta copiare il vecchio .config nella nuova directory di sorgenti e dare
Code:
# make oldconfig


Questo tool "sincronizza" le voci che tra una release e l'altra hanno cambiato nome e ti propone delle scelte per le voci aggiunte nella nuova versione.
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Sat Feb 23, 2013 1:00 pm    Post subject: Reply with quote

RTFM
cd /usr/src/linux ; make help wrote:
[omissis]
Configuration targets:
[omissis]
silentoldconfig - Same as oldconfig, but quietly, additionally update deps
[omissis]
listnewconfig - List new options
[omissis]
Code:
cd /usr/src/linux
cp /vattelappesca/.config .config
make listnewconfig
make silentoldconfig
make menuconfig
ma anche
Code:
cd /usr/src/linux
cp /vattelappesca/.config .config
make listnewconfig
make silentoldconfig
genkernel --noclean --menuconfig all

_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
saverik
Guru
Guru


Joined: 18 Oct 2008
Posts: 381

PostPosted: Sun Feb 24, 2013 11:01 am    Post subject: Reply with quote

Tutto chiaro come sempre.grazie mille.
_________________
Dell_7490 i5-8350u ,32GbRam,Adata8200proNvme512Gb
Linux= Gentoo64bit+Kde_Plasma+systemd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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