View previous topic :: View next topic |
Author |
Message |
temporary_user n00b
Joined: 26 Aug 2012 Posts: 37
|
Posted: Sun Aug 26, 2012 5:38 pm Post subject: Kernel panic during boot |
|
|
Hello!
I'm trying to install Gentoo on my new PC, but whenever I try to boot it I get the following kernel panic error: IMAGE
I don't have any CD/DVD drive in my PC, so i used Lili to create a bootable usb drive with Gento LiveDVD iso.
I have already tried changing SATA3 to IDE mode and changed several different options in UEFI, but nothing worked so far.
Pendrive is Sandisk USB 3.0, and hard drive is SSD OCZ Vertex4.
Thank you in advance for your assistance |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun Aug 26, 2012 6:04 pm Post subject: |
|
|
is the problem occurring when you try to boot usb drive or have you completed installing and can't boot the installed system? _________________ Defund the FCC. |
|
Back to top |
|
|
temporary_user n00b
Joined: 26 Aug 2012 Posts: 37
|
Posted: Sun Aug 26, 2012 6:12 pm Post subject: |
|
|
I have successfully copied LiveDVD files to USB drive to make it bootable, but it fails to launch Gentoo from it. I haven't instaled anything on my hard drive yet, just prepared a partition. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun Aug 26, 2012 6:27 pm Post subject: |
|
|
has the LiveDVD on the usb drive ever booted?
the livedvd is old enough that it may not handle usb3 well.
the error you see is usually a result of hardware problems or a mismatch between hardware and software (kernel).
I'd recommend a gentoo minimal install cd or system rescue cd (if you want a GUI) on a usb2.0 flash or external drive. _________________ Defund the FCC. |
|
Back to top |
|
|
temporary_user n00b
Joined: 26 Aug 2012 Posts: 37
|
Posted: Sun Aug 26, 2012 6:35 pm Post subject: |
|
|
Nope, it did not boot - I get the kernel panic every time. I only see the welcome screen where I can choose between normal / no-fb / memtest.
I don't use USB 3.0 port (switched to regular 2.0) while booting, but the problem remains. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun Aug 26, 2012 6:59 pm Post subject: |
|
|
best estimate--the livedvd kernel is a mismatch for your hardware.
I'd recommend a gentoo minimal install cd or system rescue cd (if you want a GUI) on a usb flash or external drive. _________________ Defund the FCC. |
|
Back to top |
|
|
temporary_user n00b
Joined: 26 Aug 2012 Posts: 37
|
Posted: Sun Aug 26, 2012 8:17 pm Post subject: |
|
|
Ok, mininal install cd it is. I'll just use my laptop to read handbook instead. |
|
Back to top |
|
|
temporary_user n00b
Joined: 26 Aug 2012 Posts: 37
|
Posted: Sun Aug 26, 2012 9:57 pm Post subject: |
|
|
Turns out minimal cd doesn't work either.
Code: | !! Media not found
>> No bootable medium found, waiting for new devices...
!! Could not find CD to boot, something else needed!
!! Could not find the root block device in |
|
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
temporary_user n00b
Joined: 26 Aug 2012 Posts: 37
|
Posted: Mon Aug 27, 2012 11:32 pm Post subject: |
|
|
SystemRescueCD worked just fine (although GUI crashed a couple of seconds after launching it, so I had to stick to terminal).
I have successfully installed Gentoo and I'm currently trying to set up X server, however when I try to emerge it I get circular dependancy error:
Code: | * Error: circular dependencies:
(virtual/jdk-1.6.0-r1::gentoo, ebuild scheduled for merge) depends on
(dev-java/icedtea-bin-6.1.11.3-r1::gentoo, ebuild scheduled for merge) (runtime)
(virutal/jpeg-0::gentoo, ebuild scheduled for merge) (runtime)
(media-libs/libjpeg-turbo-1.2.1::gentoo), ebuild scheduled for merge) (runtime)
(virtual/jdk-1.6.0-r1::gentoo, ebuild scheduled for merge) (buildtime)
* Note that circular dependencies can often be avoided by temporarily
* disabling USE flags that trigger optional dependencies.
!!! Multiple package instances within a single package slot have been pulled
!!! into the dependancy graph, resulting in a slot conflict:
dev-libs/libxml2:2
(dev-libs/libxml2:2.8.0_rc1::gentoo, installed) pulled in by
(no parents that aren't satisfied by other packages in that slot)
(dev-libs/libxml2:2.8.0_rc1::gentoo, ebuild scheduled for merge) pulled in by
dev-libs/libxml2[python] required by (media-libs/mesa-8.0.3::gentoo, ebuild scheduled for merge) |
Here's my make.conf:
Code: | CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j9"
CHOST="x86_64-pc-linux-gnu"
ACCEPT_KEYWORDS="amd64"
LINGUAS="en_US pl"
VIDEO_CARDS="nvidia"
MEDIAUSE="aac alsa ape ffmpeg flac gif jpeg jpeg2k lame mad matroska mp3 mp4 nsplugin ogg pdf png real vlc wavpack win32codecs x264 xvid"
NOTUSE="-gnome -gtk -gtk3 -ieee1394 -ipod -irda -pulseaudio"
OTHERUSE="bash-completion compiz emerald exif gadu hddtemp jack joystick lua lua-cairo spell"
SYSTEMUSE="apm bluetooth consolekit cxx dbus device-mapper fam hal ipv6 java mmx policykit python sse sse2 ssl syslog threads udev usb wifi wireless"
XUSE="libnotify fuse kde kde4 opengl plasma qt4 truetype unsupported X xcomposite xinerama xorg xv"
USE="${MEDIAUSE} ${NOTUSE} ${OTHERUSE} ${SYSTEMUSE} ${XUSE}"
GENTOO_MIRRORS="ftp://de-mirror.org/gentoo/ http://de-mirror.org/gentoo/ http://mirror.leaseweb.com/gentoo/ ftp://mirror.leaseweb.com/gentoo/ http://ftp.vectranet.pl/gentoo/ ftp://ftp.vectranet.pl/gentoo/"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
|
Also, grub2 does not see my Windows 7. Do I need to manually edit /boot/grub2/grub.cfg? If so, do I need to use chainloader, or is there any other option? |
|
Back to top |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Tue Aug 28, 2012 12:19 am Post subject: |
|
|
temporary_user
Nix this in your make.conf:
Code: | MEDIAUSE="aac alsa ape ffmpeg flac gif jpeg jpeg2k lame mad matroska mp3 mp4 nsplugin ogg pdf png real vlc wavpack win32codecs x264 xvid"
NOTUSE="-gnome -gtk -gtk3 -ieee1394 -ipod -irda -pulseaudio"
OTHERUSE="bash-completion compiz emerald exif gadu hddtemp jack joystick lua lua-cairo spell"
SYSTEMUSE="apm bluetooth consolekit cxx dbus device-mapper fam hal ipv6 java mmx policykit python sse sse2 ssl syslog threads udev usb wifi wireless"
XUSE="libnotify fuse kde kde4 opengl plasma qt4 truetype unsupported X xcomposite xinerama xorg xv"
USE="${MEDIAUSE} ${NOTUSE} ${OTHERUSE} ${SYSTEMUSE} ${XUSE}"
|
Start with this:
To see what USE flags are set by virtue of your profile:
_________________ Good luck
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
temporary_user n00b
Joined: 26 Aug 2012 Posts: 37
|
Posted: Tue Aug 28, 2012 12:36 pm Post subject: |
|
|
Why on earth do you want me to delete all my USE flags? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Aug 28, 2012 1:08 pm Post subject: |
|
|
The message from portage included
Quote: | * Note that circular dependencies can often be avoided by temporarily
* disabling USE flags that trigger optional dependencies. |
which is true, particularly true for global use flags. Usually the use flag is removed the emerge is done the use flags are restored and emerge -uND world is run. _________________ Defund the FCC. |
|
Back to top |
|
|
temporary_user n00b
Joined: 26 Aug 2012 Posts: 37
|
Posted: Tue Aug 28, 2012 4:06 pm Post subject: |
|
|
One problem solved: I just needed to disable "java" flag. I'm emerging KDE right now.
How about grub? Is chainloading the only option? And why didn't it find Windows 7 by itself? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
|
Back to top |
|
|
temporary_user n00b
Joined: 26 Aug 2012 Posts: 37
|
Posted: Tue Aug 28, 2012 7:17 pm Post subject: |
|
|
Thank you very much! os-prober solved my problem, I can successfully boot to Windows as well.
One last final obstacle (I hope) before entering GUI: I've emerged xorg-drivers, xorg-server and kde-meta, and I can't get whole thing to work.
When I used VIDEO_CARDS="nvidia" I got error due to nvidiafb support in kernel. After that, I've changed make.conf to VIDEO_CARDS="nouveau" and the drivers emerged successfully, but still every time I try to execute startx or startkde I get either:
Code: | $DISPLAY is not set or cannot connect to the X server. |
or:
Code: | /etc/X11/xinit/xinitrc: line 59: twm: command not found
/etc/X11/xinit/xinitrc: line 60: xclock: command not found
/etc/X11/xinit/xinitrc: line 63: exec: command not found
/etc/X11/xinit/xinitrc: line 61: xterm: command not found
/etc/X11/xinit/xinitrc: line 62: xterm: command not found
xinit: connection to X server lost |
Here's /var/log/Xorg.0.log: LINK |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Aug 28, 2012 10:16 pm Post subject: |
|
|
http://en.gentoo-wiki.com/wiki/Nouveau
http://www.gentoo.org/doc/en/xorg-config.xml
http://www.gentoo.org/proj/en/desktop/kde/kde4-guide.xml
you can leave out synaptics if you have no touchpad, leave out nouveau-drm if 3d acceleration is of no interest
Code: | nano /etc/make.conf | edit to add if missing Quote: | VIDEO_CARDS="nouveau"
INPUT_DEVICES="evdev synaptics" |
Code: | mkdir /etc/portage
nano /etc/portage/package.keywords | edit to add x11-base/nouveau-drm
Code: | emerge xorg-server xf86-video-nouveau nouveau-drm xf86-input-evdev xf86-input-synaptics |
Code: | nano /etc/X11/xorg.conf.d/98-keyboard.conf | edit to add Quote: |
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection |
run if you get a black and white stipple screen with a movable mouse pointer X/xorg works. ctrl-alt-backspace to exit.
Code: | emerge kdebase-meta
nano /etc/conf.d/xdm | if necessary edit to include DISPLAYMANAGER="xdm"
Code: | ls -l /etc/X11/Sessions | should produce a list of display managers/windows managers/desktops ready to run a session
Code: | nano /etc/env.d/90xsession | edit to XSESSION="KDE-4" assuming spelling matches that found in /etc/X11/Sessions
upon reboot try _________________ Defund the FCC. |
|
Back to top |
|
|
temporary_user n00b
Joined: 26 Aug 2012 Posts: 37
|
Posted: Wed Aug 29, 2012 9:17 am Post subject: |
|
|
I have followed both Gentoo KDE Guide and X Server Configuration HOWTO without any success.
Is /etc/portage/package.keywords the same as /etc/portage/package.accept_keywords?
I don't have a /etc/conf.d/xdm. Am I supposed to create it manually?
X -retro worked, and ls -l /etc/X11/Sessions gives me KDE-4 and Xsession. Again, there is no /etc/env.d/90xsession.
When I try to emerge nouveau-drm I get an error due to kernel configuration:
Code: | CONFIG_DRM: should not be set. But it is.
CONFIG_FB_NVIDIA: should not be set. But it is. |
Maybe that's the problem? But then again xf86-video-nouveau emerged just fine. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Aug 29, 2012 2:08 pm Post subject: |
|
|
Quote: | Is /etc/portage/package.keywords the same as /etc/portage/package.accept_keywords? | equivalent, created by portage
Quote: | I don't have a /etc/conf.d/xdm. Am I supposed to create it manually? | yes
Quote: | X -retro worked, and ls -l /etc/X11/Sessions gives me KDE-4 and Xsession. Again, there is no /etc/env.d/90xsession. | create it
Quote: | When I try to emerge nouveau-drm I get an error due to kernel configuration:
Code:
CONFIG_DRM: should not be set. But it is.
CONFIG_FB_NVIDIA: should not be set. But it is. | leave nouveau-drm out for the moment
Quote: | Maybe that's the problem? But then again xf86-video-nouveau emerged just fine. | think the problem not having /etc/conf.d/xdm pointing to kde-4
check your kernel config against:(select red item to match motherboard chipset)
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
(4) 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)
< > 3dfx Banshee/Voodoo3+ (NEW)
< > ATI Rage 128 (NEW)
< > ATI Radeon (NEW)
<*> Nouveau (nVidia) cards (NEW)
< > 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
<M> 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)
< > 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)
<M> 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 |
_________________ Defund the FCC. |
|
Back to top |
|
|
temporary_user n00b
Joined: 26 Aug 2012 Posts: 37
|
Posted: Wed Aug 29, 2012 4:21 pm Post subject: |
|
|
I've done everything described above, and still nothing. My errors haven't changed a bit.
While compiling new kernel I got 3 warnings:
Code: | warning: (DRM selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (ACPI_HOTPLUG_CPU selects ACPI_CONTAINER which has unmet direct dependencies (ACPI && EXPERIMENTAL)
warning: (DRM_NOUVEAU) selects MXM_WMI which has unmet direct dependencies (X86 && X86_PLATFORM_DEVICES && ACPI_WMI) |
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Aug 29, 2012 5:33 pm Post subject: |
|
|
Is this the error you still get?
Quote: | /etc/X11/xinit/xinitrc: line 59: twm: command not found
/etc/X11/xinit/xinitrc: line 60: xclock: command not found
/etc/X11/xinit/xinitrc: line 63: exec: command not found
/etc/X11/xinit/xinitrc: line 61: xterm: command not found
/etc/X11/xinit/xinitrc: line 62: xterm: command not found
xinit: connection to X server lost | if so X is running but failing to start a KDE-4 session. did kde emerge complete successfully?
What is the make and model of your computer?
the kernel compile warnings should clear if the following menuconfig changes are made and the kernel recompiled and recopied to /boot.
Quote: | General setup --->
[*] Prompt for development and/or incomplete code/drivers
Processor type and features --->
[ ] Support for hot-pluggable CPUs
Power management and ACPI options --->
[*] ACPI (Advanced Configuration and Power Interface) Support --->
[*] X86 Platform Specific Device Drivers --->
<*> WMI
<M> MSI WMI extras
|
_________________ Defund the FCC. |
|
Back to top |
|
|
temporary_user n00b
Joined: 26 Aug 2012 Posts: 37
|
Posted: Wed Aug 29, 2012 6:02 pm Post subject: |
|
|
DONAHUE wrote: | Is this the error you still get?
Quote: | /etc/X11/xinit/xinitrc: line 59: twm: command not found
/etc/X11/xinit/xinitrc: line 60: xclock: command not found
/etc/X11/xinit/xinitrc: line 63: exec: command not found
/etc/X11/xinit/xinitrc: line 61: xterm: command not found
/etc/X11/xinit/xinitrc: line 62: xterm: command not found
xinit: connection to X server lost |
|
Yup, still the same error.
DONAHUE wrote: | did kde emerge complete successfully? |
I guess so. When I try emerge -av kde-meta it only reinstalls one package (kde-meta).
DONAHUE wrote: | What is the make and model of your computer? |
I build the PC myself.
CPU: Core i7 2600k
MB: Asrock Fatal1ty z68 professional gen3
RAM: Corsair vengeance 2x4GB 1866Mhz
GPU: GF GTX580
SSD: OCZ Vertex4 |
|
Back to top |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Wed Aug 29, 2012 8:06 pm Post subject: |
|
|
temporary_user,
The problem you're experiencing sounds a lot like this one
Take a look at ~/.xsession-errors and review the aforementioned thread. _________________ Good luck
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
temporary_user n00b
Joined: 26 Aug 2012 Posts: 37
|
Posted: Sat Sep 01, 2012 9:21 am Post subject: |
|
|
BillWho wrote: | temporary_user,
The problem you're experiencing sounds a lot like this one
Take a look at ~/.xsession-errors and review the aforementioned thread. |
Changing /etc/conf.d/xdm to kdm worked!
Now, when i use startx GUI starts, to load, but freezes after a few seconds - after that I can't even change it to different terminal
Same thing happened with liverescuecd - when I tried to launch GUI it started successfully, but after a couple of seconds freezed and became unusable.
Where should I check for errors?
EDIT: Picture for clarification. At this point even mouse cannot be moved. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54420 Location: 56N 3W
|
Posted: Sat Sep 01, 2012 3:24 pm Post subject: |
|
|
temporary_user,
Your problem is either in Xord or in your window manager.
As a test Code: | emerge twm xterm xclock -1 | and rename your ~/.xinitrc to say, ~/.xinitrc_broken.
Now try startx.
If it works, you get twm, with three xterms and a clock. This is a very simple window manager bot if it works it shows Xorg works underneth it too.
If it fails, the common item is Xorg. There may be something useful in your /var/log/Xorg.0.log which will still be there when you regain control.
If you have a second system and can log in with ssh (before or after the crash) dmesg after the crash may be useful too.
However, many crashes prevent logs being updated so the information we need may never make it to disk. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|