LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-22-2004, 03:59 AM   #1
gye
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Unhappy how to uncompress vmlinuz?


i want to uncompress vmlinuz to vmlinux, while "gunzip" doesn't work

how can i do it ? vmlinuz -> vmlinux
 
Old 09-22-2004, 05:42 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
I believe that you want the Unix tool
Code:
uncompress
(works quite like gunzip)
 
Old 09-23-2004, 09:18 PM   #3
gye
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by rjlee
I believe that you want the Unix tool
Code:
uncompress
(works quite like gunzip)

i install the tool (uncompress)

and uncompress vmlinuz

but it also can't work
with the error message: "vmlinuz-2.4.20-8: not in compressed format"
 
Old 09-24-2004, 03:11 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Looking at the file, it seems to consist of at least two sections catenated together.

The first section is a header that loads the compressed image into memory. The second section is compressed with either compress or bzip2, depending on if you did a “make zImage” or a “make bzimage”.

This isn't going to be a simple conversion; the “header” is different (contains a different uncompression algorithm) for compressed and uncompressed kernels.

The easier way is probably to rebuild the kernel. To do that, boot from it, cd to the kernel sources and run
Code:
make cloneconfig vmlinux
Or is there some reason why you don't want to recompile?
 
Old 09-25-2004, 02:08 PM   #5
mark001
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Rep: Reputation: 15
how about trying this:

gzip -d (if gunzip happens not to be installed).

hope it will help.
 
Old 09-25-2004, 04:38 PM   #6
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I guess the question should be 'why do you want to uncompress vmlinuz?'

the kernel is compressed in such a way to be self uncompressing, right, so it's in two parts like a self extracting exe...

I'm not sure they use bzip2 on the kernel either.... I think make bzImage is just short for big zImage - which allows the kernel to load into higher memory without any size limitation like you used to get trying to fit the kernel into the low 640 k area ....
 
Old 09-26-2004, 09:15 PM   #7
gye
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
thank you all

i want to find out the symbol in the kernel which appears in a uncompressed mode(like vmlinux)

but some distribution doesn't have file vmlinux

so i want to uncompress vmlinuz

for this purpose, i don't want to recompile the kernel

i also try "gzip -d", it doesn't work either.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I uncompress a file CLOSETGEEK Linux - Newbie 5 04-13-2005 05:51 PM
does anyone know how to uncompress a .bz2? timberwolf Linux - Software 5 12-06-2003 03:41 AM
Uncompress command BajaNick Linux - Software 7 10-05-2003 02:20 PM
What to do when no uncompress... sx10 Linux - General 3 08-21-2002 11:42 AM
How do you uncompress something? wings9191 Linux - Newbie 8 02-12-2002 11:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:26 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
Open Source Consulting | Domain Registration