mirror of
https://xff.cz/git/u-boot/
synced 2025-09-26 21:11:18 +02:00
stm32mp: stm32prog: handle flashlayout without STM32 image header
Accept flashlayout without header in alternate 0, to simplify the support of stm32prog command with dfu-util. By default the flashlayout file size is the size of the received binary, provided with the offset in the DFU alternate. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
This commit is contained in:
committed by
Patrice Chotard
parent
152576a598
commit
a9fed5aac5
@@ -1706,7 +1706,8 @@ static void stm32prog_end_phase(struct stm32prog_data *data, u64 offset)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (parse_flash_layout(data, STM32_DDR_BASE, 0))
|
log_notice("\nFlashLayout received, size = %lld\n", offset);
|
||||||
|
if (parse_flash_layout(data, STM32_DDR_BASE, offset))
|
||||||
stm32prog_err("Layout: invalid FlashLayout");
|
stm32prog_err("Layout: invalid FlashLayout");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user