Első lépések Gentooban (kernel fordítás)

Fórumok

Hello!

Egy virtualbox-os gépben próbálok egy gentoot telepíteni. Egy 11.2 DVD-ről szépen bebootlok és step-by-step megcsinálom amit a kézikönyv mond.

A reboot után nem akar bootolni. Először magam konfoltam a magot később a genkernel-t használtam, de az sem vezetett eredményre.

Valakinek ötlete hogy merre keresgéljem a hibát, mivel a genkernell azt mondta hogy sikeresen lefutott a fordítás.

u.i.
a következő hozzászólásba bemásolom az alapvető adatokat: log, arch, stb ami még kelhet.

előre is köszönöm a segítséget

Hozzászólások

Gentoo-11 / # cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
stepping : 5
cpu MHz : 2367.700
cache size : 6144 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc rep_good nopl pni ssse3 lahf_lm
bogomips : 4735.40
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
stepping : 5
cpu MHz : 2367.700
cache size : 6144 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc rep_good nopl pni ssse3 lahf_lm
bogomips : 4799.99
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

--
http://hu.opensuse.org
http://phoenix-art.hanzo.hu/

(chroot) Gentoo-11 linux # genkernel all
* Gentoo Linux Genkernel; Version 3.4.16
* Running with options: all

* Linux Kernel 3.0.6-gentoo for x86_64...
* kernel: Using config from /usr/share/genkernel/arch/x86_64/kernel-config
* Previous config backed up to .config--2011-12-09--21-47-29.bak
* kernel: >> Running mrproper...
* >> Running oldconfig...
* kernel: >> Cleaning...
* >> Compiling 3.0.6-gentoo bzImage...
* >> Not installing firmware as it's included in the kernel already (CONFIG_FIRMWARE_IN_KERNEL=y)...
* >> Compiling 3.0.6-gentoo modules...
* Copying config for successful build to /etc/kernels/kernel-config-x86_64-3.0.6-gentoo
* e2fsprogs: >> Configuring...
* e2fsprogs: >> Compiling...
* blkid: >> Copying to cache...
* busybox: >> Applying patches...
* - 1.18.1-mdstart.diff
* - 1.18.1-openvt.diff
* - busybox-1.7.4-signal-hack.patch
* busybox: >> Configuring...
* busybox: >> Compiling...
* busybox: >> Copying to cache...
* initramfs: >> Initializing...
* >> Appending base_layout cpio data...
* >> Appending auxilary cpio data...
* >> Appending busybox cpio data...
* >> Appending modules cpio data...
* >> Appending blkid cpio data...
*
* Kernel compiled successfully!
*
* Required Kernel Parameters:
* real_root=/dev/$ROOT
*
* Where $ROOT is the device node for your root partition as the
* one specified in /etc/fstab
*
* If you require Genkernel's hardware detection features; you MUST
* tell your bootloader to use the provided INITRAMFS file. Otherwise;
* substitute the root argument for the real_root argument if you are
* not planning to use the initramfs...

* WARNING... WARNING... WARNING...
* Additional kernel cmdline arguments that *may* be required to boot properly...
* With support for several ext* filesystems around it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4"

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest ~arch genkernel before reporting bugs.

--
http://hu.opensuse.org
http://phoenix-art.hanzo.hu/

Gentoo-11 boot # ls -1
System.map-genkernel-x86_64-3.0.6-gentoo
boot
grub
initramfs-genkernel-x86_64-3.0.6-gentoo
kernel-3.0.0-gentoo-r1
kernel-genkernel-x86_64-3.0.6-gentoo
lost+found

Gentoo-11 grub # ls
default fat_stage1_5 iso9660_stage1_5 minix_stage1_5 stage1 stage2_eltorito xfs_stage1_5
device.map ffs_stage1_5 jfs_stage1_5 reiserfs_stage1_5 stage2 ufs2_stage1_5
e2fs_stage1_5 grub.conf menu.lst splash.xpm.gz stage2.old vstafs_stage1_5
Gentoo-11 grub # cat menu.lst
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#d…
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.24-r5
root (hd0,0)

kernel /boot/kernel-3.0.0-gentoo-r1 root=/dev/ram0 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86_64-3.0.6-gentoo

#kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r5 root=/dev/ram0 real_root=/dev/sda3
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5

# vim:ft=conf:

--
http://hu.opensuse.org
http://phoenix-art.hanzo.hu/

Ezt a "/boot/grub/grub.conf"-ot nem értem.
Hol a root? /dev/sda3-on?
Akkor az "ls -l" alapján a következő kellene bele:
default 0
timeout 30
splashimage=(hd0,2)/boot/grub/splash.xpm.gz

title Gentoo Linux (3.0.6-gentoo)
root (hd0,2)

kernel /boot/kernel-genkernel-x86_64-3.0.6-gentoo root=/dev/ram0 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86_64-3.0.6-gentoo

# vim:ft=conf:

pontosítom a jelenséget, a grub képernyő sem jön be. Próbáltam a hd0,2 és hd0,0 verziót a grubban de nem segített.

amikor bootolni akarok nem történik semmi. a VM kiírja hogy nem talált bootolható médiumot.
--
http://hu.opensuse.org
http://phoenix-art.hanzo.hu/

Ha ez van a "/boot/grub/grub.conf"-ban:
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux (3.0.6-gentoo)
root (hd0,0)

kernel /boot/kernel-genkernel-x86_64-3.0.6-gentoo root=/dev/ram0 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86_64-3.0.6-gentoo

# vim:ft=conf:

és be vagy chrootolva /dev/sda3-ba és felmountoltad a /dev/sda1-et akkor:
# grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

és mennie kell.
Ha a "grub> root (" után nyomsz egy tabot akkor kiírja a virtuális gépnek adott eszközt.
Ha a "grub> root (hd0," után nyomsz egy tabot akkor kiírja az eszközön készített partíciókat.

Régen elég jó doksija volt, hülyeségek nem nagyon voltak benne. Mondjuk ez egy olyan 3-4 éve döglött disztró, szóval sokat ne várj tőle.

könnyen lehet hogy én értettem valamit félre és ez nem "új" rendszer mint pl a debian 6.0.3 hanem csak csomagfrissítések történtek és ennyi.

nem tudom. én csak most kezdem ismerkedni a gentooval és azt gondoltam hogy a liveDVD-nél lévő verzió szám a rendszer verzióját mutatja.

de látom a gentoo-release fájlban hogy 2.0.3, szóval az a szám nem a rendszer verziót jelzi.

--
http://hu.opensuse.org
http://phoenix-art.hanzo.hu/