Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Fails to boot to commandline
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
maruru
n00b
n00b


Joined: 22 Sep 2015
Posts: 11

PostPosted: Tue Sep 22, 2015 7:24 pm    Post subject: [SOLVED] Fails to boot to commandline Reply with quote

Hello everyone :)

I try to install Gentoo on my main PC. I dedicate one of my SSDs entirly to Gentoo. I do not want to dual boot (I keep Windows and Gentoo separated for good). But somehow I have been stuck at compiling the Kernel for a few days now.
This is my first time compiling a Kernel; and my second attempt with a Desktop Linux after I successfully installed Arch on my laptop (I have used Debian and FreeBSD on my servers for quite some time), so be easy on me ;)

I can compile the Kernel and install grub without errors. But on boot, I only get this weird trace: top and bottom picture of the screen
Unfortunately my keyboard and mouse are both tunred off :/
Can anyone point me in the right direction? Do you need me to show you any config files? Just ask for w/e you need :)
PS.: I do not use EFI
_________________
Vote for better password security on Gentoo Forums!
Unsalted MD5 and sent as plaintext via mail is just the worst :/


Last edited by maruru on Wed Sep 23, 2015 7:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
genoobish
n00b
n00b


Joined: 18 Feb 2015
Posts: 73

PostPosted: Tue Sep 22, 2015 7:40 pm    Post subject: Re: Fails to boot to commandline Reply with quote

maruru wrote:
Hello everyone :)

Do you need me to show you any config files? Just ask for w/e you need :)

pastebin you kernel .config file.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Tue Sep 22, 2015 7:56 pm    Post subject: Reply with quote

maruru,

Your kernel .config and the output of lspci would be good.
Also the output of
Code:
fdisk -l /dev/<your_ssd>
and knowing your root filesystem type.

Tell us how you configured and compiled your kernel too. This is a multiple choice question.
a) genkernel
b) make menuconfig
make
make modules_install
mount /boot
cp ...
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
maruru
n00b
n00b


Joined: 22 Sep 2015
Posts: 11

PostPosted: Wed Sep 23, 2015 5:58 pm    Post subject: Reply with quote

Kernel .config,
lspci -k
fdisk -l /dev/sda
parted /dev/sda print <-- I used parted to partition the disk


Before compiling the Kernel, I mount all necessary file systems. I follow the Wiki precisely. I compile the Kernel like this:
Code:

make clean
make menuconfig
make -j4 && make modules_install -j4
make install


After that, I reconfigure grub (as demonstrated in the Wiki)
_________________
Vote for better password security on Gentoo Forums!
Unsalted MD5 and sent as plaintext via mail is just the worst :/
Back to top
View user's profile Send private message
genoobish
n00b
n00b


Joined: 18 Feb 2015
Posts: 73

PostPosted: Wed Sep 23, 2015 6:25 pm    Post subject: Reply with quote

Did you create an initramfs? I think btrfs root needs an initramfs to boot.

you can use this command for that
Code:
genkernel --btrfs initramfs
if that's the case.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Wed Sep 23, 2015 6:37 pm    Post subject: Reply with quote

maruru,

From fdisk you have
Code:
Disklabel type: gpt

Your hardware needs Kernel driver in use: ahci and Kernel driver in use: pata_via for HDD controlers.
If parted is to be believed,
Code:
 4      674MB   120GB   119GB   btrfs           rootfs
you have root on btrfs.
That needs a kernel patch as btrfs is not yet in the kernel, so its not a setup for beginners.

Your kernel has
Code:
CONFIG_MSDOS_PARTITION=y
CONFIG_EFI_PARTITION=y
which covers most disklabels you are likely to meet.

Your Hard Drive software stack is not complete.
Code:
# CONFIG_IDE is not set
CONFIG_SCSI_MOD=y
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
is good.

Code:
# CONFIG_BLK_DEV_SD is not set
Is the top layser of the SCSI stack. That must be set to =y. Regardless of the actual physical connection between your drives and motherboard, they will all appear as SCSI.

Code:
# CONFIG_BLK_DEV_SR is not set
# CONFIG_CHR_DEV_SG is not set
are both needed too.
BLK_DEV_SR is for optical drives. CHR_DEV_SG is SCSI Generic. Its used to play CDDA, DVD videos, and for anything else that pretends to be SCSI that is not a HDD.

Code:
CONFIG_ATA=y
CONFIG_ATA_ACPI=y
CONFIG_SATA_AHCI=y
CONFIG_SATA_AHCI_PLATFORM=y
is either required or harmless. CONFIG_SATA_AHCI=y is the driver for your SATA chip set.

Code:
CONFIG_PATA_VIA=y
is your PATA contraller driver.

Code:
CONFIG_BTRFS_FS=y
CONFIG_BTRFS_FS_POSIX_ACL=y
You have the BTRFS patch and it loks to be configured correctly.

Your # Pseudo filesystems look good too.

Use menuconfig to set the SCSI options I mentioned, rebuild and reinstall your kernel, then reboot to test.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
maruru
n00b
n00b


Joined: 22 Sep 2015
Posts: 11

PostPosted: Wed Sep 23, 2015 7:01 pm    Post subject: Reply with quote

@NeddySeagoon: Wow! That's a detailed analysis. I learned something new thanks to you.

I changed the SCSI options, recompiled, reinstalled and rebooted my computer and was finally greeted by a commandline :)

I'm really grateful for your fast and good help.
Now on to installing all the software 8)
_________________
Vote for better password security on Gentoo Forums!
Unsalted MD5 and sent as plaintext via mail is just the worst :/
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