version=pmwiki-2.2.130 ordered=1 urlencoded=1 agent=Mozilla/5.0 (X11; Linux x86_64; OpenBSD amd64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36 author=pufferf charset=UTF-8 csum= ctime=1651137068 host=194.182.188.69 name=OpenBSD.EdgeRouter-Lite rev=2 targets= text=EdgeRouter Lite is a nice low budget router powerful enough to push packets around in a small home network and, best of all, you can run OpenBSD (with bootloader) on it! this means KARL will work and you can use [[https://man.openbsd.org/sysupgrade | sysupgrade(8)]] instead of messing with the /dev/sd0i partition.%0a%0aThis instructions are tested working with OpenBSD 7.0 and 7.1. This guide doesn't replace reading the official documentation.%0a%0a!! Recommended reading%0a%0a* [[https://ftp.openbsd.org/pub/OpenBSD/7.0/octeon/INSTALL.octeon | OpenBSD INSTALL.octeon]]%0a* [[https://www.openbsd.org/faq/pf/index.html | Packet Filter User's Guide]]%0a* [[https://www.openbsd.org/faq/ | OpenBSD FAQ]]%0a%0a!! Parts needed%0a%0a* Cisco RJ45 to DB9 cable%0a* DB9 Serial Port%0a* EdgeRouter Lite%0a* Sandisk Cruzer Fit 16GB%0a* Internet connection%0a%0aIf your computer lacks a DB9 Serial Port you can use an USB to Serial adapter compatible with your operating system. My adapter is an UGREEN PL2303 supported by OpenBSD.%0a%0a!! Installation%0a%0aFirst of all download the latest image - in this case install70.img from [[https://cdn.openbsd.org/pub/OpenBSD/7.0/octeon/ | octeon directory]] and once verified with [[https://man.openbsd.org/signify | signify(1)]] burn it into the Sandisk Cruzer Fit. There are several ways to do this depending on the operating system you use; in OpenBSD it could be done using [[https://man.openbsd.org/dd | dd(1)]], being sdXc the Sandisk USB device. Be careful with the 'of' parameter of this command since it will wipe your data if you choose the wrong disk:%0a%0a[@%0a$ doas dd if=install70.img of=/dev/rsdXc bs=1m%0a@]%0a%0aInsert the Sandisk USB inside the EdgeRouter Lite, replacing the USB drive it already has. With the Cisco cable connected to the Console port in the router use [[https://man.openbsd.org/cu | cu(1)]] (or Minicom is you use Linux) this way if you are using a USB to Serial adapter:%0a%0a[@%0a$ cu -l cuaU0 -s 115200%0a@]%0a%0aThe user should belong to dialer group (usermod -G dialer youruser)%0a%0aOr this way if you are using your computer's serial port:%0a%0a[@%0a$ cu -s 115200 %0a@]%0a%0aPress some keys while you are connected to the console and the Edgerouter is booting. A shell will appear, then you have to enter these commands:%0a%0a[@%0aOcteon ubnt_e100# fatload usb 0 $loadaddr bsd.rd%0aOcteon ubnt_e100# bootoctlinux%0a@]%0a%0aAt this point the OpenBSD installation goes as usual. After rebooting interrupt the Edgerouter boot process to configure the bootloader, saving the old boot command just in case you want to revert the installation:%0a%0a[@%0aOcteon ubnt_e100# setenv old_bootcmd "${bootcmd}"%0aOcteon ubnt_e100# setenv bootcmd 'usb reset; fatload usb 0 ${loadaddr} boot; bootoctlinux rootdev=sd0 numcores=2'%0aOcteon ubnt_e100# saveenv ; reset%0a@]%0a%0aSince the EdgeRouter Lite lacks an internal battery to keep the hour you want to add rdate pool.ntp.org to /etc/rc.local once installed and booted to sync the clock at every boot. time=1651157449 author:1651157449=pufferf diff:1651157449:1651137068:=25d24%0a%3c [@%0a27,28c26%0a%3c @]%0a%3c %0a---%0a> %0a31d28%0a%3c [@%0a33,34c30%0a%3c @]%0a%3c %0a---%0a> %0a39d34%0a%3c [@%0a41,42c36%0a%3c @]%0a%3c %0a---%0a> %0a45d38%0a%3c [@%0a48,49c41%0a%3c @]%0a%3c %0a---%0a> %0a52d43%0a%3c [@%0a56d46%0a%3c @]%0a host:1651157449=194.182.188.69 author:1651137068=pufferf csum:1651137068=How to install OpenBSD in the Edgerouter Lite diff:1651137068:1651137068:=1,48d0%0a%3c EdgeRouter Lite is a nice low budget router powerful enough to push packets around in a small home network and, best of all, you can run OpenBSD (with bootloader) on it! this means KARL will work and you can use [[https://man.openbsd.org/sysupgrade | sysupgrade(8)]] instead of messing with the /dev/sd0i partition.%0a%3c %0a%3c This instructions are tested working with OpenBSD 7.0 and 7.1. This guide doesn't replace reading the official documentation.%0a%3c %0a%3c !! Recommended reading%0a%3c %0a%3c * [[https://ftp.openbsd.org/pub/OpenBSD/7.0/octeon/INSTALL.octeon | OpenBSD INSTALL.octeon]]%0a%3c * [[https://www.openbsd.org/faq/pf/index.html | Packet Filter User's Guide]]%0a%3c * [[https://www.openbsd.org/faq/ | OpenBSD FAQ]]%0a%3c %0a%3c !! Parts needed%0a%3c %0a%3c * Cisco RJ45 to DB9 cable%0a%3c * DB9 Serial Port%0a%3c * EdgeRouter Lite%0a%3c * Sandisk Cruzer Fit 16GB%0a%3c * Internet connection%0a%3c %0a%3c If your computer lacks a DB9 Serial Port you can use an USB to Serial adapter compatible with your operating system. My adapter is an UGREEN PL2303 supported by OpenBSD.%0a%3c %0a%3c !! Installation%0a%3c %0a%3c First of all download the latest image - in this case install70.img from [[https://cdn.openbsd.org/pub/OpenBSD/7.0/octeon/ | octeon directory]] and once verified with [[https://man.openbsd.org/signify | signify(1)]] burn it into the Sandisk Cruzer Fit. There are several ways to do this depending on the operating system you use; in OpenBSD it could be done using [[https://man.openbsd.org/dd | dd(1)]], being sdXc the Sandisk USB device. Be careful with the 'of' parameter of this command since it will wipe your data if you choose the wrong disk:%0a%3c %0a%3c $ doas dd if=install70.img of=/dev/rsdXc bs=1m%0a%3c %0a%3c Insert the Sandisk USB inside the EdgeRouter Lite, replacing the USB drive it already has. With the Cisco cable connected to the Console port in the router use [[https://man.openbsd.org/cu | cu(1)]] (or Minicom is you use Linux) this way if you are using a USB to Serial adapter:%0a%3c %0a%3c $ cu -l cuaU0 -s 115200%0a%3c %0a%3c The user should belong to dialer group (usermod -G dialer youruser)%0a%3c %0a%3c Or this way if you are using your computer's serial port:%0a%3c %0a%3c $ cu -s 115200 %0a%3c %0a%3c Press some keys while you are connected to the console and the Edgerouter is booting. A shell will appear, then you have to enter these commands:%0a%3c %0a%3c Octeon ubnt_e100# fatload usb 0 $loadaddr bsd.rd%0a%3c Octeon ubnt_e100# bootoctlinux%0a%3c %0a%3c At this point the OpenBSD installation goes as usual. After rebooting interrupt the Edgerouter boot process to configure the bootloader, saving the old boot command just in case you want to revert the installation:%0a%3c %0a%3c Octeon ubnt_e100# setenv old_bootcmd "${bootcmd}"%0a%3c Octeon ubnt_e100# setenv bootcmd 'usb reset; fatload usb 0 ${loadaddr} boot; bootoctlinux rootdev=sd0 numcores=2'%0a%3c Octeon ubnt_e100# saveenv ; reset%0a%3c %0a%3c Since the EdgeRouter Lite lacks an internal battery to keep the hour you want to add rdate pool.ntp.org to /etc/rc.local once installed and booted to sync the clock at every boot.%0a\ No newline at end of file%0a host:1651137068=194.182.188.69