Du bist nicht eingeloggt.

Login

Pass

Registrieren

Community
Szene & News
Locations
Impressum

Forum / Bits und Bytes

Treiber kompilieren unter Linux!?

M4753
Halbprofi (offline)

Dabei seit 07.2006
368 Beiträge
Geschrieben am: 02.06.2007 um 20:51 Uhr

Hi, ich habe mich heute dazu entschlossen, dass ich versuchen werde, mich in Linux einzuarbeiten.... Ich habe Ubuntu 7.04 installiert und soweit läuft es auch, jedoch fehlen noch ein paar treiber....
Nun zum Problem:
Ich habe eine WLAN-Karte und dazu auch den Treiber auf der Platte (ASUS WL-138g V2).
Nur installieren bring ich nicht hin... in der README steht folgendes:

1. Extract the tar package.
tar -xzvf src-.tar.gz (das konnte ich ja noch über das grafische entpacken machen, also "rechtsklick-->extract here, war kein Problem)

2. Build the Driver
cd src/linuxsta/src/wl/linux
in the makefile make sure to set the variables
CROSS_COMPILE=, if the the gcc is not already in the $PATH or if a different compiler needs to be used, and
GCC-REV= dictates the path of the prebuild regulatory binaries, to use while building the driver. (values it takes now are 3.4.2 or 4.0.2),
if the kernel version is 2.6.14.3 the driver expects that iee80211_crypto.ko module be loaded, prior to loading this driver.

make clean
make

3. Test the Driver by loading it
insmod wl.ko


Ich denke mal, dass man dazu wissen sollte, wie man einen Treiber kompiliert und das ganze dan ausführt, ich habe als newbie jedoch keine ahnung davon... Google konnte mir auch nicht wirklich weiter helfen...
Nun hoffe ich auf eure Hilfe ;-)

*lol*

Polaris
Experte (offline)

Dabei seit 07.2006
1766 Beiträge
Geschrieben am: 02.06.2007 um 21:01 Uhr
Zuletzt editiert am: 02.06.2007 um 21:05 Uhr

poste mal den Inhalt des makefiles

Welche kernelversion hast du?

Patriotismus ist die Tugend der Bosheit! (Oscar Wilde)

M4753
Halbprofi (offline)

Dabei seit 07.2006
368 Beiträge
Geschrieben am: 02.06.2007 um 21:06 Uhr

ok, im Makefile steht folgendes:

#
#/*
# *
# * Copyright 2005-2006, Broadcom Corporation
# * All Rights Reserved.
# *
# * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
# * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
# * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
# * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
#*/
#
ifneq ($(INCLUDE_MAKERULES), 1)
ifeq ($(LINUXDIR),)
ifeq ($(LINUXVER),)
# LINUXVER is not specified, use temporarily uname for version
LINUXVER := $(shell uname -r)
endif
ifneq ($(wildcard /lib/modules/$(LINUXVER)/build/include/linux/version.h),)
LINUXDIR := /lib/modules/$(LINUXVER)/build
else
ifneq ($(wildcard /tools/linux/src/linux-$(LINUXVER)/include/linux/version.h),)
LINUXDIR := /tools/linux/src/linux-$(LINUXVER)
else
LINUXDIR := /usr/src/linux
endif
endif
endif

# driver source base and C file path
SRCBASE := $(shell /bin/pwd)/../..

vpath %.c $(SRCBASE)/wl/sys $(SRCBASE)/wl/linux $(SRCBASE)/shared $(SRCBASE)/bcmcrypto

DFLAGS := -DLINUX -DBCMDRIVER -DBCMDBG -DBCMINTERNAL -D__KERNEL__ -DSTA -DDBAND -DWLLED -DBCMWPA2
IFLAGS := -I$(LINUXDIR)/include -I$(LINUXDIR)/include/asm/mach-default -I. -I$(SRCBASE)/wl/sys -I$(SRCBASE)/include -I$(SRCBASE)/wl/linux
#WFLAGS := -Wall -Wstrict-prototypes -ffunction-sections
WFLAGS := -Wall -Wstrict-prototypes

WLCFILES = wlc_led.c wl_linux.c wl_iw.c wlc.c d11ucode.c wlc_rate.c wlc_scb.c wlc_bsscfg.c wlc_key.c linux_osl.c sbutils.c bcmutils.c hnddma.c nvramstubs.c

WLCFILES += wlc_security.c bcmwpa.c


ifeq ($(INTERNALBUILD), 1)
WLCFILES += wlc_phy.c wlc_channel.c bcmsrom.c wlc_rate_sel.c
REGULATORYFILES =
else
REGULATORYFILES = wlc_phy.o wlc_channel.o bcmsrom.o wlc_rate_sel.o
endif

WLOFILES = $(WLCFILES:.c=.o)
WLFLAGS = $(WFLAGS) $(DFLAGS) $(IFLAGS)
CWDIR = $(shell pwd)
GCC-REV := 3.4.2
REGULATORYOBJDIR = obj-$(GCC-REV)

