LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2008, 09:31 PM   #1
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Rep: Reputation: 16
Old vmlinux -> vmlinuz converting HOWTO question


Some solution posted here:

http://www.linuxquestions.org/questi...mlinux-530085/

does not hold for me.

In my case:
I make vmlinux O=dist, then I get the vmlinux image.
I know make install will generate the vmlinuz image, but I don't want to make all. So I just /sbin/installkernel version vmlinux System.map dist. But I only got vmlinux-version installed to dist.

I should have input vmlinuz to /sbin/installkernel, but I just don't know how to create a vmlinuz image as quickly as possible (do not make all). And make bzImage O=dist, the output is "make: Nothing to be done for `bzImage'."

Can anybody explain the vmlinuz's updated format? In addition, uncompress the vmlinuz, the uncompressed file size differs from the vmlinux size. WHY?

Thanks,

Shawn

Last edited by duyuyang; 10-29-2008 at 09:57 PM. Reason: additional info
 
Old 10-30-2008, 02:06 AM   #2
Hendronicus
Member
 
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 175

Rep: Reputation: 38
Talking

If make is reporting that there is a bzImage, then it seems to me that all you have to do is copy that file to the name "vmlinuz" and put it where your boot-loader can find it. Update the appropriate config files and re-run the boot-loader. Since you didn't say which loader you're are using, I can't help you with that.

What distro and kernel version are you using, by the way?

Also, vmlinuz doesn't really have to be named anything in particular as long as your config files agree with whatever it's named. It does have to be a bzImage format file though, because of certain limitations of the way PCs start in "real mode".

Ok, I've found out a few interesting things that I was wrong about. I have removed them. You can find the correct information by going here:

http://en.wikipedia.org/wiki/Vmlinux

I sincerely hope I didn't confuse anybody too much. Apparently, my mistake was a common one.

Last edited by Hendronicus; 11-01-2008 at 03:01 AM. Reason: error correction
 
Old 10-31-2008, 05:39 AM   #3
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Original Poster
Rep: Reputation: 16
Thank you.

The kernel source version is 2.6.18.8, and distro is debian.
I figured out that, make vmlinux can only generate vmlinux, then vmlinux is stripped to vmlinux-stripped, and at last vmlinux-stripped is compressed with gzip(?) to vmlinuz.

I have not yet found out how stripping is done? Can anyone help?

Shawn

Last edited by duyuyang; 10-31-2008 at 05:42 AM.
 
Old 11-01-2008, 03:03 AM   #4
Hendronicus
Member
 
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 175

Rep: Reputation: 38
I've corrected my previous message. Maybe the link in it will help. Once again, I apologize for my mistake.
 
Old 11-02-2008, 07:51 PM   #5
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Original Poster
Rep: Reputation: 16
Thanks a lot.

Shawn
 
  


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
Convert vmlinuz to vmlinux George2 Programming 12 10-30-2008 06:22 AM
Is my vmlinux not matching my vmlinuz? Famulus Red Hat 0 10-16-2008 04:17 AM
Vmlinux.o instead of vmlinuz PlatinumX Linux - Newbie 4 07-31-2008 09:06 AM
howto converting relatives to Linux? euth665667 Linux - General 11 09-04-2004 03:59 AM
What are these files ? vmlinuz and vmlinux raees Linux - General 4 03-20-2004 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:54 PM.

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