I'm trying to install OpenBSD 7.4 on an Orange Pi 800. I've followed the instructions here:
https://ftp.openbsd.org/pub/OpenBSD/snapshots/arm64/INSTALL.arm64 Specifically the section under "Install on systems without a supported miniroot." For the DTB file, I used arm64/rockchip/rk3399-orangepi.dtb For the additional steps for RK33xx chips, I didn't see any OrangePi folders that matched the OPI800. I only saw (from the u-boot-aarch64 package): - orangepi_pc2 - orangepi_prime - orangepi_win - orangepi_zero_plus As none of those are RK3399 based, I tried using rock-pi-4-rk3399. I was able to boot my install medium and install OpenBSD successfully on my OPI800's internal eMMC, but several devices do not work: 1. The ethernet device is using the dwge driver, but I cannot get an IPv4 address via DHCP no matter what I try. I think I'm able to get IPv6 address assignments, but ping6 consistently fails with Can't assign requested address 2. The wireless device is not recognized at all. I think the driver should be bwfm as I believe the wireless device is BCM43435, but the man page for bwfm doesn't list BCM43435 as supported (it does list BCM43430, fwiw). 3. The display device is using the rkdrm driver, but I get this error at boot: rkdrm0: no display interface ports configured This is with an external monitor plugged in to the HDMI port. I've only been able to interact with the system using a Serial to USB cable & console. 4. The USB 3.0 ports do not work. The USB 2.0 port does. I suspect this all is caused by my sourcing the idbloader.img and u-boot.its files from rock-pi-4-rk3399, but I'm not sure. I choose that one because there were no OrangePi folders that were RK3399-based: I think they're all AllWinner. Would appreciate any advice y'all have about next steps. ------ Full system startup (includes dmesg): Connected to /dev/cuaU0 (speed 1500000) DDR Version 1.24 20191016 In channel 0 CS = 0 MR0=0x18 MR4=0x1 MR5=0x1 MR8=0x10 MR12=0x72 R14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0x0 channel 1 CS = 0 MR0=0x18 MR4=0x1 MR5=0x1 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0x0 channel 0 training pass! channel 1 training pass! change freq to 416MHz 0,1 Channel 0: LPDDR4,416MHz Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB Channel 1: LPDDR4,416MHz Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB 256B stride channel 0 CS = 0 MR0=0x18 MR4=0x1 MR5=0x1 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0x0 channel 1 CS = 0 MR0=0x18 MR4=0x1 MR5=0x1 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0x0 channel 0 training pass! channel 1 training pass! channel 0, cs 0, advanced training done channel 1, cs 0, advanced training done change freq to 856MHz 1,0 ch 0 ddrconfig = 0x101, ddrsize = 0x40 ch 1 ddrconfig = 0x101, ddrsize = 0x40 pmugrf_os_reg[2] = 0x32C1F2C1, stride = 0xD ddr_set_rate to 328MHZ ddr_set_rate to 666MHZ ddr_set_rate to 928MHZ channel 0, cs 0, advanced training done channel 1, cs 0, advanced training done ddr_set_rate to 416MHZ, ctl_index 0 ddr_set_rate to 856MHZ, ctl_index 1 support 416 856 328 666 928 MHz, current 856MHz OUT Boot1: 2019-03-14, version: 1.19 CPUId = 0x0 ChipType = 0x10, 256 SdmmcInit=2 0 BootCapSize=100000 UserCapSize=59640MB FwPartOffset=2000 , 100000 mmc0:cmd8,20 mmc0:cmd5,20 mmc0:cmd55,20 mmc0:cmd1,20 mmc0:cmd8,20 mmc0:cmd5,20 mmc0:cmd55,20 mmc0:cmd1,20 mmc0:cmd8,20 mmc0:cmd5,20 mmc0:cmd55,20 mmc0:cmd1,20 SdmmcInit=0 1 StorageInit ok = 67974 SecureMode = 0 SecureInit read PBA: 0x4 SecureInit read PBA: 0x404 SecureInit read PBA: 0x804 SecureInit read PBA: 0xc04 SecureInit read PBA: 0x1004 SecureInit read PBA: 0x1404 SecureInit read PBA: 0x1804 SecureInit read PBA: 0x1c04 SecureInit ret = 0, SecureMode = 0 atags_set_bootdev: ret:(0) GPT 0x3380ec0 signature is wrong recovery gpt... GPT 0x3380ec0 signature is wrong recovery gpt fail! LoadTrust Addr:0x4000 No find bl30.bin No find bl32.bin Load uboot, ReadLba = 2000 Load OK, addr=0x200000, size=0xb4798 RunBL31 0x40000 NOTICE: BL31: v1.3(debug):42583b6 NOTICE: BL31: Built : 07:55:13, Oct 15 2019 NOTICE: BL31: Rockchip release version: v1.1 INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3 INFO: Using opteed sec cpu_context! INFO: boot cpu mask: 0 INFO: plat_rockchip_pmu_init(1190): pd status 3e INFO: BL31: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK ERROR: Error initializing runtime service opteed_fast INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x200000 INFO: SPSR = 0x3c9 U-Boot 2020.10-orangepi (Sep 26 2022 - 19:24:14 +0800) Model: OrangePi 800 Keyboard DRAM: 3.9 GiB PMIC: RK808 MMC: mmc@fe320000: 1, sdhci@fe330000: 0 Loading Environment from MMC... *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Model: OrangePi 800 Keyboard Net: eth0: ethernet@fe300000 Hit any key to stop autoboot: 0 Card did not respond to voltage select! switch to partitions #0, OK mmc0(part 0) is current device Scanning mmc 0:1... Found EFI removable media binary efi/boot/bootaa64.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Card did not respond to voltage select! Scanning disk m...@fe320000.blk... Disk m...@fe320000.blk not ready Scanning disk sd...@fe330000.blk... ** Unrecognized filesystem type ** Found 3 disks No EFI system partition BootOrder not defined EFI boot manager: Cannot load any image 219050 bytes read in 46 ms (4.5 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC Booting /efi\boot\bootaa64.efi disks: sd0* >> OpenBSD/arm64 BOOTAA64 1.18 boot> booting sd0a:/bsd: 10662700+2521872+298472+850208 [795591+91+1219896+731407]=0x13b7478 [ using 2747760 bytes of bsd ELF symbol table ] Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2023 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 7.4 (GENERIC.MP) #2273: Tue Oct 10 09:45:06 MDT 2023 dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP real mem = 4105834496 (3915MB) avail mem = 3899711488 (3719MB) random: good seed from bootblocks mainbus0 at root: OrangePi 800 Keyboard psci0 at mainbus0: PSCI 1.0, SYSTEM_SUSPEND efi0 at mainbus0: UEFI 2.8 efi0: Das U-Boot rev 0x20201000 smbios0 at efi0: SMBIOS 3.0 smbios0: vendor U-Boot version "2020.10-orangepi" date 09/26/2022 smbios0: rockchip evb_rk3399 cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4 cpu0: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu0: 512KB 64b/line 16-way L2 cache cpu0: CRC32,SHA2,SHA1,AES+PMULL,ASID16 cpu1 at mainbus0 mpidr 1: ARM Cortex-A53 r0p4 cpu1: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu1: 512KB 64b/line 16-way L2 cache cpu1: CRC32,SHA2,SHA1,AES+PMULL,ASID16 cpu2 at mainbus0 mpidr 2: ARM Cortex-A53 r0p4 cpu2: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu2: 512KB 64b/line 16-way L2 cache cpu2: CRC32,SHA2,SHA1,AES+PMULL,ASID16 cpu3 at mainbus0 mpidr 3: ARM Cortex-A53 r0p4 cpu3: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu3: 512KB 64b/line 16-way L2 cache cpu3: CRC32,SHA2,SHA1,AES+PMULL,ASID16 cpu4 at mainbus0 mpidr 100: ARM Cortex-A72 r0p2 cpu4: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache cpu4: 1024KB 64b/line 16-way L2 cache cpu4: CRC32,SHA2,SHA1,AES+PMULL,ASID16 cpu5 at mainbus0 mpidr 101: ARM Cortex-A72 r0p2 cpu5: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache cpu5: 1024KB 64b/line 16-way L2 cache cpu5: CRC32,SHA2,SHA1,AES+PMULL,ASID16 apm0 at mainbus0 agintc0 at mainbus0 sec shift 3:4 nirq 288 nredist 6 ipi: 0, 1, 2: "interrupt-controller" agintcmsi0 at agintc0 syscon0 at mainbus0: "qos" syscon1 at mainbus0: "qos" syscon2 at mainbus0: "qos" syscon3 at mainbus0: "qos" syscon4 at mainbus0: "qos" syscon5 at mainbus0: "qos" syscon6 at mainbus0: "qos" syscon7 at mainbus0: "qos" syscon8 at mainbus0: "qos" syscon9 at mainbus0: "qos" syscon10 at mainbus0: "qos" syscon11 at mainbus0: "qos" syscon12 at mainbus0: "qos" syscon13 at mainbus0: "qos" syscon14 at mainbus0: "qos" syscon15 at mainbus0: "qos" syscon16 at mainbus0: "qos" syscon17 at mainbus0: "qos" syscon18 at mainbus0: "qos" syscon19 at mainbus0: "qos" syscon20 at mainbus0: "qos" syscon21 at mainbus0: "qos" syscon22 at mainbus0: "qos" syscon23 at mainbus0: "qos" syscon24 at mainbus0: "qos" syscon25 at mainbus0: "power-management" "power-controller" at syscon25 not configured syscon26 at mainbus0: "syscon" rkclock0 at mainbus0 rkclock1 at mainbus0 syscon27 at mainbus0: "syscon" rkemmcphy0 at syscon27 rkpinctrl0 at mainbus0: "pinctrl" rkgpio0 at rkpinctrl0 rkgpio1 at rkpinctrl0 rkgpio2 at rkpinctrl0 rkgpio3 at rkpinctrl0 rkgpio4 at rkpinctrl0 syscon28 at mainbus0: "syscon" syscon29 at mainbus0: "syscon" rkdrm0 at mainbus0 drm0 at rkdrm0 "pmu_a53" at mainbus0 not configured "pmu_a72" at mainbus0 not configured agtimer0 at mainbus0: 24000 kHz "xin24m" at mainbus0 not configured simplebus0 at mainbus0: "bus" "dma-controller" at simplebus0 not configured "dma-controller" at simplebus0 not configured dwge0 at mainbus0: rev 0x35, address a6:2e:ec:29:77:20 ytphy0 at dwge0 phy 0: YT8531 10/100/1000 PHY, rev. 11 dwmmc0 at mainbus0: 50 MHz base clock sdmmc0 at dwmmc0: 4-bit, dma sdhc0 at mainbus0 sdhc0: SDHC 3.00, 200 MHz base clock sdmmc1 at sdhc0: 8-bit, sd high-speed, mmc high-speed, dma ehci0 at mainbus0 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1 ohci0 at mainbus0: version 1.0 ehci1 at mainbus0 usb1 at ehci1: USB revision 2.0 uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1 ohci1 at mainbus0: version 1.0 rkdwusb0 at mainbus0: "usb" rkdwusb1 at mainbus0: "usb" "saradc" at mainbus0 not configured com0 at mainbus0: dw16550, 64 byte fifo com0: console rkiic0 at mainbus0 iic0 at rkiic0 rkpmic0 at iic0 addr 0x1b: RK808 fanpwr0 at iic0 addr 0x40: SYR827, 1.00 VDC fanpwr1 at iic0 addr 0x41: SYR828, 1.00 VDC rkpwm0 at mainbus0 rkpwm1 at mainbus0 "video-codec" at mainbus0 not configured "iommu" at mainbus0 not configured "rga" at mainbus0 not configured "efuse" at mainbus0 not configured "watchdog" at mainbus0 not configured "rktimer" at mainbus0 not configured "iommu" at mainbus0 not configured "iommu" at mainbus0 not configured "opp-table0" at mainbus0 not configured "opp-table1" at mainbus0 not configured "opp-table2" at mainbus0 not configured "vcc5v0-sys" at mainbus0 not configured "vcc_sys" at mainbus0 not configured "vcc3v3-sys" at mainbus0 not configured "vcc-phy-regulator" at mainbus0 not configured "external-gmac-clock" at mainbus0 not configured "binman" at mainbus0 not configured "dfi" at mainbus0 not configured "dmc" at mainbus0 not configured usb2 at ohci0: USB revision 1.0 uhub2 at usb2 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1 usb3 at ohci1: USB revision 1.0 uhub3 at usb3 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1 scsibus0 at sdmmc1: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <Samsung, CUTA42, 0000> removable sd0: 59640MB, 512 bytes/sector, 122142720 sectors uhidev0 at uhub2 port 1 configuration 1 interface 0 "USB Keyboard USB Keyboard" rev 1.10/1.19 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd0 at ukbd0 mux 1 uhidev1 at uhub2 port 1 configuration 1 interface 1 "USB Keyboard USB Keyboard" rev 1.10/1.19 addr 2 uhidev1: iclass 3/0, 2 report ids ukbd1 at uhidev1 reportid 1: 104 variable keys, 0 key codes wskbd1 at ukbd1 mux 1 ucc0 at uhidev1 reportid 2: 2048 usages, 20 keys, array wskbd2 at ucc0 mux 1 uhidev2 at uhub2 port 1 configuration 1 interface 2 "USB Keyboard USB Keyboard" rev 1.10/1.19 addr 2 uhidev2: iclass 3/0 uhid0 at uhidev2: input=64, output=64, feature=8 vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets root on sd0a (905fb269b00c7ca5.a) swap on sd0b dump on sd0b WARNING: bad clock chip time WARNING: CHECK AND RESET THE DATE! rkdrm0: no display interface ports configured Automatic boot in progress: starting file system checks. /dev/sd0a (905fb269b00c7ca5.a): file system is clean; not checking /dev/sd0l (905fb269b00c7ca5.l): file system is clean; not checking /dev/sd0d (905fb269b00c7ca5.d): file system is clean; not checking /dev/sd0f (905fb269b00c7ca5.f): file system is clean; not checking /dev/sd0g (905fb269b00c7ca5.g): file system is clean; not checking /dev/sd0h (905fb269b00c7ca5.h): file system is clean; not checking /dev/sd0k (905fb269b00c7ca5.k): file system is clean; not checking /dev/sd0j (905fb269b00c7ca5.j): file system is clean; not checking /dev/sd0e (905fb269b00c7ca5.e): file system is clean; not checking pf enabled starting network reordering: ld.so libc libcrypto sshd. starting early daemons: syslogd pflogd ntpd. starting RPC daemons:. savecore: no core dump checking quotas: done. clearing /tmp kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd smtpd sndiod. starting local daemons: cron. Tue Oct 10 11:50:20 PDT 2023 OpenBSD/arm64 (nomad.ton618.org) (console) login: root Password: Last login: Tue Oct 10 11:49:38 on console OpenBSD 7.4 (GENERIC.MP) #2273: Tue Oct 10 09:45:06 MDT 2023 Welcome to OpenBSD: The proactively secure Unix-like operating system. Please use the sendbug(1) utility to report bugs in the system. Before reporting a bug, please try to reproduce it with the latest version of the code. With bug reports, please try to ensure that enough information to reproduce the problem is enclosed, and if a known fix for it exists, include that as well. You have new mail. nomad# shutdown -h now Shutdown NOW! shutdown: [pid 54331] nomad# *** FINAL System shutdown message from r...@nomad.ton618.org *** System going down IMMEDIATELY System shutdown time has arrived reorder_kernel: failed -- see /usr/share/relink/kernel/GENERIC.MP/relink.log syncing disks... done The operating system has halted. Please press any key to reboot. [EOT]