LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-25-2012, 05:48 AM   #1
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Compiling a distribution unspecific kernel on two different distributions


I downloaded kernel 3.2.1 from the kernel.org.
Compiled it "successfully" on OpenSuse 11.3 64 bit.

When I tried to compile the same on Ubuntu 11.10, I got:
Code:
ERROR: "__modver_version_show" [drivers/staging/rts5139/rts5139.ko] undefined
I copied the .config from the default kernel present on that machine to the kernel 3.2.1's folder.
Did make menuconfig again, saved it without any changes.
But, the same error prevailed. Also, tried with .config.old but that didn't help either.

Anyway, my question here is that if the kernel is unbiased and untouched, then why would the compilation results differ on different distributions assuming:
1. Both the machines are x bits?
2. Both the machines are latest, so is the kernel.

Doesn't the kernel read the .config in its own folder and decides on that basis which module to load and which not to?
What has that to do with existing distribution during the compilation period?

Last edited by TheIndependentAquarius; 01-25-2012 at 06:41 AM.
 
Old 01-25-2012, 03:18 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Anyway, my question here is that if the kernel is unbiased and untouched, then why would the compilation results differ on different distributions assuming:
Both machines must also have the same kernel supporting software to compile the kernel. Some software, such as kernel development, are included in some distro installations, and not in others.

Here are Ubunut community instructions for compiling the kernel:https://help.ubuntu.com/community/Kernel/Compile.
 
Old 01-26-2012, 07:18 AM   #3
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by bigrigdriver View Post
Both machines must also have the same kernel supporting software to compile the kernel. Some software, such as kernel development, are included in some distro installations, and not in others.
Which are the "kernel supporting software"/"kernel development software" that you are talking of, may I know?

Example of these packages in a Distro. of your choice?
 
Old 01-27-2012, 07:51 AM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,733
Blog Entries: 58

Rep: Reputation: Disabled
Debian, and probably Ubuntu, have something called something like "module-init-tools", can't remember exactly, to aid in building modules. Those are the only ones I can think of.
Yeah, I was right (as usual ), here they are:
http://packages.debian.org/search?ke...ule-init-tools
https://launchpad.net/ubuntu/+source/module-init-tools
 
Old 01-27-2012, 08:02 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,049

Rep: Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459
Post # 2 : Shows kernel building prerequisites for older Ubuntu versions :
https://help.ubuntu.com/community/Kernel/Compile

For your actual Ubuntu version : sudo apt-get build-dep linux

The build scripts for 3.2.x are in the package linux_3.2.0-11.19.diff.gz
http://archive.ubuntu.com/ubuntu/poo...-11.19.diff.gz
Ref. http://packages.ubuntu.com/source/precise/linux 3.2.0-11.19

If you want to do a test build on version 3.2.0-11.19 :
1) Add a line to /etc/apt/sources.list , like : deb src <url> precise main
1a) sudo apt-get update ( To include the new source repo.)

2) cd <new-folder> ( Like /home/Anisha/test1/ ).
Reason for a "new folder" : A lot of packages etc. will be generated.
2a) ( No sudo ) : apt-get -b source linux=3.2.0-11.19

.

Last edited by knudfl; 01-27-2012 at 08:13 AM.
 
  


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 latest kernel on older distributions homerwsmith Linux - Newbie 1 09-29-2010 01:21 AM
Dual-booting graphics unspecific. Snoble77 Ubuntu 17 09-21-2009 02:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration