Re: Banana Pi? I have an RPi4 on OpenBSD 6.7

2020-05-20 Thread Oliver Seidel

Hello Stuart,

many thanks for your answer.  Here in germany we have a phrase

"wer Lesen kann ist klar im Vorteil" -- you might benefit if you were 
willing to read the instructions


I had not even known about acpi and device tree mode.  I will read up 
about it and come back to you,


Oliver

On 2020-05-19 22:55, Stuart Henderson wrote:
Oh, did you leave it in acpi mode or switch to device tree?  You'll 
need

some files from https://github.com/raspberrypi/firmware/tree/next/boot
if it's in device tree mode.

From kettenis@:

"A workaround is to take the bcm2711-rpi-4-b.dtb, fixup4.dat and
start4.elf files from

  https://github.com/raspberrypi/firmware/tree/next/boot

and put them on the MS-DOS partition of your uSD card."




Re: Banana Pi? I have an RPi4 on OpenBSD 6.7

2020-05-20 Thread Mark Kettenis
> Date: Wed, 20 May 2020 08:23:53 +0200
> From: Oliver Seidel 
> 
> Hello Stuart,
> 
> many thanks for your answer.  Here in germany we have a phrase
> 
> "wer Lesen kann ist klar im Vorteil" -- you might benefit if you were 
> willing to read the instructions
> 
> I had not even known about acpi and device tree mode.  I will read up 
> about it and come back to you,
> 
> Oliver
> 
> On 2020-05-19 22:55, Stuart Henderson wrote:
> > Oh, did you leave it in acpi mode or switch to device tree?  You'll 
> > need
> > some files from https://github.com/raspberrypi/firmware/tree/next/boot
> > if it's in device tree mode.
> > 
> > From kettenis@:
> > 
> > "A workaround is to take the bcm2711-rpi-4-b.dtb, fixup4.dat and
> > start4.elf files from
> > 
> >   https://github.com/raspberrypi/firmware/tree/next/boot
> > 
> > and put them on the MS-DOS partition of your uSD card."

Note that the latest official release now has the "rgmii-rxid" issue
fixed so you can grab the files from

  https://github.com/raspberrypi/firmware/tree/master/boot

instead.

Maybe we should ask jsg@ to update the firmware package again?



Re: Banana Pi? I have an RPi4 on OpenBSD 6.7

2020-05-20 Thread Stuart Henderson
On 2020/05/20 08:23, Oliver Seidel wrote:
> Hello Stuart,
> 
> many thanks for your answer.  Here in germany we have a phrase
> 
> "wer Lesen kann ist klar im Vorteil" -- you might benefit if you were
> willing to read the instructions
> 
> I had not even known about acpi and device tree mode.  I will read up about
> it and come back to you,

If you didn't know about this setting then I guess it would be in the
default acpi mode (a dmesg would have made this clear) where I haven't
seen any problems anyway.



Re: Banana Pi? I have an RPi4 on OpenBSD 6.7

2020-05-20 Thread Stuart Henderson
On 2020/05/20 09:31, Mark Kettenis wrote:
> Note that the latest official release now has the "rgmii-rxid" issue
> fixed so you can grab the files from
> 
>   https://github.com/raspberrypi/firmware/tree/master/boot
> 
> instead.

I haven't tested on my machine yet but it looks like the UEFI firmware
builds at https://github.com/pftf/RPi4/releases started including a fixed
one in 1.10 (and it changed again in 1.12). So hopefully this is a non-
issue with the newer firmware. Will try to remember to check this later.

> Maybe we should ask jsg@ to update the firmware package again?

I think it makes sense to update, but we aren't using it on RPi4 anyway are we?



RPi4 on OpenBSD 6.7 -- ping times with snapshot version

2020-05-20 Thread Oliver Seidel

Hi,

I have changed the firmware settings to "device tree", installing the 
firmware files suggested in the below post did not work, so that too is 
from the original instructions of the snapshot.


https://www.mail-archive.com/tech@openbsd.org/msg56980.html

The ping has improved 3x (but nowhere near the beagle bone with 0.3ms) 
and now is at:


