LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-06-2003, 12:18 AM   #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-06-2003, 12:35 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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, 01: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, 01:21 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

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

Cheers,
Tink
 
Old 08-06-2003, 01: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


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


All times are GMT -5. The time now is 04:19 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