Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Do kernels have a mandatory naming convention?
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
Kilteroff
n00b
n00b


Joined: 18 Dec 2013
Posts: 36

PostPosted: Fri Sep 12, 2014 7:44 pm    Post subject: Do kernels have a mandatory naming convention? Reply with quote

I just tweaked mine a bit and copied it to /boot but grub doesn't see it.

Code:
navi linux # cp /usr/src/linux/arch/x86_64/boot/bzImage /boot/evangelion-unit00
navi linux # grub2-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/kernel-genkernel-x86_64-3.14.14-gentoo
Found initrd image: /boot/initramfs-genkernel-x86_64-3.14.14-gentoo
done
navi linux # ls /boot
evangelion-unit00
grub
initramfs-genkernel-x86_64-3.14.14-gentoo
kernel-genkernel-x86_64-3.14.14-gentoo
lost+found
System.map-genkernel-x86_64-3.14.14-gentoo
Back to top
View user's profile Send private message
Kilteroff
n00b
n00b


Joined: 18 Dec 2013
Posts: 36

PostPosted: Fri Sep 12, 2014 8:00 pm    Post subject: Reply with quote

Well, I got it working by giving up on naming it and just did a make install instead of copying manually (first successful tweak, wireless working w0000)

If I just renamed it in place that would break grub wouldn't it? Would I have to also rename the config / system map thing? what do -_-
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Sep 12, 2014 8:13 pm    Post subject: Reply with quote

Kilteroff,

The kernel name is at the top of the Makefile.

Code:
VERSION = 3
PATCHLEVEL = 16
SUBLEVEL = 1
EXTRAVERSION = -gentoo
NAME = Museum of Fishiegoodies

If you change this you must rebuild the kernel starting with make clean as the version in included in the version magic eveywhere.
Code:
vermagic:       3.16.1-gentoo SMP preempt mod_unload modversions
which is what the kernel uses to knom if you are loadng modules that belong to it, or not.
_________________
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
Kilteroff
n00b
n00b


Joined: 18 Dec 2013
Posts: 36

PostPosted: Fri Sep 12, 2014 9:20 pm    Post subject: Reply with quote

Neat, gotta read up on this.

This is my first time really playing with this stuff. So mine has this..
Code:
VERSION = 3
PATCHLEVEL = 14
SUBLEVEL = 14
EXTRAVERSION = -gentoo
NAME = Remembering Coco


But my kernels certainly don't say anything about coco anywhere, they do have -gentoo on them, so I guess that's the actual "name" as I'm thinking of it.

When I was in menuconfig I saved it as <silly name>.config, but that didn't seem to show up anywhere. How do I actually have my kernels listed in grub as something I choose as opposed to gentoo-linux-3.14.blahblahblah?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


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

PostPosted: Fri Sep 12, 2014 10:43 pm    Post subject: Reply with quote

Well back to the original query, yes grub2 does have a requirement to auto generate the config file. It tries to associate initrd to kernels by version numbers that are embedded in the name. I don't think grub2 does anything with system.map files however.

If you manually hack/create your config file, then there is no naming requirement.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Kilteroff
n00b
n00b


Joined: 18 Dec 2013
Posts: 36

PostPosted: Fri Sep 12, 2014 10:53 pm    Post subject: Reply with quote

Aha, k. Thanks.
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