Age | Commit message (Collapse) | Author |
|
Add support for rootfs image files in the raw format. This might be
useful when the rootfs image has formats like squashfs or verity.
Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
(cherry picked from commit 0513615cb0383d7ac0695e865884897493339d62)
|
|
This makes it easier to reference a custom produced image in a deploy or
customization (e.g. with torizoncore-builder) workflow.
Variable names and the link command are modeled after
/meta-toradex-torizon/recipes-bsp/u-boot/u-boot-ota.inc
Signed-off-by: Rafael Beims <rafael.beims@toradex.com>
Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
(cherry picked from commit 92816700a8c6e2650198420f98bd834fe9213c13)
|
|
The "filelist" property allows extra files to be copied into the target
filesystem at image installation time. With this implementation we let
users fill in that property at build-time; this is done by settting the
value of the OE variable TEZI_ROOT_FILELIST. The files referenced by
that variable will also become part of the Toradex Easy Installer
image.
Relate-to: TOR-2915
Signed-off-by: Rogerio Guerra Borin <rogerio.borin@toradex.com>
(cherry picked from commit c4c08c8a099fb40b455701cc7364e0d905443e4f)
|
|
We dropped having common device tree overlays, i.e. all dtbo are now
machine specific and start with the machine name.
Drop searching and deploying dtbos which do not start with a machine
name.
This fixes deploying verdin-am62*dtbo for non verdin-am62 machines.
Related-to: ELB-5479
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 620f5bbe0ca0743e682a69697cb8fb1d39550471)
|
|
Add a general-purpose configuration variable handling function within the
toradex-kernel-config classe. This function can be used for various software
configurations, including U-Boot. By doing so, we reduce code duplication
in other layers that dynamically modify configurations, such as
meta-toradex-tezi.
Related-to: ELB-5409
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
(cherry picked from commit 6e86c264494d0309ac76c1bc3fc1246a7ac96180)
|
|
The setting of localversion has been changed in openembedded-core
to accomodate changes in the kernel sources around v6.3.
This changed that the kernel and external kernel modules with our
way of setting localversion didn't use the same module magic.
One used what we want for LOCALVERSION twice while the other uses
it only once.
Compare with OE-Commits:
commit b378eec156 ("kernel: make LOCALVERSION consistent between recipes")
commit 765b13b730 ("kernel: fix localversion in v6.3+")
Related-to: ELB-5330
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
After building the kernel we want the used config being deployed.
This is already implemented for the linux-toradex-mainline recipe,
however the downstream vendor based kernels to not deploy the config.
Move the functionality to a class and inherit that in the mainline
kernel recipe to allow reusing the class in the downstream kernel
recipes.
Related-to: ELB-5149
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The variables TPL_BINARY and OFFSET_TPL_PAYLOAD are not choosen wisely
as they are not used to specify a TPL (Tertiary Program Loader).
They were introduced and used for the Verdin AM62 machine.
The tiboot3 binary is not a TPL (Tertiary Program Loader) but
actually contains the binaries first booted by the boot ROM.
Rename TPL_BINARY and OFFSET_TPL_PAYLOAD to FIRMWARE_BINARY and
OFFSET_FW_PAYLOAD respectively.
Related-to: ELB-5244
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit dd6ea5f3ad1ac334c3d6f5978be6f597a3c86170)
|
|
The rework for 32bit dtb vendor subdirs wrongly stops deploying the dtbs.
This due to not following the correct bitbake syntax.
Fixes: 23ade88 ("image_type_tezi: : follow change to vendor subdir for dtbs")
Related-to: ELB-5263
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
With moving to kernel 6.5 the kernel commit 724ba67515320 ("ARM: dts:
Move .dts files to vendor sub-directories") introduced a regression
with our 32 bit machines.
Use 'make_dtb_boot_files' to get the basenames of the dtb list also
for NAND based modules.
Related-to: ELB-5263
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
With moving to kernel 6.5 the kernel commit 724ba67515320 ("ARM: dts:
Move .dts files to vendor sub-directories") introduced a regression
with our 32 bit machines.
Add the new subdirs as part of the list of include paths to search.
Related-to: ELB-5263
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
OE commit 26d97acc71 ("image-artifact-names: include ${IMAGE_NAME_SUFFIX}
directly in both ${IMAGE_NAME} and ${IMAGE_LINK_NAME}") introduced
a regression with our image types.
Change our image type tezi to follow that.
Related-to: ELB-5262
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Move TPL_BINARY from a variable to a variable flag using the PID4 as a flag and
generate the image json file according to that.
This requires changes on the machine conf where TPL_BINARY is used.
This is required to support different SoC type (GP/HS-FS) that requires a
different tiboot3.bin on the Verdin AM62.
Related-to: ELB-5227
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
(cherry picked from commit 7fd635f58748064dd034c91605cf6ed25a56a900)
|
|
Add TI-TFL ("TEXAS INSTRUMENTS TEXT FILE LICENSE") to TI tezi image artifact,
while removing the NXP one.
Current license file come from [1].
Disable the download of an updated license from a specific url, formerly used
for NXP EULA, due to missing proper link.
[1] https://git.ti.com/cgit/graphics/ti-img-rogue-umlibs/tree/?h=linuxws/dunfell/k5.10/1.15.6133109
Related-to: ELB-5161
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
(cherry picked from commit a44240a3d58d353d86be7fed4d79c086dc2f2312)
|
|
Download of NXP EULA was always failing because the network access
was disabled during execution of do_image_teziimg task.
The download is not mandatory and it falls back using the EULA provided by
recipes-bsp/tezi-metadata/tezi-metadata_0.3.bb.
Fix by setting the network flag on do_image_teziimg task.
This flag must be set for every task that access network from bitbake 2.0
which is used starting from Kirkstone [1].
[1] http://git.openembedded.org/bitbake/commit/?id=0746b6a2a32fec4c18bf1a52b1454ca4c04bf543
Related-to: ELB-5161
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
(cherry picked from commit 24404926b8689435af675c5a9127b48d91e418d0)
|
|
The Verdin AM62 needs a third binary blob in the eMMC boot area.
Add the possibility to specify a third one.
To use it define TPL_BINARY with the name of the file containing the
first boot blob to be stored at OFFSET_BOOTROM_PAYLOAD and define
OFFSET_TPL_PAYLOAD with the offset where the first boot blob expects
the next one.
Not defining TPL_BINARY keeps the image.json creation the same as
before.
Related-to: ELB-5012
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 501e8b7893e336e535412435706189f68217f497)
|
|
This might be useful for users that want to format the rootfs partition
with custom options.
Signed-off-by: Sergio Prado <sergio.prado@toradex.com>
(cherry picked from commit aceff4308a188ab9e4d3d756ddbbd4bf2cabd286)
|
|
Tezi should be forced to understand config format 4 for machines
based on i.MX 8 series. Use the correct override (mx8-generic-bsp) to
set the required config format.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 934c9720fa11ed577b1d56c689f797d45e8d6774)
|
|
openembedded-core commit d3eb4531aa ("sanity: Drop data finalize call")
dropped a python function. Replace it with its aquivalent.
Fixes:
| ERROR: Execution of event handler 'defaulttoradex_check_sanity_eventhandler' failed
| Traceback (most recent call last):
| File ".../meta-toradex-bsp-common/classes/toradex-sanity.bbclass", line 57, in defaulttoradex_check_sanity_eventhandler(e=<bb.event.SanityCheck object at 0x7f50de8bb3c8>):
| if bb.event.getName(e) == "SanityCheck":
| > sanity_data = copy_data(e)
| if e.generateevents:
| NameError: name 'copy_data' is not defined
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Fix new dtsi include files not being found by adding regular overlay
path to the DTC include path.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit debc72f4d5fc57f1fc8a7ac80aaf1ddf574c06d8)
|
|
We have dropped toradex-fitimage.bbclass, also drop its sanity check.
Related-to: ELB-4700
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit e70eba7f03a8fd82a508d91d76f4553639863abc)
|
|
The reason we introduced this class was because we need the following
fixes from OE which are not in dunfell branch:
```
```
f9fcff023c meta: introduce UBOOT_MKIMAGE_KERNEL_TYPE
b0f8d8a4c0 kernel-fitimage.bbclass: introduce FIT_SUPPORTED_INITRAMFS_FSTYPES
0ef3a5e2a6 kernel-fitimage.bbclass: drop unit addresses from bootscr sections
900949af7f kernel-fitimage.bbclass: fix a wrong conditional check
c461b24507 kernel-fitimage.bbclass: support both KERNEL_DEVICETREE/EXTERNAL_KERNEL_DEVICETREE
```
```
now they are in kirstone/master branches of OE, so we dont have to
maintain it any more
Related-to: ELB-4700
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 25ae5789570d24d10bb9f9cf860212b259ccbbca)
|
|
We've decided not maintain these machines in BSP6, let's drop the
machine references.
There is a special varialbe UBOOT_KERNEL_TYPE, it's only being used by
apalis-tk1 machine, so also drop it.
Related-to: ELB-4471
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
FIT_SUPPORTED_INITRAMFS_FSTYPES is already set now in the
kernel-fitimage bbclass. Setting it here with `?=` no longer
works. Thus change to append to extend the list with the squasfs
we need additionally in the list.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Allow to change the Type for the kernel section to 'kernel_noload'
rather than using the default 'kernel'.
Set UBOOT_KERNEL_TYPE to 'kernel_noload'. This is e.g. used for
apalis-tk1 for TEZI.
Related-to: ELB-4417
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
It was found when a end user wants to build a squashfs type initramfs
into fitimage, it just fails without printing out any error or warning
messages, which is not right.
Introduce a FIT_SUPPORTED_INITRAMFS_FSTYPES variable to avoid
hard-coding the supported initramfs types, and it could be overridden
in config files. Also break the build when none of a supported
initramfs type is found.
A similar change has been merged into OE, reference:
https://lore.kernel.org/all/20220328141551.571676-1-liu.ming50@gmail.com
Related-to: TEI-1005
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 4d2ad76efd531a274375f81a7e3e4c0da65411f9)
|
|
Follow meta-freescale commit 30f5ce1d ("Generalize overrides subsystem for
NXP and Mainline support").
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Increase the kernel partition size for rawnand from 8MB to 12MB, this
allows to flash an upstream kernel with imx_v6_v7_defconfig.
Related-to: ELB-1341
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
(cherry picked from commit 587645a976764fda5ab46953e45afe5671fe6fc1)
|
|
Since the update to SCFW 1.7.4 the i.MX 8X modules, based on early
b0-silicon chips do no longer work.
This commit removes the machines that still where there in the transition
phase to the newer c0-silicon
Product revisions that no longer work with our BSP are:
Colibri iMX8QXP 2GB WB IT V1.0B
Colibri iMX8QXP 2GB IT V1.0B
Colibri iMX8DX 1GB WB V1.0B
Colibri iMX8DX 1GB V1.0B
Apalis iMX8QXP 2GB WB IT V1.1A
Apalis iMX8QXP 2GB ECC IT V1.1A
Related-to: ELB-4215
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit e5929682ef80627016b26477db35045b824d6255)
|
|
Related-to: ELB-4065
Signed-off-by: Oleksii Bidnichenko <oleksii.bidnichenko@toradex.com>
(cherry picked from commit 7f4e9817fcb878b0731a9086dde0af2a186938b6)
|
|
Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
|
|
This is the result of automated script (0.9.3) conversion:
+# meta-toradex-distro
+vars = vars + ["preempt-rt","tdx","upstream"]
+# meta-toradex-* machines
+vars = vars + ["apalis-","colibri-","verdin-","tegra124"]
+# meta-freescale
+vars = vars + ["imx","mx6","mx7","mx8","use-mainline-bsp","use-nxp-bsp"]
../openembedded-core/scripts/contrib/convert-overrides.py .
converting the metadata to use ":" as the override character instead of "_".
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Note that we currently do not want to use the stable symlinks to the
eMMC for modules were older version of the Toradex Easy Installer exist.
Using the stable symlinks would require a Toradex Easy Instaler 5.3.0 or
newer.
For Verdin iMX8MP 5.3.0 is the first version and thus we can directly use
the stable symlink name pointing to the eMMC.
Related-to: TEI-750
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit fad3643e14fc4412288549b833b097ec4a44bf33)
|
|
I have observed a following OE build issue with the latest
dunfell-5.x.y, as follows:
```
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
TMPDIR changed to include path filtering from the pseudo database.
It is recommended to use a clean TMPDIR with the new pseudo path filtering so TMPDIR would need to be removed to continue.
```
this is due to the ABI VERSION changed in OE, usually we should remove
the TMPDIR and rebuild when seeing this error, but it's not enough for
Toradex builds, since we have split DEPLOY_DIR out of TMPDIR, so we
should also check the ABI VERSION change in DEPLOY_DIR, or else it
might not comply the OE layer.
We should warn the end users about this risk, let's add a toradex
sanity check bbclass for that.
We can also add some other basic Toradex specific sanity checks, for
instance, for fitimage, the end users must inherit toradex-fitimage
rather than kernel-fitimage.
Related-to: ELB-3944
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 943f7da5a1cbbf695c3385b59e33aaea0c87904c)
|
|
This makes it possible to build a image tarball with 'autoinstall'
enabled.
Related-to: TEI-773
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 9e9859a9d3cb5a6daa2a8a7e0c98d5830021b644)
and
(cherry picked from commit b960cee9fba7f3f9a6603cd5464fcfa45df3bceb)
|
|
present
Partly back-port commit 2d9f3c3d763e2bca704da4019add973b9a2c572f from
OE upstream:
[
kernel-fitimage: build configuration for image tree when dtb is not present
This patch adds support for adding configuration node even
when dtb is not part of the FIT image. The conf and default
node number are therefore changed to point to kernel ID rather
than dtb ID when dtb does not exist.
]
to support fitImage for qemu machines which dont have a dtb node.
Related-to: TOR-1700
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 4a67680a10d7567499c15c3ffc065b5b4d05f07b)
|
|
Keep hard-copy version of license file
in sstate cache in case of NXP connection error
Related-to: ELB-3485
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
(cherry picked from commit b29e20964a72e01193b242aefb6cde655dda7d87)
|
|
Devicetrees and overlays have been bundled into fitimage, so we dont
have to install them to boot partition.
Related-to: TOR-1700
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit d87faee758c3b37797f0dc53e4486d5f82a48173)
|
|
To support devicetree overlays, we need let fitimage_assemble handle
both ${KERNEL_DEVICETREE} and ${EXTERNAL_KERNEL_DEVICETREE} at
meanwhile, but the fitimage_assemble can only deal with one. ( when
${EXTERNAL_KERNEL_DEVICETREE} is set, it will skip
${KERNEL_DEVICETREE} )
Let's override fitimage_assemble to be able to assemble all dtb/dtbo
files in ${KERNEL_DEVICETREE} and ${EXTERNAL_KERNEL_DEVICETREE}.
Related-to: TOR-1700
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 5e1b1f1d77b50005c4342669a25beebc6e6c248e)
|
|
The major reason for doing this is because we are currently deploying
all dtbo files to ${DEPLOY_DIR_IMAGE}/devicetree, but not machine
specific ones, and they will be unnecessarily bundled into fitimage
when kernel-fitimage.bbclass is being inherited.
To fix that, we introduce a extra task do_collect_overlays to collect
machine specific overlays to ${DT_FILES_PATH} before do_compile, where
dtb compilation is being compiled in. In this way, only machine
specific overlays would be compiled and deployed.
Related-to: TOR-1700
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 3f3703403ce8451c997faee1eb1f7665bff24437)
squashed with
(cherry picked from commit 80534650f210472afbfd6f5d6d80559c708eb72e)
(cherry picked from commit 6d8f8337ff1bf0200dead6adbc2615556b6495de)
|
|
The License window will be shown in case SHOW_EULA_FILE set to "1"
Related-to: ELB-3485
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
(cherry picked from commit a4f005089d9c286fa33f4fb5f2e41f1a0ee614d6)
|
|
Ensure there is a popup that shows the EULA license
to be accepted once installing a tdxref image
Related-to: ELB-3485
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
(cherry picked from commit 9ececa26080b7abdc96dc1b4b910e735b6eafcfd)
|
|
The current wildcard setting deploys machine specific overlays with
<machine>* and thus e.g. apalis-imx8 gets additionally those specific
to apalis-imx8x.
Fix that.
Related to: ELB-3499
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit dd8c0e4a0ac40381e2ed0a112105e8d9a8af4387)
|
|
If one uses our BSP layers / machines without a Toradex distro the
do_image_teziimg step fails due to missing variables.
Add weak defines of those.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 02a227afd8b099e79280131eddbe59d05f8e2865)
|
|
This patch mainly aims to let fdt_overlays only contain devicetree
overlay names without the 'overlays' sub-directory.
Also add a sanity check for items in
TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT, if a item not existing in boot
filesystem, throw a error at build time.
A complementary patch is needed to boot script, to load devicetree
overlays from a configurable prefix.
Related-to: TOR-1537
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit a2a5fb89339eff7d0f729086d04c949e9c4955ee)
|
|
We have decided to drop boot partition from EMMC/RAWNAND devices for
all Torizoncore images, in which case, we dont have to maintain a extra
image type teziimg-distro for Torizoncore, let's drop it.
This patch would not introduce any functional change to teziimg images,
just aims to drop all Torizoncore related code.
Introduce two new variables to make teziimg more extendable:
- TEZI_ROOT_NAME: the end user could choose rootfs image name, for
instance, "rootfs", "ota".
- TEZI_USE_BOOTFILES: the end user could decide if a boot partition
should be created for EMMC device.
Related-to: TOR-1334
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 048fa23d795bbaf4ab31f3f5340ce64839b0e525)
|
|
Move the code deploying dtb overlays to a prefuncs
tezi_deploy_dt_overlays of do_image_bootfs, and put all prefuncs of
do_image_bootfs, do_image_teziimg, do_image_teziimg_distro to variables
so that they could be overridden in other meta layers. For instance, an
end user might want to write his/her own image.json file according to
his/her partitions layout.
Also fix a missing double quotes.
Related-to: TOR-1334
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 29c2fb146a127e2a26d6baab641bd7ba3867c3b5)
|
|
We have machine overlay where the machine name is postfixed with the
carrier board name, e.g. colibri-imx7-aster_atmel-mxt_overlay.dts.
No longer require an '_' after the machine name to deploy also overlays
with a postfix after the machine name.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 0e19023b9fd03f6922992c59f4ddc3a4aff9f36d)
|
|
For the colibri-imx7-emmc machine we need the overlays prefixed with
colibri-imx7.
Due to the changed machine name the machine specific overlays did
not get deployed into a image. Fix that.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 75d703f9af475110554d1a88954998291b2ce96a)
|
|
We have separate machines for the now deprecated i.MX 8X B0 silicon
based modules.
Due to the changed machine name the machine specific overlays did
not get deployed into a image. Fix that.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit ec02225f82cbf9054ea1bf301967ebf1b9ea98fa)
|