PINE64
OpenBSD 6.7 microSD card image - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: BSD on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=106)
+--- Thread: OpenBSD 6.7 microSD card image (/showthread.php?tid=9920)



OpenBSD 6.7 microSD card image - krjdev - 05-21-2020

Hi,

I have created an image from OpenBSD 6.7 for Rock64 board.

root password: rock64

I have added a user with the name rock64 (password same as username).

Following sets are installed:
  • bsd
  • bsd.mp
  • bsd.rd
  • base67.tgz
  • comp67.tgz
  • man67.tgz
  • game67.tgz
[Image: openbsd67-rock64_build2020-05-21_sets.png]

All current patches are installed.

How to use (You need a microSD card with at least 4GiB):


Code:
$ unxz -k openbsd67-rock64_build2020-05-21.img.xz
$ dd if=openbsd67-rock64_build2020-05-21.img of=/dev/sdx bs=1024


The image is on my private homepage (only 1TiB traffic):
[REMOVED]

SHA256 sum:
Code:
SHA256 (openbsd67-rock64_build2020-05-21.img.xz) = 2924afda7c3047e9e77e4e0410d667c24d4a1596d6a23016f1a2ffabe1b2454b

File size: 216MiB

Please can somebody also test the image and put it on a server with a greater traffic limit?
Tried it only with one  different microSD card.

[Image: openbsd67-rock64_build2020-05-21_hello.png]


RE: OpenBSD 6.7 microSD card image - e-minguez - 05-22-2020

I'm curious on how did you created the image. Did you created a microsd per https://ftp.openbsd.org/pub/OpenBSD/6.7/arm64/INSTALL.arm64 instructions, then you installed it in an USB, then created an image from that USB?
I want to give OpenBSD a try on my regular pinebook 1080p so if you have the steps it would be helpful Smile
Thanks!


RE: OpenBSD 6.7 microSD card image - krjdev - 05-29-2020

(05-22-2020, 05:29 AM)e-minguez Wrote: I'm curious on how did you created the image. Did you created a microsd per https://ftp.openbsd.org/pub/OpenBSD/6.7/arm64/INSTALL.arm64 instructions, then you installed it in an USB, then created an image from that USB?
I want to give OpenBSD a try on my regular pinebook 1080p so if you have the steps it would be helpful Smile
Thanks!

Sorry, for my late response. Sure...

I used a very dirty solution to create the image. But should also work with other OS'es.  Big Grin


Step 1:

Zero-out a microSD card. This step isn't necessary, but it results in a smaller compressed image.


Code:
$ dd if=/dev/zero of=/dev/sdx bs=1024

Step 2:

Install OpenBSD with a custom partition layout. For example: Make a partition with 3GiB and remember the size.


Step 3:

Simple copy the image from the microSD card with a greater size, as the created partition.


Code:
$ dd if=/dev/sdx of=/path/to/image.img count=3.5G


Step 4:

Compress the image.

Code:
$ xz -k /path/to/image.img


That's all. Quick and dirty! Okay, could be improved, but works. Big Grin


RE: OpenBSD 6.7 microSD card image - e-minguez - 05-31-2020

I think that the only concern is the ssh server keys will be the same on every board Big Grin


RE: OpenBSD 6.7 microSD card image - krjdev - 05-31-2020

(05-31-2020, 04:41 AM)e-minguez Wrote: I think that the only concern is the ssh server keys will be the same on every board Big Grin

Oops! I had not thought about that.

Thanks for the feedback!