View previous topic :: View next topic |
Author |
Message |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sun Sep 04, 2005 6:32 pm Post subject: kernel e initramfs |
|
|
da quando è stato introdotto il supporto all'initramfs, non sono più riuscito a farmi un kernel funzionante con genkernel.
devo specificare l'opzione --bootsplash, con la quale viene generato ancora la vecchia immagine initrd, diversamente viene generato correttamente l'initramfs, che però è VUOTO.
qualcuno è riuscito a fare un initramfs funzionante e mi da una manina a capire cosa non va nelle mie configurazioni? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Franxiz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Aug 2005 Posts: 5 Location: Trento
|
Posted: Wed Sep 07, 2005 11:53 am Post subject: genkernel |
|
|
quando ho compilato il mio ho dato genkernell --menuconfig all
e mi ha creato il kernel e l' initramfs funzionanti senza particolari problemi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bandreabis Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/188011968046698f5684c86.jpg)
Joined: 18 Feb 2005 Posts: 2495 Location: イタリアのロディで
|
Posted: Wed Sep 07, 2005 12:12 pm Post subject: |
|
|
E' una provocazione, ma non troppo... perchè non ti cimenti in una compilazione a mano?
In compenso io non ho mai provato a compilare con genkernel....
Andrea |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ic3M4n Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/108089865444d4c570e38bb.gif)
Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Wed Sep 07, 2005 12:24 pm Post subject: |
|
|
bandreabis wrote: | E' una provocazione, ma non troppo... perchè non ti cimenti in una compilazione a mano? |
non credo che il problema di k.gothmog sia quello di doversi creare un kernel a mano, piuttosto il suo intento era di utilizzare genkernel per avere un initrd funzionante. o comunque che volesse opinioni da parte di altri sul problema. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
makoomba Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/54100765943a2d293cd61e.jpg)
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Wed Sep 07, 2005 12:53 pm Post subject: |
|
|
è successo anche a me e la cosa mi ha fatto perdere una discreta quantità di tempo ....
al 99% il problema è imputabile ai binari presenti in /usr/share/genkernel/pkg/x86 e/o ad un errato aggiornamento di /etc/genkernel.conf
unmergi genkernel e cancella la directory /usr/share/genkernel, anche /etc/genkernel.conf tanto per andare sul sicuro.
riemergi e dovrebbe andare. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Wed Sep 07, 2005 1:00 pm Post subject: |
|
|
makoomba wrote: | unmergi genkernel e cancella la directory /usr/share/genkernel, anche /etc/genkernel.conf tanto per andare sul sicuro.
riemergi e dovrebbe andare. |
mi piace questo approccio. ci provo ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Wed Sep 07, 2005 1:27 pm Post subject: |
|
|
continuo a non capire. questo è il contenuto del mio initramfs
Code: | ./dev
./dev/console
./dev/null
./dev/tty1
./bin
./etc
./etc/fstab
./usr
./usr/bin
./usr/sbin
./proc
./temp
./sys
./var
./var/lock
./var/lock/dmraid
./sbin |
che palle. che mi dite di queste opzioni nel kernel?
RAM disk support
Initial RAM disk (initrd) support
Initramfs source file(s) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
makoomba Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/54100765943a2d293cd61e.jpg)
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Wed Sep 07, 2005 2:07 pm Post subject: |
|
|
scusa ma all'avvio che errore viene fuori ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Wed Sep 07, 2005 2:30 pm Post subject: |
|
|
makoomba wrote: | scusa ma all'avvio che errore viene fuori ? |
ovviamente con questo initrd non è in grado di avviare il sistema. non ci sono i moduli necessari per fare il boot |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
makoomba Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/54100765943a2d293cd61e.jpg)
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Wed Sep 07, 2005 2:43 pm Post subject: |
|
|
che comandi hai usato per visualizzarlo ? gunzip + cpio ?
perchè se faccio così vedo anch'io solo una struttura di directories vuote.
dando un'occhiata ai sorgenti di genkernel, l'initiramfs è creato concatenando una serie di cpio.gz, il primo dei quali è quello che hai postato tu ( e che vedo anch'io )
Code: |
gw genkernel # gzcat /proc/config.gz | grep -iP 'init|ram'
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=8192
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
# Note: most of these also require special kernel boot parameters
CONFIG_SCSI_INITIO=m
CONFIG_NVRAM=m
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_RAMFS=y
# CONFIG_CRAMFS is not set
# CONFIG_FRAME_POINTER is not set
CONFIG_PAX_EMUTRAMP=y
CONFIG_X86_TRAMPOLINE=y
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|