[RFC PATCH] am335x* defconfig: Increase u-boot partition in mtdparts
Tom Rini
trini at konsulko.com
Wed Jan 8 17:57:44 CET 2025
On Tue, Jan 07, 2025 at 04:50:55PM -0600, Judith Mendez wrote:
> From: Hong Guan <hguan at ti.com>
>
> Fix u-boot NAND partition in MTDPARTS_DEFAULT since the size
> of u-boot image has grown beyond 1MB and no longer fits in 1MB
> NAND partition, thus we are failing to flash and boot via GPMC
> NAND.
>
> Increase the size of NAND.u-boot to 2MB since the size of
> u-boot.img is currently 1.4M.
>
> Signed-off-by: Hong Guan <hguan at ti.com>
> [Judith: extend fix to HS defconfigs and add commit msg]
> Signed-off-by: Judith Mendez <jm at ti.com>
> ---
> This patch is marked RFC to understand if solution is acceptable
> since changing partition sizes will not be backwards compatible
> solution.
>
> One other solution was too try to reduce the size of u-boot proper,
> but removing features (boot modes.. etc) did not seem to get the
> size of u-boot proper to 1MB with a usable u-boot proper.
So the big problem here is that we have more space being taken up by
device trees than U-Boot itself. A quick mkimage -l and adding things up
shows that we have 851936 bytes of device trees. You should look at
switching to MULTI_DTB_FIT and enabling some compression, along with
possibly LTO of U-Boot itself.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250108/2b6ffcf9/attachment.sig>
More information about the U-Boot
mailing list