os1@hexa:/pool/os1$ ping 192.168.180.1
PING 192.168.180.1 (192.168.180.1) 56(84) bytes of data.
64 bytes from 192.168.180.1: icmp_seq=1 ttl=255 time=1079 ms
64 bytes from 192.168.180.1: icmp_seq=2 ttl=255 time=1259 ms
64 bytes from 192.168.180.1: icmp_seq=3 ttl=255 time=1399 ms
64 bytes from 192.168.180.1: icmp_seq=4 ttl=255 time=1169 ms
64 bytes from 192.168.180.1: icmp_seq=5 ttl=255 time=873 ms
64 bytes from 192.168.180.1: icmp_seq=6 ttl=255 time=1215 ms
64 bytes from 192.168.180.1: icmp_seq=7 ttl=255 time=1436 ms
64 bytes from 192.168.180.1: icmp_seq=8 ttl=255 time=1273 ms
64 bytes from 192.168.180.1: icmp_seq=9 ttl=255 time=1581 ms
64 bytes from 192.168.180.1: icmp_seq=10 ttl=255 time=815 ms
64 bytes from 192.168.180.1: icmp_seq=11 ttl=255 time=1224 ms
^C
--- 192.168.180.1 ping statistics ---
12 packets transmitted, 11 received, 8.3% packet loss, time 11076ms
rtt min/avg/max/mdev = 814.591/1211.050/1580.696/217.382 ms, pipe 2



RPi4 OpenBSD 6.7 release version -- slow ping

2020-05-20 Thread Oliver Seidel

Dear All,

I have now moved from the snapshot to the release version.  It is 100x 
faster than the snapshot, but still not where I expected.


Probably I still have not understood what I need to do with AHCI and 
Devicetree.


I will keep trying but for now, please accept my dmesg and the new 
measurement.


Best regards,

OliverOpenBSD 6.7 (GENERIC.MP) #602: Thu May  7 13:45:48 MDT 2020
dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem  = 2002501632 (1909MB)
avail mem = 1910878208 (1822MB)
mainbus0 at root: Raspberry Pi 4 Model B Rev 1.1
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.13" date 
May 13 2020 10:40:33
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"
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
"power" 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
"thermal" at simplebus0 not configured
"clocks" at mainbus0 not configured
"phy" at mainbus0 not configured
"clk-108M" at mainbus0 not configured
"firmware-clocks" 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:32:5d:7b
brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2
"dma" at simplebus2 not configured
"mailbox" 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
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: 3781MB, 512 bytes/sector, 7744512 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 uhub1 port 1 configuration 1 interface 0 "General USB Flash Disk" rev 
2.00/11.00 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0:  removable 
serial.090c1000KL000586
sd1: 3837MB, 512 bytes/sector, 7858176 sectors
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
bootfile: sd0a:/bsd
boot device: sd0
root on sd1a (2d1f2fa8d77f40fe.a) swap on sd1b dump on sd1b
WARNING: / was not properly unmounted
gpio0 at bcmgpio0: 58 pins
bwfm0: address dc:a6:32:32:5d:7c
s1@hexa:/pool/os1$ ping 192.168.180.1
PING 192.168.180.1 (192.168.180.1) 56(84) bytes of data.
64 bytes from 192.168.180.1: icmp_seq=1 ttl=255 time=212 ms
64 bytes from 192.168.180.1: icmp_seq=2 ttl=255 time=16.3 ms
64 bytes from 192.168.180.1: i

RPi4 - networking

2020-05-20 Thread Oliver Seidel

Hello,

so thank you for all the support. I have performed fresh downloads 
again:


bootloader from here: https://github.com/pftf/RPi4/releases/tag/v1.13

I did not get this one to work: 
https://github.com/raspberrypi/firmware/tree/master/boot


I did not get this one to work: 
https://github.com/raspberrypi/firmware/tree/next/boot


Install instructions from here: 
https://ftp.openbsd.org/pub/OpenBSD/6.7/arm64/INSTALL.arm64


I have:
* formatted the SD card, made a 0xc partition, vfat filesystem, 
extracted the v1.13 UEFI files

* installed miniroot67.fs on the stick
* I think I changed the MMC configuration in the bootloader, I did not 
touch device tree/AHCI

* installed OpenBSD 6.7 ARM64
* formatted the SD card, made a 0xc partition, vfat filesystem, 
extracted the v1.13 UEFI files


When I place the device in the connection where my normal firewall sits, 
I get pings of 1000ms (see attachment).  This is 3000x slower than my 
beagle bone black with an old OpenBSD.


 the problem I am trying to solve is slow fixed ethernet 

