[PATCH] commands: mmc_extcsd: fix calculation of RPMB size
Marco Felsch
m.felsch at pengutronix.de
Tue Jul 29 07:53:58 PDT 2025
On 25-07-29, Michael Tretter wrote:
> EXT_CSD_RPMB_SIZE_MULT contains the number of 128 KB blocks in the RPMB.
> While the calculated RMPB is labeled as KB, it actually contains the
> size in bytes.
>
> Fix the calculation to report the RPMB size in KB.
>
> An alternative would have been to change the label to bytes, but since
> the RPMB size is at least in an order of magnitude of KB, changing the
> label is not intuitive.
>
> Signed-off-by: Michael Tretter <m.tretter at pengutronix.de>
Reviewed-by: Marco Felsch <m.felsch at pengutronix.de>
More information about the barebox
mailing list