Can I copy/move hardware drivers to a different machine?

Kernels & Hardware, configuring network, installing services

Can I copy/move hardware drivers to a different machine?

Postby loosemonkey » 2018-11-09 17:29

Hello,

I have got an rtl8192cu wifi driver installed through git repository, and I had to use methods such as dkms and build essentials to build it using internet connection. My basic question is it possible to simply copy/move directories or files of this installed driver to a machine without internet connection so that next time I want to use this driver i dont have to rely on installation instructions using apt-get internet methods?
loosemonkey
 
Posts: 6
Joined: 2018-09-30 09:24

Re: Can I copy/move hardware drivers to a different machine

Postby Segfault » 2018-11-09 17:33

Generally out-of-kernel-tree drivers are built for kernel currently in use. There are ways to force loading such drivers to a different kernel version, but this is not recommended.
Segfault
 
Posts: 812
Joined: 2005-09-24 12:24

Re: Can I copy/move hardware drivers to a different machine?

Postby stevepusser » 2018-11-09 17:59

If it has a -source package, you can use module-assistant to build debs of the driver for a specific kernel version.

A workaround would be to install the compilers and kernel headers on a fresh install, or keep a record of what debs were downloaded, then copy and save those debs from /var/cache/apt/archives so you can move those to the other machine.

Another option is just to get an inexpensive USB wifi adapter that just works out of the box (along with its non-free firmware if necessary).
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Flightgear 2018.2.2, 4.19.5 kernel, wine-staging 4.0~rc1, Pale Moon 28.2.2, Mesa 18.2.6, Midori 7.0
User avatar
stevepusser
 
Posts: 10276
Joined: 2009-10-06 05:53

Re: Can I copy/move hardware drivers to a different machine?

Postby milomak » 2018-11-09 22:11

loosemonkey wrote:Hello,

I have got an rtl8192cu wifi driver installed through git repository, and I had to use methods such as dkms and build essentials to build it using internet connection. My basic question is it possible to simply copy/move directories or files of this installed driver to a machine without internet connection so that next time I want to use this driver i dont have to rely on installation instructions using apt-get internet methods?


i have done this before iirc related to this driver

it requires a usb

i think i had to download all the necessary deb files along with the github folder to the usb. then copied it to the computer i wanted to build it on.

it eventually worked
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1855
Joined: 2009-06-09 22:20


Return to System configuration

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable