u-boot/arch/arm/mach-stm32mp/cmd_stm32prog
Patrick Delaunay bd087f62c9 stm32mp: stm32prog: use the decimal format by default for offset parsing
Change the default base for offset parsing with simple_strtoull(),
so offset in flashlayout is coded in base 10 by default, even if string
start with '0'. The Octal encoding is not supported. The base 16
is still supported when the '0x' header is detected.

This patch solves an unexpected parsing result when the address,
provided by decimal value is starting by 0, for example 0x4400 = 00017408
is a invalid with current code.

...
P	0x04	fsbl1	Binary	mmc0	00017408	        tf-a.stm32
....

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2023-06-16 11:16:31 +02:00
..
cmd_stm32prog.c stm32mp: stm32prog: Remove tee_detected from stm32prog_data struct 2023-06-16 11:01:16 +02:00
Kconfig stm32mp: stm32prog: add TEE support in stm32prog command 2022-05-10 10:56:39 +02:00
Makefile stm32mp: stm32prog: Add CONFIG_CMD_STM32PROG_SERIAL and _USB 2021-03-11 17:41:17 +01:00
stm32prog.c stm32mp: stm32prog: use the decimal format by default for offset parsing 2023-06-16 11:16:31 +02:00
stm32prog.h stm32mp: stm32prog: Add support of FWU_MDATA partition type 2023-06-16 11:04:41 +02:00
stm32prog_serial.c stm32mp: stm32prog: solve warning for 64bits compilation 2022-09-23 13:58:20 +02:00
stm32prog_usb.c stm32mp: stm32prog: solve warning for 64bits compilation 2022-09-23 13:58:20 +02:00