OpenBSD 6.7 microSD card image
#3
(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/...TALL.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
Code:
/* Beware of bugs in the above code; I have only proved it correct, not tried it */
 Original quote by Donald E. Knuth
  Reply


Messages In This Thread
OpenBSD 6.7 microSD card image - by krjdev - 05-21-2020, 06:25 PM
RE: OpenBSD 6.7 microSD card image - by e-minguez - 05-22-2020, 05:29 AM
RE: OpenBSD 6.7 microSD card image - by krjdev - 05-29-2020, 03:11 PM
RE: OpenBSD 6.7 microSD card image - by e-minguez - 05-31-2020, 04:41 AM
RE: OpenBSD 6.7 microSD card image - by krjdev - 05-31-2020, 12:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Tutorial: Install OpenBSD on ROCK64 media board krjdev 31 48,625 04-29-2023, 04:32 AM
Last Post: newestssd
  Rock64 ethernet not working during install OpenBSD Enig123 4 7,711 05-25-2020, 02:29 PM
Last Post: Enig123
  OpenBSD: GPIO with the I2C device PCF8574(A) krjdev 0 4,130 08-09-2018, 06:41 AM
Last Post: krjdev
  AMENDED: OpenBSD, GigE Adapters/Chipsets, and ROCK64 STEREO AUDIO DAC ADD-ON BOARD jovval 1 4,682 08-07-2018, 02:44 AM
Last Post: krjdev

Forum Jump:


Users browsing this thread: 1 Guest(s)