Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
troubles with kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
az20110303
n00b
n00b


Joined: 21 Mar 2011
Posts: 30

PostPosted: Tue May 17, 2011 2:51 pm    Post subject: troubles with kernel Reply with quote

Hello everyone :) . So i decided to migrate to gentoo from ubuntu. i did some efforts before, but they all were half successfull.
i am installing gentoo on one physical drive with ubuntu. i compiled kernel 2.6.37-gentoo-r4 using configs from kernel-seeds.org. It seems i did not miss anything in config file, i checked it twice.
After kernel is compiled i
Code:
sudo update-grub2

in ubuntu and gentoo entry appears in grub.cfg
here how it looks:
Code:
menuentry "Gentoo Base System release 1.12.14 (on /dev/sda5)" --class gnu-linux --class gnu --class os {
   insmod part_gpt
   insmod ext2
   set root='(/dev/sda,gpt5)'
   search --no-floppy --fs-uuid --set=root 6cace587-a44a-4bc2-87a8-dd72a3fe82ed
   linux /boot/kernel-2.6.37-gentoo-r4 root=/dev/sda5
}

when trying to boot this entry i get error:
http://oi53.tinypic.com/s688c7.jpg

i also tried to use change kernel options in grub.cfg
Code:
   linux /boot/kernel-2.6.37-gentoo-r4 root=UUID=6cace587-a44a-4bc2-87a8-dd72a3fe82ed

but result was the same

i am not sure is it error in my manually compiled kernel or some incompatibility with ubuntu grub2.
any help will be appreciated.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue May 17, 2011 2:56 pm    Post subject: Reply with quote

Looks like missing root filesystem support in kernel.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
az20110303
n00b
n00b


Joined: 21 Mar 2011
Posts: 30

PostPosted: Wed May 18, 2011 5:54 am    Post subject: Reply with quote

Jaglover wrote:
Looks like missing root filesystem support in kernel.

i included support of ext2,3,4 reiserfs into kernel. file system of my gentoo partition is ext4. partition table of hard disk is GPT.
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Wed May 18, 2011 6:19 am    Post subject: Reply with quote

please post your .config and lspci -kvm on pastebin
_________________
www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason.
Back to top
View user's profile Send private message
az20110303
n00b
n00b


Joined: 21 Mar 2011
Posts: 30

PostPosted: Wed May 18, 2011 7:05 am    Post subject: Reply with quote

whiteghost wrote:
please post your .config and lspci -kvm on pastebin

config http://pastebin.com/Gb25ArrZ
lspci http://pastebin.com/5F9d1sLz
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Wed May 18, 2011 7:38 am    Post subject: Reply with quote

from your config
Code:
 CONFIG_SATA_AHCI is not set

set this to yes, hope it helps
_________________
www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason.
Back to top
View user's profile Send private message
az20110303
n00b
n00b


Joined: 21 Mar 2011
Posts: 30

PostPosted: Wed May 18, 2011 10:47 am    Post subject: Reply with quote

whiteghost wrote:
from your config
Code:
 CONFIG_SATA_AHCI is not set

set this to yes, hope it helps


Thanks for help, but still the same problem=(
Back to top
View user's profile Send private message
Randy Andy
Veteran
Veteran


Joined: 19 Jun 2007
Posts: 1152
Location: /dev/koelsch

PostPosted: Wed May 18, 2011 12:41 pm    Post subject: Reply with quote

Hi az20110303.

as i see in your .config, you have to set this option and the belonging for your kind of system, which submenue appears only after setting this to yes:

Code:

# CONFIG_EFI is not set


you will see some help text for clarification your eventually upcoming questions.

AFAIK you ned this option, cause you're using a GPT partition scheme and GRUB2.

Much success,

Andy.
_________________
If you want to see a Distro done right, compile it yourself!
Back to top
View user's profile Send private message
az20110303
n00b
n00b


Joined: 21 Mar 2011
Posts: 30

PostPosted: Mon Jun 20, 2011 5:40 am    Post subject: Reply with quote

Randy Andy wrote:

Code:

# CONFIG_EFI is not set



Thanks a lot, that helped! Though i did not set
Code:

# CONFIG_EFI is not set


But i set
Code:

CONFIG_EFI_PARTITION=y

This one was enouht for kernel to boot :D
Back to top
View user's profile Send private message
az20110303
n00b
n00b


Joined: 21 Mar 2011
Posts: 30

PostPosted: Tue Jun 21, 2011 2:07 am    Post subject: Reply with quote

There's one more trouble with ext4 on new kernels. To mount r/w ext4 root file system kernel should be compiled with CONFIG_LBDAF. May be it will help to somebody :) .
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23075

PostPosted: Tue Jun 21, 2011 2:20 am    Post subject: Reply with quote

az20110303 wrote:
There's one more trouble with ext4 on new kernels. To mount r/w ext4 root file system kernel should be compiled with CONFIG_LBDAF.
This only applies to x86 kernels, not amd64 kernels. Additionally, depending on other factors, an x86 kernel can mount an ext4 filesystem without having LBDAF=y. I have an x86 system using ext4 for all its filesystems, and it works fine even though I did not set LBDAF.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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