LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-16-2017, 10:55 PM   #1
fbeye
LQ Newbie
 
Registered: Aug 2017
Posts: 17

Rep: Reputation: Disabled
Compiling w/ "local version"


Good evening

I have absolutely no need to recompile my Kernel but felt like doing so for fun... Being that I am using the same Kernel version I was looking into a failsafe and came across using the "Local version" in order to have 2 versions of the same Kernel, but independent Modules? (I think that is what I gathered).

So when I make menuconfig and go to General, I select "local version" and name it "Mail" as this is my Mail Box. After I modify what I want I then do "make bzImage modules" then "make modules_install" and I noticed it does not create a new "bzImage" but it does indeed create a new set of modules under /lib/modules. My question is this; How do I add the new Kernel (i thought i was making) into the Lilo so that I have 2 options: Stock Kernel and my New Kernel?

I really did try to do my research here but I am just stuck.
 
Old 09-16-2017, 11:02 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,153

Rep: Reputation: Disabled
After you run make (plain make will build both the image and modules) you need to install the new bzImage. I copy it over by hand. Then you need to reconfigure and run lilo.
 
Old 09-16-2017, 11:08 PM   #3
fbeye
LQ Newbie
 
Registered: Aug 2017
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
After you run make (plain make will build both the image and modules) you need to install the new bzImage. I copy it over by hand. Then you need to reconfigure and run lilo.
How bizarre. I must have overlooked something because after I did my process (I will do as you say next time), all I changed as a test was I removed a Network adapter I know I do not need and I got a kernel panic and had to reboot my original Kernel... I assume by hand means "cp /arch/x86_64/boot/bzImage /boot/vmlinuz-test and add as such in Lilo?
 
Old 09-16-2017, 11:16 PM   #4
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,153

Rep: Reputation: Disabled
Yes, it makes life easy, you can have one or more backup kernels and a current kernel, as long as you do not change their names there is no need to reconfigure lilo. When I upgrade my kernel I do usually mv bzImage bzImage.pre in /boot/, copy over the new image, run lilo. Done.
 
Old 09-16-2017, 11:20 PM   #5
fbeye
LQ Newbie
 
Registered: Aug 2017
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Yes, it makes life easy, you can have one or more backup kernels and a current kernel, as long as you do not change their names there is no need to reconfigure lilo. When I upgrade my kernel I do usually mv bzImage bzImage.pre in /boot/, copy over the new image, run lilo. Done.
Interesting. I will try that next.

I am curious, what is the reasoning behind having a bzImage and a vmlinuz? Is the vmlinuz a decompressed bzImage more or less?

Also, thank you for the insight and guidance. I appreciate it.
 
Old 09-16-2017, 11:28 PM   #6
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,153

Rep: Reputation: Disabled
There is no difference, just the name. What compression method is used is set in kernel configuration.
 
Old 09-16-2017, 11:42 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,857
Blog Entries: 18

Rep: Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337
Linux Voice, before it joined Linux Magazine, did a couple of articles on kernel stuff. You may find them helpful:

https://www.linuxvoice.com/linux-kernel-parameters/

https://www.linuxvoice.com/be-a-kernel-hacker/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kmail creates "Local Folders" plus "Lokale Ordner". Need only one. JZL240I-U Linux - Software 6 01-25-2017 03:04 AM
LXer: "Minimal Linux Live" version "25-Aug-2014" has been released LXer Syndicated Linux News 0 08-24-2014 09:01 AM
[SOLVED] IPv6 "link-local" fe80:: vs "unique local address (ULA)" fc00:: + fd00:: psycroptic Linux - Networking 4 08-07-2014 01:51 AM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 02:30 PM
Compiling a kernel module results in "insmod" version mvega Linux - General 2 07-30-2003 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration