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. |
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 |
LOL.
Yeah. That is sweater than honey. Thanks Tinkster. So what is <my-kernel-source-dir>/vmlinuz anyway ? |
The uncompressed image, for all that
I know... but I'm not 100% sure here :) Cheers, Tink |
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. |
All times are GMT -5. The time now is 01:14 PM. |