OpenBSD on Pinebook 1080p?
#1
Has anyone tried OpenBSD on the Pinebook 1080p?  It looks like they support other PINE64 models, but no image is available, just some installation files on their mirror.
Working as a Film Electric and I have been using Linux since around 2002. 
Like to play with Python and Jupyter Lab/Notebooks when not going to the park with my baby girl.
#2
(01-17-2019, 10:10 AM)binholz Wrote: Has anyone tried OpenBSD on the Pinebook 1080p?  It looks like they support other PINE64 models, but no image is available, just some installation files on their mirror.

Check out @astr0baby on twitter, they seem to be doing a lot of work with BSDs on the 11" 1080P Pinebook.
#3
(01-17-2019, 10:10 AM)binholz Wrote: Has anyone tried OpenBSD on the Pinebook 1080p?  It looks like they support other PINE64 models, but no image is available, just some installation files on their mirror.

Hi,
I tried it , was able to install it via serial after fiddling around a while (for instance to find out that I need following call for cu ( cu -l /dev/ttyU0 -s 115200 -d ) if one misses the -d nothing seems to show up ... Next problem was that no network device is enabled after booting openbsd install image.... had to resize the physical size of the image and to add the required pakages... after I managed that I was able to install and reboot. Thats it Undecided
But in the end I did not get it booting. Did not find out up to now how to enable the installed bsd to boot from internal.
Anybody here who found out how to?
#4
(05-24-2019, 07:45 AM)cambridgei Wrote:
(01-17-2019, 10:10 AM)binholz Wrote: Has anyone tried OpenBSD on the Pinebook 1080p?  It looks like they support other PINE64 models, but no image is available, just some installation files on their mirror.

Hi,
I tried it , was able to install it via serial after fiddling around a while (for instance to find out that I need following call for cu ( cu -l /dev/ttyU0 -s 115200 -d ) if one misses the -d nothing seems to show up ... Next problem was that no network device is enabled after booting openbsd install image.... had to resize the physical size of the image and to add the required pakages... after I managed that I was able to install and reboot. Thats it Undecided
But in the end I did not get it booting. Did not find out up to now how to enable the installed bsd to boot from internal.
Anybody here who found out how to?

+1 for this.  Getting this working is rather high on my agenda once the Pro is out.  Can't be any worse than shoehorning OpenBSD netboot via MOP on a MicroVAX...
#5
The new OpenBSD image on the software page works well. I have a Digitus wireless adapter which works well. All I had to do was download and transfer urtwn and extract it to /etc/firmware. Pity it doesn't auto resize on reboot, it will probably take some tweaking to extend /home.
#6
(10-07-2019, 03:00 PM)michaelj Wrote: The new OpenBSD image on the software page works well. I have a Digitus wireless adapter which works well. All I had to do was download and transfer urtwn and extract it to /etc/firmware. Pity it doesn't auto resize on reboot, it will probably take some tweaking to extend /home.

Thank you for testing the image!
#7
Hi all,
does somebody have a manual "step by step" how to install OpenBSD on the Pinebook 1080p?

I read above about using the console "cu -l /dev/ttyU0 -s 115200 -d" but, where exactly? I opened the white laptop but where are the pins to connect the TTL-USB cable on?

Just a photo could help me :-)

thanks in advance.
#8
You don't need to use serial port:
1. get miniroot.fs: https://cdn.openbsd.org/pub/OpenBSD/snapshots/arm64/
2. write image to SD card: dd if=miniroot66.fs of=/dev/rsdXc bs=1m
3. write SPL: dd if=/usr/local/share/u-boot/pinebook/u-boot-sunxi-with-spl.bin of=/dev/sdXc bs=1024 seek=8
(you have to install aarch64 flavor of u-boot port)
4. when boot prompt is shown, type:
boot> set tty fb0
(this will get you working display - you will have to enter it at each boot as long as it's not in boot.conf)
5. proceed with standard installation

Or if you'd like to evaluate OpenBSD just try this image: https://wiki.pine64.org/index.php/1080P_...se#OpenBSD
#9
(11-04-2019, 06:17 PM)elewarr Wrote: You don't need to use serial port:
1. get miniroot.fs: https://cdn.openbsd.org/pub/OpenBSD/snapshots/arm64/
2. write image to SD card: dd if=miniroot66.fs of=/dev/rsdXc bs=1m
3. write SPL: dd if=/usr/local/share/u-boot/pinebook/u-boot-sunxi-with-spl.bin of=/dev/sdXc bs=1024 seek=8
(you have to install aarch64 flavor of u-boot port)
4. when boot prompt is shown, type:
boot> set tty fb0
(this will get you working display - you will have to enter it at each boot as long as it's not in boot.conf)
5. proceed with standard installation

Thanks for these instructions! They were very helpful. The first part is documented in INSTALL.arm64, though it's not very obvious, and the `set tty fb0` part is totally absent since those instructions only really cover single-board computers that they're expecting you to talk to over a serial console, so this helped me get along. And for the record I should say that I have a Pinebook, not a Pinebook Pro, but the instructions seem compatible so far; OpenBSD is really good about having either no support or perfect support for devices after all.

However, I did follow your step 5 and proceeded with the standard installation, installing onto the eMMC (sd1 to OpenBSD) twice, and got nowhere. After finishing the install and rebooting I just get a blank screen.

However cloning my miniroot66.fs-based SD card (sd0) onto the eMMC (sd1) boots successfully:


Code:
Welcome to the OpenBSD/arm64 6.6 installation program
(I)nstall, (U)pgrade, (A)utoinstall, or (S)hell? s
# (cd /dev && sh MAKEDEV sd0)
# (cd /dev && sh MAKEDEV sd1)
# time dd if=/dev/rsd0c of=/dev/rsd1c bs=1m
3781+1 records in
3781+1 records out
3965190144 bytes transferred in 991.097 secs (4000806 bytes/sec)
 16m31.15s real    0m00.00s user    0m14.68s system
# reboot # and take out the SD card


so I don't know what's wrong with the actual install script. Maybe I did something wrong?

The install script (https://raw.githubusercontent.com/openbs...install.md) should be doing:


Code:
# simplified assuming plat=pine64

mount_msdos -l sd1i /mnt/boot
mkdir -p /mnt/boot/efi/boot
cp /mnt/usr/mdec/BOOTAA64.EFI /mnt/boot/efi/boot/bootaa64.efi
echo bootaa64.efi > /mnt/mnt/efi/boot/startup.nsh

dd if=/usr/mdec/pine64/u-boot-sunxi-with-spl.bin of=sd1c bs=1024 seek=8


which is equivalent to what I did, afaict, to get the SD card booting, since miniroot66.fs contains bootaa64.efi already and then I manually did that `dd` line, so I don't know what the difference is.

Any clues you can share?

Maybe I'll try a third install attempt. Maybe it will go better.
#10
I found the culprit that wouldn't let me boot from eMMC:

In the OpenBSD installer ramdisk,

Code:
# sha256 /usr/mdec/pine64/u-boot-sunxi-with-spl.bin
SHA256 (/usr/mdec/pine64/u-boot-sunxi-with-spl.bin) = 3600ad8d6154ab61ac310812d8816cdb9a4f295154795c7ef9dff93ab3bb0558

but

Code:
# sha256 /mnt/pinebook-openbsd/u-boot-sunxi-with-spl.bin
SHA256 (/mnt/pinebook-openbsd/u-boot-sunxi-with-spl.bin) = 7d4610194927db492269d9c0dc5e78f269861d1724b643bb4feab514463c6a4f

The installer's u-boot just doesn't seem to be compatible with the pinebook.
But the latter is. I got it from https://ftp.openbsd.org/pub/OpenBSD/6.6/...019.10.tgz (specifically, ./share/u-boot/pinebook/u-boot-sunxi-with-spl.bin). There are other u-boot-sunxi-with-spl.bin's in there, but none of them are the file distributed in the ramdisk. I guess it's a bug for OpenBSD to fix?

I'll run the install again but make sure to copy the working u-boot to /usr/mdec/pine64 first. UPDATE: This worked. I now have a booting OpenBSD pinebook.

I'm curious if you ran into any of these issues at all, @elewarr? Or are you just not using the eMMC at all?


Possibly Related Threads…
Thread Author Replies Views Last Post
Thumbs Up NetBSD for Pinebook Luke 20 39,760 10-21-2020, 03:39 AM
Last Post: rckt
  FreeBSD for Pinebook e-minguez 4 10,438 10-14-2020, 05:12 PM
Last Post: zer0sig
Question OpenBSD 6.7 on Pinebook 1080p SKG 4 8,930 05-25-2020, 08:15 AM
Last Post: SKG
  OpenBSD on Pinebook - improving user experience elewarr 15 21,191 12-20-2019, 06:57 PM
Last Post: rogerroger

Forum Jump:


Users browsing this thread: 2 Guest(s)