linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [flasher scripts PATCH] Fix "typo" in comment re: padding calculations
@ 2015-08-18 19:14 Stephen Warren
       [not found] ` <1439925257-22522-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Warren @ 2015-08-18 19:14 UTC (permalink / raw)
  To: linux-tegra-u79uwXL29TY76Z2rM5mHXA; +Cc: Stephen Warren

From: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>

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 <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
 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)
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-19 16:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-18 19:14 [flasher scripts PATCH] Fix "typo" in comment re: padding calculations Stephen Warren
     [not found] ` <1439925257-22522-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-08-19 16:57   ` Stephen Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).