USB Boot on Raspberry Pi 3

HI Just tested it last monday

Used Hardware+ Software
raspberry Pi 3b
usb to M.2 adapter for the pi LINK
Kinkston 12GB m.2 2280
HASSOS 4.11 official release

I just followed the steps as followed

  • make a clean install with Raspberry Pi OS (32-bit) Lite LINK
  • Add SSH file to the root directory
  • boot up and ssh into the pi
    Username: pi
    Password: raspberry
  • i did a complete update (but for the boot option its not needed i think )

sudo apt update && sudo apt upgrade && sudo reboot

  • Then enable USB boot mode with this code:-

echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt

This adds program_usb_boot_mode=1 to the end of /boot/config.txt.

  • Reboot the Raspberry Pi with:-

sudo reboot

Then check that the OTP has been programmed with:-

vcgencmd otp_dump | grep 17:

Check that the output 17: 3020000a is shown
Now the USB boot in enabled.

  • install hassos on the SSD/ USB using balena etcher
  • remove the SD card from the PI
  • plug in the SSD in the PI
  • power it up and just wait until installation is finished is finished

WORKS LIKE A CHARM

For the ones that need to put the old backup back

  • make sure the backup file .tar is stored on your PC
  • from the fresh hassos installation install samba share and enable it.
  • Browse with windows explorer directly to the PI’s ip \192.168.0.XX where the last windows 10 update has issues recognizing the pi.
  • place the backup file in the backup folder
  • in hassos refresh the snapshot page in the richt upper corner.
  • now you will see the snapshot and you will be able to apply it

I needed to delete the database file because my sensors flat-lined

Enjoy IT

For the Raspbee users don’t forget to add in the config on your SD/SSD/USB root :wink:

enable_uart=1
dtoverlay=pi3-disable-bt

Sources:
github
instructables

Hope this helps some of you

1 Like