Milk-V Mars CM Bootloader Update Guide
Whether Mars CM starts the system through the SD card or the eMMC module, it must be started through the Bootloader boot program. This boot program is stored in an SPI Flash on the board and contains two parts: SPL and U-Boot.
The Bootloader in Mars CM can be understood as the BIOS in PC
When Mars CM is shipped, it already comes with a pre-installed initial Bootloader program. There is no need to upgrade this program during normal usage. Bootloader upgrade is only necessary in the following situations:
- When the bootloader program in SPI Flash is accidentally damaged, causing the system to fail to start normally.
- When upgrading the official system image (such as Debian), it must be matched with the new bootloader, otherwise it cannot be started.
- U-Boot has fixed some bugs or added new functions. When you need to use these new functions.
There are several ways to update the Bootloader in SPI Flash on Mars CM, such as Windows burning tools, TFTP, flashcp commands, etc. Here we first introduce how to use the UsbFlashTool burning tool in Windows systems.
Mars CM can be used with different base-boards. Here we take the Raspberry Pi CM4 IO Board base board as an example.
Upgrade Bootloader using UsbFlashTool Windows tool
Download UsbFlashTool burning tool and Bootloader firmware
SPL: u-boot-spl.bin.normal.out
U-BOOT: visionfive2_fw_payload.img