PINE64
OpenBSD 6.9 install - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: BSD on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=115)
+--- Thread: OpenBSD 6.9 install (/showthread.php?tid=13920)

Pages: 1 2


OpenBSD 6.9 install - StickyPine - 05-17-2021

Hello,

I attempted to install OpenBSD 6.9 on the PineBookPro. I essentially followed those steps https://github.com/ndhwyd/roc-rk3399-pc_openbsd and changed rk3399-roc-pc.dtb with rk3399-pinebook-pro.dtb. 

When starting the machine, the booting process halts with the following message:

Code:
bwfm0: failed loadfirmware of file brcmfmac43456-sdio.rockchip,rk3399-evb.bin

(I have the same issue when using rk3399-roc-pc.dtb)

Has anyone experienced something similar or would know how to solve this ?


RE: OpenBSD 6.9 install - mfashby - 06-19-2021

I'm also trying this. I'm starting from manjaro linux. I'm struggling:

Starting with the reasonably simple (but not obvious) instructions https://ftp.openbsd.org/pub/OpenBSD/6.9/arm64/INSTALL.arm64
- Download install69.img from that same folder https://ftp.openbsd.org/pub/OpenBSD/6.9/arm64/install69.img
- Write it to an SD card with dd as per instructions
- find the u-boot package https://ftp.openbsd.org/pub/OpenBSD/6.9/packages/aarch64/u-boot-aarch64-2021.01p1.tgz
- extract it, find the two files idbloader.img and u-boot.itb and use dd to write those to the SD card at the offsets in the instructions.
- reboot, leaving the SD card in so the pinebook tries to boot from it.

No joy, nothing appears. A few lights flash.

Reading a little more of the instructions, it seems like the installer runs over the serial interface. I don't have a headphone serial cable for the PBP, so that's a non starter. Further on in the instructions, it seems that editing /etc/boot.conf will let me output to the video device rather than serial, so  next task is to try that on my installer SD card.

I try to open up the SD card to edit that file, and it fails to open. More reading, I find the file browser seems to be mounting it wrong, I need to have a linux kernel with UFS write support enabled (otherwise the SD card appears read-only) and also specify some additional mount options. Having done that, I added the following to line /etc/boot.conf
```
set tty fb0
```
and the following to /etc/ttys
```
console none vt100 off
```
But still had nothing on the display trying to boot from the card afterwards. Will try adding the /etc/ files to the BOOT partition instead, but I'm just stabbing in the dark.

I might also just buy a headphone serial cable, see if that gets me any further Smile

If I'm successful, I'll post a full instruction here.


RE: OpenBSD 6.9 install - mfashby - 07-03-2021

I received a USB serial adapter today for the pinebook, and tried again. In the meantime, u-boot seems to have updated so it now supports the screen, so I can see stuff happening on the pinebook screen too.

OpenBSD starts to boot, but then hangs on this line 'ochi0 at mainbus0'.

I'll post a full boot log when I can figure out how to get it Smile


RE: OpenBSD 6.9 install - koroglu - 08-31-2021

I'm starting from Gentoo Linux and I wanted to try to follow this guide - https://xosc.org/pinebookpro.html. But I couldn't exactly locate any proper packages and it seems that I would need to build them myself. I haven't found any proper replacement for the dtb package. If anyone could direct me to some prebuilt binaries that would be very helpful.

I tried to build u-boot on my own like in - https://github.com/ndhwyd/roc-rk3399-pc_openbsd, but it's not exactly working as intended and the make script is spitting out some serious errors.

Anyone found a good way to prepare the microSD on Gentoo Linux or Arch Linux? I've been stumped on this step for a long time now.


RE: OpenBSD 6.9 install - wdt - 08-31-2021

I think all these install directions assume an x86 device running *bsd
Linux cannot partition bsd 'slices' as so /dev/rsd2c,, c partition
Also, I never have been able to mount a *bsd filesystem under linux, it is supposed to be possible....
I don't know why a complete image is not supplied.....
If there is something on emmc, that uboot may fail to boot bsd on SD,,
maybe (when you are sure you have a backup bootable SD) copy 1st 16M (emmc), mbr (emmc), and then
blank 1st 16M, restore mbr ( so there is no uboot on emmc), but only if necessary


RE: OpenBSD 6.9 install - KC9UDX - 08-31-2021

You could always run NetBSD on the PBP to prepare partitions, if you can't in linux. (I too have failed to ever read BSD mounts in linux, but frankly didn't try real hard).


RE: OpenBSD 6.9 install - koroglu - 09-02-2021

(08-31-2021, 06:01 PM)KC9UDX Wrote: You could always run NetBSD on the PBP to prepare partitions, if you can't in linux.  (I too have failed to ever read BSD mounts in linux, but frankly didn't try real hard).

Yeah, that seems somewhat viable at this point, since nothing else seems to work. I found this guide https://bentsukun.ch/posts/pinebook-pro-netbsd/ but the link there is dead.

Right now, I'm considering just making an OpenBSD virtual machine and passing through my microSD. I'll post a guide if it actually works somehow.


RE: OpenBSD 6.9 install - tomekb - 09-03-2021

No need to build anything. Download the -current *.img and u-boot + dtb from snapshots and write to SD card with dd as described in the INSTALL.arm64. Keep in mind you need the serial cable for OpenBSD installation as the display doesn’t work on the ram disk kernel yet.


RE: OpenBSD 6.9 install - koroglu - 09-03-2021

(09-03-2021, 01:38 AM)tomekb Wrote: No need to build anything. Download the -current *.img and u-boot + dtb from snapshots and write to SD card with dd as described in the INSTALL.arm64. Keep in mind you need the serial cable for OpenBSD installation as the display doesn’t work on the ram disk kernel yet.

Any idea where to find an up to date version of the above mentioned u-boot + dtb? This is exactly what I'm having trouble with. Links would help.


RE: OpenBSD 6.9 install - tomekb - 09-03-2021

https://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/aarch64/u-boot-aarch64-2021.07p0.tgz
https://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/aarch64/dtb-5.13.tgz