Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-24-2006, 01:10 PM
|
#1
|
LQ Newbie
Registered: Oct 2004
Distribution: Slackware 10.2/11.0
Posts: 15
Rep:
|
compiled kernel too big
My patched slack 2.6.13 kernel patched with patches 2.6.14, 2.6.15, 2.6.16 is 5,055,940 and I'm getting the message that it's too big. I've tried to reduce it with little success. I'm not willing to make it the only kernel available for boot. I'm using lilo. Anyone have any suggestions?
|
|
|
04-24-2006, 01:43 PM
|
#2
|
LQ Newbie
Registered: Dec 2001
Location: Philippines
Distribution: Slackware 10.2 / Zenwalk 2.4
Posts: 10
Rep:
|
|
|
|
04-25-2006, 05:09 AM
|
#3
|
LQ Newbie
Registered: Oct 2004
Distribution: Slackware 10.2/11.0
Posts: 15
Original Poster
Rep:
|
big kernel
The precise message lilo gave me was:"Fatal: Kernel /boot/vmlinux-custom-2.6.16 is too big". I'm just concerned that lilo won't work. I have no intention of booting from a floppy.
|
|
|
04-25-2006, 06:41 AM
|
#4
|
Member
Registered: Nov 2005
Location: ath.gr
Distribution: Slackware 11.0 / 2.6.19.1 /Linux Mint
Posts: 124
Rep:
|
Are u sure u ran 'lilo' after compilation?
Usually, u (I) get this message when forget it...
U can boot from a cd, mount ur partition and run 'lilo'
Last edited by Ellops; 04-25-2006 at 06:44 AM.
|
|
|
04-25-2006, 07:39 AM
|
#5
|
Member
Registered: Mar 2006
Distribution: Slackware
Posts: 63
Rep:
|
Move some stuff to modules.
|
|
|
04-25-2006, 08:56 AM
|
#6
|
Member
Registered: Oct 2002
Posts: 81
Rep:
|
Did you remember to issue the:
make bzImage
to compress it? Then copy the compressed image over to your /boot directory?
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinux-custom-2.6.16
|
|
|
04-25-2006, 09:47 AM
|
#7
|
LQ Newbie
Registered: Oct 2004
Distribution: Slackware 10.2/11.0
Posts: 15
Original Poster
Rep:
|
kernel too big
Did this, done that!
|
|
|
04-25-2006, 11:44 AM
|
#8
|
Member
Registered: Oct 2002
Posts: 81
Rep:
|
Hmm.. I'm still thinking you're copying over the wrong image, can you post the commands exactly as you type them from the command window?
Other than that, I don't really know, sorry.
|
|
|
04-25-2006, 12:28 PM
|
#9
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Rep:
|
Quote:
Originally Posted by fourcs
My patched slack 2.6.13 kernel patched with patches 2.6.14, 2.6.15, 2.6.16 is 5,055,940....
|
if I'm getting it right, that number is about 4.82 Mb
hell that's relatively a lot of a kernel image
Code:
$ uname -a
Linux it009sam 2.6.16.9 #3 SMP PREEMPT Fri Apr 21 11:07:46 CDT 2006 i686 pentium4 i386 GNU/Linux
$ ls -lh /boot/
total 11M
lrwxrwxrwx 1 root root 37 2006-03-13 11:41 README.initrd -> /usr/doc/mkinitrd-1.0.1/README.initrd
-rw-r--r-- 1 root root 648K 2006-04-21 11:08 System.map
-rw-r--r-- 1 root root 594K 2005-06-05 22:37 System.map-ide-2.4.31
-rw-r--r-- 1 root root 650K 2006-04-19 10:44 System.map_2.6.16.9
-rw-r--r-- 1 root root 646K 2006-04-21 10:51 System.old
-rw-r--r-- 1 root root 512 2006-03-13 11:48 boot.0800
-rw-r--r-- 1 root root 168 2006-03-13 11:48 boot_message.txt
-rw-r--r-- 1 root root 38K 2006-04-21 11:09 config
-rw-r--r-- 1 root root 41K 2005-06-05 22:37 config-ide-2.4.31
-rw-r--r-- 1 root root 38K 2006-04-21 11:00 config_2.6.16.9
-rw-r--r-- 1 root root 5.0K 2004-05-21 02:19 diag1.img
-rw------- 1 root root 14K 2006-04-21 11:08 map
-rw-r--r-- 1 root root 1.5M 2006-04-21 11:08 vmlinuz
-rw-r--r-- 1 root root 1.5M 2006-03-14 10:16 vmlinuz-2.6.15.6
-rw-r--r-- 1 root root 1.2M 2005-06-05 22:37 vmlinuz-ide-2.4.31
-rw-r--r-- 1 root root 1.5M 2006-04-21 10:51 vmlinuz.old
-r-------- 1 root root 1.3M 2006-03-13 11:47 vmlinuz.orig
-rw-r--r-- 1 root root 1.5M 2006-04-19 10:44 vmlinuz_2.6.16.9
you could try to compile a kernel from scratch, just copy over your last .config file and fire up
Code:
make && make modules_install && make install
make install copies the image and the needed files, calls lilo and does the trick just ready to reboot
also it's likely, as kriton12 said, that file is not the proper image file, just another quite bigger one
|
|
|
04-25-2006, 07:19 PM
|
#10
|
LQ Newbie
Registered: Oct 2004
Distribution: Slackware 10.2/11.0
Posts: 15
Original Poster
Rep:
|
starting out with the patched 2.6.13 kernel src I do:
make menuconfig
make bzImage
if this doesn't produce the image I want I do:
make clean
make mrproper
make menuconfig
make bzImage
|
|
|
04-25-2006, 07:27 PM
|
#11
|
Member
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383
Rep:
|
You may also need
make modules and make modules_install
|
|
|
04-26-2006, 02:12 AM
|
#12
|
LQ Newbie
Registered: Oct 2004
Distribution: Slackware 10.2/11.0
Posts: 15
Original Poster
Rep:
|
kernel too big
Thanks for the quick replies. I've found an excellent HOW-TO, http://www.digitalhermit.com/linux/K...FIGURATION-2-6
I was not placing the compressed image in the boot directory. I had to go to the arch/i386/boot to get it. And yes, I didn't make the modules. Thanks again.
|
|
|
04-26-2006, 06:45 AM
|
#13
|
Member
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536
Rep:
|
You don't need to do this with 2.6, a simple 'make' will compile both the kernel and modules. You could also use checkinstall to create a package. It can create Slackware tgz, rpm and deb packages, which pretty much covers everything except Gentoo but that has it's own installation procedure anyway.
edit:
duh, edited wrong page.
Last edited by ioerror; 11-07-2006 at 11:28 AM.
|
|
|
All times are GMT -5. The time now is 10:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|