I provide you with the output of dmesg (see attachment) and of a boot 
capture on the serial port (see attachment).  The boot capture contains 
the output from "ifconfig".


Maybe you can help,

Oliverfw# ping 192.168.180.186
PING 192.168.180.186 (192.168.180.186): 56 data bytes
64 bytes from 192.168.180.186: icmp_seq=0 ttl=64 time=678.260 ms
64 bytes from 192.168.180.186: icmp_seq=1 ttl=64 time=1585.563 ms
64 bytes from 192.168.180.186: icmp_seq=2 ttl=64 time=1189.538 ms
64 bytes from 192.168.180.186: icmp_seq=3 ttl=64 time=1239.649 ms
64 bytes from 192.168.180.186: icmp_seq=4 ttl=64 time=1414.148 ms
64 bytes from 192.168.180.186: icmp_seq=5 ttl=64 time=1286.520 ms
64 bytes from 192.168.180.186: icmp_seq=6 ttl=64 time=1662.260 ms
64 bytes from 192.168.180.186: icmp_seq=7 ttl=64 time=1199.159 ms
64 bytes from 192.168.180.186: icmp_seq=8 ttl=64 time=1474.203 ms
64 bytes from 192.168.180.186: icmp_seq=9 ttl=64 time=1581.503 ms
64 bytes from 192.168.180.186: icmp_seq=10 ttl=64 time=1051.268 ms
64 bytes from 192.168.180.186: icmp_seq=11 ttl=64 time=1158.569 ms
64 bytes from 192.168.180.186: icmp_seq=12 ttl=64 time=1165.194 ms
64 bytes from 192.168.180.186: icmp_seq=13 ttl=64 time=1138.305 ms
64 bytes from 192.168.180.186: icmp_seq=14 ttl=64 time=1010.704 ms
64 bytes from 192.168.180.186: icmp_seq=15 ttl=64 time=1285.797 ms
64 bytes from 192.168.180.186: icmp_seq=16 ttl=64 time=1325.955 ms
^C
--- 192.168.180.186 ping statistics ---
19 packets transmitted, 17 packets received, 10.5% packet loss
round-trip min/avg/max/std-dev = 678.260/1261.564/1662.260/234.370 ms
OpenBSD 6.7 (GENERIC.MP) #602: Thu May  7 13:45:48 MDT 2020
dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem  = 1993908224 (1901MB)
avail mem = 1902596096 (1814MB)
mainbus0 at root: ACPI
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.13" date 
May 13 2020 10:40:33
smbios0: Sony UK Raspberry Pi 4 Model B
apm0 at mainbus0
psci0 at mainbus0: PSCI 1.1, SMCCC 1.2
ampintc0 at mainbus0 nirq 256, ncpu 4 ipi: 0, 1: "interrupt-controller"
agtimer0 at mainbus0: tick rate 54000 KHz
acpi0 at mainbus0: ACPI 6.3
acpi0: sleep states
acpi0: tables DSDT FACP CSRT DBG2 GTDT APIC PPTT SPCR
acpi0: wakeup devices
"BCM2849" at acpi0 not configured
"BCM2835" at acpi0 not configured
"BCM2854" at acpi0 not configured
"ACPI0004" at acpi0 not configured
xhci0 at acpi0 XHC0 addr 0x6/0x1000 irq 175, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 
addr 1
"ACPI0007" at acpi0 not configured
"ACPI0007" at acpi0 not configured
"ACPI0007" at acpi0 not configured
"ACPI0007" at acpi0 not configured
"ACPI0004" at acpi0 not configured
"BCM2848" at acpi0 not configured
"BCM2850" at acpi0 not configured
"BCM2856" at acpi0 not configured
"BCM2845" at acpi0 not configured
"BCM2841" at acpi0 not configured
"BCM2841" at acpi0 not configured
"BCM2838" at acpi0 not configured
"BCM2839" at acpi0 not configured
"BCM2844" at acpi0 not configured
pluart0 at acpi0 URT0 addr 0xfe201000/0x1000 irq 153: console
"BCM2836" at acpi0 not configured
"BCM2EA6" at acpi0 not configured
"MSFT8000" at acpi0 not configured
"BCM2847" at acpi0 not configured
"BCM2855" at acpi0 not configured
bse0 at acpi0 ETH0 addr 0xfd58/0x1 irq 189: address dc:a6:32:32:5d:7b
brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2
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