iwm driver not attached

ddisaster

New Member
Hi,

eines vorne weg: Ich bin komplett neu in der BSD-Welt und bin gerade an der Ersteinrichtung meines Thinkpad X250 mit FreeBSD.

Ich habe inzwischen einigen im Internet gestöbert und komme einfach nicht weiter. Ich bekomme den WLAN Treiber für den im Notebookm verbauten Intel 7265 einfachn nicht geladen. Laut Recherche muss ich den Treiber iwm nutzen. Und laut der Manpage von iwm muss ich entweder einen Custom-Kernel erstellen (weiß nicht, ob das für einen Einsteiger so sinnvoll ist) oder den Treiber über den loader.conf laden. Muss ich sonnst nochr irgendwas mit laden?

Hier noch kurz die meiner Meinung nach wichtigen Ausgaben und Config-files. Falls noch was fehlt, bitte einfach Fragen:

pciconf -lv
Code:
hostb0@pci0:0:0:0:    class=0x060000 card=0x222617aa chip=0x16048086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Broadwell-U Host Bridge -OPI'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:0:2:0:    class=0x030000 card=0x222617aa chip=0x16168086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'HD Graphics 5500'
    class      = display
    subclass   = VGA
hdac0@pci0:0:3:0:    class=0x040300 card=0x222617aa chip=0x160c8086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Broadwell-U Audio Controller'
    class      = multimedia
    subclass   = HDA
xhci0@pci0:0:20:0:    class=0x0c0330 card=0x222617aa chip=0x9cb18086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Wildcat Point-LP USB xHCI Controller'
    class      = serial bus
    subclass   = USB
none0@pci0:0:22:0:    class=0x078000 card=0x222617aa chip=0x9cba8086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Wildcat Point-LP MEI Controller'
    class      = simple comms
em0@pci0:0:25:0:    class=0x020000 card=0x222617aa chip=0x15a28086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Ethernet Connection (3) I218-LM'
    class      = network
    subclass   = ethernet
hdac1@pci0:0:27:0:    class=0x040300 card=0x222617aa chip=0x9ca08086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Wildcat Point-LP High Definition Audio Controller'
    class      = multimedia
    subclass   = HDA
pcib1@pci0:0:28:0:    class=0x060400 card=0x222617aa chip=0x9c9a8086 rev=0xe3 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = 'Wildcat Point-LP PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:28:1:    class=0x060400 card=0x222617aa chip=0x9c948086 rev=0xe3 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = 'Wildcat Point-LP PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
ehci0@pci0:0:29:0:    class=0x0c0320 card=0x222617aa chip=0x9ca68086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Wildcat Point-LP USB EHCI Controller'
    class      = serial bus
    subclass   = USB
isab0@pci0:0:31:0:    class=0x060100 card=0x222617aa chip=0x9cc38086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Wildcat Point-LP LPC Controller'
    class      = bridge
    subclass   = PCI-ISA
ahci0@pci0:0:31:2:    class=0x010601 card=0x222617aa chip=0x9c838086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Wildcat Point-LP SATA Controller [AHCI Mode]'
    class      = mass storage
    subclass   = SATA
none1@pci0:0:31:3:    class=0x0c0500 card=0x222617aa chip=0x9ca28086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Wildcat Point-LP SMBus Controller'
    class      = serial bus
    subclass   = SMBus
none2@pci0:0:31:6:    class=0x118000 card=0x222617aa chip=0x9ca48086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Wildcat Point-LP Thermal Management Controller'
    class      = dasp
none3@pci0:2:0:0:    class=0xff0000 card=0x222617aa chip=0x522710ec rev=0x01 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTS5227 PCI Express Card Reader'
none4@pci0:3:0:0:    class=0x028000 card=0x52108086 chip=0x095b8086 rev=0x59 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Wireless 7265'
    class      = network

