View previous topic :: View next topic |
Author |
Message |
glsubri n00b
Joined: 10 Nov 2014 Posts: 11
|
Posted: Fri Feb 13, 2015 12:45 pm Post subject: Kernel panic : SMP error |
|
|
Hi guys,
I tried to install GNU/Gentoo on a lenovo my mom gave me. At first I had trouble with the UEFI thing, but managed to solve it. But now, after everything going well during the install, I have a kernel panic. Here is what it written:
Code: | WARNING: CPU: 0 PID: 9 at arch/x86/kernel/smp.c:124 native_smp_send_reschedule+0x55/0x60()
Modules linked in:
CPU: 0 PID: 9 Comm: migration/0 Tainted: G W 3.17.8-gentoo-r1 #1
|
Also, I tried using an older kernel (the 3.14). I am quite lost.
Thanks!
P.S. FYI it's a lenovo thinkpad T420, 64bits, with UEFI. If you need more info, just tell me ! |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Fri Feb 13, 2015 1:17 pm Post subject: |
|
|
you may use pappys kernel seeds or start from scratch.
you may also use genkernel as a starting point for your kernel.
i wonder if your hardware supports smp at all. I have not checked that |
|
Back to top |
|
|
evetsnameloc n00b
Joined: 14 Dec 2014 Posts: 26 Location: Colorado Springs, CO
|
Posted: Fri Feb 13, 2015 4:45 pm Post subject: |
|
|
According to the spec sheet on the T420 it should support SMP.
Code: | Available processors are:
Intel® Core™ i3 processor i3-2310M with dual-core
DDR3 memory controller (up to 1333MHz), Intel Turbo Boost, Hyper-Threading technology; 3MB cache
Intel® Core™ i5 processor i5-2410M with dual-core
DDR3 memory controller (up to 1333MHz), Intel Turbo Boost, Hyper-Threading technology; 3MB cache
Intel® Core™ i5 processor i5-2520M with dual-core
DDR3 memory controller (up to 1333MHz), Intel Turbo Boost, Hyper-Threading technology; 3MB cache
Intel® Core™ i5 processor i5-2540M with dual-core
DDR3 memory controller (up to 1333MHz), Intel Turbo Boost, Hyper-Threading technology; 3MB cache
Intel® Core™ i7 processor i7-2620M with dual-core
DDR3 memory controller (up to 1333MHz), Intel Turbo Boost, Hyper-Threading technology; 4MB cache |
I'm not sure about the "tainted" thing. I get a bunch of tainted messages during bootup but no kernel panics.
Code: | $ dmesg | grep Tainted
[ 1428.989593] CPU: 3 PID: 19860 Comm: modprobe Tainted: G O 3.18.3-ck #7
[ 1428.989777] CPU: 3 PID: 19860 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 1428.990060] CPU: 3 PID: 19860 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 1428.990207] CPU: 3 PID: 19860 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 1428.990349] CPU: 3 PID: 19860 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 1428.990493] CPU: 3 PID: 19860 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 3058.286985] CPU: 2 PID: 22254 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 3058.287129] CPU: 2 PID: 22254 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 3058.287349] CPU: 2 PID: 22254 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 3058.287459] CPU: 2 PID: 22254 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 3058.287564] CPU: 2 PID: 22254 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 3058.287698] CPU: 2 PID: 22254 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 9792.819516] CPU: 5 PID: 31531 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 9792.819738] CPU: 5 PID: 31531 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 9792.820079] CPU: 5 PID: 31531 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 9792.820269] CPU: 5 PID: 31531 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 9792.820455] CPU: 5 PID: 31531 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[ 9792.820641] CPU: 5 PID: 31531 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[24934.474054] CPU: 6 PID: 22271 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[24934.474204] CPU: 6 PID: 22271 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[24934.474449] CPU: 6 PID: 22271 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[24934.474570] CPU: 6 PID: 22271 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[24934.474685] CPU: 6 PID: 22271 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[24934.474801] CPU: 6 PID: 22271 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[31192.446885] CPU: 7 PID: 3178 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[31192.447024] CPU: 7 PID: 3178 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[31192.447295] CPU: 7 PID: 3178 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[31192.447426] CPU: 7 PID: 3178 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[31192.447539] CPU: 7 PID: 3178 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[31192.447654] CPU: 7 PID: 3178 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[38949.042129] CPU: 1 PID: 13212 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[38949.042270] CPU: 1 PID: 13212 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[38949.042510] CPU: 1 PID: 13212 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[38949.042619] CPU: 1 PID: 13212 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[38949.042746] CPU: 1 PID: 13212 Comm: modprobe Tainted: G W O 3.18.3-ck #7
[38949.042859] CPU: 1 PID: 13212 Comm: modprobe Tainted: G W O 3.18.3-ck #7
|
|
|
Back to top |
|
|
glsubri n00b
Joined: 10 Nov 2014 Posts: 11
|
Posted: Fri Feb 13, 2015 6:07 pm Post subject: |
|
|
Thanks for the replies.
Quote: | you may use pappys kernel seeds or start from scratch. |
I already tried, and no luck.
Quote: | i wonder if your hardware supports smp at all. I have not checked that |
Thanks to evetsnameloc, we know that it does! |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3131
|
Posted: Fri Feb 13, 2015 7:44 pm Post subject: |
|
|
what happens just before panic? What the last message before panic is?
I think the most common reason for kernel panic is it doesn't find init to launch. And this means either you lack something in kernel or you must point your kernel to the root device. Have you passed any root device to your kernel at all? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Fri Feb 13, 2015 9:14 pm Post subject: |
|
|
evetsnameloc,
Tainted means you have a non free kernel module loaded.
The two popular ones are the ATI and nVidia binary blob graphic card drivers.
The first step is to get rid of the taint, so you have some chance to investigate and fix the problem.
The boot process gets quite far along as root is mounted, modules are loading, maybe even Xorg is starting, since a binary blob module is loading.
Boot to a shell prompt - no graphical login. To do that you need to use interactive mode - Press letter "I" when openrc starts and do not allow xdm to start.
Alternatively, remove xdm from the default runlevel and reboot.
Running a SMP kernel on a single core machine is harmless. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
glsubri n00b
Joined: 10 Nov 2014 Posts: 11
|
Posted: Sun Feb 15, 2015 3:59 pm Post subject: |
|
|
It may seems silly, but IDK where to search for the information you asked. I cannot see what happens before the panic, and if I boot on a usb (with the GNU/Gentoo Live DVD, yay!), I do not see anything in /var/log... |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21595
|
Posted: Sun Feb 15, 2015 4:21 pm Post subject: |
|
|
In this case, the taint is not reporting a proprietary module. OP reports taint characters G and W. According to /usr/src/linux/kernel/panic.c, these are: !TAINT_PROPRIETARY_MODULE and TAINT_WARN.
OP: what exactly happens before the kernel panic? What other text do you see on screen after the panic? The message you quoted in the first post seems to be a warning, not a panic. Warnings are often important, but the system should remain usable after the warning. |
|
Back to top |
|
|
glsubri n00b
Joined: 10 Nov 2014 Posts: 11
|
Posted: Sun Feb 15, 2015 4:39 pm Post subject: |
|
|
Like I said, I don't know what happens before the panic and I don't know where to get that information.
To me, the start looks like a normal boot.
Where can I get the logs ? Are they any ? I understand that you need to know what happens before the panic but I don't know where to seek that info.
Thanks again everybody |
|
Back to top |
|
|
glsubri n00b
Joined: 10 Nov 2014 Posts: 11
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21595
|
Posted: Sun Feb 15, 2015 6:49 pm Post subject: |
|
|
When I asked what happens before the kernel panic, I wanted to know what the system was doing prior to the panic. Had it mounted root yet? Had you logged in? Was Xorg running? If I sat down at this laptop while it was powered off, what steps would I need to do before the panic appeared? Is it sufficient to press the power button or do I need to interact further after that? How long would I need to wait? |
|
Back to top |
|
|
glsubri n00b
Joined: 10 Nov 2014 Posts: 11
|
Posted: Sun Feb 15, 2015 10:06 pm Post subject: |
|
|
Oh! Sorry, I completely misunderstood what you asking then. It seemed so obvious to me that I didn't think that you didn't know...
So: My laptop doesn't even reach the end of the startup process. IDK at what step in the boot it is when it stops, and I don't know where to search for that. I have two errors. One I cannot read, because only the end of the error message is shown and a second one, the SMP thing.
I guess I did something wrong in my install, but since I tried to start the process over a few times, I think I will not see it by myself.
Is it clearer ? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Sun Feb 15, 2015 10:36 pm Post subject: |
|
|
glsubri,
Tell how you did your install, what instructions did you follow?
Tell how you made your kernel.
Also post the output of lspci for your laptop and put /usr/src/linux/.config onto a pastebin site.
wgetpaste can help you there.
Can you post a photo of the panic screen?
I don't think the SMP error is important. Its only the first error that matters. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
glsubri n00b
Joined: 10 Nov 2014 Posts: 11
|
Posted: Mon Feb 16, 2015 9:05 am Post subject: |
|
|
I followed the handbook and i made a kernel from scratch.
Here is my lspci:
http://dpaste.com/3PTYQS1
And here is my .config:
http://dpaste.com/2GFE3PC
Is there a place where I can have the logs of the startup ? I surely could see the first error in such a log.
Thanks again |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Mon Feb 16, 2015 6:23 pm Post subject: |
|
|
glsubri,
If you have any logs, they will be in /var/log
However, until the root filesystem is mounted, there is nowhere to write logs.
Your kernel looks OK.
Can you post your bootloader config file, your /etc/fstab and tell us what filesystem you are using for root?
A photo of the panic will still be useful.
Do you have another system?
Is a serial console a possibility, or even a network console? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
glsubri n00b
Joined: 10 Nov 2014 Posts: 11
|
Posted: Wed Feb 18, 2015 7:18 pm Post subject: |
|
|
Sorry for the late reply. I had a lot of things to deal with.
Anyway,
Quote: | Can you post your bootloader config file, your /etc/fstab and tell us what filesystem you are using for root? |
So here's my /etc/fstab: http://dpaste.com/04TEJZ1. And I used etx4 for my / fs and vfat for the /boot
Quote: | A photo of the panic will still be useful. |
Here is a photo of the panic: http://imgur.com/N5txOlB
I'm not sure what file you want for the grub configuration though. I used the usual "grub2-mkconfig -o /boot/grub/grub.cfg" command.
Quote: | Do you have another system? |
I do have another system (a previous Gentoo install on another computer). I don't know if a serial console is possible. How do you do such a thing ?
Thanks, again, for your time and efforts!
glsubri |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Wed Feb 18, 2015 7:59 pm Post subject: |
|
|
glsubri,
/etc/fstab: | /dev/sda2 /boot ext2 noauto,noatime 0 2
/dev/sda4 / ext4 noatime 0 1 |
glsubri wrote: | ... I used etx4 for my / fs and vfat for the /boot | but fstab says /boot is ext2
vfat on /boot can be done but its not simple as vfat does not support symbolic links.
Which is correct, vfat or ext2 ?
Your photo shows you are well into booting its at 7.5 seconds. It also shows a problem with PID 10, so the kenel has passed control to init, which is process ID 1 and init is doing its thing.
I have not seen that error before.
There are three ways to get more info., in order of lest trouble to try out.
1. Video the boot process and post the video. I'm not sure how useful this will be. It may be unreadable.
2. Set up a network console. I,ve never done this but it works as follows. You build wired netmork support into the kernel along with network console support.
When the kernel starts and has initalised networking, the console output is sent to the network where another system listens for it.
3. Set up a serial console. The captures everything but needs some extra hardware. The PC wint the problem needs a real serial port. The PC acting as the console need a serial port of some sort. The serial ports are connected with a null modem cable. The kernel on the PC with the problem needs serial console support and it also needs to be configured an the kernel command line. Lastly, the console PC needs serial por support and something like minicom so it can pretend to be a serial console.
We can also poke at the problem from the outside. I don't thinx SMP is the real issue, however, you could turn off SMP support in the kernel and rebuild it starting with make clean.
Does that get different error messages?
If your BIOS supports it, you may be able to turn of Hyperthreading and individual cores. Thats faster than a kernel build an may provide the same information.
The system must have booted with your install media. Compare its kernel to yours. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
glsubri n00b
Joined: 10 Nov 2014 Posts: 11
|
Posted: Wed Feb 18, 2015 8:32 pm Post subject: |
|
|
I tried the video thing. It happens really fast, but I managed to read two things that I thought were relevant:
"Unable to mount root fs on unknown-block(0,0)"
"sda: driver: sd"
I don't think putting the video online will help. Would you still like me to do so ?
Does it help in any way ? |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Wed Feb 18, 2015 8:50 pm Post subject: |
|
|
Quote: | 'm not sure what file you want for the grub configuration though. I used the usual "grub2-mkconfig -o /boot/grub/grub.cfg" command. |
That's the one, /boot/grub/grub.cfg
I don't use grub2, it's too incomprehensible for me, but I'm sure NeddySeagoon can read it fine. |
|
Back to top |
|
|
glsubri n00b
Joined: 10 Nov 2014 Posts: 11
|
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Wed Feb 18, 2015 9:27 pm Post subject: |
|
|
There are five menu entries. Do they all behave the same? |
|
Back to top |
|
|
glsubri n00b
Joined: 10 Nov 2014 Posts: 11
|
Posted: Wed Feb 18, 2015 9:31 pm Post subject: |
|
|
Actually, I didn't realized until now, but I do not have to choose any kernel or anything. I think this has to do with the UEFI. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Wed Feb 18, 2015 9:39 pm Post subject: |
|
|
glsubri,
That confirms that there is no initrd loaded. There is none built into the kernel either.
Your video snippit "Unable to mount root fs on unknown-block(0,0)" says that the kernel cannot see the hard drive, so init at PID 1 cannot have started.
With no init, you can't get to spawning PID 10, which is what your photo indicates is causing the SMP issue.
So I don't think you are booting the kernel you are posting the config for.
Your fstab shows Code: | /dev/sda2 /boot ext2 noauto,noatime 0 2 | so boot is not automatically mounted.
Boot with your install media, mount sda4 and sda2.
Now look in /mnt/gentoo/boot If all is well it should be empty. If there is a kernel here, it the one you thoudht you were booting but aren't.
It means you forgot to mount boot to install the kernel.
If /mnt/gentoo/boot is empty contine going into the chroot. Mow me can check some file datestamps.
It all starts with /usr/src/linux/.config. This must be te oldest file.
The file at /usr/src/linux/arch/x86/boot/bzImage is the kernel binary as built. If it came from the .config above, it must be newer.
Make a note of the time/date.
Look at /boot/vmlinuz-3.17.8-gentoo-r1. It should nave the same timestamp as /usr/src/linux/arch/x86/boot/bzImage
What do you find? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|