I thought I would give openbsd arm64 a try and purchased an orangepi pc2. I followed the INSTALL directions and the install of the system went smoothly. I used the lan connection at 1000Mbps to load the system install packages.
Simple things like top and df worked fine. Then I tried to add a package which resulted in the crash detailed below. Since the kernel on the miniroot seemed to download the installation packages I rebooted to the bsd.sp kernel and tested again with the same results. File systems had to be repaired and it looks like the pkg db was corrupted also. But the crash was very similar. See bsd.sp below. Has anyone have any experiences with the orangepi pc2? The documentation suggests that it is a targeted machine. I noticed that the boot complains about the dtb when booting from power up: Scanning mmc 0:1... Found EFI removable media binary efi/boot/bootaa64.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disks on usb... Is this because there is no longer a dtb on the dos partition after the install recreates the partition? bsd.mp crash oppcsobsd# pkg_add nano quirks-3.83 signed on 2019-01-17T20:44:02Z quirks-3.83: ok nano-3.2:libiconv-1.14p3: ok nano-3.2:gettext-0.19.8.1p3: ok panic: amap_pp_adjref: negative reference count Stopped at panic+0x148: TID PID UID PRFLAGS PFLAGS C PU COMMAND *447051 73332 0 0x1015 0 2K perl db_enter() at panic+0x144 panic() at uvm_unmap_detach+0x7c uvm_unmap_detach() at uvmspace_exec+0x1d0 uvmspace_exec() at sys_execve+0x5a8 sys_execve() at svc_handler+0x264 svc_handler() at do_el0_sync+0x1b0 do_el0_sync() at handle_el0_sync+0x74 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{2}> ddb{2}> ddb{2}> ddb{2}> trace db_enter() at panic+0x144 panic() at uvm_unmap_detach+0x7c uvm_unmap_detach() at uvmspace_exec+0x1d0 uvmspace_exec() at sys_execve+0x5a8 sys_execve() at svc_handler+0x264 svc_handler() at do_el0_sync+0x1b0 do_el0_sync() at handle_el0_sync+0x74 handle_el0_sync() at 0x1859d328e0 address 0x7ffffdd418 is invalid --- trap --- ddb{2}> ps PID TID PPID UID S FLAGS WAIT COMMAND *73332 447051 66123 0 7 0x1015 perl 66123 301648 69755 0 3 0x93 wait perl 69755 400945 48651 0 3 0x10008b pause ksh 48651 495874 1 1000 3 0x10008b pause ksh 35558 423930 1 0 3 0x100098 poll cron 35507 486900 1 99 3 0x100090 poll sndiod 93542 173791 1 110 3 0x100090 poll sndiod 76660 188425 5928 95 3 0x100092 kqread smtpd 24534 223432 5928 103 3 0x100092 kqread smtpd 55986 404358 5928 95 3 0x100092 kqread smtpd 40304 117938 5928 95 3 0x100092 kqread smtpd 43487 257183 5928 95 3 0x100092 kqread smtpd 81531 16489 5928 95 3 0x100092 kqread smtpd 5928 166887 1 0 3 0x100080 kqread smtpd 63142 460171 1 0 3 0x80 select sshd 76618 493288 47025 83 3 0x100092 poll ntpd 47025 467628 71748 83 3 0x100092 poll ntpd 71748 323042 1 0 3 0x100080 poll ntpd 70311 170700 62331 74 3 0x100092 bpf pflogd 62331 318256 1 0 3 0x80 netio pflogd 97516 362922 57122 73 3 0x100090 kqread syslogd 57122 197764 1 0 3 0x100082 netio syslogd 32500 70571 31883 115 3 0x100092 kqread slaacd 70918 419781 31883 115 3 0x100092 kqread slaacd 31883 181933 1 0 3 0x100080 kqread slaacd 20531 497351 0 0 3 0x14200 pgzero zerothread 53695 30102 0 0 3 0x14200 aiodoned aiodoned 69049 52407 0 0 3 0x14200 syncer update 50364 59551 0 0 3 0x14200 cleaner cleaner 90564 514760 0 0 3 0x14200 reaper reaper 82380 94116 0 0 3 0x14200 pgdaemon pagedaemon 84148 309419 0 0 3 0x14200 bored crynlk 85699 195231 0 0 3 0x14200 bored crypto 56966 328136 0 0 7 0x40014200 idle3 87184 510810 0 0 3 0x40014200 idle2 4599 25775 0 0 7 0x40014200 idle1 2911 126482 0 0 3 0x14200 usbtsk usbtask 80146 290413 0 0 3 0x14200 usbatsk usbatsk 49983 41787 0 0 3 0x14200 mmctsk sdmmc0 73044 12145 0 0 3 0x14200 bored softnet 77270 495746 0 0 3 0x14200 bored systqmp 86500 235751 0 0 3 0x14200 bored systq 51546 302611 0 0 3 0x40014200 bored softclock 4874 386030 0 0 7 0x40014200 idle0 88072 347022 0 0 3 0x14200 kmalloc kmthread 1 288377 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{2}> mach ddbcpu 1 Stopped at ampintc_ipi_ddb+0x1c: db_enter() at ampintc_ipi_ddb+0x18 ampintc_ipi_ddb() at handle_el1h_irq+0x6c handle_el1h_irq() at sched_idle+0x224 sched_idle() at proc_trampoline+0x10 ddb{1}> trace db_enter() at ampintc_ipi_ddb+0x18 ampintc_ipi_ddb() at handle_el1h_irq+0x6c handle_el1h_irq() at sched_idle+0x224 sched_idle() at proc_trampoline+0x10 ddb{1}> mach ddbcpu 2 Stopped at panic+0x148: db_enter() at panic+0x144 panic() at uvm_unmap_detach+0x7c uvm_unmap_detach() at uvmspace_exec+0x1d0 uvmspace_exec() at sys_execve+0x5a8 sys_execve() at svc_handler+0x264 svc_handler() at do_el0_sync+0x1b0 do_el0_sync() at handle_el0_sync+0x74 ddb{2}> trace db_enter() at panic+0x144 panic() at uvm_unmap_detach+0x7c uvm_unmap_detach() at uvmspace_exec+0x1d0 uvmspace_exec() at sys_execve+0x5a8 sys_execve() at svc_handler+0x264 svc_handler() at do_el0_sync+0x1b0 do_el0_sync() at handle_el0_sync+0x74 handle_el0_sync() at 0x1859d328e0 address 0x7ffffdd418 is invalid --- trap --- ddb{2}> mach ddbcpu 3 Stopped at ampintc_ipi_ddb+0x1c: db_enter() at ampintc_ipi_ddb+0x18 ampintc_ipi_ddb() at handle_el1h_irq+0x6c handle_el1h_irq() at sched_idle+0x224 sched_idle() at proc_trampoline+0x10 ddb{3}> trace db_enter() at ampintc_ipi_ddb+0x18oppcsobsd ampintc_ipi_ddb() at handle_el1h_irq+0x6c handle_el1h_irq() at sched_idle+0x224 sched_idle() at proc_trampoline+0x10 ddb{3}> mach ddbcpu 0 *** no output and ddb no longer responds bsd.sp oppcsobsd# pkg_add wget quirks-3.83 signed on 2019-01-17T20:44:02Z No pkgname in packing-list for gettext-0.19.8.1p3 quirks-3.83: ok Collision in libiconv-1.14p3: the following files already exist /usr/local/bin/iconv from libiconv-1.14p3 (different checksum) /usr/local/include/iconv.h from libiconv-1.14p3 (different checksum) /usr/local/include/libcharset.h from libiconv-1.14p3 (different checksum) /usr/local/include/localcharset.h from libiconv-1.14p3 (different checksum) /usr/local/lib/charset.alias from libiconv-1.14p3 (different checksum) /usr/local/lib/libcharset.a from libiconv-1.14p3 (different checksum) /usr/local/lib/libcharset.la from libiconv-1.14p3 (different checksum) /usr/local/lib/libcharset.so.1.1 from libiconv-1.14p3 (different checksum) /usr/local/lib/libiconv.a from libiconv-1.14p3 (different checksum) /usr/local/lib/libiconv.la from libiconv-1.14p3 (different checksum) /usr/local/lib/libiconv.so.6.0 from libiconv-1.14p3 (different checksum) /usr/local/man/man1/iconv.1 from libiconv-1.14p3 (different checksum) /usr/local/man/man3/iconv.3 from libiconv-1.14p3 (different checksum) /usr/local/man/man3/iconv_close.3 from libiconv-1.14p3 (different checksum) /usr/local/man/man3/iconv_open.3 from libiconv-1.14p3 (different checksum) /usr/local/man/man3/iconv_open_into.3 from libiconv-1.14p3 (different checksum) /usr/local/man/man3/iconvctl.3 from libiconv-1.14p3 (different checksum) /usr/local/share/doc/libiconv/iconv.1.html from libiconv-1.14p3 (different checksum) /usr/local/share/doc/libiconv/iconv.3.html from libiconv-1.14p3 (different checksum) /usr/local/share/doc/libiconv/iconv_close.3.html from libiconv-1.14p3 (different checksum) /usr/local/share/doc/libiconv/iconv_open.3.html from libiconv-1.14p3 (different checksum) /usr/local/share/doc/libiconv/iconv_open_into.3.html from libiconv-1.14p3 (different checksum) /usr/local/share/doc/libiconv/iconvctl.3.html from libiconv-1.14p3 (different checksum) It seems to be a missing package registration Repair ? [y/N/a] y wget-1.19.5:libiconv-1.14p3 (installing)|***** | 15%panic: amap_pp_adjref: negative reference count Stopped at panic+0x148: TID PID UID PRFLAGS PFLAGS C PU COMMAND *521842 88112 0 0x1015 0 0 perl db_enter() at panic+0x144 panic() at uvm_unmap_detach+0x64 uvm_unmap_detach() at uvmspace_exec+0x1d0 uvmspace_exec() at sys_execve+0x5a8 sys_execve() at svc_handler+0x20c svc_handler() at do_el0_sync+0x17c do_el0_sync() at handle_el0_sync+0x74 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb> trace db_enter() at panic+0x144 panic() at uvm_unmap_detach+0x64 uvm_unmap_detach() at uvmspace_exec+0x1d0 uvmspace_exec() at sys_execve+0x5a8 sys_execve() at svc_handler+0x20c svc_handler() at do_el0_sync+0x17c do_el0_sync() at handle_el0_sync+0x74 handle_el0_sync() at 0x2337329d38 address 0x7ffffb74f8 is invalid --- trap --- ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *88112 521842 78597 0 7 0x1015 perl 78597 458040 89830 0 2 0x13 perl 89830 206285 23938 0 3 0x10008b pause ksh 23938 22210 1 1000 3 0x10008b pause ksh 14882 460327 1 0 3 0x100098 poll cron 85486 10741 1 99 3 0x100090 poll sndiod 85760 521856 1 110 3 0x100090 poll sndiod 55964 331004 76779 95 3 0x100092 kqread smtpd 18575 271679 76779 103 3 0x100092 kqread smtpd 50245 332907 76779 95 3 0x100092 kqread smtpd 57128 284121 76779 95 3 0x100092 kqread smtpd 17067 478610 76779 95 3 0x100092 kqread smtpd 6515 78250 76779 95 3 0x100092 kqread smtpd 76779 324982 1 0 3 0x100080 kqread smtpd 44127 287999 1 0 3 0x80 select sshd 72640 283337 12072 83 3 0x100092 poll ntpd 12072 388328 46170 83 3 0x100092 poll ntpd 46170 11871 1 0 3 0x100080 poll ntpd 96091 437137 21881 74 2 0x100492 pflogd 21881 298776 1 0 3 0x80 netio pflogd 25113 391453 11975 73 3 0x100090 kqread syslogd 11975 77065 1 0 3 0x100082 netio syslogd 60708 293516 24166 115 3 0x100092 kqread slaacd 46579 121101 24166 115 3 0x100092 kqread slaacd 24166 364366 1 0 3 0x100080 kqread slaacd 98077 239107 0 0 2 0x14200 zerothread 82871 12183 0 0 3 0x14200 aiodoned aiodoned 81714 490217 0 0 3 0x14200 syncer update 91949 160279 0 0 3 0x14200 cleaner cleaner 13151 382825 0 0 3 0x14200 reaper reaper 74497 27405 0 0 3 0x14200 pgdaemon pagedaemon 74901 349518 0 0 3 0x14200 bored crynlk 57623 169669 0 0 3 0x14200 bored crypto 89199 204862 0 0 3 0x14200 usbtsk usbtask 26703 302587 0 0 3 0x14200 usbatsk usbatsk 32140 61477 0 0 3 0x14200 mmctsk sdmmc0 63754 488745 0 0 3 0x14200 bored softnet 20364 195848 0 0 3 0x14200 bored systqmp 25109 144889 0 0 3 0x14200 bored systq 25371 422926 0 0 3 0x40014200 bored softclock 45094 81838 0 0 3 0x40014200 idle0 82775 24882 0 0 3 0x14200 kmalloc kmthread 1 19526 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show uvm Current UVM status: pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12 216443 VM pages: 12907 active, 4385 inactive, 0 wired, 159110 free (19886 zer o) min 10% (25) anon, 10% (25) vnode, 5% (12) vtext freemin=7214, free-target=9618, inactive-target=0, wired-max=72147 faults=223955, traps=0, intrs=0, ctxswitch=3008776 fpuswitch=0 softint=88841, syscalls=180282, kmapent=13 fault counts: noram=0, noanon=0, noamap=0, pgwait=0, pgrele=0 ok relocks(total)=14626(14629), anget(retries)=85471(0), amapcopy=88319 neighbor anon/obj pg=7076/74388, gets(lock/unlock)=74338/14629 cases: anon=72850, anoncow=12621, obj=68766, prcopy=5569, przero=64149 daemon and swap counts: woke=0, revs=0, scans=0, obscans=0, anscans=0 busy=0, freed=0, reactivate=0, deactivate=0 pageouts=0, pending=0, nswget=0 nswapdev=1 swpages=263967, swpginuse=0, swpgonly=0 paging=0 kernel pointers: objs(kern)=0xffffff8000b11248 ddb> show bcstats Current Buffer Cache status: numbufs 6896 busymapped 0, delwri 51 kvaslots 2705 avail kva slots 2705 bufpages 27578, dmapages 27578, dirtypages 204 pendingreads 0, pendingwrites 0 highflips 0, highflops 0, dmaflips 0