diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-07-28 01:25:56 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-08-03 18:09:13 +0800 |
commit | 78867e2bbd066df7d56e281e03a8cdbe82adf4e4 (patch) | |
tree | 311c827a5dc95a2d557f2c308a87f9808aede902 /pbl/misc.c | |
parent | d4c42fb33deb6c061e4410520a6601fb2d072a60 (diff) | |
download | barebox-78867e2bbd066df7d56e281e03a8cdbe82adf4e4.tar.gz barebox-78867e2bbd066df7d56e281e03a8cdbe82adf4e4.tar.xz |
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 <s.hauer@pengutronix.de>
Add compressed image support patch
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'pbl/misc.c')
-rw-r--r-- | pbl/misc.c | 14 |
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) +{ +} |