LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-10-2002, 04:14 AM   #1
mr_mandrill
Member
 
Registered: Aug 2002
Location: UK
Distribution: Slackware 8.1
Posts: 74

Rep: Reputation: 15
Compiling kernel for remote machine


OK, Having some problems with a remote server I'm trying to install.

The crux of the problem is the complete lack of storage only 500mb machine. I installed what i thought was the smallest install i could, I need to recompile the kernel tho. Installed the kernel sources and set about configuring. Mid-compile it ran out of space....

once I've got the kernel compiled it's a non-issue as the sources can be removed and free up enough space for the rest of the work I need to do.

My two questions are....
A) What is the bare minimum I need installed in order to recompile the kernel?

B) I'm ssh-ing into this box from another linux box.. Can i do the kernel compilation on this machine or somehow compile from it's sources?
 
Old 10-10-2002, 04:36 AM   #2
pesho_p
Member
 
Registered: Oct 2002
Location: 42° 42' N, 23° 19' E
Distribution: Slackware 8.1
Posts: 77

Rep: Reputation: 15
I've never done such thing before but maybe following link will be helpful for you (hopefully): http://web.archive.org/web/200008230...g_kernels.html
 
Old 10-10-2002, 08:07 AM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Why don't you compile the kernel on another machine and just copy it over? As long as they are both x86's it doesn't cause a problem as long as you compile the kernel with the correct options for the machine it will be running on.

John
 
Old 10-11-2002, 07:56 PM   #4
whaase
Member
 
Registered: Aug 2002
Location: Calgary, Alberta, Canada
Distribution: Ubuntu Server, Ubuntu Desktop
Posts: 128

Rep: Reputation: 15
Re: Compiling kernel for remote machine

Quote:
Originally posted by mr_mandrill
OK, Having some problems with a remote server I'm trying to install.

The crux of the problem is the complete lack of storage only 500mb machine. I installed what i thought was the smallest install i could, I need to recompile the kernel tho. Installed the kernel sources and set about configuring. Mid-compile it ran out of space....

once I've got the kernel compiled it's a non-issue as the sources can be removed and free up enough space for the rest of the work I need to do.

My two questions are....
A) What is the bare minimum I need installed in order to recompile the kernel?

B) I'm ssh-ing into this box from another linux box.. Can i do the kernel compilation on this machine or somehow compile from it's sources?
I'm not sure about minimums, but I have compiled remotly with ssh

Walter
 
Old 10-12-2002, 07:18 AM   #5
mr_mandrill
Member
 
Registered: Aug 2002
Location: UK
Distribution: Slackware 8.1
Posts: 74

Original Poster
Rep: Reputation: 15
I've Followed the guide suggested by pesho_p.

I now have a remote box with 2 kernels
/boot/vmlinuz-2.4.18
/boot/vmlinuz-2.4.18-1

I've copied the 2.4.18-1 directory to /lib/modules/2.4.18-1
and System.map now points to System.map-2.4.18-1

Lilo is configured to boot either kernel...
However the old kernel still works but the new one is buggered..

On selecting the new (vmlinuz-2.4.18-1) kernel the machine reboots!?!? I'm sure I've seen this happen before but i can't remember why?

What am I doing wrong?
 
  


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
Compiling kernel of different machine kushalkoolwal Debian 4 08-26-2005 05:56 AM
built kernel locally...need to install to a remote machine. how? ARCHIGAMER Linux - General 1 04-10-2005 02:52 PM
Compiling a new kernel for an old machine digitalwiz Slackware 5 08-04-2004 03:24 PM
Compiling kernel on another machine? davebarnes Linux - Newbie 3 09-20-2002 01:21 AM
Kernel Compiling for another machine... NMX Linux - Software 0 02-07-2002 10:55 AM

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

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