Re: Raspberry Pi 3B USB input devices are not working

2020-08-09 Thread Archimedes Gaviola
On Sun, Aug 9, 2020 at 2:23 PM Archimedes Gaviola <
archimedes.gavi...@gmail.com> wrote:

> Hi Stuart,
>>
>> I am able to re-compile the kernel with this "option USB_DEBUG" however
>> it's still the same USB dmesg output. I am looking at some knobs in the
>> sysctl but do not have any tunables pertaining to USB.
>>
>> Sharing the behavior of my A4Tech KL-5 mini keyboard (20mA) , the one
>> that works, I just observe sometimes when switching from the default X
>> Window to a tty console. It will be disconnected from  wsdisplay0 and
>> detached from wskbd0,  ukbd0,  uhidev0,  uhid0, uhid1? The same is true
>> with my USB barcode scanner (though at the moment this device is only
>> detected and powered-up) when I scan some barcode over an item though it
>> fails to reflect scanned numeric codes in the tty console but the
>> observation is the same with the keyboard. Any hint or clue pertaining this
>> behavior? By the way, the barcode scanner behaves the same with the numeric
>> keypad extension of a keyboard that when you type series of numbers it will
>> reflect in the console.
>>
>> 1. A4Tech USB keyboard (dmesg output)
>>
>> uhidev0 at uhub1 port 3 configuration 1 interface 0 "USB Adapter USB
>> Device" rev 1.10/0.01 addr 4
>> uhidev0: iclass 3/1
>> ukbd0 at uhidev0: 8 variable keys, 6 key codes
>> wskbd0 at ukbd0 mux 1
>> wskbd0: connecting to wsdisplay0
>> uhidev1 at uhub1 port 2 configuration 1 interface 0 "SIGMACHIP USB
>> Keyboard" rev 1.10/1.10 addr 5
>> uhidev1: iclass 3/1
>> ukbd1 at uhidev1: 8 variable keys, 6 key codes
>> wskbd1 at ukbd1 mux 1
>> wskbd1: connecting to wsdisplay0
>> uhidev2 at uhub1 port 2 configuration 1 interface 1 "SIGMACHIP USB
>> Keyboard" rev 1.10/1.10 addr 5
>> uhidev2: iclass 3/0, 2 report ids
>> uhid0 at uhidev2 reportid 1: input=2, output=0, feature=0
>> uhid1 at uhidev2 reportid 2: input=1, output=0, feature=0
>> wskbd1: disconnecting from wsdisplay0
>> wskbd1 detached
>> ukbd1 detached
>> uhidev1 detached
>> uhid0 detached
>> uhid1 detached
>> uhidev2 detached
>> uhidev1 at uhub1 port 2 configuration 1 interface 0 "SIGMACHIP USB
>> Keyboard" rev 1.10/1.10 addr 5
>> uhidev1: iclass 3/1
>> ukbd1 at uhidev1: 8 variable keys, 6 key codes
>> wskbd1 at ukbd1 mux 1
>> wskbd1: connecting to wsdisplay0
>> uhidev2 at uhub1 port 2 configuration 1 interface 1 "SIGMACHIP USB
>> Keyboard" rev 1.10/1.10 addr 5
>> uhidev2: iclass 3/0, 2 report ids
>> uhid0 at uhidev2 reportid 1: input=2, output=0, feature=0
>> uhid1 at uhidev2 reportid 2: input=1, output=0, feature=0
>>
>> 2. USB barcode scanner (dmesg output)
>>
>> uhidev0 at uhub1 port 3 configuration 1 interface 0 "USB Adapter USB
>> Device" rev 1.10/0.01 addr 4
>> uhidev0: iclass 3/1
>> ukbd0 at uhidev0: 8 variable keys, 6 key codes
>> wskbd0 at ukbd0 mux 1
>> wskbd0: connecting to wsdisplay0
>> wskbd0: disconnecting from wsdisplay0
>> wskbd0 detached
>> ukbd0 detached
>> uhidev0 detached
>> uhidev0 at uhub1 port 3 configuration 1 interface 0 "USB Adapter USB
>> Device" rev 1.10/0.01 addr 4
>> uhidev0: iclass 3/1
>> ukbd0 at uhidev0: 8 variable keys, 6 key codes
>> wskbd0 at ukbd0 mux 1
>> wskbd0: connecting to wsdisplay0
>>
>> Thanks  and best regards,
>> Archimedes
>>
>
> Hi All,
>
> Sharing with you a comparison between a 6.7-i386-release and
> 6.7-arm64-current with USB barcode scanner behavior.
>
> /* OpenBSD 6.7-i386-release with USB barcode scanner device */
>
> Attaching the USB barcode scanner.
>
> uhidev2 at uhub0 port 6 configuration 1 interface 0 "USB Adapter USB
> Device" rev 1.10/0.01 addr 2
> uhidev2: iclass 3/1
> ukbd1 at uhidev2: 8 variable keys, 6 key codes
> wskbd2 at ukbd1 mux 1
> wskbd2: connecting to wsdisplay0
>
> When scanning a barcode, no disconnection and the scanned barcode will
> display in the TTY console.
> Scanning is successful.
>
> /* OpenBSD 6.7-current amr64 with USB barcode scanner device */
>
> Attaching the USB barcode scanner.
>
> uhidev0 at uhub1 port 4 configuration 1 interface 0 "USB Adapter USB
> Device" rev 1.10/0.01 addr 4
> uhidev0: iclass 3/1
> ukbd0 at uhidev0: 8 variable keys, 6 key codes
> wskbd0 at ukbd0 mux 1
> wskbd0: connecting to wsdisplay0
>
> When scanning a barcode, it will be disconnected and no display in the TTY
> console.
> Scanning is not successful and the device will initiate connection.
>
> wskbd0: disconnecting from wsdisplay0
> wskbd0 detached
> ukbd0 detached
> uhidev0 detached
>
> uhidev0 at uhub1 port 4 configuration 1 interface 0 "USB Adapter USB
> Device" rev 1.10/0.01 addr 4
> uhidev0: iclass 3/1
> ukbd0 at uhidev0: 8 variable keys, 6 key codes
> wskbd0 at ukbd0 mux 1
> wskbd0: connecting to wsdisplay0
>
> From here I need to figure-out why wsdiplay triggers disconnection or
> perhaps any other reasons for this?
>
> Thanks and best regards,
> Archimedes
>
>
Okay here, in the dmesg I found that wsdisplay0 is pointing to simplefb0.
Do I need to make changes in the config.txt or DTB or add DTBO files? How
should I properly enable this simplefb0?

