LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-05-2003, 11:18 PM   #1
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Rep: Reputation: 31
vmlinuz size doubled


Dear all.

I just compiled linux kernel 2.4.20 on slackeare 9.0.
Everything was fine except the vmlinuz size was over 2 MB.
About 1 month ago I also compiled the same source,
but the result was only 1 MB.
I realized that when I run configure the lilo.
It failed with error message "image too large".
Here is the ls l from the boot.
- vmlinuz-stock => original
- vmlinuz-old => first compilation
- vmlinuz => new compilation, the problematic one
--------------------------
lrwxrwxrwx 1 root root 21 Jul 13 12:17 System.map -> System.map-ide-2.4.20
-rw-r--r-- 1 root root 563791 Mar 18 14:03 System.map-ide-2.4.20
-rw-r--r-- 1 root root 512 Jul 13 14:39 boot.0300
-rw-r--r-- 1 root root 226 Jul 13 14:39 boot_message.txt
lrwxrwxrwx 1 root root 17 Jul 13 12:17 config -> config-ide-2.4.20
-rw-r--r-- 1 root root 36222 Mar 18 14:03 config-ide-2.4.20
-rw------- 1 root root 41472 Aug 2 09:46 map
-rwxrwx--- 1 root root 2012887 Aug 6 09:18 vmlinux
-r-------- 1 root root 1170308 Jul 13 14:37 vmlinuz-stock
-rw-r--r-- 1 root root 1170308 Mar 18 14:03 vmlinuz-ide-2.4.20
-rw-r--r-- 1 root root 1174439 Jul 13 11:33 vmlinuz-old

--------------------------

This is strange.
The newer vmlinuz should be smaller since I removed many things such as SCSI support, Wireless, etc.

Curious,
I reinstalled a fresh kernel source,
then copied the original /boot/config,
and did "make dep clean bzImage" again.
The result was more than 3 MB !!!

Any clue ?

Thanks.
 
Old 08-05-2003, 11:35 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
The file you're after is
<your-kernel-source-dir>/arch/i386/boot/bzImage ...

Copy that to /boot, rename it to vmlinuz, and all is sweet ;}

Cheers,
Tink
 
Old 08-06-2003, 12:16 AM   #3
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Original Poster
Rep: Reputation: 31
LOL.

Yeah.
That is sweater than honey. Thanks Tinkster.

So what is <my-kernel-source-dir>/vmlinuz anyway ?
 
Old 08-06-2003, 12:21 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
The uncompressed image, for all that
I know... but I'm not 100% sure here :)

Cheers,
Tink
 
Old 08-06-2003, 12:27 AM   #5
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Original Poster
Rep: Reputation: 31
I guess you were right.
I just compressed it with bz2. It shrank to 1 MB.

But of course I use the <my-kernel-source-dir>/arch/i386/boot/bzImage


I'm going to reboot now .... see ya.
 
  


Reply



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
Linux commands - giving doubled output shinobi59 Red Hat 1 11-07-2005 06:43 PM
vmlinuz-2.4.21-4.EL. What Does the EL Mean? solarblast Linux - Software 2 03-21-2005 08:01 AM
vmlinuz DigiCrime Linux - Software 4 01-07-2005 05:44 PM
what is vmlinuz and what does it do? feetyouwell Linux - Software 3 01-20-2004 05:38 PM
vmlinuz atari303 Linux - General 6 07-13-2001 07:17 PM

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

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