<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Spacial</title>
    <description>The latest articles on DEV Community by Spacial (@spacial).</description>
    <link>https://dev.to/spacial</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F247016%2F84eece4a-a949-4750-9a20-0497fa8a5f83.jpeg</url>
      <title>DEV Community: Spacial</title>
      <link>https://dev.to/spacial</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/spacial"/>
    <language>en</language>
    <item>
      <title>Installing OpenBSD 7 on Raspberry Pi 3 (and 4)</title>
      <dc:creator>Spacial</dc:creator>
      <pubDate>Sun, 13 Feb 2022 00:35:15 +0000</pubDate>
      <link>https://dev.to/spacial/installing-openbsd-7-on-raspberry-pi-3-1f98</link>
      <guid>https://dev.to/spacial/installing-openbsd-7-on-raspberry-pi-3-1f98</guid>
      <description>&lt;h2&gt;
  
  
  Getting Ready
&lt;/h2&gt;

&lt;p&gt;Before anything, you'll need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An Raspberry Pi 3 or 4 (only &lt;code&gt;armv7&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;An Serial FTL Cable (&lt;a href="https://www.adafruit.com/product/954" rel="noopener noreferrer"&gt;example&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;An micro SD Card (your target disk) - min 4GB, but I recommend &lt;strong&gt;16GB&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;An USB thumb drive (your installer disk) - same as SD card, min 4GB, &lt;strong&gt;16GB recommended&lt;/strong&gt; - you can skip the thumb drive if you want to install throught internet connection.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg4bwfx5579e1op17apga.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg4bwfx5579e1op17apga.jpg" alt="All the stuff you'll need."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I suggest you go to &lt;a href="https://openbsd.c3sl.ufpr.br/pub/OpenBSD/7.0/arm64/" rel="noopener noreferrer"&gt;OpenBSD arm64 page&lt;/a&gt; and download both &lt;code&gt;miniroot70.img&lt;/code&gt; and &lt;code&gt;install70.img&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  (Optional) Updating Raspberry Pi Firmware
&lt;/h3&gt;

&lt;p&gt;Well, if you want to make your raspi up-to-date fimware, you'll need to use Raspbian to update it, &lt;strong&gt;before  OpenBSD installation&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Use your last RaspiOS image downloaded and unziped:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# dd if=2022-01-28-raspios-bullseye-arm64-lite.img of=/dev/mmcblk0 bs=1M status=progress conv=fsync
1904+0 records in
1904+0 records out
1996488704 bytes (2.0 GB, 1.9 GiB) copied, 109.776 s, 18.2 MB/s
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;boot your raspi and log in, then update &lt;code&gt;apt&lt;/code&gt; packages info:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pi@raspberrypi:~$ sudo apt update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Get:2 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]              
Get:3 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:4 http://archive.raspberrypi.org/debian bullseye InRelease [23.5 kB]             
Get:5 http://security.debian.org/debian-security bullseye-security/main arm64 Packages [115 kB]
Get:6 http://security.debian.org/debian-security bullseye-security/main armhf Packages [120 kB]
Get:7 http://security.debian.org/debian-security bullseye-security/main Translation-en [75.7 kB]
Get:8 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [250 kB]
Get:9 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages [249 kB]
Fetched 916 kB in 6s (161 kB/s)    
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Update all RaspiOS:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pi@raspberrypi:~$ sudo apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libcamera-apps-lite libcamera0 libcryptsetup12 libexpat1 libwbclient0 raspi-config rpi-eeprom
7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,198 kB of archives.
After this operation, 1,599 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.debian.org/debian-security bullseye-security/main arm64 libwbclient0 arm64 2:4.13.13+dfsg-1~deb11u3 [307 kB]
Get:2 http://security.debian.org/debian-security bullseye-security/main arm64 libcryptsetup12 arm64 2:2.3.7-1+deb11u1 [230 kB]
Get:3 http://security.debian.org/debian-security bullseye-security/main arm64 libexpat1 arm64 2.2.10-2+deb11u1 [84.8 kB]
Get:4 http://archive.raspberrypi.org/debian bullseye/main arm64 libcamera0 arm64 0~git20220201+e96d0201-1 [755 kB]
Get:5 http://archive.raspberrypi.org/debian bullseye/main arm64 libcamera-apps-lite arm64 0~git20220131+7ac5197-1 [262 kB]
Get:6 http://archive.raspberrypi.org/debian bullseye/main arm64 raspi-config all 20220126 [30.2 kB]
Get:7 http://archive.raspberrypi.org/debian bullseye/main arm64 rpi-eeprom arm64 13.8-1 [1,529 kB]
Fetched 3,198 kB in 7s (439 kB/s)                                                                                                                                                                                                                                                        
Reading changelogs... Done
(Reading database ... 37475 files and directories currently installed.)
Preparing to unpack .../0-libwbclient0_2%3a4.13.13+dfsg-1~deb11u3_arm64.deb ...
Unpacking libwbclient0:arm64 (2:4.13.13+dfsg-1~deb11u3) over (2:4.13.13+dfsg-1~deb11u2) ...
Preparing to unpack .../1-libcamera0_0~git20220201+e96d0201-1_arm64.deb ...
Unpacking libcamera0:arm64 (0~git20220201+e96d0201-1) over (0~git20220106+44d59841-2) ...
Preparing to unpack .../2-libcamera-apps-lite_0~git20220131+7ac5197-1_arm64.deb ...
Unpacking libcamera-apps-lite (0~git20220131+7ac5197-1) over (0~git20220105+b9a6923-1) ...
Preparing to unpack .../3-libcryptsetup12_2%3a2.3.7-1+deb11u1_arm64.deb ...
Unpacking libcryptsetup12:arm64 (2:2.3.7-1+deb11u1) over (2:2.3.5-1) ...
Preparing to unpack .../4-libexpat1_2.2.10-2+deb11u1_arm64.deb ...
Unpacking libexpat1:arm64 (2.2.10-2+deb11u1) over (2.2.10-2) ...
Preparing to unpack .../5-raspi-config_20220126_all.deb ...
Unpacking raspi-config (20220126) over (20220112) ...
Preparing to unpack .../6-rpi-eeprom_13.8-1_arm64.deb ...
Unpacking rpi-eeprom (13.8-1) over (13.5-1) ...
Setting up libexpat1:arm64 (2.2.10-2+deb11u1) ...
Setting up libwbclient0:arm64 (2:4.13.13+dfsg-1~deb11u3) ...
Setting up libcryptsetup12:arm64 (2:2.3.7-1+deb11u1) ...
Setting up rpi-eeprom (13.8-1) ...
Setting up libcamera0:arm64 (0~git20220201+e96d0201-1) ...
Setting up raspi-config (20220126) ...
Setting up libcamera-apps-lite (0~git20220131+7ac5197-1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reboot it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pi@raspberrypi:~ $ sudo reboot 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After boot, clean all caches and stuff (two commands here):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pi@raspberrypi:~ $ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~ $ sudo apt clean
pi@raspberrypi:~ $ 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Optional - &lt;strong&gt;Only Raspberry pi 4&lt;/strong&gt;) After cleaning, you'll update your Raspberry firmware:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pi@raspberrypi:~ $ sudo rpi-eeprom-update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Optional - &lt;strong&gt;Only Raspberry pi 3&lt;/strong&gt;) After cleaning, you'll update your Raspberry firmware - &lt;strong&gt;Only do this if your have sure what you are doing&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pi@raspberrypi:~ $ sudo rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** We're running for the first time
 *** Backing up files (this will take a few minutes)
 *** Backing up firmware
 *** Backing up modules 5.10.92-v8+
