4.Uart to usb serial cable ( can be found at any digital electronics store or amazon ).
5.Another machine with with any unix based os ( preferably debian or derivative of debian / openBsd / FreeBsd )
6.Enough will to survive through the installation process.
Some Notes:
1. I am assuming that you have some basic understanding of the unix utilities and unix systems in general.
2. This endeavor may take a lot of efforts and may require some trial and error to get things right so keep calm and keep installing.
PrePrep:
Installation of openBsd on raspberry Pi is bit tricky than normal os installation on raspberry pi, for instance installing raspbian is
as easy as downloading the os image from internet dd`ing or copying the os to the sd card and voila you have a running instance of
raspbian on raspberry pi within 20 to 30 min. Whereas installing OpenBsd on pi takes significant more effort than that, the reason is that
we need to first copy the os to the usb drive insert it into the pi and then install the os on the sd card.
Steps:
1.Connect the usb uart cable to the pi in the given way.
Tx of serial cable to Rx of the pi
Rx of serial cable to Tx of the pi
GND of serial cable to GND of pi
(Dont connect any of the VCC cables like 5v or 3v )
2.Download the install images from openBsd , also download the all set files from the same directory i.e all files with .tgz
extension.
3.Write it to the usb drive using the command
#dd if=/path/to/the/install.img of=/dev/sdxx
where sdxx is the sdcard on which you will install openbsd.
4.Copy all file sets from the step 2 into the usb drive( formated with bsdufs or fat filesystem).
5.Plug the usb in one of the port of the pi, insert the sdcard in pi. (dont power on yet).
6.With the serial cable connected to both your machine and raspberry pi, run the command on your machine.
#cu -l /dev/ttyUSB* -s 115200
( replace * with the number you see in your /dev folder, incase you have multiple ttyUSB's just unplug ours and check the /dev then
replug ours and then again check wich is the new addition, the new addition is our ttyUSB).
( if the command throws error like permission denied or line busy then run the following command
#chmod 666 /dev/ttyUSB*
here * is same as above.)
7.Once done with the step 4, plug in the power to pi and wait for activity to show on the serial console of you screen.
then uboot( pi's bootloader ) will boot and d if=/path/to/the/install.img of=/dev/sdxx
where sdxx is the sdcard on which you will install openbsd.
8.wait for the booting process to start, once you get the first question from the installer you are all set
follow the instructions given by the installer and when asked by the installer about the location of the file sets, select "disk"
option the select no if asked if the disk is mounted, then it will give available devices, select the usb drive from there and then
proceed as directed by the installer.
9.Once the installation is complete, remove the usb drive from the pi and reboot,login using the serial console again.
note: if you are done till step 7 voila you have installed openbsd on rpi, to configure netword follow through till end if you dont want the,
network you can just drop of from here bye bye.
10.Setting up network:
again we will need the usb drive for this purpose as we need to transfer the driver to the pi.
11.Download the
http://firmware.openbsd.org/firmware//bwfm-----
and the SHA.sig from there
then move to the pi and run the fw_update command from the terminal as root to install the firmware.