Skip to content
Commit 7dede403 authored by Hiago De Franco's avatar Hiago De Franco Committed by Stefano Babic
Browse files

arm: mach-imx: Makefile: Extend u-boot-nand.imx padding

Extend the padding process of u-boot-nand.imx target by adding 10k bytes
of zeros to the end of the binary using the 'dd' command.

The existing padding method did not generate a functional binary,
as discussed in more detail in this thread [1]. Instead, we adopt the
end-padding calculation method documented in 'board/doc/colibri_imx7.rst'
as a reference, which is relevant for iMX7 with NAND storage.

Adding 10k bytes of zeros provides an approximate value that makes the
proper padding for these NAND devices.

[1] https://lore.kernel.org/all/CAC4tdFUqffQzRQFv5AGe_xtbFy1agr2SEpn_FzEdexhwjdryyw@mail.gmail.com/



Signed-off-by: default avatarHiago De Franco <hiago.franco@toradex.com>
Reviewed-by: default avatarFabio Estevam <festevam@gmail.com>
parent 0c39564d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment