Official RTL8180L wireless driver compilation
I have a PCI WLAN card which uses the Realtek RTL8180L chipset. Realtek has an official Linux driver for it, which includes a binary-only module plus some source. When running make, it fails, and in trying to understand what the Makefile is trying to do I'm failing.
Of interest is the fact that after running make, no files are left in the directory. This seems to be the cause of the "no such file" error. I don't see why this is happening. Anyone have any insight about this?
Trying to make:
Code:
root@castle:~/rtl8180_1.5_release26# make
make -C /lib/modules/2.6.17.13/build SUBDIRS=/root/rtl8180_1.5_release26 MODVERDIR=/root/rtl8180_1.5_release26 modules
make[1]: Entering directory `/usr/src/linux-2.6.17.13'
scripts/Makefile.build:17: /root/rtl8180_1.5_release26/Makefile: No such file or directory
make[2]: *** No rule to make target `/root/rtl8180_1.5_release26/Makefile'. Stop.
make[1]: *** [_module_/root/rtl8180_1.5_release26] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17.13'
make: *** [modules] Error 2
root@castle:~/rtl8180_1.5_release26#
The Makefile:
Code:
#-----------------------------------------------
#Specify kernel version and include path
#-----------------------------------------------
KVER := $(shell uname -r)
KSRC := /lib/modules/$(KVER)/build
#EXTRA_CFLAGS += -DRTL_MEM_MAP
EXTRA_CFLAGS += -DRTL_IO_MAP
#EXTRA_CFLAGS += -DRTL_BIG_ENDIAN
EXTRA_CFLAGS += -DRTL_LITTLE_ENDIAN
#EXTRA_CFLAGS += -DRTL_ACT_AS_AP
EXTRA_CFLAGS += -DRTL_ACT_AS_STA
EXTRA_CFLAGS += -DRTL8180_DRV_ON_PC
EXTRA_CFLAGS += -O6
EXTRA_CFLAGS += -Wall
EXTRA_CFLAGS += -DMODULE
EXTRA_CFLAGS += -D__KERNEL__
EXTRA_CFLAGS += -DLINUX
EXTRA_CFLAGS += -DLINUX_26
#-----------------------------------------------
# Driver Target
#-----------------------------------------------
#-----------------------------------------------
#Private part for rtl8180 linux driver.
#-----------------------------------------------
open8180-objs := r8180_pci_init.o
# -y obj only
# -m obj only, and kernel loadable
obj-m := open8180.o
# here is for Total part for release
all: modules
clean:
mv -f ./8180_26_private.ko ./8180_26_private
rm -f *.mod.c *.mod *.o .*.cmd *.ko
rm -rf $(PWD)/tmp
mv -f ./8180_26_private ./8180_26_private.ko
modules:
$(MAKE) -C $(KSRC) SUBDIRS=$(PWD) MODVERDIR=$(PWD) modules
|