Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel e initramfs
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
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sun Sep 04, 2005 6:32 pm    Post subject: kernel e initramfs Reply with quote

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
View user's profile Send private message
Franxiz
n00b
n00b


Joined: 14 Aug 2005
Posts: 5
Location: Trento

PostPosted: Wed Sep 07, 2005 11:53 am    Post subject: genkernel Reply with quote

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
View user's profile Send private message
bandreabis
Advocate
Advocate


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

PostPosted: Wed Sep 07, 2005 12:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Wed Sep 07, 2005 12:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Sep 07, 2005 12:53 pm    Post subject: Reply with quote

è 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
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Wed Sep 07, 2005 1:00 pm    Post subject: Reply with quote

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 :D
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Wed Sep 07, 2005 1:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Sep 07, 2005 2:07 pm    Post subject: Reply with quote

scusa ma all'avvio che errore viene fuori ?
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Wed Sep 07, 2005 2:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Sep 07, 2005 2:43 pm    Post subject: Reply with quote

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
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