export WLOFILES
export WLFLAGS
export INCLUDE_MAKERULES=1
export CWDIR
export REGULATORYFILES
export INTERNALBUILD
export SRCBASE
export REGULATORYOBJDIR
export CROSS_COMPILE :=

default: $(WLOFILES)
@echo "Linux Directory is $(LINUXDIR)"
@echo "Linux Kernel Versions is $(LINUXVER)"
$(MAKE) -C $(LINUXDIR) CROSS_COMPILE=$(CROSS_COMPILE) M=$(CWDIR) modules
@rm -f *.c

%.o: %.c
@cp -u $< .

clean:
rm -f *.ko *.o *.c .*.o.cmd .*.ko.cmd

else

ifneq ($(INTERNALBUILD), 1)
$(CWDIR)/wlc_phy.o: $(CWDIR)/$(REGULATORYOBJDIR)/wlc_phy.o
@echo "Copying $@ from $(CWDIR)/$(REGULATORYOBJDIR)"
@cp $(CWDIR)/$(REGULATORYOBJDIR)/wlc_phy.o $(CWDIR)/
$(CWDIR)/wlc_channel.o: $(CWDIR)/$(REGULATORYOBJDIR)/wlc_channel.o
@echo "Copying $@ from $(CWDIR)/$(REGULATORYOBJDIR)"
@cp $(CWDIR)/$(REGULATORYOBJDIR)/wlc_channel.o $(CWDIR)/
$(CWDIR)/bcmsrom.o: $(CWDIR)/$(REGULATORYOBJDIR)/bcmsrom.o
@echo "Copying $@ from $(CWDIR)/$(REGULATORYOBJDIR)"
@cp $(CWDIR)/$(REGULATORYOBJDIR)/bcmsrom.o $(CWDIR)/
$(CWDIR)/wlc_rate_sel.o: $(CWDIR)/$(REGULATORYOBJDIR)/wlc_rate_sel.o
@echo "Copying $@ from $(CWDIR)/$(REGULATORYOBJDIR)"
@cp $(CWDIR)/$(REGULATORYOBJDIR)/wlc_rate_sel.o $(CWDIR)/
endif
endif

obj-m += wl.o
wl-objs= $(WLOFILES) $(REGULATORYFILES)
EXTRA_CFLAGS = $(WLFLAGS)


*lol*

hop3l3ss - 35
Fortgeschrittener (offline)

Dabei seit 03.2006
74 Beiträge

Geschrieben am: 03.06.2007 um 10:41 Uhr

da man unter ubuntu keinen direkten root zugriff hat muss man sich mit sudo helfen d.h. das er erste angemedelte benützer den befehl am anfang mit sudo erweitern muss damit er ihn als administrator ausführen kann. danach sollte men eigentlich nach den anleitungen gehen können. vielleicht darfst du datei aber noch nicht vollständig ausführen dan würde es dir vielleciht helfen die zugriffsrechte der datei zu ändern
"sudo chmod +x dateiname"

MfG

PS: das passwort was man eingeben muss is das benützer kennwort des eigeloggten computers

nobody knows...

spark82 - 43
Halbprofi (offline)

Dabei seit 11.2006
240 Beiträge

Geschrieben am: 04.06.2007 um 10:16 Uhr

was passiert, wenn du der Anleitung im Readme folgst, bzw. wie weit kommst du?
(Hast du Grundkenntnisse in der Konsole?)

Das schlimmste an Zensur ist XXXXXXXX XXXXXX.

rootmaster - 59
Fortgeschrittener (offline)

Dabei seit 11.2006
76 Beiträge

Geschrieben am: 05.06.2007 um 23:23 Uhr

CROSS_COMPILE=, if the the gcc...

Also dir fehlen die ganzen Entwicklerwerkzeuge und Du solltest Dir auf jedenfall ein How´to vornehmen wie man gegen den Kernel kompiliert.
Spiele über apt ein:
kernel source und header diese muss identisch mit deinem aktuellem Kernel sein.
gcc,make,automake

Führe niemals make && make install als root aus denn das könnte dein letzter Befehl gewesen sein.
also make als user damit siehst Du auch gleich was dir noch fehlt.
kommt jetzt keine Fehlermeldung dann führe make install als root aus sprich unter Ubuntu
sudo make install und dann dein benutzerpasswort weil es ja unter Ubuntu kein speziellen root mehr gibt

Linuxhilfe mit mehr Spaß das neue Forum der etwas anderen Art, www.linuxhilfe.org

Gregon - 36
Fortgeschrittener (offline)

Dabei seit 07.2005
31 Beiträge
Geschrieben am: 07.06.2007 um 19:01 Uhr

http://www.galileocomputing.de/openbook/ubuntu/

Das Buch kann man links im Menü downloaden. Es enthält ALLES über Ubuntu.
  [Antwort schreiben]

Forum / Bits und Bytes

(c) 1999 - 2026 team-ulm.de - all rights reserved - hosted by ibTEC Team-Ulm

- Presse - Blog - Historie - Partner - Nutzungsbedingungen - Datenschutzerklärung - Jugendschutz -