LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-10-2021, 04:42 AM   #1
s628940
LQ Newbie
 
Registered: Dec 2021
Posts: 6

Rep: Reputation: Disabled
Please help installing Drivers


Hi, Id really appreciate a bit of hand-holding here! I am struggling to understand the process of installing custom drivers in to the system.

I am trying to get a Quectel modem working, and have been provided various drivers from the manufacturer.

The files provided are a folder with a Makefile and folder structure /drivers/usb/serial/option.c, qserial.c, usb-wwan.h, usb_wwan.c

The Makefile is as follows:

KERNELDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

obj-m+=./drivers/usb/serial/option.o
obj-m+=./drivers/usb/serial/usb_wwan.o
obj-m+=./drivers/usb/serial/qcserial.o

modules: clean
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

install: modules
cp $(PWD)/drivers/usb/serial/*.ko /lib/modules/$(shell uname -r)/kernel/drivers/usb/serial/
depmod

clean:
rm -rf *~ .tmp_versions modules.order Module.symvers
find . -type f -name *~ -o -name *.o -o -name *.ko -o -name *.cmd -o -name *.mod.c | xargs rm -rf


I am getting a lot of errors if I try make / make install command.

ake[1]: *** /lib/modules/5.15.6-200.fc35.x86_64/build: No such file or directory. Stop.

I think I half-understand what is happening, I have been trying to fix this with sim-link and have downloaded kernel-devel so I now have something in /usr/src/kernels/

But to be honest if anyone has the time I would really appreciated a step by step instructions to help me understand. I am still learning and something as 'simple' as installing drivers has got me a bit stuck.

I believe I am on the right track roughly but could really do with some help.

The guide I was trying to follow is section 3.6 of the following:
https://sixfab.com/wp-content/upload...Guide_V2.0.pdf

Thank you in advance for your time.
 
Old 12-10-2021, 05:59 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by s628940 View Post
Hi, Id really appreciate a bit of hand-holding here! I am struggling to understand the process of installing custom drivers in to the system.

I am trying to get a Quectel modem working, and have been provided various drivers from the manufacturer.

The files provided are a folder with a Makefile and folder structure /drivers/usb/serial/option.c, qserial.c, usb-wwan.h, usb_wwan.c

The Makefile is as follows:

KERNELDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

obj-m+=./drivers/usb/serial/option.o
obj-m+=./drivers/usb/serial/usb_wwan.o
obj-m+=./drivers/usb/serial/qcserial.o

modules: clean
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

install: modules
cp $(PWD)/drivers/usb/serial/*.ko /lib/modules/$(shell uname -r)/kernel/drivers/usb/serial/
depmod

clean:
rm -rf *~ .tmp_versions modules.order Module.symvers
find . -type f -name *~ -o -name *.o -o -name *.ko -o -name *.cmd -o -name *.mod.c | xargs rm -rf


I am getting a lot of errors if I try make / make install command.

ake[1]: *** /lib/modules/5.15.6-200.fc35.x86_64/build: No such file or directory. Stop.

I think I half-understand what is happening, I have been trying to fix this with sim-link and have downloaded kernel-devel so I now have something in /usr/src/kernels/

But to be honest if anyone has the time I would really appreciated a step by step instructions to help me understand. I am still learning and something as 'simple' as installing drivers has got me a bit stuck.

I believe I am on the right track roughly but could really do with some help.

The guide I was trying to follow is section 3.6 of the following:
https://sixfab.com/wp-content/upload...Guide_V2.0.pdf

Thank you in advance for your time.
What distro are you trying to do this on?
And which exact model do you have there? What do you want to do with it? Just connect to the internet? Have you considered that your system might just recognize it? Did you do any sort of initial troubleshooting when you first connected the device, or after a reboot?
If this is a desktop distro, network-managers modemmanager is as good as it gets.

FWIW, a quick search gives a few relevant-looking results. Most notably, Quectel have their own forums with Linux questions.

Last edited by ondoho; 12-10-2021 at 06:00 AM.
 
Old 12-10-2021, 06:05 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,669

Rep: Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104
would be much better to use code tags. Otherwise hard to read those makefiles.
here you can find some info: https://www.kernel.org/doc/html/late...d/modules.html
 
Old 12-10-2021, 06:40 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,706

Rep: Reputation: Disabled
Quote:
Originally Posted by s628940 View Post
I think I half-understand what is happening, I have been trying to fix this with sim-link and have downloaded kernel-devel so I now have something in /usr/src/kernels/
So, could you build the driver after that?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
I have a problem with drivers ! Please,please help me ! ioskata Linux - Laptop and Netbook 35 01-06-2009 08:12 AM
Need HELP please-Ubuntu provided drivers vs. ATI official drivers smiley_lauf Ubuntu 2 02-12-2006 11:30 AM
Nedd HELP please-Ubuntu provided drivers vs. ATI official drivers smiley_lauf Ubuntu 1 02-11-2006 09:01 AM
please please please help :'( ach1lles SUSE / openSUSE 2 02-28-2005 05:03 AM
Samba Help Please!!!! Please !!!! Please!!! Snake007uk Linux - Networking 18 07-10-2002 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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