Files
meta-pengwyn/recipes-bsp/u-boot/files2/0021-debug.patch

21 lines
875 B
Diff

diff --git a/boot/bootm.c b/boot/bootm.c
index a4c0870c0f..6059c73158 100644
--- a/boot/bootm.c
+++ b/boot/bootm.c
@@ -411,6 +411,7 @@ static int bootm_load_os(struct bootm_headers *images, int boot_progress)
void *load_buf, *image_buf;
int err;
+ printf("[SCLE] load os : start=%x - len=%d\n", image_start, image_len);
load_buf = map_sysmem(load, 0);
image_buf = map_sysmem(os.image_start, image_len);
err = image_decomp(os.comp, load, os.image_start, os.type,
@@ -1029,6 +1030,7 @@ static int bootm_host_load_image(const void *fit, int req_image_type,
/* Allow the image to expand by a factor of 4, should be safe */
buf_size = (1 << 20) + len * 4;
+ printf("[SCLE] before decompress: buf_size=%d\n", buf_size);
load_buf = malloc(buf_size);
ret = image_decomp(image_comp, 0, data, image_type, load_buf,
(void *)data, len, buf_size, &load_end);