OpenBSD 6.7 microSD card image
(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 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

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.

$ 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.

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

Step 4:

Compress the image.

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

That's all. Quick and dirty! Okay, could be improved, but works. Big Grin
/* Beware of bugs in the above code; I have only proved it correct, not tried it */
 Original quote by Donald E. Knuth

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 22 15,483 02-02-2021, 10:14 AM
Last Post: krjdev
  Rock64 ethernet not working during install OpenBSD Enig123 4 2,026 05-25-2020, 02:29 PM
Last Post: Enig123
  OpenBSD: GPIO with the I2C device PCF8574(A) krjdev 0 1,766 08-09-2018, 06:41 AM
Last Post: krjdev
  AMENDED: OpenBSD, GigE Adapters/Chipsets, and ROCK64 STEREO AUDIO DAC ADD-ON BOARD jovval 1 1,677 08-07-2018, 02:44 AM
Last Post: krjdev

Forum Jump:

Users browsing this thread: 1 Guest(s)