View previous topic :: View next topic |
Author |
Message |
Rosetta n00b
Joined: 19 Feb 2011 Posts: 34
|
Posted: Tue Feb 22, 2011 7:47 pm Post subject: failed compiling the kernel |
|
|
I get the following result after compiling the kernel:
Reguired kernel parameter: real_root=/dev/$ROOT
Where $ROOT is the device node for your root parttion as the one specified in /etc/fstab
Warning warning warning
Additional kernel cmdline arguments that *may* be required to boot properly
What should i do to that?
/Rosetta |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Feb 23, 2011 6:24 am Post subject: |
|
|
did you make the kernel using genkernel?
I believe you are seeing: Quote: | genkernel all
* Gentoo Linux Genkernel; Version 3.4.10.907
* Linux Kernel 2.6.36-gentoo-r5 for x86_64...
* >> Compiling 2.6.36-gentoo-r5 bzImage...
* >> Compiling 2.6.36-gentoo-r5 modules...
* Copying config for successful build to /etc/kernels/kernel-config-x86_64-2.6.36-gentoo-r5
* e2fsprogs: >> Configuring...
* e2fsprogs: >> Compiling...
* blkid: >> Copying to cache...
* busybox: >> Using 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...
* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest genkernel before reporting bugs. | These are helpful reminders of entries to be made in /boot/grub/grub.conf, not error messages.
If in the chroot run You should see something like: Quote: | ~ # ls /boot
System.map-genkernel-x86_64-2.6.36-gentoo-r5
boot
grub
initramfs-genkernel-x86_64-2.6.36-gentoo-r5
kernel-genkernel-x86_64-2.6.36-gentoo-r5 | Red items will be used in grub.conf with exact spelling you see in YOUR ls output. For example: Quote: | Code Listing 2.4: grub.conf for genkernel users
default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.36-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86-2.6.36-gentoo-r5 | (hd0,0) will be correct if you put the /boot partition on the first partition of the primary boot hard drive. real_root=/dev/sda3 will be correct if you put your / (root) partition on the third partition of the drive the kernel named sda.
So, after emerging grub, Code: | nano /boot/grub/grub.conf | and edit grub.conf to reflect your values. _________________ Defund the FCC. |
|
Back to top |
|
|
Rosetta n00b
Joined: 19 Feb 2011 Posts: 34
|
Posted: Wed Feb 23, 2011 8:23 pm Post subject: |
|
|
DONAHUE wrote: | did you make the kernel using genkernel?
I believe you are seeing: Quote: | genkernel all
* Gentoo Linux Genkernel; Version 3.4.10.907
* Linux Kernel 2.6.36-gentoo-r5 for x86_64...
* >> Compiling 2.6.36-gentoo-r5 bzImage...
* >> Compiling 2.6.36-gentoo-r5 modules...
* Copying config for successful build to /etc/kernels/kernel-config-x86_64-2.6.36-gentoo-r5
* e2fsprogs: >> Configuring...
* e2fsprogs: >> Compiling...
* blkid: >> Copying to cache...
* busybox: >> Using 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...
* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest genkernel before reporting bugs. | These are helpful reminders of entries to be made in /boot/grub/grub.conf, not error messages.
If in the chroot run You should see something like: Quote: | ~ # ls /boot
System.map-genkernel-x86_64-2.6.36-gentoo-r5
boot
grub
initramfs-genkernel-x86_64-2.6.36-gentoo-r5
kernel-genkernel-x86_64-2.6.36-gentoo-r5 | Red items will be used in grub.conf with exact spelling you see in YOUR ls output. For example: Quote: | Code Listing 2.4: grub.conf for genkernel users
default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.36-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86-2.6.36-gentoo-r5 | (hd0,0) will be correct if you put the /boot partition on the first partition of the primary boot hard drive. real_root=/dev/sda3 will be correct if you put your / (root) partition on the third partition of the drive the kernel named sda.
So, after emerging grub, Code: | nano /boot/grub/grub.conf | and edit grub.conf to reflect your values. |
Okej THANX! I think you know exactly what the problem is and your advise will solve the problem. But right now i can only see a "grub>" prompt when i reboot the PC. On that way i can not enter the "Chroot". I can install the Gentoo Linux again and install the genkernel with the parameters you wrote. Hope it works! |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Feb 23, 2011 9:28 pm Post subject: |
|
|
I estimate that you were successful in using genkernel based on your report that started this thread, Quote: | I get the following result after compiling the kernel:
Reguired kernel parameter: real_root=/dev/$ROOT
Where $ROOT is the device node for your root parttion as the one specified in /etc/fstab
Warning warning warning
Additional kernel cmdline arguments that *may* be required to boot properly | Is part of a success report and is NOT a failure report. IMHO, GENKERNEL SUCCEEDED.
I believe that the file /etc/grub/grub.conf does not exist or is blank or was not targeted when the master boot record was setup.
Getting the grub prompt everytime means the cd is not in the drive, the cd is defective, the cd drive is broken, the cd drive is not selected as primary boot drive in bios, bios is locked by TPM, or bios has failed. You should check each possibility.
Please report the manufaturer, make, and model of your computer and what drives optical and mechanical are installed including usb, firewire, etc ..
when next seeing grub>
type Code: | find /boot/grub/stage1
find /etc/fstab |
post the results here _________________ Defund the FCC. |
|
Back to top |
|
|
|