#############################################################
WARNING: This update bumps to rpi-5.15.y linux tree
See: https://forums.raspberrypi.com/viewtopic.php?t=322879

'rpi-update' should only be used if there is a specific
reason to do so - for example, a request by a Raspberry Pi
engineer or if you want to help the testing effort
and are comfortable with restoring if there are regressions.

DO NOT use 'rpi-update' as part of a regular update process.
##############################################################
Would you like to proceed? (y/N)

 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   173  100   173    0     0   1310      0 --:--:-- --:--:-- --:--:--  1310
100  123M  100  123M    0     0  2818k      0  0:00:44  0:00:44 --:--:-- 3612k
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 5.15.21-v7l+
 *** depmod 5.15.21-v7+
 *** depmod 5.15.21-v8+
 *** depmod 5.15.21+
 *** Updating VideoCore libraries
 *** Using SoftFP libraries
 *** Updating SDK
 *** Running ldconfig
 *** Storing current firmware revision
 *** Deleting downloaded files
 *** Syncing changes to disk
 *** If no errors appeared, your firmware was successfully updated to fbcab73d5a20f592aa9f6b0e364757ef131dae27
 *** A reboot is needed to activate the new firmware
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reboot for this last update:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pi@raspberrypi:~ $ sudo reboot 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Preparing the disks
&lt;/h2&gt;

&lt;h3&gt;
  
  
  SD Card
&lt;/h3&gt;

&lt;p&gt;Format your SDcard (on OpenBSD, Linux or whatever) - BEWARE of your disk name! see on &lt;code&gt;dmesg&lt;/code&gt; after plug it:&lt;/p&gt;

&lt;h4&gt;
  
  
  OpenBSD
&lt;/h4&gt;

&lt;p&gt;You can &lt;code&gt;dd&lt;/code&gt; to fill zeroes on first bytes or use &lt;code&gt;fdisk&lt;/code&gt; to do it (assuming your disk is sd0 - &lt;strong&gt;BEWARE&lt;/strong&gt;) [updated, using &lt;code&gt;dd&lt;/code&gt; prefer always the &lt;em&gt;raw device&lt;/em&gt;]:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# dd if=/dev/zero of=/dev/rsd0c bs=1m
1+0 records in
1+0 records out
2511872 bytes transferred in 0.034 secs (72095271 bytes/sec)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# fdisk -iy sd0
Writing MBR at offset 0.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Optional) If you want to check:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# fdisk sd0                              
Disk: sd0   geometry: 1936/255/63 [31116288 Sectors]
Offset: 0   Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
*3: A6      0   1   2 -   1935 254  63 [          64:    31101776 ] OpenBSD    
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then you can &lt;code&gt;dd miniroot.img&lt;/code&gt; to it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# dd if=miniroot70.img of=/dev/rsd0c bs=1m
43+0 records in
43+0 records out
45088768 bytes transferred in 0.464 secs (97063297 bytes/sec)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Linux
&lt;/h4&gt;

&lt;p&gt;(Optional) Clean your MBR:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#dd if=/dev/zero of=/dev/mmcblk0 count=4096
4096+0 records in
4096+0 records out
2097152 bytes (2.1 MB, 2.0 MiB) copied, 0.785621 s, 2.7 MB/s
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then you transfer &lt;code&gt;miniroot70.img&lt;/code&gt; to it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#dd if=miniroot70.img of=/dev/mmcblk0 bs=1M conv=fsync
43+0 records in
43+0 records out
45088768 bytes (45 MB, 43 MiB) copied, 3.31491 s, 13.6 MB/s
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Formatting USB thumb drive
&lt;/h3&gt;

