Age | Commit message (Collapse) | Author |
|
The u-boot-with-spl.imx binary, now is deployed for each u-boot configuration
type and the condition that suppressed the error in case u-boot-with-spl.imx
was not generated has been removed.
Signed-off-by: Stefano Viola <stefano.viola@toradex.com>
(cherry picked from commit 15ec9fe118984cc977016269c069571c4530ef8f)
|
|
Update the distro config env memory layout for the Apalis iMX6,
Colibri iMX6, Colibri iMX6ULL and Colibri iMX7.
This fixes a potential issue caused by the compressed kernel being
relocated on top of the ramdisk causing its corruption.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 84c7638a7261561e30bfd574b69e1fddcac546cc)
|
|
Add patch to properly size the memory on Verdin iMX8M Plus.
Related-to: ELB-4711
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
(cherry picked from commit 6931dff87db18d38a14414fe35ef49805bcf5238)
|
|
Keep the file name with the inital U-Boot environment variables
constant, independent of the recipe name U-Boot is built with.
Our image creation and libubootenv expect a fixed name.
Related-to: ELB-4680
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Fix build issue with patches not found
Relates-to: ELB-4680
Fixes: 7ad862bbbaaf ("u-boot: convert bbappend into our own recipe")
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
|
|
The version mismatch between what we want to build and what the recipe
in openembedded-core builds can get big so that CVE backports and other
changes makes our build fail.
Rather create our own recipe reusing the include file from
openembedded-core to reduce the risk of build failures.
Relates-to: ELB-4680
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Support booti automatic decompression with the following memory layout:
- loadaddr=0x48200000 allows for 128MB area for uncompressing (ie FIT
images, kernel_comp_addr_r, kernel_comp_size)
- fdt_addr_r = loadaddr + 128MB - allows for 128MB kernel
- scriptaddr = fdt_addr_r + 512KB - allows for 512KB fdt
- ramdisk_addr_r = scriptaddr + 512KB - allows for 512KB script
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
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>
|
|
Add patch to enable `boot` command on colibri-imx7, submitted in
https://lore.kernel.org/all/20220803112009.271563-1-francesco.dolcini@toradex.com/
Related-to: ELB-4642
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
|
|
Update U-Boot v2022.07 patches, backport `board/toradex`
patches from current denx/master git.
This updates the config block interactive creation procedure.
Related-to: ELB-4626
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
|
|
lzop-native is not needed during u-boot compilation since LZO
compression is not enabled in u-boot.
Related-to: ELB-4534
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
Remove patch 0005-toradex-tdx-cfg-block-add-0068-i.mx-8m-mini-sku.patch
from the patches applied when building master, since it is now merged with
commit a2da29a4e2a0 ("toradex: tdx-cfg-block: add 0068 i.mx 8m mini sku").
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
|
|
Currently we have downstream/upstream Toradex uboot recipes and we dont
want to add fw_env.config for both of them to avoid code redundant.
Let's add fw_env.config to libubootenv, which will be installed for
both donwstream/upstream distros.
Change libubootenv to a machine arch recipe since now it has machine
specific fw_env.config files.
Related-to: ELB-4536
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
The class makes sure that we see the git hash the U-Boot is built from
in the U-Boot banner.
Related-to: ELB-4090
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
oe-core now applies 0001-i2c-fix-stack-buffer-overflow-vulnerability-in-i2c-m.patch
fixing a CVE in 2022.01. As we bumped to 2022.07 the commit is already applied
and applying it a second time makes do_patch fail.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Apply patches needed for Toradex SoM which were applied after v2022.07
or are still in flight.
xxxxxxxxxxx toradex: tdx-cfg-block: add 0068 i.mx 8m mini sku
1cf4e79f577 toradex: tdx-cfg-block: add new toradex oui range
7e27ce16c5d toradex: tdx-cfg-block: extend assembly version
494ef10c3bf toradex: tdx-cfg-block: use defines for string length
39ff0624bc5 toradex: tdx-cfg-block: use only snprintf
Related-to: ELB-4601
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Note that once in openembedded-core u-boot is bumped to v2022.07 the
LIC_FILES_CHKSUM and PV change can be dropped.
Related-to: ELB-4600
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
With master @ Jul 11, 36b661dc colibri-imx7.h got changed, so that
the patch no longer applies.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The u-boot-with-spl.imx binary (if available), will be copied in the
DEPLOYDIR for MACHINE colibri-imx6 and apalis-imx6.
This binary is needed to implement bootloader software update
where having only one binary instead of SPL + u-boot.bin
simplifies things especially in the cloud platform side.
Signed-off-by: Stefano Viola <stefano.viola@toradex.com>
(cherry picked from commit meta-toradex-nxp e3461a0b4d163ab5dff0d8368028586a260ddbed)
|
|
Remove gpio-export recipe, exporting gpio over sysfs is deprecated and
prevent using libgpiod.
Related-to: ELB-4539
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
systemd only prints to the last console= statement that it finds in the
kernel arguments. Make sure that it prints to UART instead of display on
tty1.
Related-to: ELB-4435
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
(cherry picked from commit 7bf3a4432c4d329c2b291440d51c03d89e6116ff)
|
|
U-Boot mainline can build the boot container (imx-boot) from within the
U-Boot tree. In OE this can be enabled with the following override:
imx-boot-container. (imx-base.inc then sets: UBOOT_PROVIDES_BOOT_CONTAINER)
However currently this provides the binary as flash.bin, so we add here
to deploy it additionally under the old name imx-boot
Amend the recipe to allow to enable this.
Related-to: ELB-4243
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Forward port the patch, currently for use-head-next only.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The license file got changed after 2022.04.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
This changes the layer's compatibility to only kirkstone.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Follow meta-freescale commit 30f5ce1d ("Generalize overrides subsystem for
NXP and Mainline support").
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The separator of fitImage's config section has been changed from '@' to
'-', let's adapt to that, or else fitImage could not boot.
Related-to: TOR-1700
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 127bb3208b41ede504b992504964c9ad9cc0619f)
|
|
Without this commit it could happen, that U-Boot falls into strange
behavior when overlays.txt is missing. This commit fixes this behavior
with only executing "env import" if the previous load command returned
success.
Related-to: ELB-4246
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
(cherry picked from commit 81820d92f0c775055da38c12d29e24de81a89ef2)
|
|
While NXP i.MX 7 downstream requires the Linux kernel to boot in secure
mode mainline/upstream requires non-secure mode instead, as it properly
uses PSCI to control further cores.
Mainline boots in non-secure mode by default. Add the appropriate
environment variable if building a downstream kernel.
Related-to: ELB-4090
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Build latest master if use-head-next is in overrides.
Verdin iMX8MM:
Deploy u-boot-nodtb.bin and fsl-imx8m*-XX.dtb used by imx-boot.
Raw NAND based modules:
Pad the U-Boot binary to allow for easier flashing into the NAND.
Related-to: ELB-4090
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
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>
|
|
In the nfs-dhcp case we should not pass any NFS related settings from
U-Boot as the Linux kernel will do its very own DHCP request where it
will get all those settings and knows very well how to apply those.
In the nfs-static case we should add a slash in front of the rootpath as
otherwise an additional /tftpboot/ will be pre-fixed which likely is not
what one wants.
https://man7.org/linux/man-pages/man7/bootparam.7.html
'nfsroot=...'
This sets the NFS root name to the given string. If this
string does not begin with '/' or ',' or a digit, then it
is prefixed by '/tftpboot/'. This root name is used in
case of a net boot.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit f086646d01378903661c5ac8d1925dc855540040)
|
|
We cant use a single KERNEL_BOOTCMD for both fit/non-fit kernel images,
that makes a invalid bootcmd being used in boot.scr either for fit
or for non-fit image.
Let's change to explicitly use 'bootm' for booting fitimage.
Related-to: TOR-1700
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit c4bd1adef88e337f37cf3c88d53a7d61d3a4441b)
|
|
We want to always check the latest EULA file in image_type_tezi.bbclass
So we put LA_OPT_NXP_SW.html to sstate duplicate whitelist, this
ensures it could be deployed to ${DEPLOY_DIR_IMAGE} as a backup even
it's aleady existed.
This fixes a following bitbake error:
| ERROR: tezi-metadata-0.3-r0 do_deploy: The recipe tezi-metadata is
| trying to install files into a shared area when those files already
| exist. Those files and their manifest location are:
| images/colibri-imx8x-v10b/LA_OPT_NXP_SW.html
| (not matched to any task)
| Please verify which recipe should provide the above files.
Related-to: ELB-3485
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit efbdc6e55cbcd49c576c7c8da2b6dd55e200b6d1)
|
|
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)
|
|
When the kernel image type is fitimage, load it to ${ramdisk_addr_r}
and boot it from there.
A new variable fitconf_fdt_overlays is introduced to collect overlays
boot configs from overlays.txt file, and it would be passed to boot
command.
Related-to: TOR-1700
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 412c94d34b9e4c585cf2cc15592b67eb0b0037ea)
|
|
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)
|
|
This flag allows one to skip loading and applying overlay dtbo files,
e.g. in case, these files prevent the system from booting.
Related-to: ELB-3405
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit b65bfad82caf4cd388f4b4316764d49edd826ecd)
|
|
It is useful to see which devicetree file u-boot loads to boot kernel
with. Print this information.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit 85b545d926f67972a4ab2a30da498392cd1092b3)
|
|
Use the predefined prefix to overlay files to be loaded.
This significantly reduces the size of the overlays.txt file and
makes this file more readable and understandable by customers.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit 1ab6ca5bd754bc1ce93e381ca8432e946b7b1c11)
|
|
The kernel is able to use predefined IP address of NFS server.
Add special values of root_devtype "nfs-dhcp" and "nfs-static"
and proceed them accordingly to make the script able to boot the system
from a network without dhcp-server.
To boot the system from the particular server, just set the "serverip"
to the proper IP address of an TFTP/NFS server and set "devtype" to
"tftp".
To use the particular NFS server for mouting the root-fs only, set the
"serverip" to the proper IP address of an NFS server and set
"root_devtype" to "nfs-static".
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit 2532dc8de4b43287a7f031858355b5c93f280791)
|
|
The design of the script allows to use different sources for booting
a kernel, dtb and overlays, and using as a rootfs.
Using devtype to determine the media of rootfs breaks this ability.
Use root_devtype setting to fix this issue. Note the script is still
able to use the same devtype for both boot/rootfs media because both
boot_devtype and root_devtype set from devtype by default.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit 9beaf3b689905ca062becbf415c8ae1b2ce3b131)
|
|
Print final bootargs value before jumping to the kernel.
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
(cherry picked from commit 2f24c19e985259b64c556e8712033f8cef1ededb)
|
|
Add error message if booting fails from particular boot source.
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
(cherry picked from commit 690cb9c723617909ecdb93fcdff96833e2c23fdf)
|
|
1. Move invocation of $setup when $load_cmd is properly set. This
helps to load hdp firmware from all supported boot sources, not
only from internal emmc
2. Set proper dhcpargs if we boot via DHCP
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
(cherry picked from commit 53c1940c958e566522a5cfd65c8a628819e8b970)
|
|
The script uses global variable in tftp and dhcp mode. Add a description
of these variables.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit 60b17ba382a31e742d742b28269b47c24d3acc08)
|
|
Use root_* incoming variable names where it should be.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit d449620d1ac753742c466cce7df2f787395121ca)
|
|
The reason we inherit nopackages was that there was no files being
packaged at that moment, but this makes it impossible for a bbappend
to add packages, let's drop it.
Now torizoncore decides to add a ostree-uboot-env package in this
recipe.
Related-to: TOR-1335
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 7b7a2f85e2fcea83c15b1819479506d7d18914bc)
|
|
The second license should be MIT instead of X11. Fix it.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit 7f667bc15f617b6f9fd98f73a50f7fa756a75aa7)
|