Paul W. Rankin
2021-06-07 06:06:16 UTC
Hello,
I've installed OpenBSD 6.9 on my Raspberry Pi 4B and can connect to wifi
networks, but I cannot send/receive any data.
I installed by dd'ing install69.img to SD card, booting from SD card and
installing the root system onto a USB stick. I copied over
bwfm-firmware-20200316.1.2p2.tgz on separate USB and installed the
firmware with fw_update.
The RPi4 now boots fine into multi-user OpenBSD. I can connect to a wifi
network and obtain a DHCP lease. I can see via the router web UI (using
another machine) that the RPi4 is connected with an IP address. However
I cannot sent/receive data, e.g.
$ pkg_add -u
# long wait... nothing...
^Cpkg_add: Caught SIGINT
$ ping example.com
# long wait... nothing...
^C
$ ping 192.168.8.1 # <- router IP
PING 192.168.8.1 (192.168.8.1): 56 data bytes
# long wait... again nothing
^C
--- 192.168.8.1 ping statistics ---
21 packets transmitted, 0 packegs received, 100.0% packet loss
I don't think it's an issue with the router because I've also tried
setting up an ad-hoc network between my Mac and the RPi4. I can join
this network, but attempting to ssh ***@xxx.xxx.xxx.xxx results in the
same apparent lack of sending/receiving any data.
I don't think it is faulty hardware because I've also tried the above
with a urtwn-compatible USB wifi dongle (having installed the firmware)
with the same results. Also the hardware had previously worked with wifi
on an Alpine Linux installation.
Possibly pertinent info:
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
index 3 priority 0 llprio 3
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
bse0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
lladdr dc:a6:32:ac:ec:1f
index 1 priority 0 llprio 3
media: Ethernet autoselect (none)
status: no carrier
enc0: flags=0<>
index 2 priority 0 llprio 3
groups: enc
status: active
bwfm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr dc:a6:32:ac:ec:20
index 4 priority 4 llprio 3
groups: wlan egress
media: IEEE802.11 autoselect (HT-MCS7 mode 11n)
status: active
ieee80211: nwid Leonardo chan 11 bssid e0:f4:42:3f:95:87 -36dBm wpakey
wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
inet 192.168.8.101 netmask 0xffffff00 broadcast 192.168.8.255
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
index 5 priority 0 llprio 3
groups: pflog
$ rcctl ls on
apmd
check_quotas
cron
dhcpleased
library_aslr
ntpd
pf
pflogd
resolvd
slaacd
smtpd
sndiod
syslogd
$ cat /etc/pf.conf
# $OpenBSD: pf.conf,v 1.55 2017/12/03 20:40:04 sthen Exp $
#
# See pf.conf(5) and /etc/examples/pf.conf
set skip on lo
block return # block stateless traffic
pass # establish keep-state
# By default, do not permit remote connections to X11
block return in on ! lo0 proto tcp to port 6000:6010
# Port build user does not need network
block return out log proto {tcp udp} user _pbuild
$ cat /etc/resolv.conf
# resolvd: serial 3332957641
nameserver 192.168.8.1 # resolvd: bwfm0
# Generated by bwfm0 dhclient
nameserver 192.168.8.1
lookup file bind
$ cat /etc/hostname.bwfm0
nwid Leonardo wpakey *REDACTED*
dhcp
$ dmesg
OpenBSD 6.9 (GENERIC.MP) #1134: Sun Apr 18 01:53:35 MDT 2021
***@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem = 4110094336 (3919MB)
avail mem = 3951370240 (3768MB)
random: good seed from bootblocks
mainbus0 at root: Raspberry Pi 4 Model B Rev 1.2
cpu0 at mainbus0 mpidr 0: ARM Cortex-A72 r0p3
cpu0: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1
D-cache
cpu0: 1024KB 64b/line 16-way L2 cache
cpu0: CRC32,ASID16
cpu1 at mainbus0 mpidr 1: ARM Cortex-A72 r0p3
cpu1: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1
D-cache
cpu1: 1024KB 64b/line 16-way L2 cache
cpu1: CRC32,ASID16
cpu2 at mainbus0 mpidr 2: ARM Cortex-A72 r0p3
cpu2: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1
D-cache
cpu2: 1024KB 64b/line 16-way L2 cache
cpu2: CRC32,ASID16
cpu3 at mainbus0 mpidr 3: ARM Cortex-A72 r0p3
cpu3: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1
D-cache
cpu3: 1024KB 64b/line 16-way L2 cache
cpu3: CRC32,ASID16
efi0 at mainbus0: UEFI 2.8
efi0: Das U-Boot rev 0x20210100
apm0 at mainbus0
simplefb0 at mainbus0: 1824x984, 32bpp
wsdisplay0 at simplefb0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"hat" at mainbus0 not configured
"system" at mainbus0 not configured
"axi" at mainbus0 not configured
simplebus0 at mainbus0: "soc"
bcmclock0 at simplebus0
bcmmbox0 at simplebus0
bcmgpio0 at simplebus0
bcmaux0 at simplebus0
ampintc0 at simplebus0 nirq 256, ncpu 4 ipi: 0, 1:
"interrupt-controller"
bcmtmon0 at simplebus0
bcmdmac0 at simplebus0: DMA0 DMA2 DMA4 DMA5 DMA6 DMA7 DMA8 DMA9
"timer" at simplebus0 not configured
bcmirng0 at simplebus0
pluart0 at simplebus0
"local_intc" at simplebus0 not configured
bcmdog0 at simplebus0
simplebus1 at simplebus0: "firmware"
"clocks" at simplebus1 not configured
"gpio" at simplebus1 not configured
"power" at simplebus0 not configured
"mailbox" at simplebus0 not configured
sdhc0 at simplebus0
sdhc0: SDHC 3.0, 250 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed
"gpiomem" at simplebus0 not configured
"fb" at simplebus0 not configured
"vcsm" at simplebus0 not configured
"clocks" at mainbus0 not configured
"phy" at mainbus0 not configured
simplebus2 at mainbus0: "emmc2bus"
sdhc1 at simplebus2
sdhc1: SDHC 3.0, 100 MHz base clock
sdmmc1 at sdhc1: 8-bit, sd high-speed, mmc high-speed, ddr52, dma
"arm-pmu" at mainbus0 not configured
agtimer0 at mainbus0: 54000 kHz
simplebus3 at mainbus0: "scb"
bcmpcie0 at simplebus3
pci0 at bcmpcie0
ppb0 at pci0 dev 0 function 0 "Broadcom BCM2711" rev 0x10
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
bse0 at simplebus3: address dc:a6:32:ac:ec:1f
brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2
"dma" at simplebus3 not configured
"hevc-decoder" at simplebus3 not configured
"rpivid-local-intc" at simplebus3 not configured
"h264-decoder" at simplebus3 not configured
"vp9-decoder" at simplebus3 not configured
"leds" at mainbus0 not configured
"sd_io_1v8_reg" at mainbus0 not configured
"fixedregulator_3v3" at mainbus0 not configured
"fixedregulator_5v0" at mainbus0 not configured
simplebus4 at mainbus0: "v3dbus"
"clk-108M" at mainbus0 not configured
"sd_vcc_reg" at mainbus0 not configured
"bootloader" at mainbus0 not configured
sdmmc1: can't enable card
uhub1 at uhub0 port 1 configuration 1 interface 0 "VIA Labs USB2.0 Hub"
rev 2.10/4.21 addr 2
bwfm0 at sdmmc0 function 1
manufacturer 0x02d0, product 0xa9a6 at sdmmc0 function 2 not configured
manufacturer 0x02d0, product 0xa9a6 at sdmmc0 function 3 not configured
umass0 at uhub1 port 3 configuration 1 interface 0 "Lexar USB Flash
Drive" rev 2.00/11.00 addr 3
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Lexar, USB Flash Drive, 1100> removable
serial.05dca81d4TAFV7FKB2K8
sd0: 15263MB, 512 bytes/sector, 31258624 sectors
umass1 at uhub0 port 3 configuration 1 interface 0 "SanDisk Ultra USB
3.0" rev 3.20/1.00 addr 4
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <SanDisk, Ultra USB 3.0, 1.00> removable
serial.078155918107baa6b336
sd1: 117360MB, 512 bytes/sector, 240353280 sectors
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd1a (f87bcb6e2c14a4d4.a) swap on sd1b dump on sd1b
WARNING: CHECK AND RESET THE DATE!
gpio0 at bcmgpio0: 58 pins
bwfm0: address dc:a6:32:ac:ec:20
uhidev0 at uhub1 port 4 configuration 1 interface 0 "OBINS OBINS
AnnePro2" rev 2.00/1.00 addr 5
uhidev0: iclass 3/1
ukbd0 at uhidev0: 128 variable keys, 6 key codes, country code 33
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub1 port 4 configuration 1 interface 1 "OBINS OBINS
AnnePro2" rev 2.00/1.00 addr 5
uhidev1: iclass 3/0
uhid0 at uhidev1: input=64, output=64, feature=0
uhidev2 at uhub1 port 4 configuration 1 interface 2 "OBINS OBINS
AnnePro2" rev 2.00/1.00 addr 5
uhidev2: iclass 3/0
uhid1 at uhidev2: input=4, output=0, feature=0
uhidev3 at uhub1 port 4 configuration 1 interface 3 "OBINS OBINS
AnnePro2" rev 2.00/1.00 addr 5
uhidev3: iclass 3/0
ujoy0 at uhidev3: input=8, output=0, feature=0
Any suggestions of how to troubleshoot this would be very much
appreciated.
Thank you for your help.
I've installed OpenBSD 6.9 on my Raspberry Pi 4B and can connect to wifi
networks, but I cannot send/receive any data.
I installed by dd'ing install69.img to SD card, booting from SD card and
installing the root system onto a USB stick. I copied over
bwfm-firmware-20200316.1.2p2.tgz on separate USB and installed the
firmware with fw_update.
The RPi4 now boots fine into multi-user OpenBSD. I can connect to a wifi
network and obtain a DHCP lease. I can see via the router web UI (using
another machine) that the RPi4 is connected with an IP address. However
I cannot sent/receive data, e.g.
$ pkg_add -u
# long wait... nothing...
^Cpkg_add: Caught SIGINT
$ ping example.com
# long wait... nothing...
^C
$ ping 192.168.8.1 # <- router IP
PING 192.168.8.1 (192.168.8.1): 56 data bytes
# long wait... again nothing
^C
--- 192.168.8.1 ping statistics ---
21 packets transmitted, 0 packegs received, 100.0% packet loss
I don't think it's an issue with the router because I've also tried
setting up an ad-hoc network between my Mac and the RPi4. I can join
this network, but attempting to ssh ***@xxx.xxx.xxx.xxx results in the
same apparent lack of sending/receiving any data.
I don't think it is faulty hardware because I've also tried the above
with a urtwn-compatible USB wifi dongle (having installed the firmware)
with the same results. Also the hardware had previously worked with wifi
on an Alpine Linux installation.
Possibly pertinent info:
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
index 3 priority 0 llprio 3
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
bse0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
lladdr dc:a6:32:ac:ec:1f
index 1 priority 0 llprio 3
media: Ethernet autoselect (none)
status: no carrier
enc0: flags=0<>
index 2 priority 0 llprio 3
groups: enc
status: active
bwfm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr dc:a6:32:ac:ec:20
index 4 priority 4 llprio 3
groups: wlan egress
media: IEEE802.11 autoselect (HT-MCS7 mode 11n)
status: active
ieee80211: nwid Leonardo chan 11 bssid e0:f4:42:3f:95:87 -36dBm wpakey
wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
inet 192.168.8.101 netmask 0xffffff00 broadcast 192.168.8.255
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
index 5 priority 0 llprio 3
groups: pflog
$ rcctl ls on
apmd
check_quotas
cron
dhcpleased
library_aslr
ntpd
pf
pflogd
resolvd
slaacd
smtpd
sndiod
syslogd
$ cat /etc/pf.conf
# $OpenBSD: pf.conf,v 1.55 2017/12/03 20:40:04 sthen Exp $
#
# See pf.conf(5) and /etc/examples/pf.conf
set skip on lo
block return # block stateless traffic
pass # establish keep-state
# By default, do not permit remote connections to X11
block return in on ! lo0 proto tcp to port 6000:6010
# Port build user does not need network
block return out log proto {tcp udp} user _pbuild
$ cat /etc/resolv.conf
# resolvd: serial 3332957641
nameserver 192.168.8.1 # resolvd: bwfm0
# Generated by bwfm0 dhclient
nameserver 192.168.8.1
lookup file bind
$ cat /etc/hostname.bwfm0
nwid Leonardo wpakey *REDACTED*
dhcp
$ dmesg
OpenBSD 6.9 (GENERIC.MP) #1134: Sun Apr 18 01:53:35 MDT 2021
***@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem = 4110094336 (3919MB)
avail mem = 3951370240 (3768MB)
random: good seed from bootblocks
mainbus0 at root: Raspberry Pi 4 Model B Rev 1.2
cpu0 at mainbus0 mpidr 0: ARM Cortex-A72 r0p3
cpu0: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1
D-cache
cpu0: 1024KB 64b/line 16-way L2 cache
cpu0: CRC32,ASID16
cpu1 at mainbus0 mpidr 1: ARM Cortex-A72 r0p3
cpu1: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1
D-cache
cpu1: 1024KB 64b/line 16-way L2 cache
cpu1: CRC32,ASID16
cpu2 at mainbus0 mpidr 2: ARM Cortex-A72 r0p3
cpu2: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1
D-cache
cpu2: 1024KB 64b/line 16-way L2 cache
cpu2: CRC32,ASID16
cpu3 at mainbus0 mpidr 3: ARM Cortex-A72 r0p3
cpu3: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1
D-cache
cpu3: 1024KB 64b/line 16-way L2 cache
cpu3: CRC32,ASID16
efi0 at mainbus0: UEFI 2.8
efi0: Das U-Boot rev 0x20210100
apm0 at mainbus0
simplefb0 at mainbus0: 1824x984, 32bpp
wsdisplay0 at simplefb0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"hat" at mainbus0 not configured
"system" at mainbus0 not configured
"axi" at mainbus0 not configured
simplebus0 at mainbus0: "soc"
bcmclock0 at simplebus0
bcmmbox0 at simplebus0
bcmgpio0 at simplebus0
bcmaux0 at simplebus0
ampintc0 at simplebus0 nirq 256, ncpu 4 ipi: 0, 1:
"interrupt-controller"
bcmtmon0 at simplebus0
bcmdmac0 at simplebus0: DMA0 DMA2 DMA4 DMA5 DMA6 DMA7 DMA8 DMA9
"timer" at simplebus0 not configured
bcmirng0 at simplebus0
pluart0 at simplebus0
"local_intc" at simplebus0 not configured
bcmdog0 at simplebus0
simplebus1 at simplebus0: "firmware"
"clocks" at simplebus1 not configured
"gpio" at simplebus1 not configured
"power" at simplebus0 not configured
"mailbox" at simplebus0 not configured
sdhc0 at simplebus0
sdhc0: SDHC 3.0, 250 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed
"gpiomem" at simplebus0 not configured
"fb" at simplebus0 not configured
"vcsm" at simplebus0 not configured
"clocks" at mainbus0 not configured
"phy" at mainbus0 not configured
simplebus2 at mainbus0: "emmc2bus"
sdhc1 at simplebus2
sdhc1: SDHC 3.0, 100 MHz base clock
sdmmc1 at sdhc1: 8-bit, sd high-speed, mmc high-speed, ddr52, dma
"arm-pmu" at mainbus0 not configured
agtimer0 at mainbus0: 54000 kHz
simplebus3 at mainbus0: "scb"
bcmpcie0 at simplebus3
pci0 at bcmpcie0
ppb0 at pci0 dev 0 function 0 "Broadcom BCM2711" rev 0x10
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
bse0 at simplebus3: address dc:a6:32:ac:ec:1f
brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2
"dma" at simplebus3 not configured
"hevc-decoder" at simplebus3 not configured
"rpivid-local-intc" at simplebus3 not configured
"h264-decoder" at simplebus3 not configured
"vp9-decoder" at simplebus3 not configured
"leds" at mainbus0 not configured
"sd_io_1v8_reg" at mainbus0 not configured
"fixedregulator_3v3" at mainbus0 not configured
"fixedregulator_5v0" at mainbus0 not configured
simplebus4 at mainbus0: "v3dbus"
"clk-108M" at mainbus0 not configured
"sd_vcc_reg" at mainbus0 not configured
"bootloader" at mainbus0 not configured
sdmmc1: can't enable card
uhub1 at uhub0 port 1 configuration 1 interface 0 "VIA Labs USB2.0 Hub"
rev 2.10/4.21 addr 2
bwfm0 at sdmmc0 function 1
manufacturer 0x02d0, product 0xa9a6 at sdmmc0 function 2 not configured
manufacturer 0x02d0, product 0xa9a6 at sdmmc0 function 3 not configured
umass0 at uhub1 port 3 configuration 1 interface 0 "Lexar USB Flash
Drive" rev 2.00/11.00 addr 3
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Lexar, USB Flash Drive, 1100> removable
serial.05dca81d4TAFV7FKB2K8
sd0: 15263MB, 512 bytes/sector, 31258624 sectors
umass1 at uhub0 port 3 configuration 1 interface 0 "SanDisk Ultra USB
3.0" rev 3.20/1.00 addr 4
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <SanDisk, Ultra USB 3.0, 1.00> removable
serial.078155918107baa6b336
sd1: 117360MB, 512 bytes/sector, 240353280 sectors
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd1a (f87bcb6e2c14a4d4.a) swap on sd1b dump on sd1b
WARNING: CHECK AND RESET THE DATE!
gpio0 at bcmgpio0: 58 pins
bwfm0: address dc:a6:32:ac:ec:20
uhidev0 at uhub1 port 4 configuration 1 interface 0 "OBINS OBINS
AnnePro2" rev 2.00/1.00 addr 5
uhidev0: iclass 3/1
ukbd0 at uhidev0: 128 variable keys, 6 key codes, country code 33
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub1 port 4 configuration 1 interface 1 "OBINS OBINS
AnnePro2" rev 2.00/1.00 addr 5
uhidev1: iclass 3/0
uhid0 at uhidev1: input=64, output=64, feature=0
uhidev2 at uhub1 port 4 configuration 1 interface 2 "OBINS OBINS
AnnePro2" rev 2.00/1.00 addr 5
uhidev2: iclass 3/0
uhid1 at uhidev2: input=4, output=0, feature=0
uhidev3 at uhub1 port 4 configuration 1 interface 3 "OBINS OBINS
AnnePro2" rev 2.00/1.00 addr 5
uhidev3: iclass 3/0
ujoy0 at uhidev3: input=8, output=0, feature=0
Any suggestions of how to troubleshoot this would be very much
appreciated.
Thank you for your help.
--
Paul W. Rankin
https://bydasein.com
The single best thing you can do for the world is delete your social
media accounts.
Paul W. Rankin
https://bydasein.com
The single best thing you can do for the world is delete your social
media accounts.