View previous topic :: View next topic |
Author |
Message |
cataenry Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/13868762793ff4c9dca595e.png)
Joined: 04 Nov 2003 Posts: 343
|
Posted: Thu Nov 27, 2003 3:19 am Post subject: dopo aver ricompilato il kernel?? |
|
|
Ciao a tutti!
Finalmente ho compilato il mio kernel 2.6!!
Finalmente mi sono armato di tempo e ho configurato tutto e poi un mel make && make modules_install
Dopo aver copiato e rinominato i bzImage in /boot, questo è quello che ho in /boot...:
drwxr-xr-x 3 root root 1024 Nov 27 03:56 .
drwxr-xr-x 20 root root 456 Nov 27 03:19 ..
-rw-r--r-- 1 root root 0 Nov 19 02:04 .keep
-rw------- 1 root root 36352 Nov 19 02:04 .map
lrwxr-xr-x 1 root root 27 Nov 7 18:07 System.map -> System.map-2.4.20-gentoo-r8
-rw-r--r-- 1 root root 593705 Nov 7 18:07 System.map-2.4.20-gentoo-r8
-rw-r--r-- 1 root root 1325085 Nov 27 03:54 System.map-2.6.0
lrwxrwxrwx 1 root root 1 Nov 4 19:10 boot -> .
-rw-r--r-- 1 root root 512 Nov 5 13:46 boot.0300
lrwxrwxrwx 1 root root 11 Nov 5 13:37 boot.b -> boot-menu.b
-rw-r--r-- 1 root root 693119 Nov 7 18:08 initrd-2.4.20-gentoo-r8
-rw-r--r-- 1 root root 1265680 Nov 7 18:07 kernel-2.4.20-gentoo-r8
-rw-r--r-- 1 root root 2576243 Nov 27 03:56 kernel-2.6.0-test10
drwx------ 2 root root 12288 Nov 4 18:02 lost+found
Ok.. Mi ha creato un file bzImage e un system.map...
ora, nella nuova immagine, quale initrd devo immettere?
Come imposto i system.map?
Così va bene? Non avendo un floppy per usare un disco di boot, vorrei evitare di far casini immani!!
image = /boot/kernel-2.4.20-gentoo-r8
root = /dev/hda7
map = System.map-2.4.20-gentoo-r8
label = Gentoo
append="root=/dev/hda7 init=/linuxrc hdc=ide-scsi"
image = /boot/kernel-2.6-test10
root = /dev/hda7
map = System.map-2.6.0
label = Gentoo_2.6_powered
append="root=/dev/hda7 init=/linuxrc"
Questo è il mio lilo.conf
lba32
boot = /dev/hda
map = /boot/.map
install = /boot/boot-menu.b
menu-scheme=Wb
prompt
timeout=100
default=Gentoo
vga = 791
image = /boot/kernel-2.4.20-gentoo-r8
root = /dev/hda7
label = Gentoo
initrd=/boot/initrd-2.4.20-gentoo-r8
append="root=/dev/hda7 init=/linuxrc hdc=ide-scsi"
other = /dev/hda1
label = Windows
table = /dev/hda |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bld l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Zelda/Zelda_-_Link.jpg)
Joined: 26 Mar 2003 Posts: 759 Location: Outter Space
|
Posted: Thu Nov 27, 2003 4:08 am Post subject: beh |
|
|
beh non ti saro di grande aiuto dato che non ho letto attentamente il tuo
post di lilo.conf, l'unica cosa che volevo esplicitare e' che se hai il LiveCD di gentoo puoi sempre boot-are con quello per fare cambiamenti o qualsiasi cosa tu voglia, basta un semplice "chroot" per entrare nel sistema.. come ce scritto nella guida. _________________ A happy GNU/Linux user!! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cataenry Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/13868762793ff4c9dca595e.png)
Joined: 04 Nov 2003 Posts: 343
|
Posted: Thu Nov 27, 2003 1:03 pm Post subject: |
|
|
Ti ringrazio , ma vorrei evitare casini...
Non riesco a capire...: nel man di lilo.conf sembra che il file map debba essere uno e globale ...
Ma allora come faccio che ho 2 kernel diversi? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
teknux Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Southpark/avatar36.gif)
Joined: 19 Feb 2003 Posts: 517 Location: Rome, IT
|
Posted: Thu Nov 27, 2003 2:06 pm Post subject: |
|
|
cataenry wrote: |
Non riesco a capire...: nel man di lilo.conf sembra che il file map debba essere uno e globale ...
Ma allora come faccio che ho 2 kernel diversi? |
l'importante è che in boot siano presenti dei System.map-numeroversione. per esempio:
Code: |
System.map-2.6.0-t5
System.map-2.4.22
|
sono entrambi validi. nel lilo.conf devi specificare SOLO System.map, quindi inseriscilo nelle opzioni globali, non nelle singole label dei kernel.
saluti,
tek |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cataenry Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/13868762793ff4c9dca595e.png)
Joined: 04 Nov 2003 Posts: 343
|
Posted: Thu Nov 27, 2003 2:32 pm Post subject: |
|
|
Thanks a lot !! Solo 2 ultime domande
Questo è quello che ho in /boot:
.map
System.map -> System.map-2.4.20-gentoo-r8
System.map-2.4.20-gentoo-r8
System.map-2.6.0-test10-gentoo-r1
boot -> .
boot.0300
boot.b -> boot-menu.b
initrd-2.4.20-gentoo-r8
kernel-2.4.20-gentoo-r8
kernel-2.6.0-test10-gentoo-r1
lost+found
1) Come puoi vedere io ho questa entry..
la devo modificare così?
Code: | map = /boot/System.map | ?
Il link simbolico System.map che punta a System.map-2.4.20-gentoo-r8 lo devo eliminare?
2) In A2 dice di modificare /etc/rc.d/init.d/syslog http://a2.swlibero.org/a2485.html#index31103
Quote: |
La riga:
daemon klogd -k /boot/System.map
dovrà essere sostituita con:
daemon klogd -k /boot/System.map-`uname -r` |
Ora il file sul mio sistema si trova /etc/syslog, ma non c'è nessuna riga del genere... migliorie della tecnologia o un mio buco nell'acqua? ![Embarassed :oops:](images/smiles/icon_redface.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|