dmesg | grep pci
Code:
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0x3000-0x303f mem 0xf0000000-0xf0ffffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0
vgapci0: Boot video device
hdac0: <Intel Broadwell HDA Controller> mem 0xf1230000-0xf1233fff irq 16 at device 3.0 on pci0
xhci0: <Broadwell Integrated PCH-LP chipset USB 3.0 controller> mem 0xf1220000-0xf122ffff irq 16 at device 20.0 on pci0
pci0: <simple comms> at device 22.0 (no driver attached)
em0: <Intel(R) PRO/1000 Network Connection 7.6.1-k> port 0x3080-0x309f mem 0xf1200000-0xf121ffff,0xf123e000-0xf123efff irq 20 at device 25.0 on pci0
hdac1: <Intel Broadwell HDA Controller> mem 0xf1234000-0xf1237fff irq 22 at device 27.0 on pci0
pcib1: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <unknown> at device 0.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> irq 18 at device 28.1 on pci0
pci2: <ACPI PCI bus> on pcib2
pci2: <network> at device 0.0 (no driver attached)
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xf123d000-0xf123d3ff irq 23 at device 29.0 on pci0
isab0: <PCI-ISA bridge> at device 31.0 on pci0
ahci0: <AHCI SATA controller> port 0x30a8-0x30af,0x30b4-0x30b7,0x30a0-0x30a7,0x30b0-0x30b3,0x3060-0x307f mem 0xf123c000-0xf123c7ff irq 19 at device 31.2 on pci0

cat /boot/loader.conf
Code:
aesni_load="YES"
geom_eli_load="YES"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
zfs_load="YES"
iwm7265fw_load="YES"

cat /etc/rc.conf
Code:
hostname="X250"
keymap="de.kbd"
ifconfig_em0="DHCP"
sshd_enable="YES"
moused_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"

Danke schonmal für eure Hilfe.
Grüße DDisaster
 
Danke für die sehr fixe Antwort.

Ja. die Suche habe ich benutzt. Allerdings wird da dann drauf hingeweisen, dass ich mit ifconfig ein WLAN-Device einrichten muss. allerdings bin ich mir nciht sicher, wie sinnvoll das ist, wenn ich noch keinen Treiber für das Gerät geladen bekomme.

Hab das Trotzdem mal versucht und bekomme folgende Ausgabe:
Code:
# ifconfig wlan0 create wlandev iwm0
ifconfig: SIOCIFCREATE2: Device not configured

Was mich bei einer weiteren Suche zu folgendem Thread geführt hat:
https://www.bsdforen.de/threads/freebsd-11-2-mit-intel-8260-firmware-fehler.34471/#post-304307

wodurch ich folgendes getestet habe:
Code:
# kldload if_iwm
# sysctl net.wlan.devices
net.wlan.devices: iwm0
# ifconfig wlan0 create wlandev iwm0

Was funktioniert hat.

Lange Rede kurzer Sinn:
Danke für den kleinen Stupser nochmals in die gleiche Richtung. Hat jetzt funktioniert. War nicht weit von der Lösung entfernt.

Grüße DDisaster
 
Sehr gut.
Wie du also erkennst, reicht es, dieses Modul in der /boot/loader.conf automatisch zu laden.
Dann steht das Gerät beim Booten zur Verfügung und du kannst die Konfiguration in der /etc/rc.conf machen.

Rob
 
Nein, das Laden des Modules in der loader.conf hat nicht funbktioniert. Bin das wie hier
https://wiki.freebsd.org/WiFi/FAQ
unter Punkt 2.1.5 beschrieben vorgegangen und hab das über die /etc/rc.conf gemacht und den cron-befehl genutzt. jetzt hab ich nach dem Booten direkt mein wlan0.

cat /etc/rc.conf
Code:
hostname="X250"
keymap="de.kbd"
ifconfig_em0="DHCP"
sshd_enable="YES"
moused_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
kld_list="if_iwm iwm7265fw"

sudo crontab -l
Code:
@reboot ifconfig wlan0 create wlandev iwm0

Und nochmals Danke.
Ich glaube in der BSD Community kann mans aushalten.

Grüße DDisaster

P.S.: Kann man den Thread irgendwie als gelöst markieren?
 
kld_list in der rc.conf hat verschiedene Vorteile, macht aber im Grunde nichts anderes, als die Module zu laden. Man sollte hier so viel wie möglich hin verfrachten und aus der loader.conf rausnehmen.

Der verlinkte Beitrag zum Wiki ist noch recht akuell. Meist findet man dort eher veraltetes Zeugs, wie die Sprüche mit dem Generic-Kernel. Nur in ganz seltenen Fällen ist nötig, einen eigenen Kernel zu bauen, um irgendeine Funktionalität zu bekommen.
Das Handbuch ist oft besser aufgestellt und genügt meistens auch als Quelle.
 
Zurück
Oben