• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] D-Link DWL122

M4rio

Newbie
Hallo Welt :)

und wieder ein eingefleischter Windows User der sich an Linux versucht. Gebe nun mal mein Debüt, super chickes Forum! Installation hat geklappt ;)
Habe verschiedene HowTo's gelesen und Google sowie die Forensuche benutzt. :)

Folgendes Problem:

WLAN Funktinalität = 0

WLAN USB Stick: D-Link DWL122
Chipsatz Prism2/2.5/3
Treiber: linux-wlan-ng ----> http://www.linux-wlan.org

Code:
Suse Linux 10.1 linuxone:/ # uname -r
2.6.16.13-4-default

Code:
linuxone:/ # ifconfig
eth0      Protokoll:Ethernet  Hardware Adresse 00:01:03:E8:19:70
          UP BROADCAST NOTRAILERS MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 Sendewarteschlangenlänge:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:10 Basisadresse:0xe000

lo        Protokoll:Lokale Schleife
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:64 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 Sendewarteschlangenlänge:0
          RX bytes:4636 (4.5 Kb)  TX bytes:4636 (4.5 Kb)

Code:
linuxone:/ # lsusb
Bus 001 Device 006: ID 2001:3700 D-Link Corp. [hex] DWL-122 802.11b
Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc.
Bus 001 Device 005: ID 046d:c30e Logitech, Inc.
Bus 001 Device 003: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 001 Device 001: ID 0000:0000
linuxone:/ # lsmod
Module                  Size  Used by
iptable_filter          2816  0
ip_tables              11080  1 iptable_filter
x_tables               11908  1 ip_tables
joydev                  9024  0
ipv6                  215808  12
snd_pcm_oss            42752  0
snd_mixer_oss          16512  1 snd_pcm_oss
snd_seq_midi            8960  0
snd_seq_midi_event      6400  1 snd_seq_midi
snd_seq                47216  2 snd_seq_midi,snd_seq_midi_event
af_packet              19336  2
edd                     8516  0
apparmor               47004  0
aamatch_pcre           13440  1 apparmor
loop                   14728  0
dm_mod                 52584  0
usbhid                 39392  0
shpchp                 39488  0
pci_hotplug            24372  1 shpchp
snd_ens1371            22944  1
gameport               13960  1 snd_ens1371
snd_rawmidi            23552  2 snd_seq_midi,snd_ens1371
snd_seq_device          7948  3 snd_seq_midi,snd_seq,snd_rawmidi
snd_ac97_codec         82848  1 snd_ens1371
snd_ac97_bus            2176  1 snd_ac97_codec
snd_pcm                80136  3 snd_pcm_oss,snd_ens1371,snd_ac97_codec
snd_timer              20868  2 snd_seq,snd_pcm
snd                    51076  12 snd_pcm_oss,snd_mixer_oss,snd_seq_midi,snd_seq,snd_ens1371,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer
soundcore               8672  1 snd
snd_page_alloc          9608  1 snd_pcm
3c59x                  39848  0
i2c_piix4               8208  0
ide_cd                 35488  0
uhci_hcd               27280  0
usbcore               109700  3 usbhid,uhci_hcd
i2c_core               19728  1 i2c_piix4
cdrom                  32416  1 ide_cd
mii                     5120  1 3c59x
intel_agp              21020  1
agpgart                28976  1 intel_agp
parport_pc             34916  1
lp                     10948  0
parport                32200  2 parport_pc,lp
reiserfs              210944  2
processor              22592  0
piix                    9092  0 [permanent]
ide_disk               15104  4
ide_core              116540  3 ide_cd,piix,ide_disk

Code:
linuxone:/home/willemsm/linux-wlan-ng-0.2.5 # make config

-------------- Linux WLAN Configuration Script -------------

The default responses are correct for most users.

Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [y]: n
Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [n]: n
Build Prism2.5 native PCI (_pci) driver? (y/n) [n]: n
Build Prism2.5 USB (_usb) driver? (y/n) [n]: y

Linux source directory [/lib/modules/2.6.16.13-4-default/build]:
Linux source tree /lib/modules/2.6.16.13-4-default/build is incomplete or missing!
    See the HOWTO for a list of FTP sites for current kernel sources.

Configuration failed

make: *** [config] Fehler 1

So ab hier komm ich nicht weiter will er hier von mir wissen wo mein Kernel liegt, der liegt wo unter Suse ? :roll:

Testweise habe ich FW sowie Verschlüsselung ausgestellt.

Überall steht dieser Chipsatz wird schon direkt von Suse unterstürzt wenn ich den Stick allerdings als neues Netzwerkgerät, "Drathlos" mit Prism2 einrichte gehts ebenfalls nicht, er taucht ja noch nichteinmal bei " iwconfig" auf :(

Soweit ich das verstanden habe benutzt man ndiswrapper doch nur zum emulieren des Windows treibers. Für mein Stick ist aber doch ein Linux Treiber verfügbar somit brauch ich dieses Tool doch nicht, oder ?


Freue mich über jede Hilfe, hoffe mein Posting erleichtert die Fehlersuche. :)

lg
Mario


/edit arg iwconfig vergessen sagt aber überall "No Wireless extenssions" und zeigt auch kein wlan0 wie in anderen Postings an .
 

Grothesk

Ultimate Guru
Du musst bei dem linux-wlan-ng eine Firmware für den Prism-Chip nachinstallieren. Bei früheren Suses konnte man das über ein online update machen. Ob und wie das bei 10.1 geht kann ich dir so nicht sagen.
Aber eigentlich sollte das mittlerweile, wie du ja schon gelesen hast, direkt über den Treiber im Kernel funktionieren.
Ich würde mich mal auf yast konzentrieren. Mal die Karte dort löschen und wieder hinzufügen. Also die wird wohl definitiv ohne linux-wlan-ng unterstützt.

Hast du mal ein
Code:
modprobe prism2_usb
als root probiert? Schau zuvor mit
Code:
lsmod | grep prism
mal, ob und was da an Modulen geladen ist.
 
OP
M

M4rio

Newbie
@ b3ll3roph0n

Danke habe die Kernel-Source nachinstalliert. aber so richtig schlau bin ich nun auch nicht :(

Code:
linuxone:/home/willemsm/linux-wlan-ng-0.2.5 # make config

-------------- Linux WLAN Configuration Script -------------

The default responses are correct for most users.

Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [n]: n
Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [n]: n
Build Prism2.5 native PCI (_pci) driver? (y/n) [n]: n
Build Prism2.5 USB (_usb) driver? (y/n) [y]: y

Linux source directory [/lib/modules/2.6.16.13-4-default/build]: /usr/src/linux
make[1]: cc: Kommando nicht gefunden
make[1]: *** [get_version] Fehler 127
./Configure: line 246: scripts/make.opts: Datei oder Verzeichnis nicht gefunden

The kernel source tree is version .
WARNING: the current running kernel is actually version 2.6.16.13-4-default.
WARNING: .config not present in kernel source tree.  This will
         screw up modversions detection and build optimizations.
         Is this a RedHat kernel? Workarounds enabled.
         For an optimized build, copy over the relevent file from
         /usr/src/linux/configs/ to /usr/src/linux/.config
The current kernel build date is Wed May 3 04:53:23 2006.

./Configure: line 344: scripts/make.opts: Datei oder Verzeichnis nicht gefunden
Alternate target install root directory on host []: /etc/wlan
  Module install directory [/lib/modules/]:

It looks like you have a System V init file setup.


Prefix for build host compiler? (rarely needed) []:

Build for debugging (see doc/config.debug) (y/n) [n]: y


Configuration successful.  Now type 'make' and pray.

linuxone:/home/willemsm/linux-wlan-ng-0.2.5 # make
set -e; for d in src doc man etc; do make -C $d ; done
make[1]: Entering directory `/home/willemsm/linux-wlan-ng-0.2.5/src'
set -e; for d in mkmeta shared wlanctl nwepgen wlancfg p80211 prism2; do make WLAN_SRC=/home/willemsm/linux-wlan-ng-0.2.5/src/ -C $d ; done
make[2]: Entering directory `/home/willemsm/linux-wlan-ng-0.2.5/src/mkmeta'
gcc -E -M -I../include -I/usr/src/linux/include -D__LINUX_WLAN__ ../shared/p80211types.c ../shared/p80211metamsg.c ../shared/p80211metamib.c ../shared/p80211meta.c  mkmetadef.c ../shared/p80211types.c ../shared/p80211metamsg.c ../shared/p80211metamib.c ../shared/p80211meta.c  mkmetastruct.c > .depend
/bin/sh: gcc: command not found
make[2]: *** [.depend] Fehler 127
make[2]: Leaving directory `/home/willemsm/linux-wlan-ng-0.2.5/src/mkmeta'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/home/willemsm/linux-wlan-ng-0.2.5/src'
make: *** [all] Fehler 2
linuxone:/home/willemsm/linux-wlan-ng-0.2.5 # make all
set -e; for d in src doc man etc; do make -C $d ; done
make[1]: Entering directory `/home/willemsm/linux-wlan-ng-0.2.5/src'
set -e; for d in mkmeta shared wlanctl nwepgen wlancfg p80211 prism2; do make WLAN_SRC=/home/willemsm/linux-wlan-ng-0.2.5/src/ -C $d ; done
make[2]: Entering directory `/home/willemsm/linux-wlan-ng-0.2.5/src/mkmeta'
mkdir -p obj
gcc -c  -I../include -I/usr/src/linux/include -D__LINUX_WLAN__ ../shared/p80211types.c -o obj/p80211types.o
make[2]: gcc: Kommando nicht gefunden
make[2]: *** [obj/p80211types.o] Fehler 127
make[2]: Leaving directory `/home/willemsm/linux-wlan-ng-0.2.5/src/mkmeta'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/home/willemsm/linux-wlan-ng-0.2.5/src'
make: *** [all] Fehler 2
linuxone:/home/willemsm/linux-wlan-ng-0.2.5 # make install
find . -name .depend -exec rm {} \;
set -e; for d in src doc man etc; do make -C $d install ; done
make[1]: Entering directory `/home/willemsm/linux-wlan-ng-0.2.5/src'
set -e; for d in mkmeta shared wlanctl nwepgen wlancfg p80211 prism2; do make WLAN_SRC=/home/willemsm/linux-wlan-ng-0.2.5/src/ -C $d install ; done
make[2]: Entering directory `/home/willemsm/linux-wlan-ng-0.2.5/src/mkmeta'
echo "Nothing to install"
Nothing to install
make[2]: Leaving directory `/home/willemsm/linux-wlan-ng-0.2.5/src/mkmeta'
make[2]: Entering directory `/home/willemsm/linux-wlan-ng-0.2.5/src/shared'
Nothing to do...
make[2]: Leaving directory `/home/willemsm/linux-wlan-ng-0.2.5/src/shared'
make[2]: Entering directory `/home/willemsm/linux-wlan-ng-0.2.5/src/wlanctl'
mkdir -p /etc/wlan/sbin
cp wlanctl /etc/wlan/sbin/wlanctl-ng
cp: Aufruf von stat für „wlanctl“ nicht möglich: Datei oder Verzeichnis nicht gefunden
make[2]: *** [install] Fehler 1
make[2]: Leaving directory `/home/willemsm/linux-wlan-ng-0.2.5/src/wlanctl'
make[1]: *** [install] Fehler 2
make[1]: Leaving directory `/home/willemsm/linux-wlan-ng-0.2.5/src'
make: *** [install] Fehler 2
linuxone:/home/willemsm/linux-wlan-ng-0.2.5 #

Readme zu dem Treiber

Code:
Building linux-wlan-ng:

1)  untar the package using the command:

    tar zxvf linux-wlan-ng-X.Y.Z.tar.gz

2)  Make sure you have configured kernel and (optionally) pcmcia sources on 
    your system.  Note that if you are _only_ building the prism2_pci,
    prism2_plx, or prism2_usb drivers you don't need the pcmcia-cs 
    source tree.

3)  To configure the linux-wlan-ng package, run 'make config'.  The 
    following set of questions will be asked. The default answer is in
    braces (e.g. []).  Just press <Enter> to select the default answer:

   - "Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [y]: "
        Select "y" if you want to build the Prism PCMCIA driver.
        If you select "n", the PCMCIA related questions below
        will not be asked.

   - Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [y]: 
        Select "y" if you want to build the Prism driver for 
        PLX PCI9052 PCI/PCMCIA adapter based solutions.

   - Build Prism2.5 native PCI (_pci) driver? (y/n) [y]: 
        Select "y" if you want to build the Prism driver for 
        Prism2.5 ISL3874 based native PCI cards.  This includes
        PCI add-in cards and the mini-pci modules included in some
        notebook computers (but not all, some use internal USB modules).

   - Build Prism2.5 USB (_usb) driver? (y/n) [y]: 
        Select "y" if you want to build the Prism driver for 
        Prism2.5 ISL3873 based USB adapters.  This includes
        USB add-on modules and the internal modules included in some
        notebook computers.

   - Linux source directory [/usr/src/linux]: 
        The config script will attempt to automagically find your kernel
        source directory.  If found, the kernel source source directory
        will be presented as the default selection.  If the default
        selection is wrong, you may correct it here.

   - pcmcia-cs source dir [/usr/src/pcmcia-cs-3.1.29]: 
        If the "_cs" driver is selected above, the configure script will
        attempt to present a reasonable default for the pcmcia source
        directory.  If the presented directory is incorrect, you may
        change it here.  If the "_cs" driver is not selected, this
        prompt will not appear.

   - PCMCIA script directory [/etc/pcmcia]: 
        If the "_cs" driver is selected, this prompt allows you to 
        change the location where the pcmcia scripts will be installed.
        Only do this if you have installed the rest of the pcmcia_cs
        scripts to a non-default location.

   - Alternate target install root directory on host []:   
        This prompt allows you to specify an alternative root directory
        for the install process.

   - Module install directory [/lib/modules/2.2.20]: 
        Select where you want the driver modules to be installed.  The
        script constructs a default location using the output of uname.
        If you have not yet installed the kernel you will run linux-wlan
        with, and the new kernel has a different version string, you will
        need to change this value.

   - Prefix for build host compiler? (rarely needed) []: 
        When cross-compiling or using different compilers for kernel and
        user-mode software, it is sometimes (but rarely) necessary to 
        specify a different compiler prefix to use when compiling the 
        _tools_ that are built to run on the build host during the 
        linux-wlan-ng build process.

   - Build for debugging (see doc/config.debug) (y/n) [y]: 
        This option enables the inclusion of debug output generating
        statements in the driver code.  Note that enabling those statements
        requires the inclusion of insmod/modprobe command line arguments
        when loading the modules.  See the document doc/config.debug
        for more information.


