View previous topic :: View next topic |
Author |
Message |
dietzi96 n00b
Joined: 11 May 2016 Posts: 11
|
Posted: Wed May 11, 2016 9:01 am Post subject: [SOLVED] Gentoo on Intel 550 freeze after loading kernel |
|
|
Hi everybody,
I am trying to install gentoo on a laptop with an intel IRIS 550 onboard graphics with gnome/cinnamon + systemd and luks (+ lvm) encryption + UEFI.
My problem is that the system freezes immediately after the grub output "loading initramfs" "loading kernel".
No caps, no num lock; not even a CTRL-ALT-DEL works.
I am coming from arch linux () and have some experience in UEFI, LUKS + LVM encryption and installing a system from the command line,
but I am at my wit's end since I don't even get an error message/log.
I think the main problem is related to the onboard graphics (which is the only installed graphics card; there is no dedicated one).
My IRIS 550 (or its graphic acceleration) is only supported by the recent rc Linux Kernel (4.6) so I am using the gentoo sys-kernel/git-sources.
I installed gentoo following the handbook (for amd64) and chroot, emerge, ... are working.
I am of course using an initramfs using genkernel and the i965 Video driver is exported correctly in the /etc/portage/make.conf.
I hard compiled the intel graphics driver into the kernel as recommended in the intel wiki entry.
I have the notebook not with me right now (since I can't use it) so I'll post the files (kernel .config, grub.cfg, /etc/default/grub , USE-Flags, ...) and commands (genkernel, ...) I used later.
My first question is:
Is there an option to check if a kernel is actually loaded by grub and hangs after that or to check if my grub grub.cfg is just wrong?
I used an gentoo live dvd on an usb stick and already found something about that this may be a source to my issue:
https://forums.gentoo.org/viewtopic-p-7240690.html
Thanks in advance!
Last edited by dietzi96 on Sat May 14, 2016 11:17 am; edited 1 time in total |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Wed May 11, 2016 1:25 pm Post subject: |
|
|
Do you have any drivers built-in that require firmware? If so, you need to have that firmware built-in too, or change the drivers to build as modules. Else the kernel will stall around 60 seconds waiting for each missing firmware file.
If you suspect that the Intel graphics causes problems: To check whether that is the case, enable CONFIG_FB_SIMPLE and CONFIG_X86_SYSFB in the kernel config, and in your bootloader pass the video=inteldrmfb:off kernel parameter. (CONFIG_FB_EFI should not be necessary but probably won't hurt either.) |
|
Back to top |
|
|
dietzi96 n00b
Joined: 11 May 2016 Posts: 11
|
Posted: Fri May 13, 2016 5:13 pm Post subject: |
|
|
I havent't checked any firmware modules yet, but I recompiled the kernel using your options and changed the grub_cmdline.
No success; same error as before.
I'll let the laptop stay in this "loading initramfs" for a while (30 minutes or so) so I can check if a module is missing; but I can't really imagine that this is the solution, because my system really freezes; no CAPS LOCK, no CTRL-ALT-DEL; nothing except the power button works....
normal and fallback initramfs fail to boot as descripted above.
My genkernel command:
Code: | genkernel --udev --lvm --luks initramfs |
Here are the files:
/etc/portage/make.conf
Code: |
#These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe -march=native"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j4"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="gtk gnome lvm2 cryptsetup systemd device-mapper glamor dbus vaapi bindist mmx sse sse2 avx2"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
GRUB_PLATFORMS="efi-64"
VIDEO_CARDS="intel i965" |
/etc/default/grub old
Code: |
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
# 'grub2-mkconfig -o /boot/grub/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.
GRUB_DISTRIBUTOR="Gentoo"
# Default menu entry
#GRUB_DEFAULT=0
# Boot the default entry this many seconds after the menu is displayed
#GRUB_TIMEOUT=5
#GRUB_TIMEOUT_STYLE=menu
# Append parameters to the linux kernel command line
#GRUB_CMDLINE_LINUX=""
#
# Examples:
#
# Boot with network interface renaming disabled
# GRUB_CMDLINE_LINUX="net.ifnames=0"
#
# Boot with systemd instead of sysvinit (openrc)
GRUB_CMDLINE_LINUX="debug irqpoll ipv6.disable=1 dolvm init=/usr/lib/systemd/systemd cryptdevice=/dev/sdb4:lvm root=/dev/mapper/main-arch lang=de locale=de_DE.UTF-8"
# Append parameters to the linux kernel command line for non-recovery entries
GRUB_CMDLINE_LINUX_DEFAULT="debug irqpoll ipv6.disable=1 dolvm init=/usr/lib/systemd/systemd cryptdevice=/dev/sdb4:lvm root=/dev/mapper/main-arch lang=de locale=de_DE.UTF-8"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
#GRUB_GFXMODE=640x480
# Set to 'text' to force the Linux kernel to boot in normal text
# mode, 'keep' to preserve the graphics mode set using
# 'GRUB_GFXMODE', 'WIDTHxHEIGHT'['xDEPTH'] to set a particular
# graphics mode, or a sequence of these separated by commas or
# semicolons to try several modes in sequence.
#GRUB_GFXPAYLOAD_LINUX=
# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"
# Background image used on graphical terminal.
# Can be in various bitmap formats.
#GRUB_BACKGROUND="/boot/grub/mybackground.png"
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true
# Uncomment to disable generation of the submenu and put all choices on
# the top-level menu.
# Besides the visual affect of no sub menu, this makes navigation of the
# menu easier for a user who can't see the screen.
#GRUB_DISABLE_SUBMENU=y
# Uncomment to play a tone when the main menu is displayed.
# This is useful, for example, to allow users who can't see the screen
# to know when they can make a choice on the menu.
#GRUB_INIT_TUNE="60 800 1" |
/etc/default/grub with the video=inteldrmfb:off option:
Code: | # Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
# 'grub2-mkconfig -o /boot/grub/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.
GRUB_DISTRIBUTOR="Gentoo"
# Default menu entry
#GRUB_DEFAULT=0
# Boot the default entry this many seconds after the menu is displayed
#GRUB_TIMEOUT=5
#GRUB_TIMEOUT_STYLE=menu
# Append parameters to the linux kernel command line
#GRUB_CMDLINE_LINUX=""
#
# Examples:
#
# Boot with network interface renaming disabled
# GRUB_CMDLINE_LINUX="net.ifnames=0"
#
# Boot with systemd instead of sysvinit (openrc)
GRUB_CMDLINE_LINUX="debug irqpoll ipv6.disable=1 dolvm video=inteldrmfb:off init=/usr/lib/systemd/systemd cryptdevice=/dev/sdb4:lvm root=/dev/mapper/main-arch lang=de locale=de_DE.UTF-8"
# Append parameters to the linux kernel command line for non-recovery entries
GRUB_CMDLINE_LINUX_DEFAULT="debug irqpoll ipv6.disable=1 dolvm video=inteldrmfb:off init=/usr/lib/systemd/systemd cryptdevice=/dev/sdb4:lvm root=/dev/mapper/main-arch lang=de locale=de_DE.UTF-8"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
#GRUB_GFXMODE=640x480
# Set to 'text' to force the Linux kernel to boot in normal text
# mode, 'keep' to preserve the graphics mode set using
# 'GRUB_GFXMODE', 'WIDTHxHEIGHT'['xDEPTH'] to set a particular
# graphics mode, or a sequence of these separated by commas or
# semicolons to try several modes in sequence.
#GRUB_GFXPAYLOAD_LINUX=
# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"
# Background image used on graphical terminal.
# Can be in various bitmap formats.
#GRUB_BACKGROUND="/boot/grub/mybackground.png"
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true
# Uncomment to disable generation of the submenu and put all choices on
# the top-level menu.
# Besides the visual affect of no sub menu, this makes navigation of the
# menu easier for a user who can't see the screen.
#GRUB_DISABLE_SUBMENU=y
# Uncomment to play a tone when the main menu is displayed.
# This is useful, for example, to allow users who can't see the screen
# to know when they can make a choice on the menu.
#GRUB_INIT_TUNE="60 800 1" |
|
|
Back to top |
|
|
dietzi96 n00b
Joined: 11 May 2016 Posts: 11
|
Posted: Fri May 13, 2016 5:21 pm Post subject: |
|
|
and the kernel .config:
EDIT May 14, 2016.
deleted because the kernel .config was too long.
You'll find the file below as pastebin link.
Last edited by dietzi96 on Sat May 14, 2016 11:08 am; edited 2 times in total |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Fri May 13, 2016 5:21 pm Post subject: |
|
|
Seems that you hit the maximum post length, your kernel configuration is incomplete. |
|
Back to top |
|
|
dietzi96 n00b
Joined: 11 May 2016 Posts: 11
|
Posted: Fri May 13, 2016 5:22 pm Post subject: |
|
|
is there a possibillity to add files? |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Fri May 13, 2016 5:24 pm Post subject: |
|
|
No, either use a pastebin or post only the interesting parts:
CONFIG_DRM_*
CONFIG_FB_*
CONFIG_FRAMEBUFFER_CONSOLE |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Fri May 13, 2016 5:26 pm Post subject: |
|
|
Use wgetpaste. It is a package that you should be able to install in your chroot if you still have it up. Otherwise you can simply paste the .config in a pastebin site and post the url here.
wgetpaste works by using wgetpaste <file> or <command> | wgetgpaste The command will return a url. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
dietzi96 n00b
Joined: 11 May 2016 Posts: 11
|
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Fri May 13, 2016 5:32 pm Post subject: |
|
|
Code: | # CONFIG_X86_SYSFB is not set
CONFIG_X86_SYSFB=y | Huh? Did you edit the configuration manually? Don't do that (it says so right in the beginning), this messes things up. |
|
Back to top |
|
|
dietzi96 n00b
Joined: 11 May 2016 Posts: 11
|
Posted: Fri May 13, 2016 5:38 pm Post subject: |
|
|
I just assumed # is a comment.
I just edited these both entries manually but I can of course change/delete them.
(or completely )
Btw. I think the half an hour is over; my laptop is still frozen.
So whatever the problem is:
it doesn't change just by waiting |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Fri May 13, 2016 5:49 pm Post subject: |
|
|
run "make oldconfig" to reset the configuration into a consistent state. Set CONFIG_DRM_I915=m via menuconfig (you can press / to search in menuconfig). |
|
Back to top |
|
|
dietzi96 n00b
Joined: 11 May 2016 Posts: 11
|
Posted: Fri May 13, 2016 7:35 pm Post subject: |
|
|
I used the livecd/dvd kernel .config and changed the i915 to a module and the kernel is now loading, but failing to locate the system partition (this is related to my luks).
(Yeah, I know this may be definitely not recommended).
And I'll have to admit:
Your (gentoo's) documentation really sucks hard.
I am sorry to have to say that, but:
The documentation recommends to change grub.cfg directly which is - in my opinion - actually worse than editing the kernel's .config manually.
And a wiki page for using good old "mkinitcpio" does not even exist; but ok.
I'm now trying to fix my kernel boot parameters.
How do I tell genkernel to load kernel modules or load kernel modules in gentoo? |
|
Back to top |
|
|
dietzi96 n00b
Joined: 11 May 2016 Posts: 11
|
Posted: Fri May 13, 2016 7:52 pm Post subject: |
|
|
Why are just all documentation writers uuid-nazis?
Well this would not even be a problem if they just would SPECIFY WHICH UUID they want the user to use.
partuuid or uuid?
Using the "uuid" output of blkid gives the following issue:
Device [uuid of luks partition] doesn't exist or access denied.
Could not find the "root_[uuid of luks partition]-main-arch" in [uuid of luks partition] |
|
Back to top |
|
|
dietzi96 n00b
Joined: 11 May 2016 Posts: 11
|
Posted: Fri May 13, 2016 8:12 pm Post subject: |
|
|
even using partition id is failing.
The error has the same structure:
Device [partuuid of luks partition] doesn't exist or access denied.
Could not find the "root_[partuuid of luks partition]-main-arch" in [partuuid of luks partition] |
|
Back to top |
|
|
dietzi96 n00b
Joined: 11 May 2016 Posts: 11
|
Posted: Fri May 13, 2016 8:40 pm Post subject: |
|
|
These are my grub.cfg and /etc/grub/default files:
Code: |
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if loadfont unicode ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=de_DE
insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-cbc9a9cc-310c-4efa-92e1-595cee6bd085' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 7ed4e473-365b-4167-a155-579d614ea35c
else
search --no-floppy --fs-uuid --set=root 7ed4e473-365b-4167-a155-579d614ea35c
fi
echo 'Linux 4.6.0-rc5 wird geladen …'
linux /vmlinuz-4.6.0-rc5 root=/dev/mapper/main-arch ro debug irqpoll ipv6.disable=1 video=inteldrmfb:off init=/usr/lib/systemd/systemd crypt_root=c14766f8-e4e0-4419-9250-dd7bae3e2b00 dolvm lang=de locale=de_DE.UTF-8
echo 'Initiale Ramdisk wird geladen …'
initrd /initramfs-genkernel-x86_64-4.6.0-rc5
}
submenu 'Erweiterte Optionen für Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-cbc9a9cc-310c-4efa-92e1-595cee6bd085' {
menuentry 'Gentoo GNU/Linux, mit Linux 4.6.0-rc5' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.6.0-rc5-advanced-cbc9a9cc-310c-4efa-92e1-595cee6bd085' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 7ed4e473-365b-4167-a155-579d614ea35c
else
search --no-floppy --fs-uuid --set=root 7ed4e473-365b-4167-a155-579d614ea35c
fi
echo 'Linux 4.6.0-rc5 wird geladen …'
linux /vmlinuz-4.6.0-rc5 root=/dev/mapper/main-arch ro debug irqpoll ipv6.disable=1 video=inteldrmfb:off init=/usr/lib/systemd/systemd crypt_root=c14766f8-e4e0-4419-9250-dd7bae3e2b00 dolvm lang=de locale=de_DE.UTF-8
echo 'Initiale Ramdisk wird geladen …'
initrd /initramfs-genkernel-x86_64-4.6.0-rc5
}
menuentry 'Gentoo GNU/Linux, mit Linux 4.6.0-rc5 (Wiederherstellungsmodus)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.6.0-rc5-recovery-cbc9a9cc-310c-4efa-92e1-595cee6bd085' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 7ed4e473-365b-4167-a155-579d614ea35c
else
search --no-floppy --fs-uuid --set=root 7ed4e473-365b-4167-a155-579d614ea35c
fi
echo 'Linux 4.6.0-rc5 wird geladen …'
linux /vmlinuz-4.6.0-rc5 root=/dev/mapper/main-arch ro single debug irqpoll ipv6.disable=1 video=inteldrmfb:off init=/usr/lib/systemd/systemd crypt_root=c14766f8-e4e0-4419-9250-dd7bae3e2b00 dolvm lang=de locale=de_DE.UTF-8
echo 'Initiale Ramdisk wird geladen …'
initrd /initramfs-genkernel-x86_64-4.6.0-rc5
}
menuentry 'Gentoo GNU/Linux, mit Linux 4.6.0-rc5.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.6.0-rc5.old-advanced-cbc9a9cc-310c-4efa-92e1-595cee6bd085' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 7ed4e473-365b-4167-a155-579d614ea35c
else
search --no-floppy --fs-uuid --set=root 7ed4e473-365b-4167-a155-579d614ea35c
fi
echo 'Linux 4.6.0-rc5.old wird geladen …'
linux /vmlinuz-4.6.0-rc5.old root=/dev/mapper/main-arch ro debug irqpoll ipv6.disable=1 video=inteldrmfb:off init=/usr/lib/systemd/systemd crypt_root=c14766f8-e4e0-4419-9250-dd7bae3e2b00 dolvm lang=de locale=de_DE.UTF-8
echo 'Initiale Ramdisk wird geladen …'
initrd /initramfs-genkernel-x86_64-4.6.0-rc5
}
menuentry 'Gentoo GNU/Linux, mit Linux 4.6.0-rc5.old (Wiederherstellungsmodus)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.6.0-rc5.old-recovery-cbc9a9cc-310c-4efa-92e1-595cee6bd085' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 7ed4e473-365b-4167-a155-579d614ea35c
else
search --no-floppy --fs-uuid --set=root 7ed4e473-365b-4167-a155-579d614ea35c
fi
echo 'Linux 4.6.0-rc5.old wird geladen …'
linux /vmlinuz-4.6.0-rc5.old root=/dev/mapper/main-arch ro single debug irqpoll ipv6.disable=1 video=inteldrmfb:off init=/usr/lib/systemd/systemd crypt_root=c14766f8-e4e0-4419-9250-dd7bae3e2b00 dolvm lang=de locale=de_DE.UTF-8
echo 'Initiale Ramdisk wird geladen …'
initrd /initramfs-genkernel-x86_64-4.6.0-rc5
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
|
Code: |
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
# 'grub2-mkconfig -o /boot/grub/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.
GRUB_DISTRIBUTOR="Gentoo"
# Default menu entry
#GRUB_DEFAULT=0
# Boot the default entry this many seconds after the menu is displayed
#GRUB_TIMEOUT=5
#GRUB_TIMEOUT_STYLE=menu
# Append parameters to the linux kernel command line
#GRUB_CMDLINE_LINUX=""
#
# Examples:
#
# Boot with network interface renaming disabled
# GRUB_CMDLINE_LINUX="net.ifnames=0"
#
# Boot with systemd instead of sysvinit (openrc)
GRUB_CMDLINE_LINUX="debug irqpoll ipv6.disable=1 video=inteldrmfb:off init=/usr/lib/systemd/systemd crypt_root=c14766f8-e4e0-4419-9250-dd7bae3e2b00 dolvm lang=de locale=de_DE.UTF-8"
# Append parameters to the linux kernel command line for non-recovery entries
#GRUB_CMDLINE_LINUX_DEFAULT="debug irqpoll ipv6.disable=1 dolvm video=inteldrmfb:off init=/usr/lib/systemd/systemd crypt_root=c14766f8-e4e0-4419-9250-dd7bae3e2b00 root=/dev/mapper/main-arch lang=de locale=de_DE.UTF-8"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
#GRUB_GFXMODE=640x480
# Set to 'text' to force the Linux kernel to boot in normal text
# mode, 'keep' to preserve the graphics mode set using
# 'GRUB_GFXMODE', 'WIDTHxHEIGHT'['xDEPTH'] to set a particular
# graphics mode, or a sequence of these separated by commas or
# semicolons to try several modes in sequence.
#GRUB_GFXPAYLOAD_LINUX=
# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"
# Background image used on graphical terminal.
# Can be in various bitmap formats.
#GRUB_BACKGROUND="/boot/grub/mybackground.png"
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true
# Uncomment to disable generation of the submenu and put all choices on
# the top-level menu.
# Besides the visual affect of no sub menu, this makes navigation of the
# menu easier for a user who can't see the screen.
#GRUB_DISABLE_SUBMENU=y
# Uncomment to play a tone when the main menu is displayed.
# This is useful, for example, to allow users who can't see the screen
# to know when they can make a choice on the menu.
#GRUB_INIT_TUNE="60 800 1"
|
|
|
Back to top |
|
|
dietzi96 n00b
Joined: 11 May 2016 Posts: 11
|
Posted: Sat May 14, 2016 11:06 am Post subject: |
|
|
I've just switched back to arch linux and it (booting, loading kernel and even using an accelerated X) is working now.
My steps:
compile and install the 4.6 (as I write this kernel has still rc status) linux kernel (using linux-git from aur)
compile and install the recent libdrm (at least 2.4.6 (using libdrm-git from aur
boot the kernel using grub2 and mkinitcpio
login and execute startx.
System runs without any problem.
So thanks for your help and the gentoo concept of building the whole system directly from sources may be (actually is) amazing,
but right now I don't have the time and need a working linux.
But I'll definitely install gentoo on my (now) old laptop, if/when I have time. |
|
Back to top |
|
|
|