Age | Commit message (Collapse) | Author |
|
There are 2 different names for spi use by downstream and upstream
kernel. Fix the udev rules to match both variants.
Related-to: ELB-2784
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit bbdee96d17e5a69e832197dedc587e45737892be)
|
|
There are 2 different names for spi use by downstream and upstream
kernel. Fix the udev rules to match both variants.
Related-to: ELB-2784
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit 9109e68f1b0a8cb9228e7ff39bc41b5d0f209cbf)
|
|
There is a dead code in the linux-toradex-mainline.inc,
that doesn't really install dtb files into the final image.
Remove this code add add the option to compile dtb files
with symbols in the proper place.
Related-to: ELB-2797
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit e0beff9f048259b24b147b21f49c1463ebd70511)
|
|
Iterating through the variable don't interpret quotes at and they
act as a part of variable. It leads to iterate with the wrong
filenames [1]. Removing quotes fixes overlay names.
[1]
-----------------
PC $ cat overlays.txt
fdt_overlays="1 2 3"
Apalis iMX6 # env import -t ${loadaddr} overlays.txt
Apalis iMX6 # print fdt_overlays
fdt_overlays="1 2 3"
Apalis iMX6 # for overlay_file in ${fdt_overlays}; do echo "file=${overlay_file}"; done
file="1
file=2
file=3"
-----------------
Related-to: ELB-2797
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit b8b2e862432c0a30f41bd19efb66ec80267e7f5d)
|
|
In some situation "for" loop don't alterate the non-empty iteration
variable [1]. Clean up the iteration var at the end of each loop.
[1]
------------------
Apalis iMX6 # load ${devtype} ${devnum}:${distro_bootpart} ${loadaddr} ${overlays_file}; env import -t ${loadaddr} ${filesize}
107 bytes read in 11 ms (8.8 KiB/s)
Apalis iMX6 # print fdt_overlays
fdt_overlays="devicetree/apalis-imx6_parallel-rgb_overlay.dtbo devicetree/apalis-imx6_ov5640_overlay.dtbo"
Apalis iMX6 # for overlay_file in ${fdt_overlays}; do echo "file=${overlay_file}"; done
file=devicetree/apalis-imx6_parallel-rgb_overlay.dtbo
file=devicetree/apalis-imx6_parallel-rgb_overlay.dtbo
{Add clean up}
Apalis iMX6 # for overlay_file in ${fdt_overlays}; do echo "file=${overlay_file}"; setenv overlay_file; done
file=devicetree/apalis-imx6_parallel-rgb_overlay.dtbo
file=devicetree/apalis-imx6_ov5640_overlay.dtbo"
------------------
Related-to: ELB-2797
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit 94f69ea2545354e2294baecc6c9d54cc89fde97a)
|
|
Add WiFi drivers useful for the Gumstix AutoBSP as kernel modules.
Related-to: TOR-1068
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit a84d18c541f5525e7821c389fb41339be8c702c2)
|
|
With use-mainline-bsp the SoC overrides mx6/mx6q/mx6ull... are filtered out of
the overrides. Replace them with the specific machine name.
Related-to: ELB-2805
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 35a3002fca96cdb8529847187e1509e70a230a37)
|
|
The last user of this were the Tegras using the downstream kernel which
were dropped. Drop the recipe.
Related-to: ELB-2733
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 800e3beb2415365098581f8dcd2d473f7098d35b)
|
|
Symbols are required for overlay dtbo files to resolve external links.
Related-to: ELB-1316
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit 9818a0bac82a8059668ab9062deac69c8fae9c56)
|
|
- Drop deprecated NATIVE_SYSTEMD_SUPPORT.
- Drop do_compile, base_do_compile would be good enough.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit d7d020fffa5b8101917b5f34d603e21663eaba8c)
|
|
- Drop FILES_${PN}, it's redundant.
- Drop deprecated NATIVE_SYSTEMD_SUPPORT.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 091ab721540ab40742d9ef1c0d4c48b74d14b96d)
|
|
It's ${PN}-examples rather than ${PN} should be set in
SYSTEMD_PACKAGES.
Also do some cleaning up:
- Drop deprecated NATIVE_SYSTEMD_SUPPORT.
- Drop ${systemd_unitdir}/system/usbg.service from FILES.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 3966043524aa76454c96903af5e9f73f4cf750e3)
|
|
- Drop NATIVE_SYSTEMD_SUPPORT, it's deprecated.
- Drop do_compile, base_do_compile would be good fine enough.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit f9fa60d201b0291d9222aebec2c0ccf35ddec382)
|
|
Create a seperate recipe for each kernel flavour and move the recipe
into the same directory as the kernel recipe.
This allows to have a better control over which machine needs which
device-tree-overlays. E.g. apalis-tk1 does not make use of the NXP
use-mainline-bsp facility.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 5b3099862584aff19af6bdc28e8ce87043b92210)
|
|
Commit 0b33be8f "image_type_tezi.bbclass: allow inexistence of machine specific overlays"
introduces the regression bug, that prevents to gather machine-specific
dtbos.
This commit fixes the bug.
Fixed: 0b33be8f ("image_type_tezi.bbclass: allow inexistence of machine specific overlays")
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
(cherry picked from commit 5846cdddd88363cfa8bab0bf14d5999f20503709)
|
|
Add external device tree overlays to be build outside of the main
linux kernel recipe.
Relates-to: ELB-2723
Signed-off-by: Ming Liu <ming.liu@toradex.com>
Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 73f6a666f28d9719c40136998a68b00b2c1848d1)
|
|
Gracefully continue should there not (yet) be any machine specific
device tree overlays.
This avoids the following build failure:
ERROR: Logfile of failure stored in: /home/user/builds/oe-core_4.0/build
/tmp/work/apalis_imx8-tdx-linux/console-tdx-image/1.0-r0/temp
/log.do_image_bootfs.4117712
Log data follows:
| DEBUG: Executing python function tezi_deploy_bootfs_files
| DEBUG: Python function tezi_deploy_bootfs_files finished
| DEBUG: Executing python function set_image_size
| DEBUG: 168906.400000 = 129928 * 1.300000
| DEBUG: 168906.400000 = max(168906.400000, 65536)[168906.400000] + 0
| DEBUG: 168907.000000 = int(168906.400000)
| DEBUG: 168907 = aligned(168907)
| DEBUG: returning 168907
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_bootfs
| ls: cannot access 'apalis-imx8_*.dtbo': No such file or directory
| WARNING: /home/user/builds/oe-core_4.0/build/tmp/work
/apalis_imx8-tdx-linux/console-tdx-image/1.0-r0/temp
/run.do_image_bootfs.4117712:1 exit 2 from
'machine_dtbos=`cd $deploy_dt_dir && ls apalis-imx8_*.dtbo`'
| ERROR: Execution of '/home/user/builds/oe-core_4.0/build/tmp/work
/apalis_imx8-tdx-linux/console-tdx-image/1.0-r0/temp
/run.do_image_bootfs.4117712' failed with exit code 2:
| ls: cannot access 'apalis-imx8_*.dtbo': No such file or directory
| WARNING: /home/user/builds/oe-core_4.0/build/tmp/work
/apalis_imx8-tdx-linux/console-tdx-image/1.0-r0/temp
/run.do_image_bootfs.4117712:1 exit 2 from
'machine_dtbos=`cd $deploy_dt_dir && ls apalis-imx8_*.dtbo`'
|
ERROR: Task (/home/user/builds/oe-core_4.0/build/../layers
/meta-toradex-demos/recipes-images/images/console-tdx-image.bb
:do_image_bootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5813 tasks of which 5544 didn't need to
be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 15 seconds
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 0b33be8fed56b44c8f0b648da20d0b6706d8e7d5)
|
|
Add support for DT overlays, which are obtained from overlays.txt
stored in bootfs.
Relates-to: ELB-2722
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
(cherry picked from commit 7b24a04860805abad1a3f5c850ee07fefa6272ac)
|
|
Introduce TEZI_EXTERNAL_KERNEL_DEVICETREE and
TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT variables. First one provides the
list of overlays copied to boot partition (by default all overlays are
copied), the second one sets the list of overlays that should be loaded
during boot time (listed in ${bootfs}/overlays.txt).
TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT defaults to be empty.
Relates-to: ELB-2723
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
(cherry picked from commit c648af29199e2f8dedcaf6b7c3c61a2dcf6a579b)
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 32aeba91e07c0f3ed043e3b7e9714eba7fa429d7)
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 4ec7f0934fc019ab5f98a7e7bc21fca645ee6b83)
|
|
Remove the leftover from the old way of specifying postinst() which needs
execution on target.
Completes commit 6f2590ec6085 ("pkg_postinst: move to the ontarget syntax").
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 54e7ade0bcc771ebb85dbd915f0ad8f658a5b0a2)
|
|
The downstream kernel gets to old to be used with the new zeus
userspace components. Reuse the apalis-tk1 machine name to build
a mainline kernel and drop the apalis-tk1-mainline machine.
Related-to: ELB-2733
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit bd9bbe90a379468c60f689c99c3940bfb4a4181d)
|
|
Since we already have u-boot-toradex-initial-env.inc file, and no
other recipes are referring u-boot-toradex-env.inc, we could drop it
now.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 79daa8e8a77758b43f758546579a13e8f0f68aa6)
|
|
UBOOT_BINARY_TEZI_EMMC has been defined in machine conf, drop it.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 1f5d1d2cb0bf8711c93de21bccc6e87bea96253a)
|
|
With preempt-rt in overrides, the recipe now builds an RT kernel.
i.e.:
- downloads the rt patch as specified in SRC_URI and applies it
- uses the provided defconfig but modifies the configuration to use
PREEMPT_RT.
Related-to: ELB-2631
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 363288efc5d559b2a97da02a16f796a795af5215)
|
|
Related-to: TOR-992
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 7ed9958daea91fa3116132b5788495caa18db51d)
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit d5cf98d28411b3dc0a63db2367df70ebf401d70c)
|
|
Related-to: ELB-2686
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 78f228b9b427972a70c91deb5b40af1f307b7246)
(cherry picked from commit d02b7fd19d87eb2dffcaa36ab4427e47a8a749c4)
(cherry picked from commit f38654502d12c13329be747570cfbed144ce9f16)
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 64579c21bf256efa9373ff7c030fab4f62a3e07f)
(cherry picked from commit 5fd71587b58e4e63d1e9953eddb5cf5efeac6a09)
|
|
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)
(cherry picked from commit 19b4909b3550c1b4a4f7346879ec28a4943d66e2)
|
|
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)
(cherry picked from commit 774a5a74df9f4cef193816edca9c111490fc89cb)
|
|
This adds udev rules for symlinking eMMC devices consitently.
Related-to: ELB-2380, ELB-2696
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
(cherry picked from commit ac32e59f1f961070189e1a038644f87ce9e7c152)
|
|
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>
(cherry picked from commit bd072a5fc62dd7f29a94d682de2346257344ea35)
|
|
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>
(cherry picked from commit 02b8668e7f49d163f48e879c51a0d2be34196ab3)
|
|
NAND support may help (;-p).
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit c6be4ddf709f00546caa534f96cb553b883d1ea3)
|
|
A new virtual recipe u-boot-default-script has been introduced in
meta-freescale-3rdparty and it's being included by WKS_FILE_DEPENDS,
u-boot-distro-boot should PROVIDES it.
Also change to deploy boot.scr-${MACHINE} instead of boot.scr, to be
consistent with other u-boot-default-script recipes.
Signed-off-by: Ming Liu <ming.liu@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>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@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>
|
|
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>
|
|
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>
|
|
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>
|
|
This makes 'config_format' item configurable in different layers.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
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>
(cherry picked from commit 60f4dbc77be23abfe2995f9f2bd448694157d020)
|