protectli-root / protectli-firmware-updater

Script used to update firmware on Protectli devices
MIT License
49 stars 3 forks source link

Suggestion: BSD support #44

Open cannondale0815 opened 1 week ago

cannondale0815 commented 1 week ago

I'd love to be able to run the flash updater directly from BSD, i.e. from OPNsense in my case. Sadly the flashrom executables cannot be executed from BSD. Any suggestions?

cannondale0815 commented 1 week ago

Figured it out myself. "flashrom" already exists for BSD. The following worked for me on my FW4B in an OPNsense terminal window:

Install flashrom and all dependencies:

pkg install flashrom

Flash BIOS firmware:

flashrom -p internal -w fw4b_YLBWL440P.bin

Be sure to use the correct command and bios file for your particular model. Look inside flashli/configurations.py for details.