LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 06-23-2019, 03:07 PM   #1
B10bot
LQ Newbie
 
Registered: Jun 2019
Posts: 4

Rep: Reputation: Disabled
Kernel Panics on Thinkpad x230


I got a Thinkpad x230 a few days ago and have been trying to install CRUX Linux. I have so far had no luck. The kernel I have compiled will not boot. When ever I start the computer, it goes to a grub prompt, like this:
Code:
grub>
This is because whenever I run grub-mkconfig -o /boot/grub/grub.cfg, no images are found. However this is not the main problem. If I specify manually specify the image to boot from and boot from it, I just get a large amount of text with this at the end:
Code:
[    2.561231] ---[ end trace 51e23bce2bbaf ]---
After displaying this, it just stops and doesn't do anything afterwords. I can't read most of the error messages, so I don't know what is going on, and the stuff I can read is mostly numbers. I figure that something is wrong with the kernel. I am using grub 2 as my boot loader, and installed it for UEFI.
 
Old 06-23-2019, 03:12 PM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Did it come with it's own kernel or no?
How and on what system did you compile the kernel?
 
Old 06-23-2019, 03:47 PM   #3
B10bot
LQ Newbie
 
Registered: Jun 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
As I said in the post, I compiled the kernel from the source, in /usr/src/linux-4.1948/. I did this by running the following commands, with my EFI system partition mounted at /boot/efi:
Code:
make defconfig
make menuconfig
make all && make modules_install
cp arch/x86_64/boot/bzImage /boot/efi/vmlinuz
cp System.map /boot/efi
After this I ran
Code:
grub-install /boot/efi
grub-mkconfig -o /boot/grub/grub.cfg
Neither of these yeilded any errors, but grub-mkconfig -o /boot/grub/grub.cfg did not find any kernel images, which suggests something is wrong with mine.

Last edited by B10bot; 06-23-2019 at 03:55 PM.
 
1 members found this post helpful.
Old 06-23-2019, 04:21 PM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
maybe grub-install --boot-directory=/boot/efi /dev/sdx ?
then run grub-mkconfig

Also, you can use another grub.cfg from any linux and edit it manually for partitions, etc then copy to /boot/grub
 
Old 06-23-2019, 04:56 PM   #5
B10bot
LQ Newbie
 
Registered: Jun 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Running grub-install --boot-directory=/boot/efi tells me it cannot find a EFI directory, even though I clearly have one.

Last edited by B10bot; 06-23-2019 at 04:58 PM.
 
Old 06-23-2019, 05:36 PM   #6
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
thats strange...I have limited experience with efi stuff
try using --force parameter maybe idk
You could possibly just use a symlink for grub to find the kernel in /boot/efi?

cd /boot/
ln -sf /boot/efi/vmlinuz vmlinuz

that might work then do grub-mkconfig?
is /boot/efi on same partition?
 
  


Reply

Tags
crux, grub 2, kernel, thinkpad, uefi



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Trackpoint/Trackpoint center button scrolling doesn't work on an X230 nekoseam Slackware 15 04-07-2018 05:58 PM
[SOLVED] Lenovo X230 Dual Monitor / Docking Station Problems OscarMike Slackware 1 03-05-2013 05:40 PM
Colour issue with webcam on Thinkpad X230; Slackware 14.0 dh_ Slackware 1 01-22-2013 03:16 PM
beep(1) not working on ThinkPad X230 tarverator Linux - Hardware 12 09-17-2012 07:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration