A home of miscellaneous projects by Paul Philippov.


How to restore firmware from bootloader shell

setenv baseaddr 0x80600000
setenv flashsize 0x800000

mw.b ${baseaddr} 0xff ${flashsize}
tftp ${baseaddr} fulldump.bin
sf probe 0; sf erase 0x0 ${flashsize}
sf write ${baseaddr} 0x0 ${filesize}
  • Look up base address value for your SoC in SDK.
  • Flash size is either 0x800000 for a 8MB chip or 0x1000000 for a 16MB chip.
  • Replace fulldump.bin with the name of your backup file.
  • You need a TFTP server with the firmware backup file on it.