summaryrefslogtreecommitdiffstats
path: root/wic
Commit message (Collapse)AuthorAgeFilesLines
* imx-imx-boot-bootpart.wks.in: Set fixed size for /boot partitionJonathan GUILLOT2025-02-121-1/+1
| | | | | | | | | | | | | | | | 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>
* imx-imx-boot-bootpart.wks.in: Increase /boot partition 64 MiB -> 256 MiBTom Hochstein2024-10-021-2/+2
| | | | | | | 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>
* boot: Fix UUU tagging, extend to fslcTom Hochstein2024-09-166-6/+6
| | | | | | | | | | | | | | | | | | | | 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>
* imx-uboot-mxs-bootpart.wks.in: drop extra 'rootfs'Trevor Woerner2023-11-121-1/+1
| | | | | | | | | ${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>
* imx-imx-boot.wks: Add wks file without bootpartRodrigo M. Duarte2023-03-011-0/+19
| | | | Signed-off-by: Rodrigo M. Duarte <rodrigo.duarte@ossystems.com.br>
* imx-boot-container-bootpart: drop wks fileMax Krummenacher2022-04-261-26/+0
| | | | | | | | | 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>
* imx-boot-container: align with u-boot 2022.01Andrey Zhizhikin2022-01-181-7/+6
| | | | | | | | | | | | | | 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>
* wic: add new wks file to use boot container for mx8mAndrey Zhizhikin2021-05-041-0/+27
| | | | | | | | | | | | 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>
* ls1043/ls1046: support WIC image generationTing Liu2021-04-201-0/+21
| | | | Signed-off-by: Ting Liu <ting.liu@nxp.com>
* imx-imx-boot-bootpart.wks.in: Fix overlap of imx-boot and boot partitionsTom Hochstein2020-02-121-3/+3
| | | | | | | 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>
* imx-imx-boot-bootpart.wks.in: Fix the layout commentTom Hochstein2020-02-121-5/+4
| | | | | | | | 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>
* wic: Fix image generation for i.MX with SPL and U-BootJoris Offouga2019-07-112-2/+2
| | | | | | | 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>
* imx-imx-boot-bootpart.wks.in: increase boot partition to 64mMax Krummenacher2019-04-231-1/+1
| | | | | | | | 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>
* wic: Fix image generation for i.MX with bootpart scriptPierre-Jean Texier2019-04-141-1/+1
| | | | | | | | | 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>
* imx-imx-boot-bootpart.wks: change default offset of bootloaderMax Krummenacher2019-01-291-2/+3
| | | | | | | | | | 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>
* wic:mx8: Create wks file for imx8 family using imx-bootDaiane Angolini2019-01-101-0/+20
| | | | | | | | | | | 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>
* image_types_fsl.bbclass: Use IMAGE_LINK_NAME for mxs binariesOtavio Salvador2018-09-262-2/+2
| | | | | | | | 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>
* Remove barebox and imx-bootletsOtavio Salvador2018-07-031-19/+0
| | | | | | | | | | 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>
* wic: Fix image generation for i.MX MXS SoC familyOtavio Salvador2018-07-032-2/+2
| | | | | | | | | | | 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>
* imx-uboot-mxs: Add wks file for mxs machinesFabio Berton2017-10-111-0/+18
| | | | | Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* imx-uboot-mxs-bootpart: Add wks file with bootpart for mxs machinesFabio Berton2017-10-111-0/+19
| | | | | Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* wic: Add a i.MX bootpart templatesOtavio Salvador2017-09-292-0/+39
| | | | | | | | 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>
* wic: Force the use of 'msdos' partition tablesOtavio Salvador2017-09-293-0/+6
| | | | | | | | 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>
* wic: Move all wks files to root layer directoryOtavio Salvador2017-09-293-0/+50
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>