Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel panic [SOLVED]
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
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Sun May 13, 2012 7:52 am    Post subject: Kernel panic [SOLVED] Reply with quote

Hi there,
I am trying to make my kernel running but somehow I got a kernel panic message. I simply have no clue about the reason... The message is this ( screenshot ):

http://imagebin.org/212210
http://imagebin.org/212211

The .config is at http://dl.dropbox.com/u/62884475/config.txt

lscpi:
Quote:
00:00.0 RAM memory: nVidia Corporation MCP67 Memory Controller (rev a2)
00:01.0 ISA bridge: nVidia Corporation MCP67 ISA Bridge (rev a2)
00:01.1 SMBus: nVidia Corporation MCP67 SMBus (rev a2)
00:02.0 USB controller: nVidia Corporation MCP67 OHCI USB 1.1 Controller (rev a2)
00:02.1 USB controller: nVidia Corporation MCP67 EHCI USB 2.0 Controller (rev a2)
00:04.0 USB controller: nVidia Corporation MCP67 OHCI USB 1.1 Controller (rev a2)
00:04.1 USB controller: nVidia Corporation MCP67 EHCI USB 2.0 Controller (rev a2)
00:06.0 IDE interface: nVidia Corporation MCP67 IDE Controller (rev a1)
00:07.0 Audio device: nVidia Corporation MCP67 High Definition Audio (rev a1)
00:08.0 PCI bridge: nVidia Corporation MCP67 PCI Bridge (rev a2)
00:09.0 IDE interface: nVidia Corporation MCP67 AHCI Controller (rev a2)
00:0a.0 Ethernet controller: nVidia Corporation MCP67 Ethernet (rev a2)
00:0b.0 PCI bridge: nVidia Corporation MCP67 PCI Express Bridge (rev a2)
00:0c.0 PCI bridge: nVidia Corporation MCP67 PCI Express Bridge (rev a2)
00:0d.0 PCI bridge: nVidia Corporation MCP67 PCI Express Bridge (rev a2)
00:0e.0 PCI bridge: nVidia Corporation MCP67 PCI Express Bridge (rev a2)
00:0f.0 PCI bridge: nVidia Corporation MCP67 PCI Express Bridge (rev a2)
00:10.0 PCI bridge: nVidia Corporation MCP67 PCI Express Bridge (rev a2)
00:11.0 PCI bridge: nVidia Corporation MCP67 PCI Express Bridge (rev a2)
00:12.0 VGA compatible controller: nVidia Corporation C68 [GeForce 7050 PV / nForce 630a] (rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control


The hdd-s are ATA SAMSUNG HE103UJ.
I should try the new kernel due to some problems with syncing the cores with the old one ( problem with this CPUs. ).

Thanx for the help!
_________________
Quis custodiet ipsos, custodes?


Last edited by salmonix on Fri May 25, 2012 7:24 am; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9892
Location: almost Mile High in the USA

PostPosted: Sun May 13, 2012 8:11 am    Post subject: Reply with quote

This kernel panic means that it ran out of instructions to run... namely, because the program that the kernel first runs (and runs everything else), init, couldn't be found.

Based on the screenshots it looks like it found most of your hard disks? It looks like you have several.

So things to test:
- Are you sure your root=XXXX on your kernel command line (for grub, or whatever bootloader) is pointing to the right disk?
- Are you sure your root=XXXX is a /dev/sda? or a kernel identifier, not "LABEL=" or "UUID=" if you're not using an initrd
- Is the filesystem you made your root compiled into your kernel?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Sun May 13, 2012 10:02 am    Post subject: Reply with quote

Thanx for the ideas.

blkid:
Quote:
/dev/sda1: UUID="f5597b92-2e84-4dee-94b6-0a7b4b67e575" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda2: LABEL="ROOT" UUID="b8317039-1528-4f7a-b08d-740dc6d4161a" TYPE="ext3"
/dev/sda3: LABEL="SWAP" UUID="8c228af2-b32f-41b5-a453-372cd53293a6" TYPE="swap"
/dev/sda5: LABEL="HOME" UUID="9f683c0a-22c9-43e1-afad-978dd921f228" SEC_TYPE="ext2" TYPE="ext3"

grub menu.lst
Quote:
title Gentoo
root (hd0,1)
kernel /boot/vmlinuz root=UUID=b8317039-1528-4f7a-b08d-740dc6d4161a ro quiet


The filesystems are ext3, both ext2 and ext3 are in the kernel. initrd is not used.
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Sun May 13, 2012 10:56 am    Post subject: Reply with quote

Hello,
blkid do not show /dev/sda4 that is your extended partition. No problem. Blkid do not show /dev/sda6, /dev/sda7 and /dev/sda8 like your kernel detect in the second image.

In plus, we see /dev/sdb, /dev/sdb1 and /dev/sdb2, /dev/sdc, /dev/sdc1 and /dev/sdc2, /dev/sdd and /dev/sdd1. All of these are block devices.

Both blkid and the kernel should see the storage devices the same way.
_________________
Paul
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Sun May 13, 2012 12:24 pm    Post subject: Reply with quote

full blkid:
Quote:
/dev/sda1: UUID="f5597b92-2e84-4dee-94b6-0a7b4b67e575" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda2: LABEL="ROOT" UUID="b8317039-1528-4f7a-b08d-740dc6d4161a" TYPE="ext3"
/dev/sda3: LABEL="SWAP" UUID="8c228af2-b32f-41b5-a453-372cd53293a6" TYPE="swap"
/dev/sda5: LABEL="HOME" UUID="9f683c0a-22c9-43e1-afad-978dd921f228" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda6: UUID="Z5jQya-kzDV-FMfG-iPFB-Xd2r-d8it-5NjULe" TYPE="LVM2_member"
/dev/sda7: UUID="Ye8s3l-2LH0-VgTr-b2jJ-bfiG-MBvQ-3zifoN" TYPE="LVM2_member"
/dev/sda8: UUID="O1EaDu-E58A-OJd6-8V5H-jrlE-cypD-i1A6xl" TYPE="LVM2_member"
/dev/sdb1: UUID="KxGkyY-dMhG-iUqH-xdmE-79sg-6v9G-80co75" TYPE="LVM2_member"
/dev/sdb2: UUID="dIvEU8-ECGv-oMfJ-zI2Q-8oi2-dDdk-QJZ1e5" TYPE="LVM2_member"
/dev/sdc1: UUID="f385649b-ea92-4a0a-9056-249c884be2ae" TYPE="ext2"
/dev/sdc2: UUID="2079d7b8-1a25-4d24-98ca-4b4aa626438f" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdd1: UUID="c71af193-e1c1-46f2-a153-d453f51a5136" SEC_TYPE="ext2" TYPE="ext3"
/dev/mapper/arcreko-data: UUID="58fd14ba-9aa4-4b41-86f1-fd2c843c080d" TYPE="ext3"


fstab:
Quote:
/dev/sda2 / ext3 auto,noatime,acl 1 2
/dev/sda3 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,rw 0 0
/dev/sda5 /home auto defaults,acl 0 0

# Arcreko partitions should be mounted by LVM
/dev/arcreko/data /home/ARCREKO/DATA ext3 defaults,acl 0 0
/dev/sdc2 /home/ARCREKO/BACKUP/1 ext3 defaults,acl 0 0
/dev/sdd1 /home/ARCREKO/BACKUP/2 ext3 defaults,acl 0 0


Actually those are LVM2 members. sda-sdb are LVM members, but ROOT, SWAP and HOME are not in LVM.
The rest are independent hdd-s, not partitioned. That is the reason I thought them left out. If important piece of data was missing, this was my bad.
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
kimmie
Guru
Guru


Joined: 08 Sep 2004
Posts: 531
Location: Australia

PostPosted: Sun May 13, 2012 1:19 pm    Post subject: Reply with quote

salmonix,

like eccerr0r said, you can't use root=UUID= or LABEL= unless you are using an initrd. Just use root=/dev/sda2, and make sure your root filesystem is in-kernel, not a module.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9892
Location: almost Mile High in the USA

PostPosted: Sun May 13, 2012 10:44 pm    Post subject: Reply with quote

Though these are for x86, the principle applies to all architectures:

Use genkernel to build an initramfs:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7

Then use initrd option in your bootloader to use the initramfs.
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10

Only then can you use UUID= or LABEL=... Else you need to use /dev/sdXY or whatever the raw devices are. The reason why initrd is needed is because "blkid" is a userspace application and not part of the kernel, and you need blkid to identify the devices. After it finds your devices it will then switch over to the new rootfs and boot normally.

(I use initramfs not for UUID=/LABEL=, but rather due to LVM/RAID is not available on boot.)
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Fri May 25, 2012 7:23 am    Post subject: Reply with quote

Heh, silly mistake...
Thanx!
_________________
Quis custodiet ipsos, custodes?
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