Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED - different kernels of same version? is it allowed?
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
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 28
Location: Stockholm

PostPosted: Sat Apr 28, 2018 12:24 pm    Post subject: SOLVED - different kernels of same version? is it allowed? Reply with quote

I am installing on a HP probook4510s, from CD with minim install.

I compiled first with genkernel and then tried to configure for Xorg, and trim it a bit from what I believe is obviously unnecessary - full aware that this might well be the problem.

I have now compiled 3 successive versions using make nconfig , starting with the .config I got from genkernel.

Compiling goes without any noticeable problem, but i can't boot any of the 3 latest kernels, get panic right after :

"apic_timer_interrupt +0x93/0xa0"

for all the 3 non-genkernel kernels.

The Mint version on sda6 boots smoothly.

I wonder whether there is need for any special action after compiling the kernel in order to make it bootable.

I have compiled with symlink set in make.conf "USE". Linux does not bless anything AFAIK.

This has been going on for at least 2 weeks and it may also be - sure hope so - that I am so tired that I am missing some obvious points.

my grub.cfg : https://paste.pound-python.org/show/rmWD98D1C4GzDCfNAUfE/

my lspci : https://paste.pound-python.org/show/VoIB9n8kSqkalsZmKIq7/

my .config https://paste.pound-python.org/show/H4FYuaIHQm8Ae345wxGZ/

will value your wise counsel


Last edited by Arthur Grandi on Sun May 13, 2018 8:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 28
Location: Stockholm

PostPosted: Sat Apr 28, 2018 12:39 pm    Post subject: Reply with quote

latest tarball: stage3-amd64-20180322T2145022.tar.gz
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43377
Location: 56N 3W

PostPosted: Sat Apr 28, 2018 1:00 pm    Post subject: Reply with quote

Arthur Grandi,

A few things. First about getting the best from the forum.
The forums has a preset search View unanswered posts which many helpers use.
When you add more information by replying to yourself, your thread is answered, so it drops out of this search.
Until you have a helper, you should edit your original post to add more information.

Now to your problem.
genkernal builds you a fully modular kernel and an initrd that contains all the kernel modules too.
Some of these modules are required to mount your root filesystem.
To boot without an initrd, the kernel must be able to talk to the HDD, read the partition table on the drive then read the root filesystem.
That means all the options to do that must be set to <*> for built in.

Without an initrd, the modules are saved in /lib/modules/... which can't be read until the root filesystem is mounted.
That's a problem if you need modules to mount the root filesystem to read the modules to mount the root filesystem.

Built in:
CONFIG_MSDOS_PARTITION=y
CONFIG_EFI_PARTITION=y


Modules:
CONFIG_BLK_DEV_SD=m
CONFIG_SATA_AHCI=m
CONFIG_ATA_PIIX=m


I'll stop now I've pointed the path. That's some worked examples, not a fix for your problem.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sun Apr 29, 2018 4:14 pm    Post subject: Reply with quote

As Neddy said, you need drivers for the hard-disk controller (usually SATA nowadays) and the filesystem on the rootfs (eg: ext4) built-in to the kernel.

The easy way to get this info is from a live-disk (or one of the running kernels you already have), using:
Code:
lspci -k
lsmod
cf: man lspci
The last command shows all in-use modules, the first which ones are for which device (there's also lsusb but I prefer USB as a module, as we don't use rootfs on USB, and it means we can rmmod the USB stack if need to; also ensuring that USB sound-cards are never built-in.)

Nowadays, lspci -k shows you the module by name, so that's really all that's needed, IME. (We used to have to lookup the id on a debian website, somewhere..)
lsmod is useful for setting up the graphics card, which needs a radeon module (not built-in; needs linux-firmware) for nice EFI on this machine, and then adding USB support for built-in devices like a card-reader.

Once you have the module name, look it up by running
Code:
make nconfig
in /usr/src/linux (whichever one you're using, if not symlinked) in another terminal (again, on the live-disk after mounts and chroot, /etc/profile, or on a running system.) There'll be a menu at the top with a "search" (iirc it's F8 or F9.)
Not all of them need to be builtin; eg: I build-in ethernet, but not wifi, and CPU bits, but nothing else besides what's needed to access root.
Back to top
View user's profile Send private message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 28
Location: Stockholm

PostPosted: Thu May 03, 2018 9:22 am    Post subject: Reply with quote

Thanks steveL and Neddy Seagoon!

I ought to know it. I have read on this many times and believed i had understood it.

So it seems i diid miss something basic, neccessary for booting. Now I know in which direction i must focus, namely finding out what.

And i will edit next time, N.S. I have a feeling that i did not because i could not find the edit buttom. Guees i must have been pretty tired.
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