From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751530AbcFXSlN (ORCPT ); Fri, 24 Jun 2016 14:41:13 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34945 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750978AbcFXSlM (ORCPT ); Fri, 24 Jun 2016 14:41:12 -0400 Subject: Re: [PATCH] Implement the -a option to pad dtb aligned To: Tim Wang References: <1466767161-599-1-git-send-email-timwang@asrmicro.com> Cc: robh+dt@kernel.org, grant.likely@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, wtt_usst@163.com From: Frank Rowand Message-ID: <576D7EBF.6000507@gmail.com> Date: Fri, 24 Jun 2016 11:41:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <1466767161-599-1-git-send-email-timwang@asrmicro.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tim, On 06/24/16 04:19, Tim Wang wrote: > 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 > --- > dtc.c | 9 ++++++++- > dtc.h | 1 + > flattree.c | 10 ++++++++++ [ ... ] The MAINTAINERS file is not very helpful in this case. You need to send dtc patches to the devicetree-compiler list devicetree-compiler@vger.kernel.org Subscription info is at http://vger.kernel.org/vger-lists.html#devicetree-compiler After changes are made by the dtc maintainer, we pull the new version of dtc into the Linux tree. -Frank