simplefb0 at

Re: 6.7 arm64 on Raspberry Pi 4, wifi and usb audio

2020-08-09 Thread Stuart Henderson

Oh, try changing the SD controllers around, again in UEFI config.

--
 Sent from a phone, apologies for poor formatting.
On 9 August 2020 14:56:57 Doug Moss  wrote:


That hint helped, but I'm not quite there.
To be explicit:
By pressing  and getting to the Raspberry Pi 4 UEFI configuration v1.16
 (is that what it is called?)
There was a setting to choose:

 + 


I set that to 
My dmesg is now better: all the "BCM28XX not configured" are gone
New dmesg below.

But, I still don't see bwfm in the dmesg.
If you have some pity on a noob, and know the next step that I am missing 
in order to get

bwfm wifi, I would greatly appreciate it.

Thanks very much

dmesg:
OpenBSD 6.7 (GENERIC.MP) #5: Tue Jul 21 13:15:47 MDT 2020
   r...@syspatch-67-arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem  = 3074015232 (2931MB)
avail mem = 2949476352 (2812MB)
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
efi0 at mainbus0: UEFI 2.7
efi0: https://github.com/pftf/RPi4 rev 0x1
smbios0 at efi0: SMBIOS 3.3.0
smbios0: vendor https://github.com/pftf/RPi4 version "UEFI Firmware v1.16" 
date Jun 18 2020 12:20:53

smbios0: Sony UK Raspberry Pi 4 Model B
apm0 at mainbus0
psci0 at mainbus0: PSCI 1.1, SMCCC 1.2
"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"
syscon0 at simplebus0: "avs-monitor"
"thermal" at syscon0 not configured
bcmdmac0 at simplebus0: DMA0 DMA2 DMA4 DMA5 DMA6 DMA7
"timer" at simplebus0 not configured
bcmirng0 at simplebus0
pluart0 at simplebus0: console
com0 at simplebus0: ns16550, no working fifo
"local_intc" at simplebus0 not configured
bcmdog0 at simplebus0
"clock" at simplebus0 not configured
simplebus1 at simplebus0: "firmware"
"gpio" at simplebus1 not configured
"clocks" 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
"clk-108M" at mainbus0 not configured
"arm-pmu" at mainbus0 not configured
agtimer0 at mainbus0: tick rate 54000 KHz
simplebus2 at mainbus0: "scb"
bcmpcie0 at simplebus2
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 simplebus2: address dc:a6:32:a6:e9:a0
brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2
"dma" at simplebus2 not configured
"hevc-decoder" at simplebus2 not configured
"rpivid-local-intc" at simplebus2 not configured
"h264-decoder" at simplebus2 not configured
"vp9-decoder" at simplebus2 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
simplebus3 at mainbus0: "v3dbus"
simplebus4 at mainbus0: "emmc2bus"
sdhc1 at simplebus4
sdhc1: SDHC 3.0, 100 MHz base clock
sdmmc1 at sdhc1: 8-bit, sd high-speed, mmc high-speed, dma
"sd_vcc_reg" at mainbus0 not configured
simplefb0 at mainbus0: 1920x1080, 32bpp
wsdisplay0 at simplefb0 mux 1
wsdisplay0: screen 0-5 added (std, vt100 emulation)
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
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
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
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

uhub2 at uhub1 port 2 configuration 1 interface 0 "VIA Labs USB 2.0 HUB
" rev 2.00/85.70 addr 3
uhidev0 at uhub2 port 3 configuration 1 interface 0 "Cherry Mikroschalter 
product 0x0011" rev 2.00/1.00 addr 4

uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd0 at ukbd0 mux 1
wskbd0: connecting to wsdisplay0
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0:  removable
sd0: 15193MB, 512 bytes/sector, 31116288 sectors
uhidev1 at uhub2 port 4 configuration 1 interface 0 "Logitech USB Laser 
Mouse" rev 2.00/31.00 addr 5

uhidev1: iclass 3/1
ums0 at uhidev1: 8 buttons, Z and W d

Re: 6.7 arm64 on Raspberry Pi 4, wifi and usb audio

2020-08-09 Thread Doug Moss
That hint helped, but I'm not quite there.
To be explicit:
By pressing  and getting to the Raspberry Pi 4 UEFI configuration v1.16
  (is that what it is called?)
There was a setting to choose:

 + 


I set that to 
My dmesg is now better: all the "BCM28XX not configured" are gone
New dmesg below.

But, I still don't see bwfm in the dmesg.
If you have some pity on a noob, and know the next step that I am missing in 
order to get 
bwfm wifi, I would greatly appreciate it.

Thanks very much

dmesg:
OpenBSD 6.7 (GENERIC.MP) #5: Tue Jul 21 13:15:47 MDT 2020
    
r...@syspatch-67-arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem  = 3074015232 (2931MB)
avail mem = 2949476352 (2812MB)
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
efi0 at mainbus0: UEFI 2.7
efi0: https://github.com/pftf/RPi4 rev 0x1
smbios0 at efi0: SMBIOS 3.3.0
smbios0: vendor https://github.com/pftf/RPi4 version "UEFI Firmware v1.16" date 
Jun 18 2020 12:20:53
smbios0: Sony UK Raspberry Pi 4 Model B
apm0 at mainbus0
psci0 at mainbus0: PSCI 1.1, SMCCC 1.2
"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"
syscon0 at simplebus0: "avs-monitor"
"thermal" at syscon0 not configured
bcmdmac0 at simplebus0: DMA0 DMA2 DMA4 DMA5 DMA6 DMA7
"timer" at simplebus0 not configured
bcmirng0 at simplebus0
pluart0 at simplebus0: console
com0 at simplebus0: ns16550, no working fifo
"local_intc" at simplebus0 not configured
bcmdog0 at simplebus0
"clock" at simplebus0 not configured
simplebus1 at simplebus0: "firmware"
"gpio" at simplebus1 not configured
"clocks" 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
"clk-108M" at mainbus0 not configured
"arm-pmu" at mainbus0 not configured
agtimer0 at mainbus0: tick rate 54000 KHz
simplebus2 at mainbus0: "scb"
bcmpcie0 at simplebus2
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 simplebus2: address dc:a6:32:a6:e9:a0
brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2
"dma" at simplebus2 not configured
"hevc-decoder" at simplebus2 not configured
"rpivid-local-intc" at simplebus2 not configured
"h264-decoder" at simplebus2 not configured
"vp9-decoder" at simplebus2 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
simplebus3 at mainbus0: "v3dbus"
simplebus4 at mainbus0: "emmc2bus"
sdhc1 at simplebus4
sdhc1: SDHC 3.0, 100 MHz base clock
sdmmc1 at sdhc1: 8-bit, sd high-speed, mmc high-speed, dma
"sd_vcc_reg" at mainbus0 not configured
simplefb0 at mainbus0: 1920x1080, 32bpp
wsdisplay0 at simplefb0 mux 1
wsdisplay0: screen 0-5 added (std, vt100 emulation)
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
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
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
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
uhub2 at uhub1 port 2 configuration 1 interface 0 "VIA Labs USB 2.0 HUB
" rev 2.00/85.70 addr 3
uhidev0 at uhub2 port 3 configuration 1 interface 0 "Cherry Mikroschalter 
product 0x0011" rev 2.00/1.00 addr 4
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd0 at ukbd0 mux 1
wskbd0: connecting to wsdisplay0
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0:  removable
sd0: 15193MB, 512 bytes/sector, 31116288 sectors
uhidev1 at uhub2 port 4 configuration 1 interface 0 "Logitech USB Laser Mouse" 
rev 2.00/31.00 addr 5
uhidev1: iclass 3/1
ums0 at uhidev1: 8 buttons, Z and W dir
wsmouse0 at ums0 mux 0
umass0 at uhub0 port 2 configuration 1 interface 0 "SanDisk Ultra Fit" rev 
3.20/1.00 addr 6
umass0: using SCSI over Bulk-Only
scsibus1 at umass

Re: 6.7 arm64 on Raspberry Pi 4, wifi and usb audio

2020-08-09 Thread Stuart Henderson
On 2020/08/09 18:52, Doug Moss wrote:
> In the UEFI (1.16) configuration, I have changed
> from default "ACPI"  to   "ACPI + devicetree"
> from default "Arasan SDHCI"  to  "eMMC2 SDHCI"
> (Is this description 
> https://mail-index.netbsd.org/port-arm/2017/07/30/msg004328.html
> accurate that the eMMC2 uses the sdhost driver, freeing up sdhc for the wifi 
> chip?)
> 
> (I make this explicit to help anyone following this to get the Raspberry Pi4 
> with UEFI to work for openbsd)
> 
> My dmesg looks like it has the bwfm 
> I'm working on seeing if I can get it to connect with my wifi.
> Thanks Stuart for your help.
> 
> 
> Incidentally, the line in the dmesg that
>   bwfm0: failed loadfirmware of file brcmfmac43455-sdio.bin
> Is that a problem?

Yes, the device won't operate until firmware is installed. It wasn't
installed at first boot because the device didn't show up in dmesg.
>From a wired connection, run fw_update.

> I ran syspatch and it did not show any patches to download.
> 
> 
> dmesg now (with ACPI + devicetree) and (eMMC2 SDHCI controller):
> OpenBSD 6.7 (GENERIC.MP) #5: Tue Jul 21 13:15:47 MDT 2020
>     
> r...@syspatch-67-arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
> real mem  = 3078475776 (2935MB)
> avail mem = 2953805824 (2816MB)
> 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
> efi0 at mainbus0: UEFI 2.7
> efi0: https://github.com/pftf/RPi4 rev 0x1
> smbios0 at efi0: SMBIOS 3.3.0
> smbios0: vendor https://github.com/pftf/RPi4 version "UEFI Firmware v1.16" 
> date Jun 18 2020 12:20:53
> smbios0: Sony UK Raspberry Pi 4 Model B
> apm0 at mainbus0
> psci0 at mainbus0: PSCI 1.1, SMCCC 1.2
> "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"
> syscon0 at simplebus0: "avs-monitor"
> "thermal" at syscon0 not configured
> bcmdmac0 at simplebus0: DMA0 DMA2 DMA4 DMA5 DMA6 DMA7
> "timer" at simplebus0 not configured
> bcmirng0 at simplebus0
> pluart0 at simplebus0: console
> com0 at simplebus0: ns16550, no working fifo
> "local_intc" at simplebus0 not configured
> bcmdog0 at simplebus0
> "clock" at simplebus0 not configured
> simplebus1 at simplebus0: "firmware"
> "gpio" at simplebus1 not configured
> "clocks" 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
> "clk-108M" at mainbus0 not configured
> "arm-pmu" at mainbus0 not configured
> agtimer0 at mainbus0: tick rate 54000 KHz
> simplebus2 at mainbus0: "scb"
> bcmpcie0 at simplebus2
> 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 simplebus2: address dc:a6:32:a6:e9:a0
> brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2
> "dma" at simplebus2 not configured
> "hevc-decoder" at simplebus2 not configured
> "rpivid-local-intc" at simplebus2 not configured
> "h264-decoder" at simplebus2 not configured
> "vp9-decoder" at simplebus2 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
> simplebus3 at mainbus0: "v3dbus"
> simplebus4 at mainbus0: "emmc2bus"
> sdhc1 at simplebus4
> sdhc1: SDHC 3.0, 100 MHz base clock
> sdmmc1 at sdhc1: 8-bit, sd high-speed, mmc high-speed, dma
> "sd_vcc_reg" at mainbus0 not configured
> simplefb0 at mainbus0: 1920x1080, 32bpp
> wsdisplay0 at simplefb0 mux 1
> wsdisplay0: screen 0-5 added (std, vt100 emulation)
> 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
> 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
> 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
> scsibus0 at sdmmc1: 2 targets, initiator 0
> sd0 at scsibus0 targ 1 lun 0:  removable
> sd0: 15193MB, 512 bytes/sector, 31116288 sectors
> uhub1 at uhub0 port 1 confi

Re: 6.7 arm64 on Raspberry Pi 4, wifi and usb audio

2020-08-09 Thread Mark Kettenis
> Date: Sun, 9 Aug 2020 18:52:57 + (UTC)
> From: Doug Moss 
> 
> In the UEFI (1.16) configuration, I have changed
> from default "ACPI" to "ACPI + devicetree"
> from default "Arasan SDHCI" to "eMMC2 SDHCI"
> (Is this description
> https://mail-index.netbsd.org/port-arm/2017/07/30/msg004328.html
> accurate that the eMMC2 uses the sdhost driver, freeing up sdhc for
> the wifi chip?)

eMMC2 is new on the rpi4 and uses the sdhc(4) driver, so that
description doesn't apply.  But switching makes the other sdhc(4)
available for the wifi.

> Incidentally, the line in the dmesg that
> bwfm0: failed loadfirmware of file brcmfmac43455-sdio.bin
> Is that a problem?

Run fw_update and reboot.  The wifi should work after that.



Re: 6.7 arm64 on Raspberry Pi 4, wifi and usb audio

2020-08-09 Thread Doug Moss
In the UEFI (1.16) configuration, I have changed
from default "ACPI"  to   "ACPI + devicetree"
from default "Arasan SDHCI"  to  "eMMC2 SDHCI"
(Is this description 
https://mail-index.netbsd.org/port-arm/2017/07/30/msg004328.html
accurate that the eMMC2 uses the sdhost driver, freeing up sdhc for the wifi 
chip?)

