]> git.baikalelectronics.ru Git - uboot.git/commit
tools: imx8m_image: align spl bin image size
authorPeng Fan <peng.fan@nxp.com>
Tue, 27 Aug 2019 06:24:43 +0000 (06:24 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:36:36 +0000 (16:36 +0200)
commit26e27eeabdd21da42e79d6eef17b285890b6d055
tree8112c83b6efac35294957441f403bff97093cf06
parentb3e52af4eef6558dc0d1fbcdd188fe15fe330bca
tools: imx8m_image: align spl bin image size

The loader for the DDR firmware in drivers/ddr/imx/imx8m/helper.c uses a
4-byte-aligned address to load the firmware. In cases where OF is
enabled in SPL the dtb will be appended to the SPL binary and can result
in a binary that is not aligned correctly. If OF is not enabled in SPL,
`_end` is already aligned correctly, but this patch does not hurt.

To ensure the correct alignment we use dd to create a temporary file
u-boot-spl-pad.bin with the correct padding.

Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Tested-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
tools/imx8m_image.sh