Booting OpenBSD on Edgerouter Lite
Booting OpenBSD on Edgerouter Lite
I am setting up OpenBSD on my edgerouter lite when I ran into an issue
Ted U’s guide: https://flak.tedunangst.com/post/OpenBSD-on-ERL
and
This guide: https://www.codeghar.com/blog/openbsd-network-gateway-on-edgerouter-lite.html
Both say to use this command to boot OpenBSD from u-boot
# setenv bootcmd 'fatload usb 0 $loadaddr bsd; bootoctlinux rootdev=/dev/sd0'
Unfortunately this failed, with something like “unable to read bsd”
Using this command which I got from this guide: https://wiki.analog.com/resources/tools-software/linuxdsp/docs/das-u-boot/loading_file_from_usb_storage_in_uboot
# fatls usb 0:1
I was able to figure out that the real command on OpenBSD 7.7 at least is now:
# setenv bootcmd 'fatload usb 0 $loadaddr boot; bootoctlinux rootdev=/dev/sd0'
Which fixed my issue with not being able to boot.