LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-28-2005, 07:34 PM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Compiling an older kernel on a newer system


I want to replace the generic kernel in a media player mini distro called movix2. The problem is that movix2 comes with a fairly old kernel, and no c compiler, so I have to compile the kernel on my newer SuSE system.

Is this possible? If so, is there something special that I should take into account when compiling an old kernel on a newer system?
 
Old 05-28-2005, 08:08 PM   #2
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
If the architecture is different, you'll have to cross-compile. Google for a howto.

--Shade
 
Old 05-28-2005, 08:44 PM   #3
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
The architecture will not be different, as I am going to compile it on the same i386 machine.

The difference is that my SuSE runs a different (newer) kernel and gcc version than movix2, for which the kernel will be compiled.

I wonder if this counts.
 
Old 05-28-2005, 08:47 PM   #4
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Kernel won't matter, neither *should* the gcc version. Linus recommends a certain version of gcc but I don't know which that is and I've never heeded that warning myself...

How were you planning to transfer the compiled kernel to the older machine?

--Shade
 
Old 05-28-2005, 09:01 PM   #5
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
There is only one machine with two Linux systems.

I will simply replace the vmlinuz kernel file of the movix2 system.
 
Old 05-28-2005, 09:14 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,142

Rep: Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987
I wouldn't think there'd be an issue unless there were alignment/word size issues - *very* unlikely you would think.
What's the concern anyway - you *WILL* be backing up the old system anyway.
Won't you ???.

As an aside, I'd take the new System.map over as well, just to save getting mismatch messages.
 
Old 05-28-2005, 09:19 PM   #7
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Don't forget modules if you compile any.

--Shade
 
Old 05-30-2005, 01:49 AM   #8
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
My aim is to get an extremely fast booting system, that is why I am going to disable many unnecessary function in the kernel.

However, I am going to download and compile exactly the same version of the kernel source.
I wonder if I should still compile the modules, even if the kernel version will be the same?
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
older and newer version of a package at the same time Ayman.mashal Linux - Newbie 1 07-29-2005 10:05 PM
Probleam after compiling older kernel Gonto Suse/Novell 3 05-30-2005 02:35 PM
Are Older Linux Distros more stable than newer ones? wardialer Linux - Newbie 2 04-23-2005 12:40 PM
Upgrading from older version to newer Perquisitor Linux - Newbie 1 01-20-2005 02:58 PM
Newer packages on an older system? Pathian Slackware 1 07-07-2004 02:32 PM


All times are GMT -5. The time now is 09:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration