NetBSD W-Lan Installation

boese_t

Member
Hallo zusammen,

zum Thema gibt es zwar schon Beiträge, jedoch immer schon mitten im Thema. Gibt es ein How-To/ Manual/ was auch immer das die Inbetriebnahme eines W-Lan-Adapter (auch für Anfänger) beschreibt?

In den Guides habe ich nichts gefunden, was bei Null anfängt -> Treiber einbinden etc..

Danke für eure Hilfe
 
Wlankarte kennen, Treiber googeln, manpage lesen. Wennde das Modell weißt helf ich auch gerne suchen
 
Es gibt keine weil das vermutlich zu einfach ist.
Bootmeldungen oder dmesg anschauen ob ein WiFi Adapter erkannt wurden ist.
Wpa_suplicant konfigurieren und dhclient mit dem entsprechem WiFi Interface starten.
 
Ich habe folgende adapter am Rechner (Lenovo S10e)

USB:
Code:
schlaptop# usbdevs -v

Controller /dev/usb4:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), vendor 0x8086(0x8086), rev 1.00
port 1 addr 2: high speed, power 500 mA, config 1, RTL8191S WLAN Adapter(0x8172), Manufacturer Realtek(0x0bda), rev 2.00, serial 00e04c000001

auf Platine:
Code:
schlaptop# pcictl pci0 list
005:00:0: Broadcom BCM4315 2.4GHz (miscellaneous network, revision 0x01)

die Ausgabe von dmesg:
Code:
schlaptop# dmesg
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 7.1 (GENERIC.201703111743Z)
total memory = 1526 MB
avail memory = 1484 MB
kern.module.path=/stand/i386/7.1/modules
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
LENOVO                           40684JG          (Lenovo                  )
mainbus0 (root)
ACPI: RSDP 0xf7a70 000024 (v02 PTLTD )
ACPI: XSDT 0x5f6db7b5 000084 (v01 PTLTD  ? XSDT   06040000  LTP 00000000)
ACPI: FACP 0x5f6e1ce5 0000F4 (v03 INTEL  CALISTGA 06040000 ALAN 00000001)
ACPI: DSDT 0x5f6dc9b7 0052BA (v01 INTEL  CALISTGA 06040000 INTL 20061109)
ACPI: FACS 0x5f6e2fc0 000040
ACPI: APIC 0x5f6e1dd9 000068 (v01 INTEL  CALISTGA 06040000 LOHR 0000005A)
ACPI: HPET 0x5f6e1e41 000038 (v01 INTEL  CALISTGA 06040000 LOHR 0000005A)
ACPI: MCFG 0x5f6e1e79 00003C (v01 INTEL  CALISTGA 06040000 LOHR 0000005A)
ACPI: TCPA 0x5f6e1eb5 000032 (v01 PTLTD  CALISTGA 06040000  PTL 00000001)
ACPI: TMOR 0x5f6e1ee7 000026 (v01 PTLTD           06040000 PTL  00000003)
ACPI: APIC 0x5f6e1f0d 000068 (v01 PTLTD  ? APIC   06040000  LTP 00000000)
ACPI: BOOT 0x5f6e1f75 000028 (v01 PTLTD  $SBFTBL$ 06040000  LTP 00000001)
ACPI: ASF! 0x5f6e1f9d 000063 (v16   CETP     CETP 06040000 PTL  00000001)
ACPI: SSDT 0x5f6dbdd5 00025F (v01  PmRef  Cpu0Tst 00003000 INTL 20050624)
ACPI: SSDT 0x5f6dbd2f 0000A6 (v01  PmRef  Cpu1Tst 00003000 INTL 20050624)
ACPI: SSDT 0x5f6db839 0004F6 (v02  PmRef    CpuPm 00003000 INTL 20050624)
ACPI: All ACPI Tables successfully acquired
ioapic0 at mainbus0 apid 1: pa 0xfec00000, version 0x20, 24 pins
cpu0 at mainbus0 apid 0: Intel(R) Atom(TM) CPU N270   @ 1.60GHz, id 0x106c2
cpu1 at mainbus0 apid 1: Intel(R) Atom(TM) CPU N270   @ 1.60GHz, id 0x106c2
acpi0 at mainbus0: Intel ACPICA 20131218
acpi0: X/RSDT: OemId <PTLTD ,    XSDT  ,06040000>, AslId < LTP,00000000>
ACPI: SSDT 0x5f6dc69e 000245 (v02  PmRef  Cpu0Ist 00003000 INTL 20050624)
ACPI: SSDT 0x0 000245 (v02  PmRef  Cpu0Ist 00003000 INTL 20050624)
ACPI: SSDT 0x5f6dc034 0005E5 (v02  PmRef  Cpu0Cst 00003001 INTL 20050624)
ACPI: SSDT 0x0 0005E5 (v02  PmRef  Cpu0Cst 00003001 INTL 20050624)
ACPI: SSDT 0x5f6dc8e3 0000D4 (v02  PmRef  Cpu1Ist 00003000 INTL 20050624)
ACPI: SSDT 0x0 0000D4 (v02  PmRef  Cpu1Ist 00003000 INTL 20050624)
ACPI: SSDT 0x5f6dc619 000085 (v02  PmRef  Cpu1Cst 00003000 INTL 20050624)
ACPI: SSDT 0x0 000085 (v02  PmRef  Cpu1Cst 00003000 INTL 20050624)
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
acpiec0 at acpi0 (EC0, PNP0C09-1)
: io 0x62,0x66
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
acpibut1 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
acpiacad0 at acpi0 (ACAD, ACPI0003): ACPI AC Adapter
acpibat0 at acpi0 (BAT0, PNP0C0A-1): ACPI Battery
acpibat0: Sanyo LION rechargeable battery
acpibat0: granularity: low->warn 0.010 Ah, warn->full 0.025 Ah
acpilid0 at acpi0 (LID, PNP0C0D): ACPI Lid Switch
PDRC (PNP0C02) at acpi0 not configured
acpivga0 at acpi0 (GFX0): ACPI Display Adapter
acpiout0 at acpivga0 (DD01, 0x0100): ACPI Display Output Device
acpiout1 at acpivga0 (DD02, 0x0240): ACPI Display Output Device
acpiout2 at acpivga0 (DD03, 0x0320): ACPI Display Output Device
acpiout3 at acpivga0 (DD04, 0x0410): ACPI Display Output Device
acpiout4 at acpivga0 (DD05, 0x0005): ACPI Display Output Device
acpivga0: unknown output device acpiout4
acpivga0: connected output devices:
acpivga0:   0x0100 (acpiout0): VGA Analog Monitor, index 0, port 0, head 0, bios detect
acpivga0:   0x0240 (acpiout1): TV/HDTV Monitor, index 0, port 4, head 0, bios detect
acpivga0:   0x0320 (acpiout2): Ext. Digital Monitor, index 0, port 2, head 0, bios detect
acpivga0:   0x0410 (acpiout3): Int. Digital Flat Panel, index 0, port 1, head 0, bios detect
MATH (PNP0C04) at acpi0 not configured
LDRC (PNP0C02) at acpi0 not configured
CDRC (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53 irq 0
VPC0 (VPC2004) at acpi0 not configured
pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
pckbc2 at acpi0 (PS2M, SYN1024) (aux port): irq 12
acpitz0 at acpi0 (TZ00): cpu0 cpu1
acpitz0: levels: critical 95.0 C, passive 90.0 C, passive cooling
apm0 at acpi0: Power Management spec V1.2
ACPI: Enabled 4 GPEs in block 00 to 1F
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20131218/hwxface-646)
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20131218/hwxface-646)
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pms0: Synaptics touchpad version 7.2
pms0: Extended W mode, Palm detect, Multi-finger Report
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 0x8086 product 0x27ac (rev. 0x03)
agp0 at pchb0: i915-family chipset
agp0: detected 7932k stolen memory
agp0: aperture at 0xd0000000, size 0x10000000
i915drmkms0 at pci0 dev 2 function 0: vendor 0x8086 product 0x27ae (rev. 0x03)
drm: Memory usable by graphics device = 256M
drm: Supports vblank timestamp caching Rev 2 (21.10.2013).
drm: Driver supports precise vblank timestamp query.
drm: failed to find VBIOS tables
i915drmkms0: interrupting at ioapic0 pin 16 (i915)
drm: initialized overlay support
intelfb0 at i915drmkms0
i915drmkms0: info: registered panic notifier
intelfb0: framebuffer at 0xda7eb000, size 1024x576, depth 32, stride 4096
wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
vendor 0x8086 product 0x27a6 (miscellaneous display, revision 0x03) at pci0 dev 2 function 1 not configured
hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
hdaudio0: interrupting at ioapic0 pin 22
hdafg0 at hdaudio0: Realtek ALC269
hdafg0: DAC00 2ch: Speaker [Built-In], HP Out [Jack]
hdafg0: ADC01 2ch: Mic In [Jack] [Built-In]
hdafg0: 2ch/2ch 32000Hz 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg0: full duplex, playback, capture, mmap, independent
ppb0 at pci0 dev 28 function 0: vendor 0x8086 product 0x27d0 (rev. 0x02)
ppb0: PCI Express capability version 1 <Root Port of PCI-E Root Complex> x1 @ 2.5GT/s
pci1 at ppb0 bus 2
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
bge0 at pci1 dev 0 function 0: Broadcom BCM5906M Fast Ethernet
bge0: interrupting at ioapic0 pin 16
bge0: HW config 00000000, 00000000, 00000000, 00000000 00000000
bge0: ASIC BCM5906 A2 (0xc002), Ethernet address 00:23:8b:49:b6:67
bge0: setting short Tx thresholds
brgphy0 at bge0 phy 1: BCM5906 10/100baseTX media interface, rev. 0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ppb1 at pci0 dev 28 function 1: vendor 0x8086 product 0x27d2 (rev. 0x02)
ppb1: PCI Express capability version 1 <Root Port of PCI-E Root Complex> x1 @ 2.5GT/s
pci2 at ppb1 bus 3
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci0 dev 28 function 2: vendor 0x8086 product 0x27d4 (rev. 0x02)
ppb2: PCI Express capability version 1 <Root Port of PCI-E Root Complex> x1 @ 2.5GT/s
pci3 at ppb2 bus 5
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
vendor 0x14e4 product 0x4315 (miscellaneous network, revision 0x01) at pci3 dev 0 function 0 not configured
uhci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x27c8 (rev. 0x02)
uhci0: interrupting at ioapic0 pin 23
usb0 at uhci0: USB revision 1.0
uhci1 at pci0 dev 29 function 1: vendor 0x8086 product 0x27c9 (rev. 0x02)
uhci1: interrupting at ioapic0 pin 19
usb1 at uhci1: USB revision 1.0
uhci2 at pci0 dev 29 function 2: vendor 0x8086 product 0x27ca (rev. 0x02)
uhci2: interrupting at ioapic0 pin 18
usb2 at uhci2: USB revision 1.0
uhci3 at pci0 dev 29 function 3: vendor 0x8086 product 0x27cb (rev. 0x02)
uhci3: interrupting at ioapic0 pin 16
usb3 at uhci3: USB revision 1.0
ehci0 at pci0 dev 29 function 7: vendor 0x8086 product 0x27cc (rev. 0x02)
ehci0: interrupting at ioapic0 pin 23
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
ppb3 at pci0 dev 30 function 0: vendor 0x8086 product 0x2448 (rev. 0xe2)
pci4 at ppb3 bus 6
pci4: i/o space, memory space enabled
ichlpcib0 at pci0 dev 31 function 0: vendor 0x8086 product 0x27b9 (rev. 0x02)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
ichlpcib0: TCO (watchdog) timer configured.
piixide0 at pci0 dev 31 function 2: Intel 82801GBM/GHM Serial ATA Controller (ICH7) (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at ioapic0 pin 15
atabus1 at piixide0 channel 1
ichsmb0 at pci0 dev 31 function 3: vendor 0x8086 product 0x27da (rev. 0x02)
ichsmb0: interrupting at ioapic0 pin 19
iic0 at ichsmb0: I2C bus
isa0 at ichlpcib0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
attimer1: attached to pcppi0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: FFH, lat   1 us, pow  1000 mW
acpicpu0: C2: FFH, lat  20 us, pow   500 mW
acpicpu0: C3: FFH, lat 100 us, pow   100 mW, bus master check
acpicpu0: P0: FFH, lat  10 us, pow 35000 mW, 1600 MHz
acpicpu0: P1: FFH, lat  10 us, pow 28000 mW, 1333 MHz
acpicpu0: P2: FFH, lat  10 us, pow 22000 mW, 1067 MHz
acpicpu0: P3: FFH, lat  10 us, pow 16000 mW,  800 MHz
acpicpu0: T0: FFH, lat   1 us, pow 16000 mW, 100 %
acpicpu0: T1: FFH, lat   1 us, pow 14000 mW,  88 %
acpicpu0: T2: FFH, lat   1 us, pow 12000 mW,  75 %
acpicpu0: T3: FFH, lat   1 us, pow 10000 mW,  63 %
acpicpu0: T4: FFH, lat   1 us, pow  8000 mW,  50 %
acpicpu0: T5: FFH, lat   1 us, pow  6000 mW,  38 %
acpicpu0: T6: FFH, lat   1 us, pow  4000 mW,  25 %
acpicpu0: T7: FFH, lat   1 us, pow  2000 mW,  13 %
coretemp0 at cpu0: thermal sensor, 1 C resolution, Tjmax=100
acpicpu1 at cpu1: ACPI CPU
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
acpiacad0: AC adapter online.
uhub0 at usb2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb3: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhub2 at usb4: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 8 ports with 8 removable, self powered
uhub3 at usb0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
uhub4 at usb1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub4: 2 ports with 2 removable, self powered
IPsec: Initialized Security Association Processing.
ugen0 at uhub2 port 1
ugen0: Manufacturer Realtek RTL8191S WLAN Adapter, rev 2.00/2.00, addr 2
wd0 at atabus0 drive 0
wd0: <Intenso SSD Sata III>
wd0: drive supports 2-sector PIO transfers, LBA48 addressing
wd0: 118 GB, 245499 cyl, 16 head, 63 sec, 512 bytes/sect x 247463936 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
uvideo0 at uhub2 port 3 configuration 1 interface 0: BISON Corporation Lenovo EasyCamera, rev 2.00/14.04, addr 3
video0 at uvideo0: BISON Corporation Lenovo EasyCamera, rev 2.00/14.04, addr 3
umass0 at uhub2 port 5 configuration 1 interface 0
umass0: Generic USB2.0-CRW, rev 2.00/58.87, addr 4
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <Generic-, Multi-Card, 1.00> disk removable
sd0: drive offline
Kernelized RAIDframe activated
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
WARNING: clock gained 4 days
ubt0 at uhub4 port 2
ubt0: Broadcom Corp BCM2046 Bluetooth Device, rev 2.00/6.01, addr 2
acpibat0: normal capacity on 'charge state'
wsdisplay0: screen 1 added (default, vt100 emulation)
wsdisplay0: screen 2 added (default, vt100 emulation)
wsdisplay0: screen 3 added (default, vt100 emulation)
wsdisplay0: screen 4 added (default, vt100 emulation)

@Fahnenträger:
Ich glaube dir dass es einfach ist, aber manchmal denkt man zu kompliziert oder stellt sich an wie der erste Mensch an - scheint bei mir der Fall zu sein.

 
Mein Problem ist gleich der erste Schritt:
Ich sehe kein Interface, dass ich konfigurieren könnte.
ugen0 scheint zwar der USB-Adapter zu sein, lässt sich aber nicht konfigurieren.
Code:
schlaptop# ifconfig ugen0
ifconfig: SIOCGIFFLAGS ugen0: Device not configured
Deswegen auch die Frage nach einem "Manual von Anfang an".

Danke für eure Hilfe!
 
ugen0 at uhub2 port 1 ugen0: Manufacturer Realtek RTL8191S WLAN Adapter, rev 2.00/2.00, addr 2
ugen ist glaube ich ein Universaltreiber, der ausgewählt wird, wenn sonst kein passender Treiber vom System zugewiesen werden kann.

Gibt es einen Unterschied zwischen RTL8191SU und RTL8191S ?

Config file and device description for machine-independent USB code:
http://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/sys/dev/usb/files.usb
Ist von NetBSD-current, hier wird RTL8191SU auf rsu verwiesen.

Also nach meinem Erachten müsste der rsu Treiber passen, finde jedoch keine Manpage und in einem vermutlich älteren Wikiartikel sieht es aus, als ob der rsu-Treiber nicht auf NetBSD portiert wurde: https://en.wikipedia.org/wiki/Comparison_of_open-source_wireless_drivers
 
Welcher USB-Stick oder besser Expresscard/34-Karten laufen unter NetBSD?
Ralink kann ich nur empfehlen

http://netbsd.gw.com/cgi-bin/man-cgi?run++NetBSD-current
Modelle sind in der Manpage aufgezählt.

Verwende ich unter OpenBSD:
https://www.amazon.com/AWUS036NEH-Range-WIRELESS-802-11b-USBAdapter/dp/B0035OCVO6
Der dafür genutzte Treiber wurde auf NetBSD portiert

Auf der Wikipediaseite findest du verfügbare Treiber (könnte etwas veraltet sein), in den Manpages findest du die unterstützten Modelle
 
ich habe anscheinend noch einen funktionierenden Stick gefunden:
Code:
Controller /dev/usb4:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), vendor 0x8086(0x8086), rev 1.00
port 1 addr 2: high speed, power 450 mA, config 1, 802.11 g WLAN(0x2070), Ralink(0x148f), rev 1.01, serial 1.0

Code:
schlaptop# ifconfig
run0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        ssid ""
        powersave off
        address: d8:5d:4c:9a:5e:9b
        media: IEEE802.11 autoselect
        status: no network

Ich melde mich bei erfolgreicher Konfiguration
 
Zurück
Oben