OpenBSD for RockPro64
#1
Here are instructions to install OpenBSD on the RockPro64.
I take no credit for this work - just relaying it on the forum.
You can find me on IRC, Discord and Twitter


#2
What is the purpose of the step:

"So after you've finished installing, eject the SD card and write the dtb to it again from another machine: ..."
#3
(08-13-2018, 10:33 AM)wis g Wrote: eWhat is the purpose of the step:

"So after you've finished installing, eject the SD card and write the dtb to it again from another machine: ..."

The whole OS needs the dtb, not just the installer.

Is anyone here running it?. I have tried to install it on my rockpro64 and it always goes panic when trying to fetch the images. I am using the lastest ayufan u-boot and the lastest dtb from openbsd packages and also tried various combinations including the one used in the guide.  What am I doing wrong?????  Huh
Code:
Get/Verify SHA256.sig   100% |**************************|  1453       00:00    
et/Verify bsd            0% |                          |     0       --:-- ETApanic: uvm_fault failed: ffffff8000299674
syncing disks...12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12  giving up                                
panic: pool_do_get: mbufpl free list modified: page 0xffffff8008222000; item addr 0xffffff8008222f00; offset 0x0=0x0 != 0xa105200da8500a4f
panic: pool_do_get: mbufpl free list modified: page 0xffffff8008222000; item addr 0xffffff8008222f00; offset 0x0=0x0 != 0xa105200da8500a4f
#4
(01-13-2019, 04:30 PM)tasu1712 Wrote:
(08-13-2018, 10:33 AM)wis g Wrote: eWhat is the purpose of the step:

"So after you've finished installing, eject the SD card and write the dtb to it again from another machine: ..."

The whole OS needs the dtb, not just the installer.

Is anyone here running it?. I have tried to install it on my rockpro64 and it always goes panic when trying to fetch the images. I am using the lastest ayufan u-boot and the lastest dtb from openbsd packages and also tried various combinations including the one used in the guide.  What am I doing wrong?????  Huh
Code:
Get/Verify SHA256.sig   100% |**************************|  1453       00:00    
et/Verify bsd            0% |                          |     0       --:-- ETApanic: uvm_fault failed: ffffff8000299674
syncing disks...12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12  giving up                                
panic: pool_do_get: mbufpl free list modified: page 0xffffff8008222000; item addr 0xffffff8008222f00; offset 0x0=0x0 != 0xa105200da8500a4f
panic: pool_do_get: mbufpl free list modified: page 0xffffff8008222000; item addr 0xffffff8008222f00; offset 0x0=0x0 != 0xa105200da8500a4f

Unfortunately I am also experiencing the same problem with my RockPro64.

Quote:root on rd0a swap on rd0b dump on rd0b
WARNING: preposterous clock chip time
WARNING: CHECK AND RESET THE DATE!
ease ^?, werase ^W, kill ^U, intr ^C, status ^T
Welcome to the OpenBSD/arm64 6.4 installation program.
()nstall, (U)pgrade, (A)utoinstall or (S)hell? i
tAany 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.

eTminal type? [vt220]
Stem hostname? (short form, e.g. 'foo') foo

Aailable network interfaces are: dwge0 vlan0.
Which network interface do you wish to configure? (or 'done') [dwge0done
D domain name? (e.g. 'example.com') [my.domain]
ND nameservers? (IP address list or 'none') [none]
panic: uvm_fault failed: ffffff80002962c0)
syncing disks... done

dump to dev 17,1 not possible
rebooting...
#5
FYI:
https://marc.info/?l=openbsd-arm&m=156114869709200&w=2

I was able to boot and have a regular tty speed (115200), now in the process of installation.
It is slightly tricky as you need to write those first on emmc, then dd minirootfs on an sdcard, boot the whole thing, install on emmc, prepare an EFI partition on it and rewrite the sd card with the firmware again, which will boot the freshly installed emmc with your EFI partition.

I will confirm/update when finished and validated, they're also working to make this SPI flashable iiuc.

hth
#6
Hmm... OpenBSD would be fun. I definitely would like to put a BSD on one of my PINE devices.
------
it doesn't get happy
it doesn't get sad
it just runs programs
#7
(09-23-2020, 07:51 PM)zer0sig Wrote: Hmm... OpenBSD would be fun. I definitely would like to put a BSD on one of my PINE devices.

Do it! Smile

I built a backup server of a RockPro64 and NAS case with a SATA drive. It has been solid for a few weeks now.

Things have changed since 6.7 so I used a snapshot (and the dtb files from snapshot packages) with the instructions from INSTALL.arm64.

There are some other info floating around but it seems to be outdated by now.
#8
(09-26-2020, 02:55 PM)Humid Stylus Wrote:
(09-23-2020, 07:51 PM)zer0sig Wrote: Hmm... OpenBSD would be fun. I definitely would like to put a BSD on one of my PINE devices.

Do it! Smile

I built a backup server of a RockPro64 and NAS case with a SATA drive. It has been solid for a few weeks now.

Things have changed since 6.7 so I used a snapshot (and the dtb files from snapshot packages) with the instructions from INSTALL.arm64.

There are some other info floating around but it seems to be outdated by now.
Are the USB and GPIO ports working on your build? Rock on man Cool
#9
(09-28-2020, 06:11 AM)pine_gland Wrote: Are the USB and GPIO ports working on your build? Rock on man Cool

The front USB port reacts to my multi card reader, I don't think I have anything to plug into the GPIO.

Is there anything special you wish that I try?
#10
I have a RockPro64 v2.1 on which I am trying to boot OpenBSD-current (built 2020-09-22). I booted into the installer from an SD card and successfully installed all packages onto an external USB 2.0 SSD (Samsung Portable SSD T5) by following https://github.com/krjdev/rock64_openbsd. I removed the SD card, rebooted, and got as far as the following lines after repeated attempts:
Quote:  bootfile: sd0a:/bsd
  boot device: lookup sd0a:/bsd failed
  root device:

If I press Enter, all I get is:
Quote:  use one of: exit dwge0
  root device:

For anyone who's successfully gotten OpenBSD working on their RockPro64:

    Is booting from an external drive supported or do I need to install onto and boot from an SD card?

I can post my serial log / dmesg if it would be helpful.

Thanks!


Possibly Related Threads…
Thread Author Replies Views Last Post
  OpenBSD booting from SATA StickyPine 2 3,437 06-28-2021, 07:01 AM
Last Post: StickyPine
  NetBSD for RockPro64 Luke 3 6,887 06-12-2019, 11:52 PM
Last Post: beard5849

Forum Jump:


Users browsing this thread: 2 Guest(s)