path: root/pbl/misc.c
diff options
authorJean-Christophe PLAGNIOL-VILLARD <>2012-07-28 01:25:56 +0800
committerJean-Christophe PLAGNIOL-VILLARD <>2012-08-03 18:09:13 +0800
commit78867e2bbd066df7d56e281e03a8cdbe82adf4e4 (patch)
tree311c827a5dc95a2d557f2c308a87f9808aede902 /pbl/misc.c
parentd4c42fb33deb6c061e4410520a6601fb2d072a60 (diff)
Add pre-bootloader (pbl) image support
This allows for creating a pre-bootloader binary for - nand boot - mmc boot - compressed image The pbl will be incharge of the lowlevel init if needed. The barebox will skip it. Import string functions from linux 3.4 (arch/arm/boot/compressed/string.c) and implement a dummy panic. For now on introduce dummy zbarebox* targets and c code that will contain later the decompressor. This only implemeted on ARM. This patch is based on Sascha Hauer <> Add compressed image support patch Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <>
Diffstat (limited to 'pbl/misc.c')
1 files changed, 14 insertions, 0 deletions
diff --git a/pbl/misc.c b/pbl/misc.c
new file mode 100644
index 0000000000..47e9ceabe3
--- /dev/null
+++ b/pbl/misc.c
@@ -0,0 +1,14 @@
+#include <common.h>
+#include <init.h>
+#include <linux/types.h>
+#include <linux/string.h>
+#include <linux/ctype.h>
+void __noreturn panic(const char *fmt, ...)
+ while(1);
+void start_barebox(void)