Netgear AC341U USB Modem

At the moment, I’m having trouble with a makefile that refers to a non existent directory.

Netgear provides a linux driver installation package that was made for Ubuntu according to their notes. Here is an extract:

System Requirements
The instructions about device driver installation specified in this document are Linux distribution independent. The device driver supports Linux kernel versions from 2.6.x to 3.5.0.23. This document uses screenshots from Ubuntu 12.04 to show the Network-Manager behavior…

I would like to try installing this USB Modem in 13.1 KDE. Here is the error from sudo make all:

linux-ppnb:/usr/src/GobiSerial # sudo make all
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.* modules.order make -C /lib/modules/3.11.10-34-desktop/build SUBDIRS=/usr/src/GobiSerial modules
make: *** /lib/modules/3.11.10-34-desktop/build: No such file or directory.  Stop. make: *** [all] Error 2

Because the makefile refers to a nonexistent “build” directory:


obj-m := GobiSerial.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
OUTPUTDIR=/lib/modules/`uname -r`/kernel/drivers/usb/serial/


all: clean
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules


install: all
	mkdir -p $(OUTPUTDIR)
	cp -f GobiSerial.ko $(OUTPUTDIR)
	depmod


clean:
	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.* modules.order



Please tell me, what adjustment do I make for OSS? Thanks in advance!

P.S. I have been examining the discussion at Netgear AC327U USB mobile broadband issues, so I will be referring to it.

I should rephrase my question because I don’t know if I’m asking the right question: How do I make the GobiSerial driver fit in OSS? I assume Ubuntu has a build directory and I assume it’s for drivers. Should I just remove that build reference and allow the file to land in /lib/modules/3.11.10-34-desktop? Thanks in advance!

First,
You might want to verify that your attempts to build are even necessary.
What is your current kernel version on your system, and have you updated to latest available? Nowadays, almost all I/O drivers and firmware are distributed, pre-compiled through the upstream kernel making what you are trying to do obsolete.

To update your system

zypper up

To display your current installed and running kernel

uname -a

Otherwise, the error is rather clear (to me), you don’t have permissions to create a directory in the specified location(You can check for yourself, browse to /lib/modules/3.11.10-34-desktop/build and see if that directory exists, it won’t be there).
You can either change the location to somewhere you have write permissions or run as root instead of sudo.

Last thing… I don’t know if it’s important to note that you’re asking about building a module for a 13.1 system while you posted suggesting that your scenario is somehow related to Tumbleweed

TSU