View previous topic :: View next topic |
Author |
Message |
Jickler n00b
Joined: 09 Sep 2011 Posts: 72
|
Posted: Tue Sep 18, 2012 2:39 am Post subject: New installation with genkernel will not load kernel on boot |
|
|
Hello all,
After I finished installation, I reboot and the kernel would not load. More specifically, GRUB executes presumably correctly and then loads a screen with the following printout:
Code: | Decompressing Linux... Parsing ELF... done.
Booting the kernel. |
The system hangs at this screen. I have given it well over twenty minutes to load. To rule some of my incompetence out, I decided to use genkernel instead of configuring myself on this attempt. I am using a ck kernel with grub2.
There is no dmesg or boot in /var/log.
This is my lspci:
http://pastebin.com/kRkxja4f
This is my fstab:
http://pastebin.com/Hw6P9UwS
This is my rc.conf:
http://pastebin.com/jKZ1a7P1
This is my make.conf:
http://pastebin.com/gpKTd4wG
I wrote three scripts to install Gentoo. One advantage of this is, if you are so inclined, you can see exactly what I did.
This is the first script:
http://pastebin.com/2stEvX0b
Following the first script, I entered chroot with the following sequence:
Code: | chroot /mnt/gentoo /bin/env -i TERM=$TERM /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1" |
This is the second script:
http://pastebin.com/PH0Gb5CB
Following the second script, I run dispatch-conf.
This is the third script:
http://pastebin.com/E499izMP
If anyone might have an idea on what's wrong or what I should do next, I would greatly appreciate it. Thanks! |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Sep 18, 2012 3:25 am Post subject: |
|
|
ck-sources kernel with a genkernel configuration may not be compatible _________________ Defund the FCC. |
|
Back to top |
|
|
Jickler n00b
Joined: 09 Sep 2011 Posts: 72
|
Posted: Tue Sep 18, 2012 3:05 pm Post subject: |
|
|
Hey DONAHUE,
thanks for the help! I removed the old kernel and genkernel'd gentoo sources with the following:
Code: | emerge --unmerge ck-sources && emerge gentoo-sources && rm /boot/*ck && eselect kernel set 2 && genkernel --menuconfig --lvm2 all && grub2-mkconfig -o /boot/grub2/grub.cfg && grub2-install --grub-setup=/bin/true /dev/sde |
However, upon reset the same problem as before persisted so I guess that wasn't the problem |
|
Back to top |
|
|
jgascon Apprentice
Joined: 08 Dec 2006 Posts: 252
|
Posted: Wed Sep 19, 2012 9:53 am Post subject: |
|
|
Recently I had a similar problem. In my case was solved by compiling the ahci driver directly into the kernel, disabling all the other SATA drivers and support for IDE in the kernel. I also had to set the BIOS to AHCI only.
From what I see your motherboard also uses AHCI:
Code: |
00:1f.2 SATA controller: Intel Corporation 6 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
|
You can also read these links:
Gento Wiki: HDD
Configuring a Linux Kernel |
|
Back to top |
|
|
Jickler n00b
Joined: 09 Sep 2011 Posts: 72
|
Posted: Wed Sep 19, 2012 5:24 pm Post subject: |
|
|
Hey jgascon, thanks for helping me out!
I was surprised to find genkernel compiled AHCI as modules. I built them into the kernel and removed the unnecessary drivers but it was still a no go when I rebooted. My UEFI is also set to AHCI only (my board also has literal IDE connectors, and since this box has ten hard drives I need every slot available. I've always presumed that switching it to an IDE mode would power those IDE connectors and thus bring some of the SATA drives offline. Perhaps it'll just put those drives into IDE mode instead, but I've never had the desire to test that )
I haven't been able to find much information regarding this problem. Most forum posts seem to suggest it's related to ACPI being broken, as well as the GRUB Error Collection located at http://www.gentoo.org/doc/en/grub-error-guide.xml which states:
Quote: | Strictly speaking, this is no grub error. One possible cause is that ACPI is not working correctly but is enabled in the kernel. Try to disable it in your bios or in your kernel. |
Maybe this is naive, but I tend not to think it's ACPI related as I haven't had ACPI problems with other distributions, and, as I've stated before, I actually had Gentoo running on this computer (no changes to hardwares since) maybe last spring and didn't have any ACPI problems. However, just to be safe I removed ACPI support from the kernel but still ran into the same problem ><
One thing I found from this thread (https://forums.gentoo.org/viewtopic-t-870147-view-previous.html?sid=58a5bea8ba04da5728ad88381a8934fe) peaked my interest. In response to someone with a similar problem, (if I understand the OP correctly his problem was ultimately resolved by adding some unspecified modules to his config) NeddySeagoon states:
Quote: | There are different compression algorithms the kernel can use.
There are correspondingly four different decompressors you can chose from.
The compression toolkit is provided by your install, not the kernel build but the decompress has to be done by the unaided kernel. Its important you choose the same algorythims for compress and decompress or you get that message and nothing happens.
Its traditional to use gzip. Thats what has always been used |
Maybe this is stupid, so if one is convinced that this is not my problem feel free to ignore, but does anyone know how can I determine the compression toolkit in use? I know the kernel is configured for gzip, it's a genkernel config so the default makes sense (and my understanding is that on modern hardware the differences in these compression options are relatively meaningless). But how can I make sure they match up?
Following that test I recompiled with ACPI support again. I probably should have posted this earlier, but this is my current .config:
http://pastebin.com/sA9M0afa
Thanks! |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Sep 19, 2012 5:55 pm Post subject: |
|
|
shot in dark; recompile kernel with
Quote: | Device Drivers --->
Generic Driver Options --->
(/sbin/hotplug) path to uevent helper
[*] Maintain a devtmpfs filesystem to mount at /dev
[*] Automount devtmpfs at /dev, after the kernel mounted the rootfs |
_________________ Defund the FCC. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Sep 19, 2012 6:39 pm Post subject: |
|
|
I suggest changing your Graphics Support section of menuconfig to Quote: | Graphics support--->
<*> /dev/agpgart (AGP Support)--->
--- /dev/agpgart (AGP Support)
< > AMD Opteron/Athlon64 on-CPU GART support
<*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
< > SiS chipset support
< > VIA chipset support
-*- VGA Arbitration
(2) Maximum number of GPUs
[ ] Laptop Hybrid Graphics - GPU switching support
<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)--->
--- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
[ ] Allow to specify an EDID data set instead of probing for it (NEW)
< > 3dfx Banshee/Voodoo3+ (NEW)
< > ATI Rage 128 (NEW)
< > ATI Radeon (NEW)
<*> Nouveau (nVidia) cards
[*] Support for backlight control (NEW)
[*] Build in Nouveau's debugfs support (NEW)
I2C encoder or helper chips --->
< > Intel 8xx/9xx/G3x/G4x/HD Graphics
< > Matrox g200/g400 (NEW)
< > SiS video cards (NEW)
< > Via unichrome video cards (NEW)
< > Savage video cards (NEW)
< > DRM driver for VMware Virtual GPU (NEW)
< > Intel GMA5/600 KMS Framebuffer (NEW)
< > DisplayLink (NEW)
< > AST server chips (NEW)
< > Kernel modesetting driver for MGA G200 server engines (NEW)
< > Cirrus driver for QEMU emulated device (NEW)
< > Intel GMA500 Stub Driver
<*> Lowlevel video output switch controls
<*> Support for frame buffer devices--->
--- Support for frame buffer devices
--- Support for frame buffer devices
[*] Enable firmware EDID
[ ] Framebuffer foreign endianness support --->
[*] Enable Video Mode Handling Helpers
[*] Enable Tile Blitting Support
*** Frame buffer hardware drivers ***
< > Cirrus Logic support
< > Permedia2 support
< > CyberPro 2000/2010/5000 support
< > Arc Monochrome LCD board support
[ ] Asiliant (Chips) 69000 display support (NEW)
[ ] IMS Twin Turbo display support (NEW)
< > VGA 16-color graphics support
< > Userspace VESA VGA graphics support
[ ] VESA VGA graphics support (NEW)
[ ] EFI-based Framebuffer Support (NEW)
< > N411 Apollo/Hecuba devkit support
< > Hercules mono graphics support
< > Epson S1D13XXX framebuffer support
< > nVidia Framebuffer Support
< > nVidia Riva support
< > Intel740 support (EXPERIMENTAL)
< > Intel LE80578 (Vermilion) support
< > Matrox acceleration
< > ATI Radeon display support
< > ATI Rage128 display support
< > ATI Mach64 display support
< > S3 Trio/Virge support
< > S3 Savage support
< > SiS/XGI display support
< > VIA UniChrome (Pro) and Chrome9 display support
< > NeoMagic display support
< > IMG Kyro support
< > 3Dfx Banshee/Voodoo3/Voodoo5 display support
< > 3Dfx Voodoo Graphics (sst1) support
< > VIA VT8623 support
< > Trident/CyberXXX/CyberBlade support
< > ARK 2000PV support
< > Permedia3 support (EXPERIMENTAL)
< > Fujitsu carmine frame buffer support
[ ] AMD Geode family framebuffer support (EXPERIMENTAL)
< > SMSC UFX6000/7000 USB Framebuffer support
< > Displaylink USB Framebuffer support
< > Virtual Frame Buffer support (ONLY FOR TESTING!)
< > E-Ink Metronome/8track controller support
< > Fujitsu MB862xx GDC support
< > E-Ink Broadsheet/Epson S1D13521 controller support
< > AUO-K190X EPD controller support
[ ] Exynos Video driver support--->
[*] Backlight & LCD device support--->
--- Backlight & LCD device support
<*> Lowlevel LCD controls
< > Platform LCD controls
-*- Lowlevel Backlight controls
< > Generic (aka Sharp Corgi) Backlight Driver
< > Frontpath ProGear Backlight Driver
< > Apple Backlight Driver
< > Tabletkiosk Sahara Touch-iT Backlight Driver
< > Backlight Driver for ADP8860/ADP8861/ADP8863 using WLED
< > Backlight Driver for ADP8870 using WLED
< > Backlight driver for TI LP855X
Console display driver support--->
-*- VGA text console
[*] Enable Scrollback Buffer in System RAM
(256) Scrollback Buffer Size (in KB)
-*- Framebuffer Console support
-*- Map the console to the primary display device
[ ] Framebuffer Console Rotation
[ ] Select compiled-in fonts
[*] Bootup logo--->
--- Bootup logo
[ ] Standard black and white Linux logo
[ ] Standard 16-color Linux logo
[*] Standard 224-color Linux logo
| and recompiling recopying kernel.
there were enough problems there to halt the display with or without halting kernel loading. did disk activity continue after the display halted?
your make.conf should include VIDEO_CARDS="nouveau"
INPUT_DEVICES="evdev"; "evdev synaptics" if a touchpad
EDITED to change <M> Support for frame buffer devices---> to <*> Support for frame buffer devices---> _________________ Defund the FCC.
Last edited by DONAHUE on Wed Sep 19, 2012 7:01 pm; edited 2 times in total |
|
Back to top |
|
|
Jickler n00b
Joined: 09 Sep 2011 Posts: 72
|
Posted: Wed Sep 19, 2012 6:48 pm Post subject: |
|
|
Hey DONAHUE,
I'm working on the kernel now. Should I emerge --update --deep --with-bdeps=y --newuse world after adjusting the make.conf? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Sep 19, 2012 7:03 pm Post subject: |
|
|
recommend not now, video_cards and input_devices won't matter until emerging xserver;
note my edit above _________________ Defund the FCC. |
|
Back to top |
|
|
Jickler n00b
Joined: 09 Sep 2011 Posts: 72
|
Posted: Wed Sep 19, 2012 7:13 pm Post subject: |
|
|
That's what I thought, but I already started because I figured maybe I misunderstood how that worked >< Ultimately, I want to be using nvidia (not to mention a non-genkernel), but, honestly, I'd sell my soul for a computer that'll load a bash prompt so I'm basically in that make it work mode. Probably for the best anyways if I understand the stage3 not updated thread correctly. I'll let you know how it goes in an hour or so. Thanks again! |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Sep 19, 2012 7:37 pm Post subject: |
|
|
to go nvidia:< > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)---> which should hide:
Quote: | [ ] Allow to specify an EDID data set instead of probing for it (NEW)
< > 3dfx Banshee/Voodoo3+ (NEW)
< > ATI Rage 128 (NEW)
< > ATI Radeon (NEW)
<*> Nouveau (nVidia) cards
[*] Support for backlight control (NEW)
[*] Build in Nouveau's debugfs support (NEW)
I2C encoder or helper chips --->
< > Intel 8xx/9xx/G3x/G4x/HD Graphics
< > Matrox g200/g400 (NEW)
< > SiS video cards (NEW)
< > Via unichrome video cards (NEW)
< > Savage video cards (NEW)
< > DRM driver for VMware Virtual GPU (NEW)
< > Intel GMA5/600 KMS Framebuffer (NEW)
< > DisplayLink (NEW)
< > AST server chips (NEW)
< > Kernel modesetting driver for MGA G200 server engines (NEW)
< > Cirrus driver for QEMU emulated device (NEW)
< > Intel GMA500 Stub Driver | leaving only Quote: | --- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) | you can Quote: | < > Nouveau (nVidia) cards
[ ] Support for backlight control (NEW)
[ ] Build in Nouveau's debugfs support (NEW) | before killing drm but it is not required
Quote: | VIDEO_DEVICES="nvidia" | then replaces Quote: | VIDEO_DEVICES="nouveau" | I use nvidia-drivers myself; not sure why I went nouveau this time. _________________ Defund the FCC. |
|
Back to top |
|
|
Jickler n00b
Joined: 09 Sep 2011 Posts: 72
|
Posted: Wed Sep 19, 2012 9:06 pm Post subject: |
|
|
Alrighty,
I believe the kernel I compiled reflected those changes. Not everything matched up, in the sense that not all those options were visible but I didn't run into any problems where I couldn't compile something into the kernel or modularize the options that your example had ticked.
I updated make.conf for nvidia as well and updated world again as well. After reinstalling GRUB and restarting, unfortunately the same problem persisted.
To answer your question, the HDD activity LED doesn't flash when it stalls.
This is my updated .config: http://pastebin.com/0ncJJbaJ |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Sep 19, 2012 10:57 pm Post subject: |
|
|
if you will boot cd and enter chroot and run Code: | lspci -k | wgetpaste
lspci -n | wgetpaste
wgetpaste /proc/cpuinfo | and post the url's; I'll endeavor to build a manual kernel starting from pappy's kernel seeds that you can try. If successful perhaps diff(meld) will find the problem we are missing.
make/model of your computer? _________________ Defund the FCC. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Sep 19, 2012 11:16 pm Post subject: |
|
|
Oops: your config starts:
Quote: | #
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.4.9-gentoo Kernel Configuration
#
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" |
The amd64/x86_64 config starts:
Quote: | #
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 3.4.9-gentoo Kernel Configuration
#
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" |
appears we are doing something wrong, eagerly waiting for Code: | wgetpaste /proc/cpuinfo |
_________________ Defund the FCC. |
|
Back to top |
|
|
Jickler n00b
Joined: 09 Sep 2011 Posts: 72
|
Posted: Wed Sep 19, 2012 11:56 pm Post subject: |
|
|
I'll get there in an hour and a half, I'm in night class.That's a good catch though, I must have done something real dumb >< I'll get the uname and other printouts when I get back, but it's a Sandy Bridge i7 that's actually on the board...2600k if I remember correctly and I'm definitely aiming for a 64 bit build. |
|
Back to top |
|
|
Jickler n00b
Joined: 09 Sep 2011 Posts: 72
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Sep 20, 2012 1:35 am Post subject: |
|
|
lspci's should provide all needed info
http://kernel-seeds.org/ if you want to see what i am up to _________________ Defund the FCC. |
|
Back to top |
|
|
Jickler n00b
Joined: 09 Sep 2011 Posts: 72
|
Posted: Thu Sep 20, 2012 1:57 am Post subject: |
|
|
Hey, that's awesome! And thanks for all the help. Still can't get over that .config discrepancy -- CHOST is set correctly, I clearly downloaded an amd64 stage3 in that script, CONFIG_64BIT=y and uname -m prints x86_64 on both the livecd and the chroot environment. So weird ! |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Sep 20, 2012 2:30 am Post subject: |
|
|
let us hope we have it sorted
will paste config shortly _________________ Defund the FCC. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Sep 20, 2012 2:59 am Post subject: |
|
|
Code: | cd /usr/src/linux
make clean
make mrproper
wget -O /usr/src/linux/arch/.config http://bpaste.net/raw/46518/
ls -al | should reveal a very new .config file
look around, change something, change it back, exit saving the configuration to make it yours
Code: | make && make modules_install && make install
grub2-mkconfig -o /boot/grub2/grub.cfg
exit
reboot | fingers crossed
the new kernel will have a vmlinuz name _________________ Defund the FCC. |
|
Back to top |
|
|
Jickler n00b
Joined: 09 Sep 2011 Posts: 72
|
Posted: Thu Sep 20, 2012 3:10 am Post subject: |
|
|
Compiling now -- added support for proper filesystems, dropped CPUs down to ten, dropped some unneeded partition types. This machine usually compiles pretty quickly, we should know soon. |
|
Back to top |
|
|
Jickler n00b
Joined: 09 Sep 2011 Posts: 72
|
Posted: Thu Sep 20, 2012 3:17 am Post subject: |
|
|
Should I rm /boot/*gentoo && cp arch/x86_64/boot/bzImage /boot/kernel-3.4.9-gentoo or is that redundant? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Sep 20, 2012 3:17 am Post subject: |
|
|
knew i'd forget something, meant to put you at
Code: | < > Second extended fs support
< > Ext3 journalling file system support
<*> The Extended 4 (ext4) filesystem
[*] Use ext4 for ext2/ext3 file systems (NEW)
[*] Ext4 extended attributes
[*] Ext4 POSIX Access Control Lists
[*] Ext4 Security Labels
[ ] EXT4 debugging support |
you can have many different kernel with different names in /boot _________________ Defund the FCC. |
|
Back to top |
|
|
Jickler n00b
Joined: 09 Sep 2011 Posts: 72
|
Posted: Thu Sep 20, 2012 3:23 am Post subject: |
|
|
Oh, yeah, I just like to keep it clean. I didn't realize you could make install, always copied it manually like the handbook suggests. Good to know! I'm unmounting and rebooting now |
|
Back to top |
|
|
Jickler n00b
Joined: 09 Sep 2011 Posts: 72
|
Posted: Thu Sep 20, 2012 3:54 am Post subject: |
|
|
Argh! Still no joy, same problem
Hard to imagine what could be wrong. The .config discrepancy is weird; I don't anticipate the UEFI settings are wrong but I can record them if it might be a problem there. Maybe I should try and see if a Gentoo liveCD will boot? I just don't have a clue >< |
|
Back to top |
|
|
|