View previous topic :: View next topic |
Author |
Message |
Kilteroff n00b
Joined: 18 Dec 2013 Posts: 36
|
Posted: Fri Sep 12, 2014 7:44 pm Post subject: Do kernels have a mandatory naming convention? |
|
|
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 |
|
|
Kilteroff n00b
Joined: 18 Dec 2013 Posts: 36
|
Posted: Fri Sep 12, 2014 8:00 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Fri Sep 12, 2014 8:13 pm Post subject: |
|
|
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 |
|
|
Kilteroff n00b
Joined: 18 Dec 2013 Posts: 36
|
Posted: Fri Sep 12, 2014 9:20 pm Post subject: |
|
|
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 |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Fri Sep 12, 2014 10:43 pm Post subject: |
|
|
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/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Kilteroff n00b
Joined: 18 Dec 2013 Posts: 36
|
Posted: Fri Sep 12, 2014 10:53 pm Post subject: |
|
|
Aha, k. Thanks. |
|
Back to top |
|
|
|