[ubuntu-uk] Non-default driver

Rowan rowan.berkeley at googlemail.com
Mon Mar 2 16:36:06 GMT 2009

I reproduced the cases (and the spaces) as you gave them, Al.

There is no KVARS line at all in the Makefile. Here are the contents.

KVER          := $(shell uname -r)
KDIR          := /lib/modules/$(KVER)/build
KMISC         := /lib/modules/$(KVER)/kernel/drivers/net/
KEXT          := $(shell echo $(KVER) ¦ sed -ne 's/^2\.[567]\..*/k/p')o
KFLAG         := 2$(shell echo $(KVER) ¦ sed -ne 's/^2\.[4]\..*/4/p')x

ifeq ($(KFLAG),24x)
           $(MAKE) -f Makefile_linux24x

           $(MAKE) -C $(KDIR) SUBDIRS=$(PWD)/src modules
           strip --strip-debug r8168.$(KEXT)

           rm -rf *.o *.ko *~core* .dep* .*.d .*.cmd *.mod.c *.a *.s 
.*.flags .tmp_versions Module.symvers Modules.symvers *.order

           install -m 744 -c r8168.$(KEXT) $(KMISC)

ifneq ($(KFLAG),24x)
r8168-objs :=  r8168_n.o
obj -m += r8168.o

Alan Pope wrote:
> 2009/3/2 Rowan <rowan.berkeley at googlemail.com>:
>> I typed that in exactly as you gave it, Al, and got no output at all.
> It's case sensitive. Alternatively you can press ALT+F2, and then in
> the box type "gksu nautilus /root" and then navigate to
> /root/lc2000/r8168-8.008.00/src and open the Makefile to see the
> "KVARS" line.
> Cheers,
> Al.

More information about the ubuntu-uk mailing list