Hi all I'm trying to run OpenBSD 6.4 snapshot (20180831) on Orange Pi Zero (Allwinner H2+). First idea was to just netboot it and install on SD card. I tried loading kernel (bsd and bsd.rd) and (I suppose) bootloader(bootarm.efi) but it was not successful. That bootloader won't make any futher TFTP requests (checked on server with tcpdump). >> OpenBSD/armv7 BOOTARM 1.1 open(tftp0a:/etc/boot.conf): Operation not permitted boot>
The other idea was to do in on easy way: Boot from SD card. miniroot-cubie-64.fs was download and patched to use DTB for Orange Pi Zero (copied from Armbian: dtb-4.11.3-sun8i/sun8i-h3-orangepi-zeroplus.dtb). It is dd-ed to SD card and u-boot from my FreeBSD host is used (u-boot-orangepi-zero-2018.07_2). System boots but it has problems with SD timeouts and installation cannot be performed: ... sdmmc1: can't enable card sximmc0: timeout updating clock sdmmc0: can't change bus clock sdmmc0: mem init failed ... Script for disk partitioning will stuck in loop: ... Use (W)hole disk or (E)dit the MBR? [whole] Creating a msdos partition and an OpenBSD partition for rest of sd0...fdisk: sd0: Input/output error done. disklabel: /dev/rsd0c: Input/output error newfs_msdos: /dev/rsd0i: Input/output error The auto-allocated layout for sd0 is: disklabel: /dev/rsd0c: Input/output error Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] disklabel: /dev/rsd0c: Input/output error MBR has invalid signature; not showing it. Use (W)hole disk or (E)dit the MBR? [whole] Creating a msdos partition and an OpenBSD partition for rest of sd0...fdisk: sd0: Input/output error done. Full serial console logs are attached.
U-Boot SPL 2017.11-00059-gb6251db8c3-dirty (Nov 19 2017 - 15:01:03) DRAM: 512 MiB Trying to boot from sunxi SPI U-Boot 2017.11-00059-gb6251db8c3-dirty (Nov 19 2017 - 15:01:03 +0100) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi Zero DRAM: 512 MiB MMC: SUNXI SD/MMC: 0 MMC: no card present mmc_init: -123, time 2 *** Warning - MMC init failed, using default environment In: serial Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 2 1 0 MMC: no card present mmc_init: -123, time 2 Device 0: device type unknown ... is now current device ** Bad device usb 0 ** ** Bad device usb 0 ** BOOTP broadcast 1 DHCP client bound to address 192.168.2.93 (2 ms) Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/bootarm.efi'. Load address: 0x42000000 Loading: *####### 2.7 MiB/s done Bytes transferred = 89380 (15d24 hex) missing environment variable: pxeuuid Retrieving file: OpenBSD_6.4snap_arm_v7/pxelinux.cfg/01-02-42-9c-bb-49-1d Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/pxelinux.cfg/01-02-42-9c-bb-49-1d'. Load address: 0x43200000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C0A8025D Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C0A8025D'. Load address: 0x43200000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C0A8025 Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C0A8025'. Load address: 0x43200000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C0A802 Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C0A802'. Load address: 0x43200000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C0A80 Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C0A80'. Load address: 0x43200000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C0A8 Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C0A8'. Load address: 0x43200000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C0A Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C0A'. Load address: 0x43200000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C0 Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C0'. Load address: 0x43200000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/pxelinux.cfg/C'. Load address: 0x43200000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: OpenBSD_6.4snap_arm_v7/pxelinux.cfg/default-arm-sunxi Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/pxelinux.cfg/default-arm-sunxi'. Load address: 0x43200000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: OpenBSD_6.4snap_arm_v7/pxelinux.cfg/default-arm Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/pxelinux.cfg/default-arm'. Load address: 0x43200000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: OpenBSD_6.4snap_arm_v7/pxelinux.cfg/default Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/pxelinux.cfg/default'. Load address: 0x43200000 Loading: * TFTP error: 'File not found' (1) Not retrying... Config file not found BOOTP broadcast 1 DHCP client bound to address 192.168.2.93 (5 ms) Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/bootarm.efi'. Load address: 0x43100000 Loading: *####### 3 MiB/s done Bytes transferred = 89380 (15d24 hex) ## Executing script at 43100000 Wrong image format for "source" command BOOTP broadcast 1 DHCP client bound to address 192.168.2.93 (2 ms) Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'OpenBSD_6.4snap_arm_v7/bootarm.efi'. Load address: 0x42000000 Loading: *####### 2.5 MiB/s done Bytes transferred = 89380 (15d24 hex) Using ethernet@1c30000 device TFTP from server 192.168.2.3; our IP address is 192.168.2.93 Filename 'dtb/sun8i-h2-plus-orangepi-zero.dtb'. Load address: 0x43000000 Loading: *# 1 MiB/s done Bytes transferred = 11918 (2e8e hex) ## Starting EFI application at 42000000 ... Scanning disks on usb... Scanning disks on mmc... MMC: no card present mmc_init: -123, time 2 MMC Device 1 not found MMC Device 2 not found MMC Device 3 not found Found 4 disks >> OpenBSD/armv7 BOOTARM 1.1 open(tftp0a:/etc/boot.conf): Operation not permitted boot> booting tftp0a:/bsd: open tftp0a:/bsd: Operation not permitted failed(1). will try /bsd boot> [EOT]
U-Boot SPL 2018.07 (Aug 18 2018 - 04:01:32 +0000) DRAM: 512 MiB Trying to boot from MMC1 U-Boot 2018.07 (Aug 18 2018 - 04:01:32 +0000) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi Zero DRAM: 512 MiB MMC: SUNXI SD/MMC: 0 Loading Environment from FAT... *** Warning - bad CRC, using default environment Failed (-5) In: serial Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 2 1 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found EFI removable media binary efi/boot/bootarm.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC [18tScanning disks on usb... Disk usb0 not ready Disk usb1 not ready Disk usb2 not ready Disk usb3 not ready Scanning disks on mmc... MMC Device 1 not found MMC Device 2 not found MMC Device 3 not found Found 3 disks 89380 bytes read in 7 ms (12.2 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC ## Starting EFI application at 42000000 ... >> OpenBSD/armv7 BOOTARM 1.1 |/-boot> \|/cannot open sd0a:/etc/random.seed: No such file or directory booting sd0a:/bsd: -\|/ EHCI failed to shut down host controller. OpenBSD/armv7 booting ... arg0 0xc0ec0770 arg1 0x0 arg2 0x47ffb000 Allocating page tables freestart = 0x40ec1000, free_pages = 127295 (0x0001f13f) IRQ stack: p0x40eef000 v0xc0eef000 ABT stack: p0x40ef0000 v0xc0ef0000 UND stack: p0x40ef1000 v0xc0ef1000 SVC stack: p0x40ef2000 v0xc0ef2000 Creating L1 page table at 0x40ec4000 Mapping kernel Constructing L2 page tables undefined page pmap board type: 0 Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2018 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 6.4-beta (RAMDISK) #43: Fri Aug 31 13:58:15 MDT 2018 dera...@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/RAMDISK real mem = 536870912 (512MB) avail mem = 510828544 (487MB) mainbus0 at root: Xunlong Orange Pi Zero cpu0 at mainbus0: ARM Cortex-A7 r0p5 (ARMv7) cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled cpu0: 32KB(32b/l,2way) I-cache, 32KB(64b/l,4way) wr-back D-cache cortex0 at mainbus0 agtimer0 at mainbus0: tick rate 24000 KHz simplebus0 at mainbus0: "soc" syscon0 at simplebus0: "syscon" sxiccmu0 at simplebus0 sxipio0 at simplebus0: 94 pins ampintc0 at simplebus0 nirq 160, ncpu 4: "interrupt-controller" sxipio1 at simplebus0: 12 pins sximmc0 at simplebus0 sdmmc0 at sximmc0: 4-bit, sd high-speed, mmc high-speed, dma sximmc1 at simplebus0 sdmmc1 at sximmc1: 4-bit, sd high-speed, mmc high-speed, dma ehci0 at simplebus0 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 sxidog0 at simplebus0 com0 at simplebus0: ns16550, no working fifo com0: console dwxe0 at simplebus0: address 02:42:9c:bb:49:1d ukphy0 at dwxe0 phy 1: Generic IEEE 802.3u media interface, rev. 0: OUI 0x001105, model 0x0000 sxirtc0 at simplebus0 gpio0 at sxipio0: 32 pins gpio1 at sxipio0: 32 pins gpio2 at sxipio0: 32 pins gpio3 at sxipio0: 32 pins gpio4 at sxipio0: 32 pins gpio5 at sxipio0: 32 pins gpio6 at sxipio0: 32 pins gpio7 at sxipio1: 32 pins sdmmc1: can't enable card sximmc0: timeout updating clock sdmmc0: can't change bus clock sdmmc0: mem init failed scsibus0 at sdmmc0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <SD/MMC, SC16G, 0080> SCSI2 0/direct removable sd0: 15193MB, 512 bytes/sector, 31116288 sectors softraid0 at root scsibus1 at softraid0: 256 targets bootfile: sd0a:/bsd boot device: sd0 root on rd0a swap on rd0b dump on rd0b WARNING: clock gained 5601 days WARNING: CHECK AND RESET THE DATE! erase ^?, werase ^W, kill ^U, intr ^C, status ^T Welcome to the OpenBSD/armv7 6.4 installation program. (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? i At any prompt except password prompts you can escape to a shell by typing '!'. Default answers are shown in []'s and are selected by pressing RETURN. You can exit this program at any time by pressing Control-C, but this can leave your system in an inconsistent state. Terminal type? [vt220] System hostname? (short form, e.g. 'foo') host Available network interfaces are: dwxe0 vlan0. Which network interface do you wish to configure? (or 'done') [dwxe0] IPv4 address for dwxe0? (or 'dhcp' or 'none') [dhcp] dwxe0: bound to 192.168.2.93 from 192.168.2.3 (f0:de:f1:7a:38:4e) IPv6 address for dwxe0? (or 'autoconf' or 'none') [none] Available network interfaces are: dwxe0 vlan0. Which network interface do you wish to configure? (or 'done') [done] Using DNS domainname innovator.org Using DNS nameservers at 1.1.1.1 Password for root account? (will not echo) Password for root account? (again) Start sshd(8) by default? [yes] Setup a user? (enter a lower-case loginname, or 'no') [no] Since no user was setup, root logins via sshd(8) might be useful. WARNING: root is targeted by password guessing attacks, pubkeys are safer. Allow root ssh login? (yes, no, prohibit-password) [no] Available disks are: sd0. Which disk is the root disk? ('?' for details) [sd0] MBR has invalid signature; not showing it. Use (W)hole disk or (E)dit the MBR? [whole] Creating a msdos partition and an OpenBSD partition for rest of sd0...fdisk: sd0: Input/output error done. disklabel: /dev/rsd0c: Input/output error newfs_msdos: /dev/rsd0i: Input/output error The auto-allocated layout for sd0 is: disklabel: /dev/rsd0c: Input/output error Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] disklabel: /dev/rsd0c: Input/output error MBR has invalid signature; not showing it. Use (W)hole disk or (E)dit the MBR? [whole] Creating a msdos partition and an OpenBSD partition for rest of sd0...fdisk: sd0: Input/output error done. disklabel: /dev/rsd0c: Input/output error sximmc0: timeout updating clock newfs_msdos: /dev/rsd0i: Input/output error The auto-allocated layout for sd0 is: disklabel: /dev/rsd0c: Input/output error Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] ~ [EOT]