Hi Tom,

On 1/8/25 10:57 AM, Tom Rini wrote:
On Tue, Jan 07, 2025 at 04:50:55PM -0600, Judith Mendez wrote:

From: Hong Guan <[email protected]>

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 <[email protected]>
[Judith: extend fix to HS defconfigs and add commit msg]
Signed-off-by: Judith Mendez <[email protected]>
---
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.


Thanks so much for your feedback, I will look some more into this.

~ Judith

Reply via email to