LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 01-25-2012, 05:48 AM   #1
Anisha Kaul
Senior Member
 
Registered: Dec 2008
Location: Gurgaon, India
Distribution: Slackware 13.37, OpenSuse 11.3
Posts: 4,373
Blog Entries: 21

Rep: Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706
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 Anisha Kaul; 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 Squeeze
Posts: 5,405

Rep: Reputation: 212Reputation: 212Reputation: 212
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
Anisha Kaul
Senior Member
 
Registered: Dec 2008
Location: Gurgaon, India
Distribution: Slackware 13.37, OpenSuse 11.3
Posts: 4,373
Blog Entries: 21

Original Poster
Rep: Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706
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: Laptop: Slackware 13.37 // Desktop: Slackware64 13.37 // Netbook: Slackware 13.37
Posts: 5,478
Blog Entries: 48

Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
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: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,297

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 07:47 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
Open Source Consulting | Domain Registration