summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-12-09 12:44:25 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-01-05 11:30:59 +0100
commit447d299fd73d23b9296145e7a36135e4bf1cdc02 (patch)
tree809992ba10792c72a397700303a3803193070b1a /arch
parent577cb0cb51c083090ca89c1ce5f9cd35970ed18e (diff)
downloadbarebox-447d299fd73d23b9296145e7a36135e4bf1cdc02.tar.gz
barebox-447d299fd73d23b9296145e7a36135e4bf1cdc02.tar.xz
ARM: uncompress.c: Add some debugging messages
Now that we have printf support in the PBL we can use it right after setup_c(). Add some debug messages to the early PBL code to make it more clear what is happening there. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/uncompress.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/cpu/uncompress.c b/arch/arm/cpu/uncompress.c
index d64706d217..03c73d56a3 100644
--- a/arch/arm/cpu/uncompress.c
+++ b/arch/arm/cpu/uncompress.c
@@ -17,6 +17,7 @@
* GNU General Public License for more details.
*
*/
+#define pr_fmt(fmt) "uncompress.c: " fmt
#include <common.h>
#include <init.h>
@@ -76,9 +77,12 @@ static void __noreturn noinline uncompress_start_payload(unsigned long membase,
setup_c();
+ pr_debug("memory at 0x%08lx, size 0x%08lx\n", membase, memsize);
+
if (IS_ENABLED(CONFIG_MMU_EARLY)) {
endmem &= ~0x3fff;
endmem -= SZ_16K; /* ttb */
+ pr_debug("enabling MMU, ttb @ 0x%08x\n", endmem);
mmu_early_enable(membase, memsize, endmem);
}
@@ -93,6 +97,9 @@ static void __noreturn noinline uncompress_start_payload(unsigned long membase,
pg_start = image_end + 1;
pg_len = *(image_end);
+ pr_debug("uncompressing barebox binary at 0x%p (size 0x%08x) to 0x%08lx\n",
+ pg_start, pg_len, barebox_base);
+
pbl_barebox_uncompress((void*)barebox_base, pg_start, pg_len);
arm_early_mmu_cache_flush();
@@ -103,6 +110,8 @@ static void __noreturn noinline uncompress_start_payload(unsigned long membase,
else
barebox = (void *)barebox_base;
+ pr_debug("jumping to uncompressed image at 0x%p\n", barebox);
+
barebox(membase, memsize, boarddata);
}