Simplified Software Flashing


Return to index

If your device had a Simple tag on the supported devices page or stated on that device’s page it is possible with vendor firmware or you’re already running Canoeboot and you don’t have flash protection turned on, internal flashing is possible.

Otherwise visit the simplified-hw-flashing guide

Disable /dev/mem protection

Before internal flashing, Disable /dev/mem protection first.

In short add this kernel parameter: iomem=relaxed(Unix-like system that boots with the kernel named Linux)/kernel.securelevel=-1(bsd distro)

THEN REMOVE THIS KERNEL PARAMETER TO PREVENT UNAUTHORIZED/MALICIOUS ACCESS TO YOUR SYSTEM AFTER FLASHING CANOEBOOT.

(An important reminder for those who might forget to delete it, even better, replace it with lockdown=integrity / lockdown=confidentiality)

Backup the previous (working) firmware

Do it twice (to check and compare if reading it gone wrong and backups differs.)

flashprog -p internal -r Backup1.bin

flashprog -p internal -r Backup2.bin

Check the backups

Compare those if reading from the flash were successful:

diff Backup1.bin Backup2.bin

For more than 2:

shasum Backup1.bin Backup2.bin Backup3.bin

If those differs, something gone wrong and proceeding further may (DON’T) leave your device unrecoverable (without a reliable backup) if flashing fails as well.

Flash the new firmware

Remember to add IFD option to skip the ME region if needed.

Replace the Canoeboot.rom with your device’s filename.rom found on the installation page and DO NOT SHUT DOWN or REBOOT it after flashing Canoeboot, if running on vendor firmware.

If your machine is unuseable without intel me, flash the other regions only. (1th+ gen. intel motherboards)

flashprog -p internal --ifd -i ifd -w Canoeboot.rom

flashprog -p internal --ifd -i gbe -w Canoeboot.rom

flashprog -p internal --ifd -i bios -w Canoeboot.rom

For other motherboards;

flashprog -p internal -w Canoeboot.rom

In case if it gone wrong, feel free to ask for help on IRC.

Use sync in the terminal to avoid data loss/corruption, then turn off the psu (power supply) or pull the cable to avoid the factory one overwriting the fresh (Canoeboot) installation, especially with dell ones.

Enable /dev/mem protection

REMOVE iomem=relaxed(Unix-like system that boots with the kernel named Linux)/kernel.securelevel=-1(bsd distro) KERNEL PARAMETER TO PREVENT UNAUTHORIZED/MALICIOUS ACCESS TO YOUR SYSTEM AFTER FLASHING CANOEBOOT (and booting to your os)

(An important reminder for those who might forget to delete it, even better, replace it with lockdown=integrity / lockdown=confidentiality)

Markdown file for this page: https://canoeboot.org/docs/install/simplified-sw-flashing.md

Site map

This HTML page was generated by the Canoeboot Static Site Generator.

Canoeboot is discontinued. A new project was created: RBoot project, a fully free UEFI firmware distribution based on coreboot. RBoot is Canoeboot continued under a new name, with the same maintainer. The canoeboot website and release sources shall be preserved for historical purposes.