&lt;p&gt;After ejecting the SD card and plugging the thumb drive.&lt;/p&gt;

&lt;h4&gt;
  
  
  OpenBSD
&lt;/h4&gt;

&lt;p&gt;You can &lt;code&gt;dd&lt;/code&gt; to fill zeroes on first bytes or use &lt;code&gt;fdisk&lt;/code&gt; to do it (assuming your disk is sd0 - &lt;strong&gt;BEWARE&lt;/strong&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# dd if=/dev/zero of=/dev/rsd0c bs=1m count=2
1+0 records in
1+0 records out
2511872 bytes transferred in 0.034 secs (72095271 bytes/sec)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# fdisk -iy sd0
Writing MBR at offset 0.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Optional) If you want to check:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# fdisk sd0                
Disk: sd0   geometry: 1946/255/63 [31266816 Sectors]
Offset: 0   Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
*3: A6      0   1   2 -   1945 254  63 [          64:    31262426 ] OpenBSD      
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then you can &lt;code&gt;dd install70.img&lt;/code&gt; to it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# dd if=install70.img of=/dev/rsd0c bs=1m
504+0 records in
504+0 records out
528482304 bytes transferred in 7.602 secs (69514499 bytes/sec)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Linux
&lt;/h4&gt;

&lt;p&gt;(Optional) Clean your MBR:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# dd if=/dev/zero of=/dev/sda count=4096
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;then you transfer &lt;code&gt;install70.img&lt;/code&gt; to it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# dd if=install70.img of=/dev/sda bs=1M conv=fsync
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With these two last steps, you have SD card and thumb drive ready to rock. Now we connect it, make some adjustments and ready to install.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;p&gt;After both disks ready, you get your cable (&lt;strong&gt;ATTENTION&lt;/strong&gt;) connect it on correct GPIO's pins, plug it on computer (and turn it on, if you didn't connected the +5V pin). See both connection options bellow. &lt;/p&gt;

&lt;h3&gt;
  
  
  Connecting on board
&lt;/h3&gt;

&lt;p&gt;To start, you'll need to connect the cable on raspberry pi on &lt;a href="https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/the-gpio-connector" rel="noopener noreferrer"&gt;GPIO&lt;/a&gt;. The pins are 4 (5V), 6 (GND), 8 and 10 (TX/RX).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuh6qe0h372s6k0z1nxxp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuh6qe0h372s6k0z1nxxp.png" alt="No red pin GPIO (neither 2 or 4) connection with USB cable plugged for power supply."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BEWARE!!!&lt;/strong&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If you want to connect your raspberry pi in your computer AND on power, you need only &lt;a href="https://learn.adafruit.com/adafruits-raspberry-pi-lesson-5-using-a-console-cable/connect-the-lead" rel="noopener noreferrer"&gt;3 wires on GPIO&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;if you connect both, you'll FRY your USB port AND your Raspberry Pi.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp3c13zsvpzlpfjl3nexl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp3c13zsvpzlpfjl3nexl.png" alt="If you want to doit all by the UART/Serial cable, this is how to connect it."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Console
&lt;/h3&gt;

&lt;h4&gt;
  
  
  OpenBSD
&lt;/h4&gt;

