Commit Graph

7 Commits

Author SHA1 Message Date
Jonathan GUILLOT
0ee7c736c7 imx-imx-boot-bootpart.wks.in: Set fixed size for /boot partition
Using --size in the imx-imx-boot-bootpart.wks.in to set size of /boot
partition does not result in a 256MiB partition as expected but in a
~332MiB one.  Indeed, --size ensures --extra-space (default 10MiB) is
added to actual data size and furthermore applies --overhead-factor
(default 1.3) to the wanted size. This is exactly the case here as 256
* 1.3 = 332.8.

Use --fixed-size instead to force the /boot partition to be exactly
256MiB just as it is indicated in the comments of this file.
Consequently, the `do_image_wic` task will also fail if data copied in
this partition are too large at creation.

Signed-off-by: Jonathan GUILLOT <jonathan@joggee.fr>
2025-02-12 17:10:20 +01:00
Tom Hochstein
1aca2de4cf imx-imx-boot-bootpart.wks.in: Increase /boot partition 64 MiB -> 256 MiB
For i.MX 9 a typical kernel is 35 MB. With gcov, that increases to 75 MB
or more. Bump the /boot partition size accordingly.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2024-10-02 14:54:57 -07:00
Tom Hochstein
ef8b4c41cf boot: Fix UUU tagging, extend to fslc
Using the UUU-tagged bootloader image directly with UUU can cause UUU
to hang. The bootloader image is split on a certain transmit size, and
the hang occurs if the tag does not fit with the final bytes of the
bootloader image and must be split into a new transmit package.

The UUU tag is needed by UUU only in the SD Card image file itself so
that UUU can find the end of the boot partition.

Rework the design so the default bootloader and the default imx-boot
binaries are not tagged.

Also, extend the UUU tagging to fslc so it can gain the same benefit.

Fixes: https://github.com/Freescale/meta-freescale/pull/1762
Fixes: https://github.com/nxp-imx/mfgtools/issues/416
Co-authored-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2024-09-16 04:36:03 -07:00
Tom Hochstein
6c34107a9a imx-imx-boot-bootpart.wks.in: Fix overlap of imx-boot and boot partitions
The u-boot env offset in the imx-boot partition is 4MiB,
so set the boot partition alignment to 8MiB to fix the overlap.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-02-12 09:21:00 -03:00
Tom Hochstein
47a17a05b2 imx-imx-boot-bootpart.wks.in: Fix the layout comment
The layout comment was incorrect. It was missing the start of the
rootfs and what was there wasn't updated when the boot partition
was increased to 64MiB.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-02-12 09:21:00 -03:00
Max Krummenacher
02eb08c1f9 imx-imx-boot-bootpart.wks.in: increase boot partition to 64m
The i.MX8 / i.MX8X kernel's size is about 22MB.
Increase the boot partitions minimum size to have space for two kernel
images and have a constant partition size.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-23 09:55:07 -03:00
Max Krummenacher
3083912e9a imx-imx-boot-bootpart.wks: change default offset of bootloader
The i.MX 8QXP bootrom in B0 silicon reads the 1st image container at offset 32k
while tha A0 silicon started at 33k. The machine configurations already contain
the variable IMX_BOOT_SEEK to specify the needed offset.

Change the wks file accordingly.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-01-29 15:03:40 -02:00