From 874f40588d3eb7e406521117c6e24d5a3376a77e Mon Sep 17 00:00:00 2001 From: Tim Wang Date: Mon, 18 Jul 2016 15:56:53 +0800 Subject: Implement the -a option to pad dtb aligned There is one condition that need cat the dtb files into one dtb.img which can support several boards use same SoC platform. And the original dtb file size is not aligned to any base. This may cause "Synchronous Abort" when load from a unligned address on some SoC machine, such as ARM. So this patch implement the -a option to pad zero at the end of dtb files and make the dtb size aligned to . Then, the aligned dtbs can cat together and load without "Synchronous Abort". Signed-off-by: Tim Wang Signed-off-by: David Gibson --- dtc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'dtc.h') diff --git a/dtc.h b/dtc.h index 56212c8..32009bc 100644 --- a/dtc.h +++ b/dtc.h @@ -53,6 +53,7 @@ extern int quiet; /* Level of quietness */ extern int reservenum; /* Number of memory reservation slots */ extern int minsize; /* Minimum blob size */ extern int padsize; /* Additional padding to blob */ +extern int alignsize; /* Additional padding to blob accroding to the alignsize */ extern int phandle_format; /* Use linux,phandle or phandle properties */ #define PHANDLE_LEGACY 0x1 -- cgit v1.2.3