&lt;p&gt;After connecting you run (verify your device, on &lt;code&gt;/dev/cu*&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# cu -l /dev/cu.usbserial -s 115200 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Linux
&lt;/h4&gt;

&lt;p&gt;On Linux , after connection you'll need to run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# screen /dev/ttyUSB0 115200
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You'll see:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;U-Boot 2021.07 (Aug 12 2021 - 02:45:29 -0600)

DRAM:  948 MiB
RPI 3 Model B+ (0xa020d3)
MMC:   mmc@7e202000: 0, mmcnr@7e300000: 1
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... In:    serial
Out:   vidconsole
Err:   vidconsole
Net:   No ethernet found.
starting USB...
Bus usb@7e980000: usb dr_mode not found
USB DWC2
scanning bus usb@7e980000 for devices... 5 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Hit any key to stop autoboot:  2  1  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
7[r[999;999H[6n8Scanning disk mmc@7e202000.blk...
** Unrecognized filesystem type **
Card did not respond to voltage select! : -110
Scanning disk mmcnr@7e300000.blk...
Disk mmcnr@7e300000.blk not ready
Scanning disk usb_mass_storage.lun0...
** Unrecognized filesystem type **
Found 5 disks
Missing RNG device for EFI_RNG_PROTOCOL
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
Found EFI removable media binary efi/boot/bootaa64.efi
170694 bytes read in 10 ms (16.3 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Booting /efi\boot\bootaa64.efi
disks: sd0* sd1
&amp;gt;&amp;gt; OpenBSD/arm64 BOOTAA64 1.6
boot&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you don't press anything, it will boot automatically. If you want to set some &lt;code&gt;U-Boot&lt;/code&gt; options, press something to get &lt;code&gt;U-Boot&amp;gt;&lt;/code&gt; prompt.&lt;/p&gt;

&lt;h4&gt;
  
  
  Configure UART/Serial console
&lt;/h4&gt;

&lt;p&gt;Before begin the installation, you need to setup boot environment with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# echo "enable_uart=1
program_usb_boot_mode=1" &amp;gt;&amp;gt; /SDCARD/BOOT/config.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will guarantee that your raps boot config will enable Serial/UART console.&lt;/p&gt;

&lt;p&gt;Test it before install, you need to see the raspi console booting.&lt;/p&gt;

&lt;h3&gt;
  
  
  Installation Options
&lt;/h3&gt;

&lt;p&gt;After all set, SD Card, thumb drive, UART cable, serial console, turn it on..&lt;/p&gt;

&lt;h4&gt;
  
  
  Installing
&lt;/h4&gt;

&lt;p&gt;All installation will be straight forward. On &lt;code&gt;&amp;lt;ENTER&amp;gt;&lt;/code&gt; mark is to inform that enter was pressed after option. Let's go:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;U-Boot 2021.07 (Aug 12 2021 - 02:45:29 -0600)

DRAM:  948 MiB
RPI 3 Model B+ (0xa020d3)
MMC:   mmc@7e202000: 0, mmcnr@7e300000: 1
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... In:    serial
Out:   vidconsole
Err:   vidconsole
Net:   No ethernet found.
starting USB...
Bus usb@7e980000: usb dr_mode not found
USB DWC2
scanning bus usb@7e980000 for devices... 5 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Hit any key to stop autoboot:  2  1  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
7[r[999;999H[6n8Scanning disk mmc@7e202000.blk...
** Unrecognized filesystem type **
Card did not respond to voltage select! : -110
Scanning disk mmcnr@7e300000.blk...
Disk mmcnr@7e300000.blk not ready
Scanning disk usb_mass_storage.lun0...
** Unrecognized filesystem type **
Found 5 disks
Missing RNG device for EFI_RNG_PROTOCOL
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
Found EFI removable media binary efi/boot/bootaa64.efi
170694 bytes read in 10 ms (16.3 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Booting /efi\boot\bootaa64.efi
disks: sd0* sd1
&amp;gt;&amp;gt; OpenBSD/arm64 BOOTAA64 1.6
boot&amp;gt; 
type 0x0 pa 0x0 va 0x0 pages 0x1 attr 0x8
type 0x7 pa 0x1000 va 0x1000 pages 0x1ff attr 0x8
type 0x2 pa 0x200000 va 0x200000 pages 0x4000 attr 0x8
type 0x7 pa 0x4200000 va 0x4200000 pages 0x3cf5 attr 0x8
type 0x9 pa 0x7ef5000 va 0x7ef5000 pages 0x16 attr 0x8
type 0x7 pa 0x7f0b000 va 0x7f0b000 pages 0x31ef6 attr 0x8
type 0x4 pa 0x39e01000 va 0x39e01000 pages 0x1 attr 0x8
type 0x7 pa 0x39e02000 va 0x39e02000 pages 0x1 attr 0x8
type 0x2 pa 0x39e03000 va 0x39e03000 pages 0x100 attr 0x8
type 0x1 pa 0x39f03000 va 0x39f03000 pages 0x2a attr 0x8
type 0x0 pa 0x39f2d000 va 0x39f2d000 pages 0x7 attr 0x8
type 0x4 pa 0x39f34000 va 0x39f34000 pages 0x1 attr 0x8
type 0x6 pa 0x39f35000 va 0xa3863000 pages 0x1 attr 0x8000000000000008
type 0x4 pa 0x39f36000 va 0x39f36000 pages 0x2 attr 0x8
type 0x0 pa 0x39f38000 va 0x39f38000 pages 0x1 attr 0x8
type 0x6 pa 0x39f39000 va 0xa3867000 pages 0x3 attr 0x8000000000000008
type 0x4 pa 0x39f3c000 va 0x39f3c000 pages 0x1 attr 0x8
type 0x6 pa 0x39f3d000 va 0xa386b000 pages 0x4 attr 0x8000000000000008
type 0x0 pa 0x39f41000 va 0x39f41000 pages 0x1 attr 0x8
type 0x4 pa 0x39f42000 va 0x39f42000 pages 0x2 attr 0x8
type 0x0 pa 0x39f44000 va 0x39f44000 pages 0x2 attr 0x8
type 0x4 pa 0x39f46000 va 0x39f46000 pages 0x1 attr 0x8
type 0x0 pa 0x39f47000 va 0x39f47000 pages 0x1 attr 0x8
type 0x4 pa 0x39f48000 va 0x39f48000 pages 0x2 attr 0x8
type 0x0 pa 0x39f4a000 va 0x39f4a000 pages 0x1 attr 0x8
type 0x4 pa 0x39f4b000 va 0x39f4b000 pages 0x2 attr 0x8
type 0x2 pa 0x39f4d000 va 0x39f4d000 pages 0x1403 attr 0x8
type 0x5 pa 0x3b350000 va 0xa4c7e000 pages 0x10 attr 0x8000000000000008
type 0x2 pa 0x3b360000 va 0x3b360000 pages 0xa0 attr 0x8
type 0xb pa 0x3f100000 va 0xa4c8e000 pages 0x1 attr 0x8000000000000000
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2021 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 7.0 (RAMDISK) #1250: Thu Sep 30 17:13:12 MDT 2021
    deraadt@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/RAMDISK
real mem  = 970891264 (925MB)
avail mem = 904114176 (862MB)
random: boothowto does not indicate good seed
mainbus0 at root: Raspberry Pi 3 Model B Plus Rev 1.3
cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4
cpu0: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu0: 512KB 64b/line 16-way L2 cache
cpu0: CRC32,ASID16
efi0 at mainbus0: UEFI 2.8
efi0: Das U-Boot rev 0x20210700
simplefb0 at mainbus0: 1824x984, 32bpp
wsdisplay0 at simplefb0
wsdisplay0: screen 0 added (std, vt100 emulation)
"system" at mainbus0 not configured
"axi" at mainbus0 not configured
simplebus0 at mainbus0: "soc"
bcmclock0 at simplebus0
bcmmbox0 at simplebus0
bcmgpio0 at simplebus0
bcmaux0 at simplebus0
bcmdmac0 at simplebus0: DMA0 DMA2 DMA4 DMA5 DMA8 DMA9 DMA10
bcmintc0 at simplebus0
pluart0 at simplebus0: console
bcmsdhost0 at simplebus0: 250 MHz base clock
sdmmc0 at bcmsdhost0: 4-bit, sd high-speed, mmc high-speed, dma
dwctwo0 at simplebus0
bcmdog0 at simplebus0
bcmrng0 at simplebus0
"thermal" at simplebus0 not configured
"local_intc" at simplebus0 not configured
sdhc0 at simplebus0
sdhc0: SDHC 3.0, 200 MHz base clock
sdmmc1 at sdhc0: 4-bit, sd high-speed, mmc high-speed
"firmware" at simplebus0 not configured
"power" at simplebus0 not configured
"mailbox" at simplebus0 not configured
"gpiomem" at simplebus0 not configured
"fb" at simplebus0 not configured
"vcsm" at simplebus0 not configured
"clocks" at mainbus0 not configured
"phy" at mainbus0 not configured
"arm-pmu" at mainbus0 not configured
agtimer0 at mainbus0: 19200 kHz
"leds" at mainbus0 not configured
"fixedregulator_3v3" at mainbus0 not configured
"fixedregulator_5v0" at mainbus0 not configured
"bootloader" at mainbus0 not configured
usb0 at dwctwo0: USB revision 2.0
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: &amp;lt;SD/MMC, SB16G, 0080&amp;gt; removable
sd0: 15193MB, 512 bytes/sector, 31116288 sectors
uhub0 at usb0 configuration 1 interface 0 "Broadcom DWC2 root hub" rev 2.00/1.00 addr 1
uhub1 at uhub0 port 1 configuration 1 interface 0 "Standard Microsystems product 0x2514" rev 2.00/b.b3 addr 2
bwfm0 at sdmmc1 function 1
manufacturer 0x02d0, product 0xa9a6 at sdmmc1 function 2 not configured
manufacturer 0x02d0, product 0xa9a6 at sdmmc1 function 3 not configured
uhub2 at uhub1 port 1 configuration 1 interface 0 "Standard Microsystems product 0x2514" rev 2.00/b.b3 addr 3
umass0 at uhub2 port 3 configuration 1 interface 0 "SanDisk Cruzer Fit" rev 2.00/1.26 addr 4
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: &amp;lt;SanDisk, Cruzer Fit, 1.26&amp;gt; removable serial.07815571030319106005
sd1: 15267MB, 512 bytes/sector, 31266816 sectors
softraid0 at root
scsibus2 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b
WARNING: CHECK AND RESET THE DATE!
gpio at bcmgpio0 not configured
bwfm0: failed loadfirmware of file brcmfmac43455-sdio.raspberrypi,3-model-b-plus.bin
mue0 at uhub2 port 1 configuration 1 interface 0 "Standard Microsystems LAN7800" rev 2.10/3.00 addr 5
mue0: LAN7800, address b8:27:eb:4f:3f:6f
ukphy0 at mue0 phy 1: Generic IEEE 802.3u media interface, rev. 2: OUI 0x0001f0, model 0x0013
erase ^?, werase ^W, kill ^U, intr ^C, status ^T
Welcome to the OpenBSD/arm64 7.0 installation program.
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? I &amp;lt;ENTER&amp;gt;
At any 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.

Terminal type? [vt220] &amp;lt;ENTER&amp;gt;
System hostname? (short form, e.g. 'foo') OpenBSD7&amp;lt;ENTER&amp;gt;

Available network interfaces are: bwfm0 mue0 vlan0.
Which network interface do you wish to configure? (or 'done') [bwfm0] mue0&amp;lt;ENTER&amp;gt;
IPv4 address for mue0? (or 'autoconf' or 'none') [autoconf] &amp;lt;ENTER&amp;gt;
IPv6 address for mue0? (or 'autoconf' or 'none') [none] &amp;lt;ENTER&amp;gt;
Available network interfaces are: bwfm0 mue0 vlan0.
Which network interface do you wish to configure? (or 'done') [done] &amp;lt;ENTER&amp;gt;
Using DNS domainname PiDomain
Using DNS nameservers at 1.1.1.1 9.9.9.9

Password for root account? (will not echo) &amp;lt;SOME PASSWORD&amp;gt; &amp;lt;ENTER&amp;gt;
Password for root account? (again) &amp;lt;SAME PASSWORD&amp;gt; &amp;lt;ENTER&amp;gt;
Start sshd(8) by default? [yes] &amp;lt;ENTER&amp;gt;
Setup a user? (enter a lower-case loginname, or 'no') [no] pi &amp;lt;ENTER&amp;gt;
Full name for user pi? [pi] raspberry pi &amp;lt;ENTER&amp;gt;
Password for user pi? (will not echo) &amp;lt;USER PASSWORD&amp;gt; &amp;lt;ENTER&amp;gt;
Password for user pi? (again) &amp;lt;USER PASSWORD&amp;gt; &amp;lt;ENTER&amp;gt;
WARNING: root is targeted by password guessing attacks, pubkeys are safer.
Allow root ssh login? (yes, no, prohibit-password) [no] &amp;lt;ENTER&amp;gt;

Available disks are: sd0 sd1.
Which disk is the root disk? ('?' for details) [sd0] &amp;lt;ENTER&amp;gt;
Disk: sd0   geometry: 1936/255/63 [31116288 Sectors]
Offset: 0   Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
*0: 0C      2  10   9 -      3  15  12 [       32768:       16384 ] Win95 FAT32L
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 3: A6      3  15  13 -      5 122  53 [       49152:       38912 ] OpenBSD     
Use (W)hole disk or (E)dit the MBR? [whole] w &amp;lt;ENTER&amp;gt;
Creating a msdos partition and an OpenBSD partition for rest of sd0...done.
newfs_msdos: /dev/r0000000000000000.i: No such file or directory
The auto-allocated layout for sd0 is:
#                size           offset  fstype [fsize bsize   cpg]
  a:           369.0M            65536  4.2BSD   2048 16384     1 # /
  b:           517.9M           821184    swap                    
  c:         15193.5M                0  unused                    
  d:           470.3M          1881952  4.2BSD   2048 16384     1 # /tmp
  e:           649.3M          2845216  4.2BSD   2048 16384     1 # /var
  f:          1937.9M          4175040  4.2BSD   2048 16384     1 # /usr
  g:           515.4M          8143936  4.2BSD   2048 16384     1 # /usr/X11R6
  h:          1680.9M          9199424  4.2BSD   2048 16384     1 # /usr/local
  i:            16.0M            32768   MSDOS                    
  j:          1387.6M         12641952  4.2BSD   2048 16384     1 # /usr/src
  k:          5295.2M         15483712  4.2BSD   2048 16384     1 # /usr/obj
  l:          2337.9M         26328224  4.2BSD   2048 16384     1 # /home
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] a &amp;lt;ENTER&amp;gt;
newfs: reduced number of fragments per cylinder group from 47224 to 46848 to enlarge last cylinder group
/dev/rsd0a: 369.0MB in 755648 sectors of 512 bytes
5 cylinder groups of 91.50MB, 5856 blocks, 11712 inodes each
/dev/rsd0l: 2337.9MB in 4788064 sectors of 512 bytes
12 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
newfs: reduced number of fragments per cylinder group from 60200 to 59720 to enlarge last cylinder group
/dev/rsd0d: 470.3MB in 963264 sectors of 512 bytes
5 cylinder groups of 116.64MB, 7465 blocks, 14976 inodes each
/dev/rsd0f: 1937.9MB in 3968896 sectors of 512 bytes
10 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0g: 515.4MB in 1055488 sectors of 512 bytes
4 cylinder groups of 128.84MB, 8246 blocks, 16512 inodes each
/dev/rsd0h: 1680.9MB in 3442528 sectors of 512 bytes
9 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0k: 5295.2MB in 10844512 sectors of 512 bytes
27 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0j: 1387.6MB in 2841760 sectors of 512 bytes
7 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
newfs: reduced number of fragments per cylinder group from 83112 to 82448 to enlarge last cylinder group
/dev/rsd0e: 649.3MB in 1329824 sectors of 512 bytes
5 cylinder groups of 161.03MB, 10306 blocks, 20672 inodes each
Available disks are: sd1.
Which disk do you wish to initialize? (or 'done') [done] &amp;lt;ENTER&amp;gt;
/dev/sd0a (5a3f227dc5571ee7.a) on /mnt type ffs (rw, asynchronous, local)
/dev/sd0l (5a3f227dc5571ee7.l) on /mnt/home type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0d (5a3f227dc5571ee7.d) on /mnt/tmp type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0f (5a3f227dc5571ee7.f) on /mnt/usr type ffs (rw, asynchronous, local, nodev)
/dev/sd0g (5a3f227dc5571ee7.g) on /mnt/usr/X11R6 type ffs (rw, asynchronous, local, nodev)
/dev/sd0h (5a3f227dc5571ee7.h) on /mnt/usr/local type ffs (rw, asynchronous, local, nodev)
/dev/sd0k (5a3f227dc5571ee7.k) on /mnt/usr/obj type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0j (5a3f227dc5571ee7.j) on /mnt/usr/src type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0e (5a3f227dc5571ee7.e) on /mnt/var type ffs (rw, asynchronous, local, nodev, nosuid)

Let's install the sets!
Location of sets? (disk http nfs or 'done') [http] disk &amp;lt;ENTER&amp;gt;
Is the disk partition already mounted? [yes] no &amp;lt;ENTER&amp;gt;
Available disks are: sd0 sd1.
Which disk contains the install media? (or 'done') [sd1] sd1 &amp;lt;ENTER&amp;gt;
  a:           983040            49152  4.2BSD   2048 16384 16142 
  i:            16384            32768   MSDOS                    
Available sd1 partitions are: a i.
Which sd1 partition has the install sets? (or 'done') [a] &amp;lt;ENTER&amp;gt;
Pathname to the sets? (or 'done') [7.0/arm64] &amp;lt;ENTER&amp;gt;

Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-', e.g.: '-game*'. Selected sets are labelled '[X]'.
    [X] bsd           [X] base70.tgz    [X] game70.tgz    [X] xfont70.tgz
    [X] bsd.mp        [X] comp70.tgz    [X] xbase70.tgz   [X] xserv70.tgz
    [X] bsd.rd        [X] man70.tgz     [X] xshare70.tgz
Set name(s)? (or 'abort' or 'done') [done] &amp;lt;ENTER&amp;gt;
Directory does not contain SHA256.sig. Continue without verification? [no] yes &amp;lt;ENTER&amp;gt;

Installing bsd            0% |                          |     0       --:-- ETA
Installing bsd          100% |**************************| 13720 KB    00:01    
Installing bsd.mp       100% |**************************| 13782 KB    00:01    
Installing bsd.rd        82% |*********************     | 14208 KB    00:00 ETA
Installing bsd.rd       100% |**************************| 17118 KB    00:02    
Installing base70.tgz     0% |                          |     0       --:-- ETA
Installing base70.tgz    99% |************************* |   227 MB    00:00 ETA
Installing base70.tgz   100% |**************************|   227 MB    01:39    
Extracting etc.tgz        0% |                          |     0       --:-- ETA
Extracting etc.tgz      100% |**************************|   246 KB    00:00    
Installing comp70.tgz     0% |                          |     0       --:-- ETA
Installing comp70.tgz     2% |                          |  1408 KB    00:46 ETA
Installing comp70.tgz    99% |************************* | 67072 KB    00:00 ETA
Installing comp70.tgz   100% |**************************| 67418 KB    00:48    
Installing man70.tgz      0% |                          |     0       --:-- ETA
Installing man70.tgz    100% |**************************|  7580 KB    00:09    
Installing game70.tgz   100% |**************************|  2677 KB    00:01    
Installing xbase70.tgz  100% |**************************| 49023 KB    00:31    
Extracting xetc.tgz     100% |**************************|  7080       00:00    
Installing xshare70.tgz 100% |**************************|  4495 KB    00:08    A
Installing xfont70.tgz  100% |**************************| 22965 KB    00:08    
Installing xserv70.tgz  100% |**************************| 12354 KB    00:07    
Location of sets? (disk http nfs or 'done') [done] &amp;lt;ENTER&amp;gt;

What timezone are you in? ('?' for list) [Canada/Mountain] &amp;lt;YOUR TIMEZONE&amp;gt; &amp;lt;ENTER&amp;gt;
Saving configuration files... done.
Making all device nodes... done.
Multiprocessor machine; using bsd.mp instead of bsd.
Relinking to create unique kernel... done.

CONGRATULATIONS! Your OpenBSD install has been successfully completed!

When you login to your new system the first time, please read your mail
using the 'mail' command.

Exit to (S)hell, (H)alt or (R)eboot? [reboot] &amp;lt;ENTER&amp;gt;
syncing disks... done

rebooting...

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Answers noted:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;System hostname? (short form, e.g. 'foo')&lt;/code&gt; - Here you set your Raspberry pi's name.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Which network interface do you wish to configure? (or 'done') [bwfm0]&lt;/code&gt; - On OpenBSD 7 you get a lot of things out of the box, here the &lt;code&gt;mue0&lt;/code&gt; interface is Ethernet.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;IPv4 address for mue0? (or 'autoconf' or 'none') [autoconf]&lt;/code&gt; - Here just pressing enter it will user dhcp as usual.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Password for root account?&lt;/code&gt; - Create your root password (and confirm it next).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Start sshd(8) by default? [yes]&lt;/code&gt; - I like to start &lt;code&gt;sshd&lt;/code&gt; to remote access.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Setup a user? (enter a lower-case loginname, or 'no') [no]&lt;/code&gt; - Here I created some normal user, it is &lt;strong&gt;optional&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Allow root ssh login? (yes, no, prohibit-password) [no]&lt;/code&gt; - If you didn't create a normal user, you'll have to manually copy your ssh-key (and select prohibit-password), or you'll have to set to &lt;code&gt;yes&lt;/code&gt;, so you'll have remote access; as &lt;code&gt;root&lt;/code&gt; - BEWARE.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Which disk is the root disk? ('?' for details) [sd0]&lt;/code&gt;  - Here you select SD Card (sd0).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Use (W)hole disk or (E)dit the MBR? [whole]&lt;/code&gt; - Let OpenBSD use whole disk.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a]&lt;/code&gt; - Let it use auto layout (unless you want to specify the partitions of your system.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Location of sets? (disk http nfs or 'done') [http]&lt;/code&gt; - If you have internet connection, you can use &lt;code&gt;http&lt;/code&gt;. If you are doing an offline install or it didn't found your network, you use &lt;code&gt;disk&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Is the disk partition already mounted? [yes]&lt;/code&gt; - Just to make sure to mount your thumb drive.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Which disk contains the install media? (or 'done') [sd1]&lt;/code&gt; - Select it.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Which sd1 partition has the install sets? (or 'done') [a]&lt;/code&gt; - Specify your partition with the install sets.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Pathname to the sets? (or 'done') [7.0/arm64]&lt;/code&gt; - Default mount path.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Set name(s)? (or 'abort' or 'done') [done]&lt;/code&gt; - All select (or select what you system profile).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Directory does not contain SHA256.sig. Continue without verification? [no]&lt;/code&gt; - If you got the &lt;code&gt;sig&lt;/code&gt; files and put it with install sets, select &lt;code&gt;no&lt;/code&gt;. Otherwise you can select &lt;code&gt;yes&lt;/code&gt; (but caution, this could be a security risk).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;What timezone are you in? ('?' for list [Canada/Mountain]&lt;/code&gt; - Write your Timezone.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And &lt;em&gt;voilà&lt;/em&gt;, just reboot and your system is ready to go ;)&lt;/p&gt;

&lt;h2&gt;
  
  
  (Optional) Post-install
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Network
&lt;/h3&gt;

&lt;p&gt;To configure your device to use &lt;code&gt;dhcp&lt;/code&gt; you need to create a &lt;code&gt;/etc/hostname.&amp;lt;device&amp;gt;&lt;/code&gt; file, and include &lt;code&gt;autoconf&lt;/code&gt; on it [updated, the best practice is &lt;code&gt;autoconf&lt;/code&gt; on net config].&lt;/p&gt;

&lt;p&gt;Example (as &lt;code&gt;root&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# echo "inet autoconf" &amp;gt; /etc/hostname.mue0
# echo "inet6 autoconf" &amp;gt;&amp;gt; /etc/hostname.mue0
# chown root:wheel /etc/hostname.mue0
# chmod 0640 /etc/hostname.mue0
# sh /etc/netstart
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For wifi, see &lt;strong&gt;Further Links&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Time
&lt;/h3&gt;

&lt;p&gt;If you get &lt;code&gt;WARNING: CHECK AND RESET THE DATE!&lt;/code&gt; on &lt;code&gt;dmesg&lt;/code&gt; or on console, you need to configure &lt;code&gt;ntpd&lt;/code&gt; to start and ignore big time offset.&lt;/p&gt;

&lt;h3&gt;
  
  
  HDMI
&lt;/h3&gt;

&lt;p&gt;If you want to get your raspi to activate the console on HDMI (it will break the serial console after kernel boot) you need to include &lt;code&gt;set tty fb0&lt;/code&gt; on &lt;code&gt;/etc/boot.conf&lt;/code&gt;. &lt;/p&gt;

&lt;h3&gt;
  
  
  Disk Encryption
&lt;/h3&gt;

&lt;p&gt;I didn't encrypted my disk, but if you want to, &lt;a href="http://matecha.net/posts/openbsd-on-pi-4-with-full-disk-encryption/" rel="noopener noreferrer"&gt;this tutorial&lt;/a&gt; is great.&lt;/p&gt;

&lt;h3&gt;
  
  
  Updating after install
&lt;/h3&gt;

&lt;p&gt;After installation and &lt;strong&gt;date ok&lt;/strong&gt;, you need to run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# syspatch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;then&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pkg_add -Uu
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Installing OpenBSD on Raspberry Pi was fun. OpenBSD 7 runs flawlessly and you can use it as firewall (adding some usb ethernet adapter), as DNS server, and other stuff.&lt;/p&gt;

&lt;p&gt;Tell me if you have any further questions or tips in comments.&lt;/p&gt;

&lt;p&gt;bye ;)&lt;/p&gt;

&lt;h2&gt;
  
  
  Further Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ftp.openbsd.org/pub/OpenBSD/7.0/arm64/INSTALL.arm64" rel="noopener noreferrer"&gt;INSTALLATION NOTES for OpenBSD/arm64 7.0&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.openbsd.org/faq/faq4.html" rel="noopener noreferrer"&gt;OpenBSD FAQ - Installation Guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.tumfatig.net/2018/running-openbsd-on-raspberry-pi-3/" rel="noopener noreferrer"&gt;Running OpenBSD on Raspberry Pi 3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://undeadly.org/cgi?action=article&amp;amp;sid=20170409123528" rel="noopener noreferrer"&gt;Getting OpenBSD running on Raspberry Pi 3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.gabsoftware.com/tutorials/tutorial-how-to-install-openbsd-6-1-step-by-step/" rel="noopener noreferrer"&gt;HOW TO INSTALL OPENBSD 6.1, STEP BY STEP&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://myblog.vindaloo.com/?p=277" rel="noopener noreferrer"&gt;OpenBSD on Raspberry Pi&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://archive.unitedbsd.com/t/installing-openbsd-on-raspberry-pi-3/168" rel="noopener noreferrer"&gt;Installing OpenBSD on Raspberry Pi 3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/AshyIsMe/openbsd-rpi4" rel="noopener noreferrer"&gt;OpenBSD 6.8 on RaspberryPi 4 B&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.openbsdhandbook.com/" rel="noopener noreferrer"&gt;OpenBSD Handbook&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.openbsd.org/faq/faq6.html" rel="noopener noreferrer"&gt;OpenBSD FAQ - Networking&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://azarus.ch/posts/2018-02-09-openbsd-wifi-802.1x-wpa-eap.html" rel="noopener noreferrer"&gt;OpenBSD WiFi 802.1x WPA-EAP setup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://rgz.ee/m/on.html" rel="noopener noreferrer"&gt;connect to wi-fi and ethernet networks from openbsd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://rakhesh.com/linux-bsd/keeping-openbsd-up-to-date/" rel="noopener noreferrer"&gt;Keeping OpenBSD up to date&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://matecha.net/posts/openbsd-on-pi-4-with-full-disk-encryption/" rel="noopener noreferrer"&gt;OpenBSD on Raspberry Pi 4 with Full-Disk Encryption&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tomscii.sig7.se/2022/02/Guide-to-OpenBSD-on-the-PinebookPro" rel="noopener noreferrer"&gt;The complete idiot's guide to OpenBSD on the Pinebook Pro&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.cyberciti.biz/faq/kvmvirtualization-virt-install-openbsd-unix-guest/" rel="noopener noreferrer"&gt;KVM virt-install: Install OpenBSD As Guest Operating System&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dataswamp.org/~solene/2020-11-16-why-i-use-openbsd.html" rel="noopener noreferrer"&gt;Why I use OpenBSD&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raspberryexpert.com/update-raspberry-pi/" rel="noopener noreferrer"&gt;How to Update Raspberry Pi (OS, Firmware, EEPROM &amp;amp; Kernel)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://comfilewiki.co.kr/en/doku.php?id=comfilepi:updating_the_raspberry_pi_firmware" rel="noopener noreferrer"&gt;Updating the Raspberry Pi Firmware&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://richardbucker.com/posts/openbsd-70-raspberrypi-setup/" rel="noopener noreferrer"&gt;OpenBSD 7.0 RaspberryPI Setup&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Credits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Pufferfish baby photo by Marty Wakat - shutterstock&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>openbsd</category>
      <category>raspberrypi</category>
      <category>howto</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
