Download raw body.
enable iwx(4) on riscv64
HI,
I got an iwx and it works properly on my starfive visionfive 2 with
the following patch.
Thanks for kevlo@ help.
ok?
Index: sys/arch/riscv64/conf/GENERIC
===================================================================
RCS file: /cvs/src/sys/arch/riscv64/conf/GENERIC,v
diff -u -p -u -p -r1.52 GENERIC
--- sys/arch/riscv64/conf/GENERIC 30 Apr 2024 01:53:49 -0000 1.52
+++ sys/arch/riscv64/conf/GENERIC 27 Jun 2025 08:35:35 -0000
@@ -139,7 +139,7 @@ rge* at pci? # Realtek 8125
# Wireless network cards
iwm* at pci? # Intel WiFi Link 7xxx
-
+iwx* at pci? # Intel WiFi Link 22xx
nvme* at pci? # NVMe controllers
ahci* at pci? # AHCI SATA controllers
OpenBSD 7.7-current (GENERIC.MP) #0: Fri Jun 27 16:06:36 CST 2025
root@vf2.shawnchi\^H:/usr/src/sys/arch/riscv64/compile/GENERIC.MP
real mem = 4294967296 (4096MB)
avail mem = 4070297600 (3881MB)
SBI: OpenSBI v1.0, SBI Specification Version 0.3
random: good seed from bootblocks
mainbus0 at root: StarFive VisionFive 2 v1.3B
cpu0 at mainbus0: SiFive U7 imp 4210427 rv64imafdc_zba_zbb
intc0 at cpu0
cpu0: 32KB 64b/line 64-way L1 I-cache, 32KB 64b/line 64-way L1 D-cache
cpu0: 2048KB 64b/line 2048-way L2 cache
cpu1 at mainbus0: SiFive U7 imp 4210427 rv64imafdc_zba_zbb
cpu1: 32KB 64b/line 64-way L1 I-cache, 32KB 64b/line 64-way L1 D-cache
cpu1: 2048KB 64b/line 2048-way L2 cache
cpu2 at mainbus0: SiFive U7 imp 4210427 rv64imafdc_zba_zbb
cpu2: 32KB 64b/line 64-way L1 I-cache, 32KB 64b/line 64-way L1 D-cache
cpu2: 2048KB 64b/line 2048-way L2 cache
cpu3 at mainbus0: SiFive U7 imp 4210427 rv64imafdc_zba_zbb
cpu3: 32KB 64b/line 64-way L1 I-cache, 32KB 64b/line 64-way L1 D-cache
cpu3: 2048KB 64b/line 2048-way L2 cache
"opp-table-0" at mainbus0 not configured
"display-subsystem" at mainbus0 not configured
"stmmac-axi-config" at mainbus0 not configured
"dvp-clock" at mainbus0 not configured
"gmac0-rgmii-rxin-clock" at mainbus0 not configured
"gmac0-rmii-refin-clock" at mainbus0 not configured
"gmac1-rgmii-rxin-clock" at mainbus0 not configured
"gmac1-rmii-refin-clock" at mainbus0 not configured
"hdmitx0-pixel-clock" at mainbus0 not configured
"i2srx-bclk-ext-clock" at mainbus0 not configured
"i2srx-lrck-ext-clock" at mainbus0 not configured
"i2stx-bclk-ext-clock" at mainbus0 not configured
"i2stx-lrck-ext-clock" at mainbus0 not configured
"mclk-ext-clock" at mainbus0 not configured
"oscillator" at mainbus0 not configured
"rtc-oscillator" at mainbus0 not configured
"tdm-ext-clock" at mainbus0 not configured
simplebus0 at mainbus0: "soc"
plic0 at simplebus0
stfpciephy0 at simplebus0
stfpciephy1 at simplebus0
stfclock0 at simplebus0: stgcrg
syscon0 at simplebus0: "syscon"
stfclock1 at simplebus0: syscrg
syscon1 at simplebus0: "syscon"
stfclock2 at syscon1: pll
stfpinctrl0 at simplebus0
stfclock3 at simplebus0: aoncrg
syscon2 at simplebus0: "syscon"
"timer" at simplebus0 not configured
"cache-controller" at simplebus0 not configured
com0 at simplebus0: dw16550
com0: console
dwiic0 at simplebus0
iic0 at dwiic0
dwiic1 at simplebus0
iic1 at dwiic1
"spi" at simplebus0 not configured
"tdm" at simplebus0 not configured
"pwmdac" at simplebus0 not configured
"i2s" at simplebus0 not configured
"usb" at simplebus0 not configured
"phy" at simplebus0 not configured
dwiic2 at simplebus0
iic2 at dwiic2
axppmic0 at iic2 addr 0x36: AXP15060
dwiic3 at simplebus0
iic3 at dwiic3
"sony,imx219" at iic3 addr 0x10 not configured
"i2s" at simplebus0 not configured
"i2s" at simplebus0 not configured
"pwm" at simplebus0 not configured
stftemp0 at simplebus0
"spi" at simplebus0 not configured
"timer" at simplebus0 not configured
"watchdog" at simplebus0 not configured
"crypto" at simplebus0 not configured
"dma-controller" at simplebus0 not configured
stfrng0 at simplebus0
dwmmc0 at simplebus0: 198 MHz base clock
sdmmc0 at dwmmc0: 8-bit, mmc high-speed, dma
dwmmc1 at simplebus0: 198 MHz base clock
sdmmc1 at dwmmc1: 4-bit, sd high-speed, dma
dwqe0 at simplebus0 gmac 0: rev 0x52, address 6c:cf:39:00:2e:45
ytphy0 at dwqe0 phy 0: YT8531, rev. 11
dwqe1 at simplebus0 gmac 1dwqe1: reset timeout
: rev 0x52, address 6c:cf:39:00:2e:46
dwqe1: reset timeout
ytphy1 at dwqe1 phy 0: YT8531, rev. 11
"dma-controller" at simplebus0 not configured
"pinctrl" at simplebus0 not configured
"power-controller" at simplebus0 not configured
"csi-bridge" at simplebus0 not configured
"clock-controller" at simplebus0 not configured
"phy" at simplebus0 not configured
"camss" at simplebus0 not configured
"lcd-controller" at simplebus0 not configured
"hdmi" at simplebus0 not configured
"clock-controller" at simplebus0 not configured
stfpcie0 at simplebus0
pci0 at stfpcie0
ppb0 at pci0 dev 0 function 0 "PLDA XpressRICH-AXI" rev 0x00
pci1 at ppb0 bus 1
xhci0 at pci1 dev 0 function 0 "VIA VL805 xHCI" rev 0x01: intx, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "VIA xHCI root hub" rev
3.00/1.00 addr 1
stfpcie1 at simplebus0
pci2 at stfpcie1
ppb1 at pci2 dev 0 function 0 "PLDA XpressRICH-AXI" rev 0x00
pci3 at ppb1 bus 1
iwx0 at pci3 dev 0 function 0 "Intel Wi-Fi 6 AX200" rev 0x1a, intx
gpiorestart0 at mainbus0
"pwmdac-codec" at mainbus0 not configured
"sound-pwmdac" at mainbus0 not configured
"clk_ext_camera" at mainbus0 not configured
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, D9D16G, 0000> removable
sd0: 14800MB, 512 bytes/sector, 30310400 sectors
sdmmc1: can't enable card
uhub1 at uhub0 port 1 configuration 1 interface 0 "vendor 0x2109
USB2.0 Hub" rev 2.10/4.20 addr 2
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (f9a3a7f817a01d0e.a) swap on sd0b dump on sd0b
WARNING: CHECK AND RESET THE DATE!
iwx0: hw rev 0x340, fw 77.a20fb07d.0, address 70:d8:c2:30:fd:2c
--
Shawn Chiou
about.me/shawn.chiou
enable iwx(4) on riscv64