[PATCH 0/4] Update riscv's SYS_BOOTM_LEN to the most commonly used value.

Martin Herren sputnik at on-the-web.ch
Sat Jul 19 23:46:31 CEST 2025


The most commonly used SYS_BOOTM_LEN for riscv is 0x4000000 which is
used in 25 of the current defconfigs.

The previous default config value of 0x800000 was only used in 8
defconfigs.

This patch sets the default to this value.

No actual value for any board has been changed as all defconfigs have
been adapted to keep the same SYS_BOOTM_LEN.
Only exception is the Microchip Icicle which has been increased to the
new default value.

Command used to get the stats of the used values on RISCV defconfigs:

```
grep -l "CONFIG_RISCV=y" configs/* | \
 xargs -I {} sh -c "grep -H CONFIG_SYS_BOOTM_LEN {} || echo {}:DEFAULT" | \
 cut -d ':' -f 2 | sort | uniq -c
```

Changes in v3:
- Add commit to change microchip_mpfs_icicle_defconfig to the new
  SYS_BOOTM_LEN value, on Conor Dooley's request

Martin Herren (4):
  riscv: Set SYS_BOOTM_LEN explicitly to 0x800000
  riscv: Set SYS_BOOTM_LEN default to 0x4000000
  riscv: Remove default SYS_BOOTM_LEN from defconfig
  riscv: Increase Microchip Icicle's SYS_BOOTM_LEN

 boot/Kconfig                            | 2 +-
 configs/ae350_rv32_defconfig            | 1 -
 configs/ae350_rv32_falcon_defconfig     | 1 -
 configs/ae350_rv32_falcon_xip_defconfig | 1 -
 configs/ae350_rv32_spl_defconfig        | 1 -
 configs/ae350_rv32_spl_xip_defconfig    | 1 -
 configs/ae350_rv32_xip_defconfig        | 1 -
 configs/ae350_rv64_defconfig            | 1 -
 configs/ae350_rv64_falcon_defconfig     | 1 -
 configs/ae350_rv64_falcon_xip_defconfig | 1 -
 configs/ae350_rv64_spl_defconfig        | 1 -
 configs/ae350_rv64_spl_xip_defconfig    | 1 -
 configs/ae350_rv64_xip_defconfig        | 1 -
 configs/ibex-ast2700_defconfig          | 1 -
 configs/k230_canmv_defconfig            | 1 +
 configs/milkv_duo_defconfig             | 1 -
 configs/qemu-riscv32_defconfig          | 1 -
 configs/qemu-riscv32_smode_defconfig    | 1 -
 configs/qemu-riscv32_spl_defconfig      | 1 -
 configs/qemu-riscv64_defconfig          | 1 -
 configs/qemu-riscv64_smode_defconfig    | 1 -
 configs/qemu-riscv64_spl_defconfig      | 1 -
 configs/sifive_unleashed_defconfig      | 1 -
 configs/sifive_unmatched_defconfig      | 1 -
 configs/sipeed_licheerv_nano_defconfig  | 1 -
 configs/sipeed_maix_bitm_defconfig      | 1 +
 configs/sipeed_maix_smode_defconfig     | 1 +
 configs/starfive_visionfive2_defconfig  | 1 -
 configs/th1520_lpi4a_defconfig          | 1 -
 configs/xilinx_mbv32_defconfig          | 1 +
 configs/xilinx_mbv32_smode_defconfig    | 1 +
 configs/xilinx_mbv64_defconfig          | 1 +
 configs/xilinx_mbv64_smode_defconfig    | 1 +
 33 files changed, 8 insertions(+), 26 deletions(-)



More information about the U-Boot mailing list