5)  To build the package, run 'make all'

6)  To install the package, run 'make install' (as root).


@Grothesk

Danke habe das mal ausprobiert anscheinend ist das Modul nicht geladen

Code:
linuxone:/ # modprobe prism2:usb
FATAL: Module prism2:usb not found.
linuxone:/ # lsmod | grep prism
linuxone:/ #


Also ich muss schon sagen für jemanden der vorher nur geklick0rt hat is das ziemlich heftig :p kann gut sein das ich mir hier irgendwas zerschieße aber neu installiert ist ja schnell.
Ich danke euch schonmal für die Hilfe, leg mich nun mal ins Bett morgen Arbeiten ;) bis morgen Mittag, vielen Dank.

lg
 

homer65

Hacker
Hallo M4rio,
habe auch den DWL-122 unter Suse 10.1. Zusätzliche Software oder Treiber sind da nicht nötig. Insbesondere NDISWRAPPER und wlan-ng werden nicht benötigt. Das Modul, welches du brauchst ist prism2_usb. Wundert mich gerade, das lsmod das nicht anzeigt, sollte doch Standard sein, *grübel*. Vielleicht hast du dir schon was zerschossen. Ansonsten kann der DWL-122 einfach per Yast konfiguriert werden als drahtlos mit Modul prism2_usb. Man muß drauf achten, das beim DWL-122 beide LED's leuchten. Ist aber bei Windows auch so.
 
OP
M

M4rio

Newbie
Guten Morgen,


@ b3ll3roph0n

"C/C++ Compiler und Werkzeuge" werde ich heute Mittag nach der arbeit installieren. Soll ich danach das ganze Procedere nocheinmal durchführen, denke mal ja :)

@ homer65

Soweit ich gelesen habe sollte dieser Stick normalerweise schon "direkt" ;) von meinem Suse erkannt werden. Natürlich habe ich den Weg des geringsten Wiederstandes gewählt und als erstes das ganze über Yast probiert. Dort wird meine Netzwerkkarte sehr wohl als Ethernet Karte erkannt nur bei diesem Stick happert es.
Also bin ich über "Hinzufügen" Drathlos dann unten auf auswählen geklickt und den prism2_usb ausgewält, weiter hab ich da dann nichts eingetragen auch nciht den Hacken in diesem Fenster auf USB gesetzt da er sonst alles grau hinterlegt bei IP Adresse habe ich diesem Stick dann eine IP aus meinem Adressbereich zugewiesen "192.168.2.1/24 --> Telekom Router Standart noch nix geändert ;)" Ihm den Router als DNS und Gateway eingetragen, Verschlüsselung ist derZeit deaktiviert sowie FW für diesen Stick. Also immer fröhlich auf weiter... Speichern... wenn ich nun Yast aufrufe steht der DWL auch immer noch bei den Netzwerkgeräten wird allerdings nicht unter "iwconfig" aufgeführt. Über "lsusb" hab ich ja wie oben schon gepostet das es eigntlich nicht am USB Port liegen kann da er ja dort erkannt wird.

Kann ich bei meiner Installation was falsch gemacht haben, blöde frage, ich weiß :wtf: naja auf jedenfall Post ich heute Mittag nochmal genau die Schritte die ich durchgeführt habe.


In meinem letzten Post habe ich durch "Grothesk's" Hilfe herausgefunden das das prism_usb modul nicht verfügar ist kann man sowas so einfach nachinstallieren? Nötig, dafür doch dann bestimmt, vielleicht liegts ja einfahc nur daran...

lg
 
Such mal in YaST nach prism, eigentlich sollte das notwendige Kernel-Modul schon mitgeliefert werden.
Ansonsten geh mal in das Verzeichnis /usr/src/linux und führe dort ein
Code:
make cloneconfig
make prepare
als root aus.
 
OP
M

M4rio

Newbie
und nu ?

@b3ll3roph0n Ist installiert nochmal ausführen ?

@homer65 Hat wieder nicht geklappt :([/code][/quote]
 

Grothesk

Ultimate Guru
Könntest du diese Monsterausgaben bitte nach
http://phpfi.com
kopieren? Dann den Link hier rein, macht es wesentlich übersichtlicher. Danke schön.
 
Oben