OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Mar 18, 2024 8:19 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: How is a Linux zimage made?
PostPosted: Wed Jun 23, 2021 4:25 am 
Offline
Member
Member

Joined: Tue Jul 14, 2020 4:01 am
Posts: 70
google is just absolutely useless on this, nothing is explained


Top
 Profile  
 
 Post subject: Re: How is a Linux zimage made?
PostPosted: Wed Jun 23, 2021 4:30 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
You need to improve your Googling skills. Third hit for "linux image": https://ineclabs.com/image-zimage-uimag ... ux-kernel/


Top
 Profile  
 
 Post subject: Re: How is a Linux zimage made?
PostPosted: Wed Jun 23, 2021 4:33 am 
Offline
Member
Member

Joined: Tue Jul 14, 2020 4:01 am
Posts: 70
I wanted to know the exact process of how is a zimage generated, not a brief explanation of different Linux kernel images.


Top
 Profile  
 
 Post subject: Re: How is a Linux zimage made?
PostPosted: Wed Jun 23, 2021 4:51 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
As it says in the link, you use the command

make zImage

when compiling the kernel. If you want to know exactly what commands that evokes just look at the Makefile (or use the command line

make -n zImage

). Basically, you just compress vmlinux with gzip.


Top
 Profile  
 
 Post subject: Re: How is a Linux zimage made?
PostPosted: Wed Jun 23, 2021 4:55 am 
Offline
Member
Member

Joined: Tue Jul 14, 2020 4:01 am
Posts: 70
thanks i guess


Top
 Profile  
 
 Post subject: Re: How is a Linux zimage made?
PostPosted: Wed Jun 23, 2021 4:57 am 
Offline
Member
Member

Joined: Fri May 11, 2018 6:51 am
Posts: 274
clementttttttttt wrote:
I wanted to know the exact process of how is a zimage generated, not a brief explanation of different Linux kernel images.
Maybe this is what you have been looking for: https://www.star.bnl.gov/~liuzx/lki/lki-1.html
It might be out of date, but the general ideas are more or less the same.

Also, on the vmlinux wikipedia page: https://en.wikipedia.org/wiki/Vmlinux there is some useful information.

_________________
Tilck, a Tiny Linux-Compatible Kernel: https://github.com/vvaltchev/tilck


Top
 Profile  
 
 Post subject: Re: How is a Linux zimage made?
PostPosted: Wed Jun 23, 2021 12:16 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 27, 2006 9:42 am
Posts: 1925
Location: Athens, GA, USA
It sounds to me that the answer you seek is, read through the Makefile(s) in detail. This, however, is unlikely to be a useful task, as the Linux Makefiles are gargantuan and not really written for human readers - they are reasonably well-documented, to be sure, but only to the extent that it is easy to find a given section so that it can be easily maintained.

_________________
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 6 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group