This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
cat /proc/version
Linux version 4.19.0-5-amd64 ([email protected]) (gcc version 6.3.0 20170516 (Debian 6.3.0-18 deb9u1)) #1 SMP Debian 4.19.37-2~mx17 1 (2019-05-15)
Hello everyone,
I am using the resources on this page to try and compile and load the driver for my wn725n adapter.
I am unfamiliar with the make command, gcc, and really the intricacies of what is happening here. My basic understanding is I'm taking all the components of the driver and compiling them into a .ko file and then putting that driver in the proper spot in the filesystem to be utilized.
So, I created a folder mkdir ~/driverstore
and I dumped the directory with all the components in there. I cd driverstore
and then proceed to follow the instructions in the guide (from linked site) as follows:
make clean
make
I receive an error and the .ko file is not compiled, so I get stuck right away.
My guess is that because this guide used gcc 5.4 to compile, there is some kind of issue since I am running on 6.3
How can I run an older version (if that is even what is to be done)? Any pointers? A few google searches pulled up some old information and dead-end forum posts where people suggested to go back to an older kernel and things like that. Maybe I need to get better with Googling Linux related things.
Oh and, not sure if this matters, but my OS is running from a Live-usb (persistant) plugged into my Desktop.
Any guidance is appreciated! Below I will provide the output from make clean
and make
, respectively:
#make -C /lib/modules/4.19.0-5-amd64/build M=/home/demo/driverstore clean
cd hal ; rm -fr */*/*/*.mod.c */*/*/*.mod */*/*/*.o */*/*/.*.cmd */*/*/*.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.19.0-5-amd64/build M=/home/demo/driverstore modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-5-amd64'
CC [M] /home/demo/driverstore/core/rtw_cmd.o
/usr/src/linux-headers-4.19.0-5-common/scripts/Makefile.build:308: recipe for target '/home/demo/driverstore/core/rtw_cmd.o' failed
/usr/src/linux-headers-4.19.0-5-common/Makefile:1539: recipe for target '_module_/home/demo/driverstore' failed
Makefile:146: recipe for target 'sub-make' failed
Makefile:8: recipe for target 'all' failed
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-5-amd64'
Makefile:1911: recipe for target 'modules' failed
e1: formatting
Subreddit
Post Details
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/linuxquesti...