• Opret dig
  • Glemt adgangskode

User account menu

  • Artikler
  • Forside
  • Forum
  • Nyheder
  • Log ind
Hjem
LinuxIN.dk

Snak med

Opret dig!

Af jesperr | 11.07.2008 23:19

ASUS wireless wl-138g v2, loebet sur i det...

Hardware
Er ved at instalere et wirelss kort...
Jeg har downloaded driveren fra asus hjemmeside, de havde en driver til kerne 2.6, fint

Men nu komme problemet, der staar i readme, at jeg skal saette variablen Cross_compiler=,
og her kommer det store, hvad?

Nedenstaaende er readme filen:

Broadcom Corporation

Introduction:
------------
This Package contains the the 802.11b and 802.11g Linux Device driver to support Broadcom WLAN chipsets on X86 platforms, for 2.6 linux kernels. This WLAN driver supports Wireless extensions upto rev 19.

Package details:
---------------
This package is provided as a compressed tar file. The tar file contains all the sources needed, the binary versions of the regulatory domain files and the necessary makefile to build the BROADCOM WLAN driver for specific revisions of the kernel.

The package contains:

src/include and src/include/proto : All the header files.
src/shared, src/wl/sys : All the source files
src/wl/linux : Makefile
src/wl/linux/obj-3.4.2,
src/wl/linux/obj-4.0.2 : pre compiled regulatory binaries

Two sets of precompiled regulatory binaries are avaialble, one for each of the compiler versions gcc 3.4.2 (Redhat FC3 and 2.6.14.3 kernel), and gcc 4.0.2 (Suse 10 distribution)

Distributions and Kernels Tested:
--------------------------------
1. Fedora FC3 with the stock 2.6.9-1.667 kernel (supports WEP only and no support for WPA)
2. Fedora FC3 with 2.6.14.3 kernel. (supports WPA/WPA2 and TKIP/AES/WEP cryptos)
3. Suse 10.0 with 2.6.13-15 kernel. (supports WPA/WPA2 and AES/WEP cryptos)

Chipset Support:
---------------
BCM4318, BCM4311, BCM4309C0

Building the Driver from Package:
--------------------------------

1. Extract the tar package.
tar -xzvf src-.tar.gz

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

Supported WLAN feature set:
--------------------------
1. Supports WLAN STA functionality.
2. Supports Wireless extensions (rev <= 19). So utilies like iwconfig and iwlist compiled with proper header versions(wireless.h) would be able to interface with the driver through the wireless extensions interface.
3. Supports using the external TKIP crypto module if the module is available. To support this, the driver assumes that iee80211_crypto.ko is already loaded and available (support of the ieee802111_crypto modules were added to the kernel rev 2.6.14.3)
4. Supports Only one set of channels for all countries.
5. Supports Hardware cryptos for AES and WEP and with the proper versions of an external supplicant (such as wpa_supplicant with wireless extensions rev >= 18), one could set up different Authentication Key Managements like WPA/WPA-PSK/WPA2/WPA2-PSK/
6. Uses only the standard IOCTLs defined in wireless extensions interface, doesn't have any custom IOCTLS defined.

Limitations:
-----------
Current version of the driver has undergone a limited amount of testing with 2.6.14.3 kernel, Redhat FC3 and Suse 10 Linux distribuitons for i386 platforms. The included makefile only supports compiles for only 2.6 kernel versions.




makefilen ser saadanne ud.........

#
#/*
# *
# * 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)"
@echo "Her er Jesper"
$(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)


makefilen skriver
*** No rule to make target `modules`. stop.

Hvad er cross compiler??

Paa forhaand tak

Jesper

ps.. Undskyld mit engelske tastatur...

  • Log ind eller opret dig for at tilføje kommentarer

Kommentarer1

# 1

16 år 11 måneder siden

Permalink

Indsendt af mixi den 12. juli 2008 kl. 01:23

Permalink

Re: ASUS wireless wl-138g v2, loebet sur i det...

Det er hvis du f.eks sidder på en 32bit styresystem og skal compilere til en 64bit system eller omvent.... eller til en helt trejde type processer.
CROSS_COMPILE=, if the the gcc is not already in the $PATH or if a different compiler needs to be used

Men der står også at du skal huske at tjekke din $PATH variable, om gcc ligger der i, eller skal du angive den som CROSS_COMPILE=/dir/til/gcc...


Håber det hjælper...
  • Log ind eller opret dig for at tilføje kommentarer

Svar søges

Gode anmeldelser Zorin OS 17.3 0
Linux App Store Flathub når 3 milliarder downloads 0
llumos Unix-operativsystem, 0
Den er go 0
14. februar = I Love Free Software Day 0

Seneste aktivitet

Mest sikker webbrowser 5
Digitaliseringsministeriet sætter gang i pilotprojekt om digital suverænitet 1
Firefox 2
Ingen Mint 4
Privatbeskeder 7
Backup/synkronisering? 3
BigLinux 5
Chatgpt satire 1
Læsning af databasefil i Firefox 2
Vanilla OS 15
Pepsi Challenge 4
"Intet realistisk alternativ" - mig i r*ven 10
Linuxin er nu migreret til Drupal 11 13
Et Dansk alternativ til Facebook 18
Ekstern Blu-ray-brænder, der fungerer med PCLinuxOS 3
Københavns og Aarhus Kommune dropper MS 9
Open Source-eksperimentet 1
Microsoft og Google ud af de danske skoler 2
Udfordringer med lydin på Debian 12 1
ExplainingComputers? 2

© 2025 Linuxin og de respektive skribenter

Oprettet og drevet af nørder siden 2004 !