Age | Commit message (Collapse) | Author |
|
With the addition of preempt-rt support using the 5.4 mainline based
kernel tree the 4.19 mainline based preempt-rt kernel tree can be
considered obsolete. Drop the recipe.
Related-to: ELB-2631
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
The I2C DDC channel serves by HDMI driver in the mainline kernel.
Add udev rules to make a symlink for this device.
Related-to: ELB-2784
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
|
|
According to the internal document "Hardware interfaces
standardization", the UART interfaces should be accessed
via device nodes named with the module family and matching
the signal name used in the module datasheet.
Modify udev rules for UART devices accordingly.
Related-to: ELB-2787
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Add WiFi drivers useful for the Gumstix AutoBSP as kernel modules.
Related-to: TOR-1068
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
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>
|
|
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>
|
|
Symbols are required for overlay dtbo files to resolve external links.
Related-to: ELB-1316
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
|
|
- Drop deprecated NATIVE_SYSTEMD_SUPPORT.
- Drop do_compile, base_do_compile would be good enough.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
- Drop FILES_${PN}, it's redundant.
- Drop deprecated NATIVE_SYSTEMD_SUPPORT.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
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>
|
|
- 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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
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>
|
|
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>
|
|
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>
|
|
UBOOT_BINARY_TEZI_EMMC has been defined in machine conf, drop it.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
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>
|
|
Related-to: TOR-992
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
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)
|