FW payload won't fit into SPL

Hey,

I’m trying to update the bootloader on my Mars CM (SDCard) following Milk-V Mars Bootloader Update Guide | Milk-V however I run into the following issue:

root@milkv:/home/user# flashcp -v mars-cm_sdcard_visionfive2_fw_payload.img /dev/mtd1
mars-cm_sdcard_visionfive2_fw_payload.img won't fit into /dev/mtd1!

It looks like that in the current partition layout, the payload (3.37MB) simply won’t fit into the uboot partition (300kB):

root@milkv:/home/user# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00001000 "spl"
mtd1: 00300000 00001000 "uboot"
mtd2: 00100000 00001000 "data"

I also see someone raising this issue for the VisionFive2 here: u-boot 2.10.4 and 2.11.5 won't fit · Issue #45 · starfive-tech/VisionFive2 · GitHub where it’s stated that this is not needed anymore.

I’m a bit lost here - Is the documentation outdated or do I do something fundamentally wrong?

I encountered the same issue on my Mars CM (also the SDCard version).
I am also not sure as to what to conclude from u-boot 2.10.4 and 2.11.5 won't fit · Issue #45 · starfive-tech/VisionFive2 · GitHub. But I did manage to update the u-boot by following chapter 3.8.1 in the VisionFive 2 Single Board Computer Quick Start Guide and using the ‘TFTP’ method.

Hope this helps!

1 Like