(I make this explicit to help anyone following this to get the Raspberry Pi4 
with UEFI to work for openbsd)

My dmesg looks like it has the bwfm 
I'm working on seeing if I can get it to connect with my wifi.
Thanks Stuart for your help.


Incidentally, the line in the dmesg that
  bwfm0: failed loadfirmware of file brcmfmac43455-sdio.bin
Is that a problem?
I ran syspatch and it did not show any patches to download.


dmesg now (with ACPI + devicetree) and (eMMC2 SDHCI controller):
OpenBSD 6.7 (GENERIC.MP) #5: Tue Jul 21 13:15:47 MDT 2020
    
r...@syspatch-67-arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem  = 3078475776 (2935MB)
avail mem = 2953805824 (2816MB)
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
efi0 at mainbus0: UEFI 2.7
efi0: https://github.com/pftf/RPi4 rev 0x1
smbios0 at efi0: SMBIOS 3.3.0
smbios0: vendor https://github.com/pftf/RPi4 version "UEFI Firmware v1.16" date 
Jun 18 2020 12:20:53
smbios0: Sony UK Raspberry Pi 4 Model B
apm0 at mainbus0
psci0 at mainbus0: PSCI 1.1, SMCCC 1.2
"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"
syscon0 at simplebus0: "avs-monitor"
"thermal" at syscon0 not configured
bcmdmac0 at simplebus0: DMA0 DMA2 DMA4 DMA5 DMA6 DMA7
"timer" at simplebus0 not configured
bcmirng0 at simplebus0
pluart0 at simplebus0: console
com0 at simplebus0: ns16550, no working fifo
"local_intc" at simplebus0 not configured
bcmdog0 at simplebus0
"clock" at simplebus0 not configured
simplebus1 at simplebus0: "firmware"
"gpio" at simplebus1 not configured
"clocks" 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
"clk-108M" at mainbus0 not configured
"arm-pmu" at mainbus0 not configured
agtimer0 at mainbus0: tick rate 54000 KHz
simplebus2 at mainbus0: "scb"
bcmpcie0 at simplebus2
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 simplebus2: address dc:a6:32:a6:e9:a0
brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2
"dma" at simplebus2 not configured
"hevc-decoder" at simplebus2 not configured
"rpivid-local-intc" at simplebus2 not configured
"h264-decoder" at simplebus2 not configured
"vp9-decoder" at simplebus2 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
simplebus3 at mainbus0: "v3dbus"
simplebus4 at mainbus0: "emmc2bus"
sdhc1 at simplebus4
sdhc1: SDHC 3.0, 100 MHz base clock
sdmmc1 at sdhc1: 8-bit, sd high-speed, mmc high-speed, dma
"sd_vcc_reg" at mainbus0 not configured
simplefb0 at mainbus0: 1920x1080, 32bpp
wsdisplay0 at simplefb0 mux 1
wsdisplay0: screen 0-5 added (std, vt100 emulation)
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
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
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
scsibus0 at sdmmc1: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0:  removable
sd0: 15193MB, 512 bytes/sector, 31116288 sectors
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 uhub0 port 2 configuration 1 interface 0 "SanDisk Ultra Fit" rev 
3.20/1.00 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0:  removable 

Re: 6.7 arm64 on Raspberry Pi 4, wifi and usb audio

2020-08-09 Thread Doug Moss
On Sunday, August 9, 2020, 5:59:47 PM EDT, Stuart Henderson 
 wrote: 
>On 2020/08/09 18:52, Doug Moss wrote:
>> Incidentally, the line in the dmesg that
>>   bwfm0: failed loadfirmware of file brcmfmac43455-sdio.bin
>> Is that a problem?
>
>Yes, the device won't operate until firmware is installed. It wasn't
>installed at first boot because the device didn't show up in dmesg.
>From a wired connection, run fw_update.

Thanks. onboard bwfm0 works for wifi after running fw_update.
(my mistake in writing syspatch)

many thanks.