From patchwork Tue Aug 18 19:14:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Warren X-Patchwork-Id: 508431 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 9FEBA1402B5 for ; Wed, 19 Aug 2015 05:13:36 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754207AbbHRTNc (ORCPT ); Tue, 18 Aug 2015 15:13:32 -0400 Received: from avon.wwwdotorg.org ([70.85.31.133]:57267 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753221AbbHRTNb (ORCPT ); Tue, 18 Aug 2015 15:13:31 -0400 Received: from severn.wwwdotorg.org (unknown [192.168.65.5]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by avon.wwwdotorg.org (Postfix) with ESMTPS id A37A0630E; Tue, 18 Aug 2015 13:13:30 -0600 (MDT) Received: from swarren-lx1.nvidia.com (localhost [127.0.0.1]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by severn.wwwdotorg.org (Postfix) with ESMTPSA id 4015EE4632; Tue, 18 Aug 2015 13:13:29 -0600 (MDT) From: Stephen Warren To: linux-tegra@vger.kernel.org Cc: Stephen Warren Subject: [flasher scripts PATCH] Fix "typo" in comment re: padding calculations Date: Tue, 18 Aug 2015 13:14:17 -0600 Message-Id: <1439925257-22522-1-git-send-email-swarren@wwwdotorg.org> X-Mailer: git-send-email 1.9.1 X-NVConfidentiality: public X-Virus-Scanned: clamav-milter 0.98.6 at avon.wwwdotorg.org X-Virus-Status: Clean Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Stephen Warren The binary format is U-Boot code + DTB + pad + flash image. U-Boot moves the DTB out of the way of BSS. The pad is to prevent U-Boot trashing the flash image, not the DTB. Fix the comment to reflect that. Signed-off-by: Stephen Warren --- tegra-uboot-flasher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tegra-uboot-flasher b/tegra-uboot-flasher index 4809665d4a6a..d20e3ad413ef 100755 --- a/tegra-uboot-flasher +++ b/tegra-uboot-flasher @@ -160,7 +160,7 @@ def func_flash(): if args.debug: print 'bss_size %d 0x%x' % (bss_size, bss_size) - # Avoid U-Boot's BSS, so the BSS-zeroing doesn't trash the DTB + # Avoid U-Boot's BSS, so the BSS-zeroing doesn't trash the appended flash image # Add 4KB in case the DTB size changes due to fdtput # Align to 4k, so flash writes don't need a bounce buffer for DMA padded_size = (u_boot_plus_dtb_size + bss_size + (2 * 4 * 1024) - 1) & ~((4 * 1024) - 1)