LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2003, 09:16 PM   #1
rickie
LQ Newbie
 
Registered: Jul 2002
Location: Singapore
Distribution: SUSE
Posts: 5

Rep: Reputation: 0
Post kernel compile problems in Sun workstation


I was attempting to compile an kernel for my Redhat 6.2 Sparc box. My
workstation is the Sun Ultra 10.

I downloaded linux-2.2.16.tar.gz from kernel.org and untarred it as
/usr/src/linux-2.2.16

I entered the linux-2.2.20 dir and followed the steps:

make config
make dep
make vmlinux
make modules
make modules_install


I copied the vmlinux and System.map in /usr/src/2.2.16 to /boot then renamed them
System.map-2.2.16, vmlinux-2.2.16

edited silo to look like

partition=1
timeout=50
root=/dev/md1
read-only
default=linux

image=/vmlinux-2.2.16
label=linux

and restarted..
It looked ok then suddenly
Fatal error : Image too large to fit in destination.
Image not found. Try again.

I checked /boot/vmlinux and found the size of vmlinux is about 29M. Then I booted into the old kernel and tried zipping
my vmlinux and renaming the zipped file to
vmlinuz-2.2.16 modifying silo.conf and restarting.
I then got:
Decompression error: Uncompressed image too long - wouldn't fit into
destination. Image not found. Try again.

Does anyone see what I am doing wrong, Or can anyone give advice on how to make this work.
 
Old 03-29-2003, 07:51 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Instead of make vmlinux you might try make bzImage. I think that creates a compressed kernel. You also might want to go through the configuration and remove everything you don't absolutely have to have. Both make menuconfig and make xconfig(if you are in X) are much nicer ways of configuring than make config.
 
Old 05-28-2003, 01:25 PM   #3
imroy
LQ Newbie
 
Registered: May 2003
Location: Australia
Distribution: Debian
Posts: 8

Rep: Reputation: 0
Sun machines don't need to compress kernel images. It's really only needed to get around the memory limitations when booting on a PC (i.e 1M in real mode). You can compress it with gzip and SILO will recognize that, but it is not needed. 29M is a really large kernel and I wonder if you just read it wrong. A google search turned up a mailing-list post. The limit seems to be around 2.6M and compression doesn't make a difference. If you read the size wrong (hint: use the '-h' option with ls to get nicer sizes) and it's really 2.9M, then it's just over the limit. Try recompiling using more modules to reduce the size of the kernel.
Oh, and don't rename your kernel to 'look like' 2.2.16. Several utilities will be looking for System.map-2.2.20, among other issues. It will also be confusing to you or others later on. I like to use symbolic links for the maintaining kernel images. Just make a link like "vmlinux-main" and edit silo.conf to use that and rerun silo. You should also make a link like "vmlinux-backup" and have that as a "backup" option in silo.conf. Then when you compile a new kernel, move vmlinux-main to vmlinux-backup, make a new vmlinux-main link for the new kernel, and run silo.
 
  


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
sun workstation, svga monitor, compatibility frankie_DJ Solaris / OpenSolaris 11 11-15-2005 12:49 AM
Sun Blade100 workstation SteveK1979 Solaris / OpenSolaris 2 07-20-2004 10:26 AM
Sun workstation issues Jestrik Solaris / OpenSolaris 6 03-08-2004 07:45 PM
Sun Workstation, no OS chrisknight Solaris / OpenSolaris 8 06-25-2003 09:51 AM
X applications from SUN box on my Linux workstation adme Linux - Networking 1 04-23-2003 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:21 PM.

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