cros_bundle_firmware: Enable U-Boot size machine parameter
Now that we have BL2 checksumming, we can use this parameter. It
optimizes the amount of data loaded by the SPL, thus speeding up boot
slightly.
BUG=chromium-os:28394
TEST=manual:
Modify U-Boot to print out SPL load size
cros_bundle_firmware -b daisy -w usb
See that it prints out the correct size on the terminal
Change-Id: Ibc4a546e63185d449b578f90a6643485ef3d53a0
Reviewed-on: https://gerrit.chromium.org/gerrit/23402
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Ready: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
diff --git a/host/lib/bundle_firmware.py b/host/lib/bundle_firmware.py
index 3a86641..a1ebe73 100644
--- a/host/lib/bundle_firmware.py
+++ b/host/lib/bundle_firmware.py
@@ -594,11 +594,8 @@
value = 31
self._out.Info(' Memory interleave: %#0x' % value)
elif param == 'u':
- # TODO(sjg): Seems to not work unless set to the same value as in the
- # existing image. Need to find root cause.
- #value = os.stat(pack.GetProperty('boot+dtb')).st_size
- #value = (value + 0xfff) & ~0xfff
- self._out.Warning("Leaving U-Boot size unchanged")
+ value = os.stat(pack.GetProperty('boot+dtb')).st_size
+ value = (value + 0xfff) & ~0xfff
self._out.Info(' U-Boot size: %#0x' % value)
else:
self._out.Warning("Unknown machine parameter type '%s'" % param)