Commit 874f4058 authored by Tim Wang's avatar Tim Wang Committed by David Gibson
Browse files

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 <aligned number> option to
pad zero at the end of dtb files and make the dtb size aligned
to <aligned number>.

Then, the aligned dtbs can cat together and load without "Synchronous
Abort".

Signed-off-by: default avatarTim Wang <timwang@asrmicro.com>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 1ed45d40
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment