LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-25-2008, 10:01 PM   #1
victor_0x53h
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Rep: Reputation: 0
Kernel compile on one box for another


I'm trying to compile a new kernel on my shiny duel-processor-wielding desktop (Ubuntu 8.10) for transfer to an embedded router I'm setting up (Soekris 5501 with Slackware 12.1) which only has 433mhz 256mb RAM, and a CF card. Figured I'd save myself some time..

My problem is that when I'm configuring the kernel, I don't seem to be able to select the right processor architecture, or family! Curious, I tried seeing my available options on my current firewall (Slackware 12.0). On my current firewall, I have more options available when selecting the processor.

Whats going on here? Am I missing some header files? Is compiling the kernel on one machine, and transferring to another a valid way of doing things?

See the screen shots if necessary:
http://osquat.com/support/
 
Old 11-26-2008, 03:50 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Did you download the kernel source package from the Ubuntu repository, or the clean source? You want to use the vanilla source tarball from kernel.org, and nothing else.

As for compiling from one machine to another, there is no problem in doing it that way, just remember to copy everything across. If you can avoid using modules (which should be easy on a static piece of hardware like a router) you can make things much easier on yourself.

That said, your router is faster than my server which I use to build kernels on, so I am not sure it is really necessary to go through the trouble...but to each his own.
 
Old 11-26-2008, 08:59 PM   #3
victor_0x53h
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Original Poster
Rep: Reputation: 0
This is a vanilla kernel. I copied the same source from my current firewall to my desktop for compiling, so the screen shots show the same code in menuconfig. I then downloaded a fresh kernel and tried (thinking I might have done something terribly wrong) with the same results as the screen caps I attached.

Ah! Could it be my desktop is running x86-64, and I'm trying to compile a 32-bit kernel? At least now I've got a place to start googling. I found this diff which I believe was intended for one of the kernel read me files. RTFM. I now have all identical choices between the two as far as processor architecture / family.

# make menuconfig ARCH=i386

Thank you!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Compile kernel] How to compile/install the modules ? frenchn00b Linux - General 1 09-06-2009 03:18 PM
compile NIC driver on other kernel linux box? hocheetiong Linux - Newbie 2 10-26-2008 12:53 PM
kernel compile in Virtual Box ic_torres Linux - Kernel 2 06-04-2008 02:13 AM
How to restore out-of-box kernel settings if my kernel compile fails? brgr88 Slackware 8 04-18-2006 06:51 AM
How do I compile a code snippet. to test my box?? _Mhz Linux - Newbie 4 07-10-2002 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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