common: bootm: add checks to verify if ramdisk / fdtimage overlaps OS image
These cases are typically fatal and are difficult to debug for random users. Add checks for detecting overlapping images and abort if overlap is detected. Signed-off-by: Tero Kristo <t-kristo@ti.com>
This commit is contained in:
@@ -53,7 +53,8 @@ int boot_selected_os(int argc, char *const argv[], int state,
|
||||
ulong bootm_disable_interrupts(void);
|
||||
|
||||
/* This is a special function used by booti/bootz */
|
||||
int bootm_find_images(int flag, int argc, char *const argv[]);
|
||||
int bootm_find_images(int flag, int argc, char *const argv[], ulong start,
|
||||
ulong size);
|
||||
|
||||
int do_bootm_states(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[], int states, bootm_headers_t *images,
|
||||
|
||||
Reference in New Issue
Block a user