LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-06-2019, 07:00 PM   #1
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Rep: Reputation: 58
how to compile kernel with new driver (not shipped with kernel)


I have a WIFI USB that came with a linux driver says linux on the box. unsure where to copy files to in the build tree or not. TP-LINK wireless Nano USB adapter - a cheapo ! works effortlessly in WIn10.

the 4.x linux kernel has drivers "like it" but i get no ifconfig interface (no wlan0 registered) using the ones i've tried so want to try the mfg driver - it says on the box i bought "linux supported" and for $13 i expect my money's worth from china and no lies.

if i cd(1) to the mfg directory and type "make" (which they said to do in a guide only showing ubunto baked install), it says "Module.symvers" missing, if i copy that it had many #defines unresolved failed build. Ok i think - directions are wrong - maybe this code is supposed to be in kernel top directory. No that overwrites Makefile and also doesn't work.

it has a Kconfig file, Makefile, many directories (core, hal, ...) with code, headers

I'm not sure where this "driver code" goes and if it all goes in the same directory - that's my main queston

nor how do i tell a 4.x kernel to include it as a module in the build? will just hiding it in some directory include it in the build if i add that Kconfig to file "menuconfig" or is that wishful thinking am i in for some pain and should give up - is it all obstruction and only they have the key for 'unwinding' the mess?

Last edited by X-LFS-2010; 07-06-2019 at 08:48 PM.
 
Old 07-06-2019, 09:56 PM   #2
Terry Coats
Member
 
Registered: Mar 2017
Posts: 122

Rep: Reputation: 54
Found this. Might work.
https://github.com/ilnanny/TL-WN725N-TP-Link-Debian
There are instructions there.
I have a later tp-link adapter and all I do is unzip
the driver code and change into the folder and do
Code:
make
sudo make install
and the driver goes where it's supposed to go
and works on next boot.
 
  


Reply



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
Change shipped Perl package compile options to use /usr, not /usr/local xj25vm Slackware 7 02-03-2017 06:42 AM
Do You Compile Your Own Kernel or Use The One Shipped With Your Distribution? jeremy Linux - General 132 11-17-2016 11:11 AM
Default Mouse Driver shipped with fedora ? linuxunix Linux - Newbie 1 04-22-2010 08:41 PM
change the shipped kernel on a Live CD scmbg Linux - Kernel 1 10-31-2008 12:28 AM
sound driver shipped in kernel, not listed in xconfig reetep Linux - General 4 01-29-2004 03:25 PM

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

All times are GMT -5. The time now is 03:47 AM.

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