LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   edimax ew-7326ig wireless 11b/g PCI adapter (https://www.linuxquestions.org/questions/slackware-14/edimax-ew-7326ig-wireless-11b-g-pci-adapter-792712/)

jacquesbg 03-02-2010 04:12 PM

edimax ew-7326ig wireless 11b/g PCI adapter
 
I have bought a edimax ew-7326ig wireless 11b/g PCI adapter that - according to the box - also supports linux.

The CD contains a file rtl8185_linux_26[1].1027.0823.2007.tar.gz.

when I unpack the file I get a directory containg a.o.:
stack.tar.gz
rtl8185.tar.gz

and a script file makedrv, listing:

#!/bin/bash
tar -zvxf stack.tar.gz
tar -zvxf rtl8185.tar.gz
cd ieee80211
make clean
make
cd ../rtl8185
make clean
make
cd ../

Readme says a.o.:

RTL8185 Linux Driver v1027.0823.2007 for linux kernel 2.6
- Support Client mode for either infrastructure or adhoc mode
- Support WEP and WPAPSK/WPA2PSK connection

When I run makedrv, I get the following error messages:
(...)
make -C /lib/modules/2.6.29.6-smp/build M=/root/Desktop/wireless/Driver-Utility for Linux/rtl8185_linux_26.1027.0823.2007/ieee80211 CC=gcc modules
make[1]: Entering directory `/usr/src/linux-2.6.29.6'
make[1]: *** No rule to make target 'for' . Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.29.6'
make: *** [modules] Error 2.
rm -f *.mod.c *.mod *.o .*.cmd *.ko *~
rm -rf /root/Desktop/wireless/Driver-Utility for Linux/rtl8185_linux_26.1027.0823.2007/rtl8185/tmp
make -C /lib/modules/2.6.29.6-smp/build M=/root/Desktop/wireless/Driver-Utility for Linux/rtl8185_linux_26.1027.0823.2007/rtl8185 CC=gcc modules
make[1]: Entering directory `/usr/src/linux-2.6.29.6'
make[1]: *** No rule to make target 'for' . Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.29.6'
make: *** [modules] Error 2.

It is a fresh install of slackware. I attached the Makefile in rtl8185.tar.gz

Thanks for any help in resolving this

Listing Makefile:
#EXTRA_CFLAGS += -DCONFIG_IEEE80211_NOWEP=y
#EXTRA_CFLAGS += -DCONFIG_RTL8180_IOMAP
EXTRA_CFLAGS += -I$(TOPDIR)/drivers/net/wireless
EXTRA_CFLAGS += -std=gnu89
EXTRA_CFLAGS += -O2
CC = gcc
#EXTRA_CFLAGS += -mhard-float -DCONFIG_FORCE_HARD_FLOAT=y

#ieee80211-r8180-objs := ieee80211.o ieee80211_rx.o ieee80211_tx.o ieee80211_wx.o ieee80211_module.o

#ieee80211_crypt-r8180 := ieee80211_crypt-r8180.o

r8180-objs := r8180_core.o r8180_sa2400.o r8180_93cx6.o r8180_wx.o r8180_max2820.o r8180_gct.o r8180_rtl8225.o r8180_rtl8225z2.o r8180_rtl8255.o

#ieee80211_crpt_wep-r8180-objs := ieee80211_crypt_wep-r8180.o

obj-m += r8180.o
#obj-m +=ieee80211-r8180.o
#obj-m +=ieee80211_crypt-r8180.o
#obj-m +=ieee80211_crypt_wep-r8180.o

MODULES_LST := r8180.ko
#ieee80211-r8180.ko ieee80211-r8180_crypt.ko
#MODULES_ALG_LST := ieee80211_crypt_wep-r8180.ko

KVER := $(shell uname -r)
KSRC := /lib/modules/$(KVER)/build
INSTALL_PREFIX :=

all: modules

clean:
rm -f *.mod.c *.mod *.o .*.cmd *.ko *~
rm -rf $(PWD)/tmp

modules:
# $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) MODVERDIR=$(PWD) modules
$(MAKE) -C $(KSRC) M=$(PWD) CC=$(CC) modules

MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless
#MOD_ALGDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/alg

install: modules
mkdir -p $(MODDESTDIR)
# mkdir -p $(MOD_ALGDESTDIR)
install -p -m 644 $(MODULES_LST) $(MODDESTDIR)
# install -p -m 644 $(MODULES_ALG_LST) $(MOD_ALGDESTDIR)

uninstall:
cd $(MODDESTDIR) && rm $(MODULES_LST)
# cd $(MOD_ALGDESTDIR) && rm $(MODULES_ALG_LST)

load:
./module_load

unload:

./module_unload


All times are GMT -5. The time now is 06:15 PM.