Due to a problem in U-Boot branches previous v2024.04, the "Invalid slot number" message may be seen when the number of slots defined in the QSPI flash device is larger or equal to 10.
This problem is that the affected functions processes the slot number input parameter as a hexadecimal value instead of a decimal value and in case the input slot number is higher or equal to 10, this results in a value that is higher than the real number of slots defined.
This problem affects all the devices that support RSU. The commands affected are:
- slot_get_info
- slot_size
- slot_priority
- slot_erase
- slot_program_buf
- slot_program_factory_update_buf
- slot_program_buf_raw
- slot_verify_buf
- slot_verify_buf_raw
- slot_enable
- slot_disable
- slot_load
- slot_rename
- slot_delete
This problem is scheduled to be fix in a future release.