LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-25-2007, 03:19 PM   #1
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Rep: Reputation: 15
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
 
Old 05-25-2007, 05:05 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
So you open a terminal where you see the makefile and you run 'make', right ?

Also, you did install the kernel source, right ?
 
Old 05-25-2007, 08:17 PM   #3
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
Yes, I run make from the directory with the Makefile. My kernel source is installed, and /usr/src/linux is linked to the 2.6 source.
 
Old 05-25-2007, 09:49 PM   #4
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
Try this driver.
 
Old 05-26-2007, 02:38 AM   #5
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
Aha, that driver seems to work. Thanks.
 
  


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
Wireless trouble, Suse 10.0 +RTL8180l dengar81 Linux - Wireless Networking 0 12-27-2005 01:14 PM
possible fix for the Realtek (RTL8180L) chipset? buffed317 Linux - Hardware 4 12-17-2004 09:53 AM
Belkin F5D6001 Wireless PCI Adapter and the Realtek RTL8180L andyjcam Linux - Wireless Networking 1 11-20-2004 10:18 PM
Official ATI 3.9.0.0 Driver availible felicehome Linux - Hardware 52 07-09-2004 08:01 PM
Rtl8180l SXViper Linux - Wireless Networking 0 02-19-2004 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:00 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration