LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-24-2006, 12:10 PM   #1
fourcs
LQ Newbie
 
Registered: Oct 2004
Distribution: Slackware 10.2/11.0
Posts: 15

Rep: Reputation: 0
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?
 
Old 04-24-2006, 12:43 PM   #2
jrd
LQ Newbie
 
Registered: Dec 2001
Location: Philippines
Distribution: Slackware 10.2 / Zenwalk 2.4
Posts: 10

Rep: Reputation: 0
http://www.linuxquestions.org/questi...ad.php?t=69271
 
Old 04-25-2006, 04:09 AM   #3
fourcs
LQ Newbie
 
Registered: Oct 2004
Distribution: Slackware 10.2/11.0
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
Old 04-25-2006, 05:41 AM   #4
Ellops
Member
 
Registered: Nov 2005
Location: ath.gr
Distribution: Slackware 11.0 / 2.6.19.1 /Linux Mint
Posts: 124

Rep: Reputation: 15
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 05:44 AM.
 
Old 04-25-2006, 06:39 AM   #5
wchild
Member
 
Registered: Mar 2006
Distribution: Slackware
Posts: 63

Rep: Reputation: 15
Move some stuff to modules.
 
Old 04-25-2006, 07:56 AM   #6
kriton12
Member
 
Registered: Oct 2002
Posts: 81

Rep: Reputation: 16
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
 
Old 04-25-2006, 08:47 AM   #7
fourcs
LQ Newbie
 
Registered: Oct 2004
Distribution: Slackware 10.2/11.0
Posts: 15

Original Poster
Rep: Reputation: 0
kernel too big

Did this, done that!
 
Old 04-25-2006, 10:44 AM   #8
kriton12
Member
 
Registered: Oct 2002
Posts: 81

Rep: Reputation: 16
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.
 
Old 04-25-2006, 11:28 AM   #9
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
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
 
Old 04-25-2006, 06:19 PM   #10
fourcs
LQ Newbie
 
Registered: Oct 2004
Distribution: Slackware 10.2/11.0
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 04-25-2006, 06:27 PM   #11
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
You may also need
make modules and make modules_install
 
Old 04-26-2006, 01:12 AM   #12
fourcs
LQ Newbie
 
Registered: Oct 2004
Distribution: Slackware 10.2/11.0
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
Old 04-26-2006, 05:45 AM   #13
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Quote:
make bzImage
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 10:28 AM.
 
  


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
program compiled under kernel <=2.4 don't work under kernel 2.6 mihaimdl Linux - Software 3 11-08-2005 06:09 PM
new kernel compiled successfully, but the kernel-source package is the same old? luqman Red Hat 2 03-03-2005 08:41 AM
accidently compiled qt without mt support- big deal? qanopus Linux - Software 1 01-24-2004 10:42 AM
kernel panic on reboot of newly compiled kernel lyceum Linux - Newbie 4 09-09-2003 09:40 AM
I think I compiled a kernel but it says it's too big. soup Slackware 10 07-02-2003 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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