Commit Graph

24 Commits

Author SHA1 Message Date
Jonathan GUILLOT
0b595db905 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>
(cherry picked from commit 0ee7c736c7)
2025-02-12 16:37:34 +00: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
Trevor Woerner
4d64026eda imx-uboot-mxs-bootpart.wks.in: drop extra 'rootfs'
${IMAGE_LINK_NAME} already contains "rootfs" at the end, therefore it does not
need to be added explicitly. Otherwise the wic creation fails with:

	wic.filemap.Error: cannot open image file '.../build/tmp-glibc/deploy/images/imx233-olinuxino-maxi/core-image-minimal-imx233-olinuxino-maxi.rootfs.rootfs.uboot-mxsboot-sdcard'

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2023-11-12 12:23:55 -05:00
Rodrigo M. Duarte
0dc49032af imx-imx-boot.wks: Add wks file without bootpart
Signed-off-by: Rodrigo M. Duarte <rodrigo.duarte@ossystems.com.br>
2023-03-01 18:34:57 -03:00
Max Krummenacher
2065d8697a imx-boot-container-bootpart: drop wks file
Now that we have a symlink with constant name 'imx-boot' independent
on the use of the MACHINEOVERRIDE 'imx-boot-container', drop the
additonal imx-boot-container-bootpart file as imx-imx-boot-bootpart
does the same thing.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-04-26 12:15:40 +02:00
Andrey Zhizhikin
399f542a2d imx-boot-container: align with u-boot 2022.01
Recent version of U-Boot v2022.01 reverted boot container generation
mechanism to provide single boot container isntead of separate binaries
for SPL+DDR and U-Boot FIT. New approach provides packing of those
separate components inside the U-Boot binman, and is delivered as a
single 'flash.bin' file, which resembles the original behavior before
binman image packing was introduced.

Adapt our boot container class and WIC file to pick up this consolidated
binary instead of two separate pieces.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2022-01-18 12:59:16 +00:00
Andrey Zhizhikin
542ed81366 wic: add new wks file to use boot container for mx8m
Add new WKS template file, which uses the boot container provided by
mainline U-Boot.

Boot container built as a part of U-Boot packs binary components into
two separate files, namely 'flash.bin' and 'u-boot.itb'. First file
contains SPL, while second one represents the FIT image containing
U-Boot and ATF blob.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2021-05-04 14:07:09 -03:00
Ting Liu
481fafd6e7 ls1043/ls1046: support WIC image generation
Signed-off-by: Ting Liu <ting.liu@nxp.com>
2021-04-20 10:07:33 -03: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
Joris Offouga
6be9d19738 wic: Fix image generation for i.MX with SPL and U-Boot
Some boards expects a specific binary name.
Example : Pico i.MX7D required the u-boot-dtb.img file (instead of u-boot.img).

Signed-off-by: Joris Offouga <offougajoris@gmail.com>
2019-07-11 09:59:17 -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
Pierre-Jean Texier
0ef9809cc7 wic: Fix image generation for i.MX with bootpart script
Some boards expects a specific binary name.

Example : WaRP7 required the u-boot-dtb.imx file (instead of u-boot.imx).

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Joris Offouga <offougajoris@gmail.com>
2019-04-14 12:31:18 -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
Daiane Angolini
9d1463c9af wic:mx8: Create wks file for imx8 family using imx-boot
imx8 family boards use u-boot as boot loader in addition to some other
binaries. The final bootloader binary is gathered by mkimage into a file
called imx-boot.

Add the wks file to create the wic image tailored for imx8 family.
Set the wks file as default for all imx8.

Signed-off-by: Daiane Angolini <daiane.angolini@nxp.com>
2019-01-10 14:54:39 -02:00
Otavio Salvador
d2bff417fa image_types_fsl.bbclass: Use IMAGE_LINK_NAME for mxs binaries
The binary is generated as part of the image build so it should use
the same naming schema to provide consistency. This also fixes the wks
templates which use it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-26 14:55:29 -03:00
Otavio Salvador
6684de0401 Remove barebox and imx-bootlets
Those are untested and anyone interested in supporting them (mainly
barebox) ought to send the support to OE-Core instead.

This also removes the corresponding code from the
image_types_fsl.bbclass as it is not going to be used from now on.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-03 18:41:20 -03:00
Otavio Salvador
ecdd93874f wic: Fix image generation for i.MX MXS SoC family
The image needs to use the U-Boot generated, for the uSD card, so a
dependency on that must be added to ensure the file is available prior
'wic' uses it.

Besides that, the fstype needs to be changed so it sets the partition
mark allowing the bootrom to find it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-03 18:41:08 -03:00
Fabio Berton
cab2ad2f5b imx-uboot-mxs: Add wks file for mxs machines
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-10-11 10:29:55 -03:00
Fabio Berton
0c51889d11 imx-uboot-mxs-bootpart: Add wks file with bootpart for mxs machines
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-10-11 10:29:43 -03:00
Otavio Salvador
2524a3cda3 wic: Add a i.MX bootpart templates
This includes the wic templates which use a separated boot
partition. This allow for easier migration from the new deprecated
sdcard generation class.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-09-29 16:27:02 -03:00
Otavio Salvador
e7b14913cd wic: Force the use of 'msdos' partition tables
Some old SoC has problems to read GPT partition tables so we use
'msdos' as default here and if some vendor wants to override it, it
can still be done in their wks files.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-09-29 16:27:02 -03:00
Otavio Salvador
11d2434b08 wic: Move all wks files to root layer directory
The wic looks for wks files in many places. The root layer directory
is one of those and makes much easier to find the wks files for
reference and use.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-09-29 16:27:02 -03:00