LinuxQuestions.org
Review your favorite Linux distribution.
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 09-14-2014, 03:31 AM   #16
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322

Hmmph, forgot that. Further, if you do that (which can be done) you get a possible clash in version magic when you try to boot the thing.

Best to install your new kernel, and reboot on it. It will behave the same as your old one.
Code:
cd /usr/src/linux-<version1>
cp arch/x86/boot/bzImage /boot/vmlinux-<version2>
cp System.map /boot/System.map-<version2>
cp .config /boot/config-<version2>
You need to fill in version1 and version2
version1 is the stuff after 'linux' in the /usr/src directory. Something like -3.14.5

There is a CONFIG_LOCALVERSION setting in the config. It installs and adds this local version on the end. My box has '-6' as a LOCALVERSION, so the modules are in /lib/modules/3.14.5-6. That is <version2>. It often is the same as version1 (if local version is blank)

Now do your thing on grub or lilo, boot the new kernel, and compile the realtek module. The new kernel will have the module - not the old one.
 
Old 09-15-2014, 01:05 AM   #17
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Ok, so if I do this, and get the module built into this kernel, can I then copy the module and take it to the physical machine this whole project has been for? Or do I need this new kernel on the physical machine?
 
Old 09-15-2014, 03:08 AM   #18
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Now he tells me he is building for another machine :-/.

You may well need the new kernel and modules on the machine with the realtek card. It would have been wise to build there.
 
Old 09-15-2014, 05:55 PM   #19
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

You can modify the MAKEFILE 'EXTRAVERSION = ' to a unique identifier that would be appended to the new compiled files/directories so that the System install remains the same.

You can then build on another system to move or copy the kernel-version image along with lib-kernel-version to the new system. You would then need to configure the bootloader for the 'new system' to reflect new kernel-version. Any configs for the new kernel-version would need to be copied over and properly linked.
Hope this helps.
Have fun & enjoy!
 
  


Reply

Tags
debian, kernel, module, zorin



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
How can you build a kernel module for a kernel that isn't running on your system? slacker_ General 13 09-08-2014 09:02 AM
i being trying to install immunity debugger on my linux system and found it very diff muiadedeji Linux - Newbie 2 07-20-2010 05:06 PM
diff between "system calls" and "kernel threads" shariefbe Linux - Software 5 12-13-2009 10:23 AM
[SOLVED] Diff between Kernel Compilation and Kernel Configuration ?? vikas027 Linux - Enterprise 8 09-20-2008 01:01 AM
dual boot system(solaris and linux) on diff HD ddaas Solaris / OpenSolaris 8 07-22-2005 04:20 AM

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

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