Age | Commit message (Collapse) | Author |
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Related-to: ELB-2686
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 78f228b9b427972a70c91deb5b40af1f307b7246)
(cherry picked from commit d02b7fd19d87eb2dffcaa36ab4427e47a8a749c4)
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 64579c21bf256efa9373ff7c030fab4f62a3e07f)
|
|
backports-5.4 provides latter drivers.
Squashed cherry-pick which added 5.4 backports.
The main issue that fixes with these backports: the earlier mwifiex
drivers for Marvel 8997 WiFi module stucks on firmware crash (ELB-2596).
Only backported drivers should depend on backported common modules.
Deploying the 99-backports.conf file allows depmod to build modules.dep
dependancies file properly.
Related-to: ELB-2388
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 43140e494897d670f085425232e57c5ed86b7055)
(cherry picked from commit 1b0f1b0b3c11af54aba3c76c086cedd101dd5202)
(cherry picked from commit a4b3686f00eda0e85ae76a8808229eeccc37406d)
(cherry picked from commit 5ffefe1cb25ebdc5b2db410a4b59fed548973ff4)
(cherry picked from commit d8bf36f3999dcf5805c308dbfa4fbd4ca49d0c17)
(cherry picked from commit 13e31066facf3a28a3458407513e79d2e15aadcc)
(cherry picked from commit 56887d44144c03781d6d08d015ddb3949ca1e03d)
(cherry picked from commit 7fa2f4f8b33caa5dd4beefd85979bd32bd49d86a)
|
|
Backports recipe deploys the custom config file for depmod.
Use it in depmodwrapper to generate modules dependencies properly.
Related-to: ELB-2687
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit ce4619fdc1f2c1c6fcf3b54eaa6fc3bf1d23106c)
|
|
This adds udev rules for symlinking eMMC devices consitently.
Related-to: ELB-2380, ELB-2696
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
This commit adds rules to udev so apalis/colibri or verdin spi
devices are symlinked consistently.
Related-to: ELB-2380, ELB-2598
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Disable configuration of wired interfaces by systemd-networkd.
Also provide an option which will force to keep ip configuration in case
of critical connection (rootfs mounted via nfs etc.).
Relates-to: ELB-2610
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Make sure the git hash is always 12 characters long. This avoids issues
where we can get different length git hashes between to independent
builds. This can be problematic when sstate is shared.
Related-to: TOR-810
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
NAND support may help (;-p).
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
These rules make sure that a symlink is created for all i2c and tty
devices. This symlinks are named like on the Toradex carrier boards.
This makes it easy to identify which device in software is matching
the hardware pins.
Additional non-standard devices that are not named clearly on the
carrier board are left out to prevent confusion.
Related-to: ELB-2380
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
(cherry picked from commit 47ef64803548f73a0eda753c5d3d3f7f315af606)
|
|
Make sure u-boot enviroment is erased when installing
new Toradex Easy Installer image
Related-to: TEI-130
Signed-off-by: Luka Pivk <luka.pivk@toradex.com>
(cherry picked from commit 25711572bcb5a40057b53323b8b34a28f74d9b0f)
|
|
This will generate a hostname based on machine name and serial number.
(E.g. colibri-imx7-031111777)
If serial number is not found it will say "no-serial-number" in host
name.
If machine is not supported hostname will include "unsupported-device"
string.
If /dev/device-tree does not exist it will say "recovery-mode"
as it assumes its in recovery mode of Toradex Easy Installer
To prevent openembedded from creating /etc/hostname file
add hostname_pn-base-files = "" to configration
Related-to: TEI-100, ELB-1322
Signed-off-by: Luka Pivk <luka.pivk@toradex.com>
|
|
It contains a helper function kernel_configure_variable that could be
called in do_configure_append task to assign a value to a config
variable in ${B}/.config.
Change toradex-kernel-localversion.bbclass to use this function.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit aaf2b59a0bd69c1cfea6d2fc0df30ab49e16e031)
|
|
Handle the case where SRCREV_machine is set to AUTOREV.
As SRCREV_machine isn't set to INVALID as its default drop checking for INVALID.
fixes: f22318f toradex-kernel-localversion.bbclass: use SRCREV to set scmversion
Related-to: TOR-694
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 319f84b395d5b129c7dca90554746589d2bb9f52)
|
|
Handle the case where SRCREV is set to AUTOREV.
fixes: f22318f toradex-kernel-localversion.bbclass: use SRCREV to set scmversion
Related-to: TOR-694
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 3e645e66daea9951a02b9de0f52864a79389e23a)
|
|
In commit 32df2d41:
[ toradex-kernel-localversion.bbclass: use origin branch set scmversion ]
we changed to use origin branch to set scmversion, but that's not good
enough, we should stick to SRCREV which is the latest original commit
in the source.
Related-to: TOR-694
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit a49daf2f134e019d528566cf1903d4a3ce211297)
|
|
Both colibri-imx7 use the same defconfig, however we do not have a
common mx7 override so provide it for each machine.
Add a apalis-tk1-mainline defconfig using the 4.19.59 tegra_defconfig
with enabled CONFIG_PREEMPT_RT_FULL.
Add a default defconfig, use the 4.19.59 arm64 defconfig with enabled
CONFIG_PREEMPT_RT_FULL.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Using "use-mainline-bsp" override removes the SOC specific overrides and thus
the defconfig is not found in the mx7 directory.
Compare with: MACHINEOVERRIDES_EXTENDER_FILTER_OUT in meta-freescale.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
While at it, add the use-head-next override which builds head instead
of the pinned version. This is useful for integration work.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
For kernel-yocto, the commit hash of HEAD is different for every run of
do_patch if there is any patch in SRC_URI, this is breaking the recipes
that relying on KERNEL_VERSION which contains scmversion, so we should
let scmversion stick to the original head instead of the HEAD after
do_patch, this will make scmversion stable and hence will make
KERNEL_VERSION stable for the recipes that relying on it.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
Both colibri-imx7 use the same defconfig, only provide it once.
Add a apalis-tk1-mainline defconfig using the 5.4.6 tegra_defconfig.
Add a default defconfig, use the 5.4.6 arm64 defconfig.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit bc9a34911adda4efc2930c33c666a6d515fa9f78)
|
|
Fix Linux version to really represent 5.4.6.
Update to latest which includes the following two commits:
e87dbbae2576:
ARM: dts: imx7: Fix Toradex Colibri iMX7S 256MB NAND flash support
575bd2d69a82:
arm64: dts: freescale: add initial support for colibri imx8x
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit f28e4b6a631e0f1c5f1925acc09890176031ef5f)
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 3c9ed2641a6317a4fd9db77ecd508d4008cbad74)
|
|
So that one sees in the Toradex Easy Installer which image is which.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 3d072f3077b67adf293810da51ba951dc4b6c593)
And the squashed fix:
(cherry picked from commit 78d71eea7dd80066067f93445a957f8396b63c6e)
|
|
It should be moved to meta-toradex-torizon layer.
(cherry picked from commit 064d12dfae77397c43e13a79e3b4c7db1b14aeda)
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
ubifs should be umounted after the uEnv.txt file loading finished.
(cherry picked from commit 314e3913b03ddfe96390dc7e1665558cc8aec26b)
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
Introduce TEZI_DATE variable, it defaults to ${TDX_MATRIX_BUILD_TIME}
but could be overridden in local.conf.
It will be used to set release_date in image json files, hence it must
be excluded by IMAGE_TYPEDEP_teziimg and IMAGE_CMD_teziimg-distro to
avoid running into basehash mismatch problems.
(cherry picked from commit 3decd1ad4bb0410a03abfda76a884351bba51fdd)
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
Currently we are generating image.json files directly in
${DEPLOY_DIR_IMAGE} which is not correct, since image.json file is a
image specific file so race condition could happen when multiple image
builds write to a same image.json.
Fix it by generating image json files in ${IMGDEPLOYDIR} directory with
IMAGE_BASENAME suffix and copying them to a temporary directory
${WORKDIR}/image-json with the final json names. In this way, the json
files could be handled by sstate and they turn to be image specific.
(cherry picked from commit 9b363a288798feff82fa57f158c92076548cb795)
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
In 2016.11 U-Boot the MTD partition name which is used in the UBI
distro boot script has been fixed to capital "UBI". In newer U-Boot
this can be configured. With the switch to U-Boot 2019.07 we made
use of that feature to align with the BSP and named the MTD partition
lower case "ubi".
This changes the same in the boot script to make sure Linux looks
for UBI volumes in the correct MTD partition.
Related-to: TOR-237, TOR-513
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Actually, LOCALVERSION_AUTO needs to be enabled to make the kernel
build system picking up .scmversion. So make sure LOCALVERSION_AUTO
is enabled when we generate a .scmversion file and disabled otherwise.
Fixes: 1bb212d9311a ("toradex-kernel-localversion: disable automatic localversion")
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit e730835d6230f83d86d03daa38ceaf381d1d15fd)
|
|
Bump to latest LTS release Linux 5.4.6 plus Apalis T30/TK1 patches.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit ac6df0b7458c551e915cf186481c23401a4b6824)
|
|
Introduce a new variable TEZI_IMAGE_NAME to allow a custom image name
for the Tezi tarball. This allows to stick with the default OpenEmbedded
image names for rootfs tarballs etc. while still following custom naming
rules for the final Tezi images.
Default to IMAGE_NAME to retain backward compatibility.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Bump to latest LTS release Linux 5.4.5.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Make sure LOCALVERSION_AUTO is disabled to avoid interference with
our LOCALVERSION. This fixes building of the i.MX 8 kernel recipe.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Make sure TDX_VERSION is defined in case Toradex distro is not used.
This avoids confusing localverisons with just a dash.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Bump to latest LTS release Linux 5.4.2.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
The mainline recipe has the .config file ready later then our kernel
recipes. Use kernel_do_configure_append() which seems to work for both
cases.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
The blank should be before the value rather than after it, or else we
risk on messing up the values by 'a b' > 'ab'.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
Use OFFSET_SPL_PAYLOAD to decide if a SPL has to be deployed or not.
This allows a simple integration of machines which have an SPL (as e.g.
verdin-imx8mm has) but do aggregate the SPL and U-Boot proper into one
binary.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
The list of deployed U-Boot artefacts is set in python for the 'distro'
tezi-image, but in the non 'distro' case directly in the tar command.
Unify that to put the list together in python.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
Using PV is not a good idea with the new versioning, especially since
there is a timestamp in the version number. Use the DISTRO_VERSION
variable by default.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Implement the new versioning scheme in the Linux mainline recipes. This
leads to a version string like this: 5.3.10-4.0.0-dev+git.401bf3f29b1a
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Add Toradex specific local version implementation for the Linux
kernel. This implementation is a simplified version from what is in
meta-freescale. It can be used with linux-yocto based Linux recipes
as well as regular OE kernel recipes and linux-fslc based recipes.
This allows us to reuse the class in all Linux recipes used by Toradex.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Add Toradex specific local version implementation. This is very similar
to what meta-freescale carries, but allows us to reuse the class in
all U-Boot recipes used by Toradex.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
The bootcmd variable is the entry point for regular boot. If booting
fails for some reason and one saves the environment at this point,
the next boot will no longer use distro boot. Often booting works
since the boot script setup all variables correctly, so one does not
notice that the boot flow has been altered/hard-coded.
Do not reuse bootcmd to avoid accidentally alter the boot flow.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Currently we use PV of the image recipe as version number for the
Toradex Easy Installer image json. When trying to implement the new
versioning scheme which introduces timestamps in PV uncovered issues
which are quite complex to overcome, see also this mailing list post:
http://lists.openembedded.org/pipermail/openembedded-core/2019-November/289765.html
To be able to implement the new versioning scheme we need to change
the source of the version number used in the Tezi image json. To be
more dynamic this introduces the variable TEZI_VERSION.
So far the class used the "Software Package Version" without the
(mandatory) date identifier. However, we used the full version with
date indentifier in the file name. This changes to use the full
"Software Package Version" in both cases by default.
Also use IMAGE_CMD_xy[vardepexclude] instead of the task name directly.
This makes sure that image.bbclass does remove the variable from the
image store and avoids premature expansion which leads in basehash
value changed issues.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
This patch mainlay aims to refactor bootfs image function, use tar and
xz conversion functions to replace our own create_tezi_bootfs, the
benifit would be we could choose other compression type like Zstandard
easily by setting TEZI_BOOT_SUFFIX and TEZI_ROOT_SUFFIX for bootfs and
rootfs.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|