summaryrefslogtreecommitdiff
path: root/recipes-core
AgeCommit message (Collapse)Author
2021-11-15apalis-imx8x: drop support for apalis imx8xMax Krummenacher
Apalis iMX8X is no longer supported and configuration dropped from recipe. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 1c0c33819bb8021ce722df12c750f9ede8709e89)
2021-08-30Manual fixes after override syntax changeSamuli Piippo
Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2021-08-14layer: convert to new override syntaxMax Krummenacher
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>
2021-08-14udev: colibri-imx6ull: provide emmc symlink rulesMax Krummenacher
The colibri-imx6ull is also used for the combined NAND/eMMC Toradex Easy Installer. Create symlinks if a eMMC is detected also here. For the BSP this does not have an effect as the controller is unused. Related-to: TEI-923 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit fb38a9144821dcb89dc25affdf80792d9893c16f)
2021-08-14udev: 99-toradex.rules: improve sd-card rulesPhilippe Schenker
ENV{DEVTYPE} has been found to not be present on apalis-imx6 sometimes. Since we see also some troubles on our lava setup this property is being removed from this rule as anyway disk and partition is already catched with the "p" in the KERNEL rule Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit d9b673df1b21c14dfb9db76a037698a0065a8ee7)
2021-08-08colibri-imx6ull-emmc: add machine specific overrides and filesMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 0aec0986a859ea7f0cb8f9aeb56aae9ce8786568)
2021-08-08udev: toradex-adc.sh: correct typo in commentMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 4de8e05587f71be709ed8ee22c91d5b01464d34b)
2021-08-08util-linux: add separate bbappend to support fstrim serviceDenys Drozdov
fstrim.service is disabled by default in openembedded-core layer. Add bbappend file to support fstrim.service for systemd Related-to: ELB-2356 Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com> (cherry picked from commit 4ecee0bd7785f3132c85a1de2ef7ab6e7da955c2)
2021-07-08udev: colibri-imx7: sync emmc and nand udev rulesOleksandr Suvorov
TEZI uses the same machine colibri-imx7 for both eMMC and NAND variants of the module. For correct work with Colibri iMX7 eMMC TEZI requires symlinks emmc* generated by toradex udev rules - it allows TEZI to unblock boot-partitions for writing operations on start. The udev "emmc*" rules are triggered by the block instances of the device usdhc@30b60000. The usdhc@30b60000 device disabled by default in the device tree for Colibri-iMX7 NAND SoM, so that the "emmc*" doesn't affect the NAND module. Adding "emmc*" rules to the 99-toradex.rules for colibri-imx7 machine fixes several TEZI issues for Colibri iMX7 eMMC, i.e. this one: Processing blockdev: "mmcblk0boot0" Running Command: "/usr/sbin/blkdiscard" ("/dev/mmcblk0boot0") Progress: "Toradex Embedded Linux Reference Minimal Image (UPSTREAM): Erasing partition" Output: "blkdiscard: /dev/mmcblk0boot0: BLKDISCARD ioctl failed: Operation not permitted\n" Finished with exit code: 1 Related-to: TEI-851 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit c60d660b6dcd398136df80e6b26f31fc3a4cc8e3)
2021-05-24recipes-core: udev: add hardware stable symlinks for sd-cardPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit f5af6cd7e39e0eee75cca7f89ac81b5601267794) recipes-core: udev: change sd-card symlinks to style of emmc rules This commit does three things: - Use "-part<number>" instead of "-p" as it is with /dev/emmc symlinks - Use ENV{DEVTYPE} as it is used with /dev/emmc symlinks to for sure be able to distinguish partitions vs. disks - Use %n in stead of $attr{partition} as it is already used for emmc symlink rules Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit f8d013071a68cb90bbff8e00bdb328e472354ab8)
2021-05-24systemd-conf: decrease maximum journald storage usage to 16MSergio Prado
The current default value of 64M may be too much for some of Toradex's modules, so let's decrease it to 16M. Related-to: TOR-1780 Signed-off-by: Sergio Prado <sergio.prado@toradex.com> (cherry picked from commit d0110baabcbe0fcf98de8b2e6a6c3831209f51fa)
2021-05-24verdin-imx8mp: udev: add symlink rules for native hdmi i2cMax Krummenacher
Related-to: ELB-3895 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 5255163c0445a40802545f8337b2ac147a261092)
2021-05-24verdin-imx8mm: udev: correct symlink to adc raw dataMax Krummenacher
With the V1.1 HW of the module the ADC changed. With this change the mapping of the channels to the module's pins also changed. Follow that. ELB-3866 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit e38615820b4fd86484effd75d486b326d6f4e6e3)
2021-03-23udev: mount.sh: fix cmdline parsingMax Krummenacher
On cmdlines with "root=" not at first position the current sed script fails to only provide the root partitions PARTUUID. Fix that. Fixes c8651fe ("udev: mount.sh: create a symlink to the partition with the bootfiles") Additionally add a word boundary \b before root and simplify sed script. This prevents nfsroot, extroot matching. Related-to: ELB-3337 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 800cf9fa2d4b023a55637a8b0f59904373476633)
2021-03-23udev: mount.sh: create a symlink to the partition with the bootfilesMax Krummenacher
Add to the mount.sh script code which creates a symlink to partition with the bootfiles if that can be guessed from the rootfs partition. Scan the /proc/cmdline for the rootfs partition. If this is the second partition of a block device and a first partition exists it creates the symlink /dev/boot-part. /etc/fstab consumes the symlink to mount that at /boot. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit c8651feae915eeac23510565dde0f64557696de7)
2021-03-23udev: toradex-adc.sh: use correct symlink namePhilippe Schenker
ain naming should only be used for colibri boards. Apalis should use "apalis-adc*" symlinks. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit e0b1d4b5285f5244e4e0120fbf665aa4c85e526e)
2021-03-23udev: verdin: fix (ec)spi ruleMax Krummenacher
With the kernel update to 5.4 downstream the kernel name for spi changed from ecspi to spi. Fix the udev rules to match both variants. Related-to: ELB-3397 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit cd3b2d8984ac24667a2b9abfdaefa72c582d115b)
2020-12-08apalis-tk1: udev: add symlinks to emmcMax Krummenacher
This creates stable symlinks to the eMMC card. Related-to: ELB-3293 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit f3b662ae73d5decabd1cfbe4e247f027d97c40de)
2020-12-08verdin-imx8mp: udev: add symlink rulesMax Krummenacher
Create stable symlinks mapping Verdin family function names to the kernel device files. Related-to: ELB-3293 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit deabb60123ce2454694d643bdfb2ee7501888f7f)
2020-10-20udev:99-toradex.rules: change usdhc to mmcMing Liu
Change KERNELS=="5b010000.usdhc" to KERNELS=="5b010000.mmc", this fixes a issue that /dev/emmc* device nodes not created after we upgraded to linux-toradex 5.4 kernel. Related-to: TOR-1484 Signed-off-by: Ming Liu <ming.liu@toradex.com> (cherry picked from commit 4b80396fbd054f2d5138f0d15c676cd194aa91b2)
2020-09-25udev: use spi naming from new 5.4 kernelPhilippe Schenker
In 5.4 kernel the naming changed from lpspi to spi. Address this in all i.MX8 udev rules Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-09-14verdin-imx8m: udev: add symlink to adc raw dataOleksandr Suvorov
Create symlinks for each supported by Verdin iMX8M Mini ADC channels, standardizing names as verdin-adcX, according to the Verdin signal names table. Related-to: ELB-2839 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit 29191ec028148f41eab3f2ccb143bcede9e8224e)
2020-09-14colibri-imx8x: udev: add symlink to adc raw dataOleksandr Suvorov
Create symlinks for each supported by Colibri iMX6 ADC channels, standardizing names as colibri-ainX, according to the Colibri signal names table. Related-to: ELB-2839 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit 6ba70eb580167611f8a5b061a9552eba25b34d6c)
2020-09-14colibri-imx7: udev: add symlink to adc raw dataOleksandr Suvorov
Create symlinks for each supported by Colibri iMX7/iMX7-eMMC ADC channels, standardizing names as colibri-ainX, according to the Colibri signal names table. Related-to: ELB-2839 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit f627f20a298d441b5d94ba4ab80a1121065f1f75)
2020-09-14colibri-imx6ull: udev: add symlink to adc raw dataOleksandr Suvorov
Create symlinks for each supported by Colibri iMX6ULL ADC channels, standardizing names as colibri-ainX, according to the Colibri signal names table. Related-to: ELB-2839 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit 26f58c5c34bac69c1a9b312242e92decd532cd14)
2020-09-14colibri-imx6: udev: add symlink to adc raw dataOleksandr Suvorov
Create symlinks for each supported by Colibri iMX6 ADC channels, standardizing names as colibri-ainX, according to the Colibri signal names table. Related-to: ELB-2839 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit eaf8ba320beef0b0ad59e7911b4684c793b0a4f3)
2020-09-14apalis-imx8x: udev: add symlink to adc raw dataOleksandr Suvorov
Create symlinks for each supported by Apalis iMX8QXP ADC channels, standardizing names as apalis-adcX, according to the Apalis signal names table. Related-to: ELB-2839 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit 22950c7feac191bbff58e9137612e525982e2fbe)
2020-09-14apalis-imx8: udev: add symlink to adc raw dataOleksandr Suvorov
Create symlinks for each supported by Apalis iMX8 ADC channels, standardizing names as apalis-adcX, according to the Apalis signal names table. Related-to: ELB-2839 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit a98861ebc9d2a26f458a57f674b53cb81405da64)
2020-09-14apalis-imx6: udev: add symlink to adc raw dataOleksandr Suvorov
Create symlinks for each supported by Apalis iMX6 ADC channels, standardizing names as apalis-adcX, according to the Apalis signal names table. Related-to: ELB-2839 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit 41ebdf6d19a1b8af2e06f274d711823bdb345f29)
2020-08-27systemd: replace patch with sed scriptMax Krummenacher
the configuration file keeps beeing changed with each version requiring a refresh of the patch frequently. Replace the patch with a sed script which should be more stable. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-08-06recipes-core: udev: add systemd link file to disable wifi-if-renamingPhilippe Schenker
Related-to: ELB-2760 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit fc137a7916fe004f476688b1e03dadd074e749b3)
2020-06-30apalis/colibri-imx6: add i2c-ddc rule for mainline kernelOleksandr Suvorov
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> (cherry picked from commit 3790efed5871f28b8fd969a5bbe29cf776af112e)
2020-06-3099-toradex.rules: rename *-ttyX to *-uartXOleksandr Suvorov
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> (cherry picked from commit 2e2be094e62bb61c9e58a115b5d89d5b960eed50)
2020-06-30colibri-imx6: fix (ec)spi ruleOleksandr Suvorov
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 e13aa11315c57980816d6a68f9c5216b455ee017)
2020-06-30colibri-imx7/emmc: fix (ec)spi ruleOleksandr Suvorov
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)
2020-06-3099-toradex.rules: fix (ec)spi ruleOleksandr Suvorov
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)
2020-06-18usb-rndis-systemd: drop recipeMax Krummenacher
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)
2020-06-17fs-init: some cleaning upMing Liu
- 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)
2020-06-17usb-rndis-systemd: some cleaning upMing Liu
- 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)
2020-06-01recipes-core: udev: move emmc rules from torizon to bspPhilippe Schenker
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)
2020-06-01recipes-core: udev: add rules for symlinking spi devicesPhilippe Schenker
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)
2020-06-01systemd-conf: change wired network configuration for systemd-networkdIgor Opaniuk
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)
2020-03-21systemd: refresh patch against version 244.3Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-19recipes-core: Add udev-toradex-rules recipePhilippe Schenker
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)
2020-03-19hostname: generate a uniqe hostname on bootLuka Pivk
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>
2019-05-06systemd: apply configuration change in main systemd recipeStefan Agner
Since oe-core commit 3150253898ba ("systemd-conf: simplify creation of machine-specific configuration") systemd-conf no longer unpacks the systemd sources. Hence the patch which patches units/systemd-udevd.service.in does no longer apply. Apply the patch in the systemd recipe instead. The systemd-udevd.service file is only deployed in a package built from the systemd recipe anyway, hence this also makes sure that the patched file gets actually deployed. This essentially reverts commit 118f6b1b17b6 ("systemd: follow recipe split which added systemd-conf"). Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-04-29systemd-conf: forward port patchMax Krummenacher
Upstream has changes in the context lines. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-29Revert "systemd-conf: drop a obsolete patch"Max Krummenacher
The patch is not obsolete AFAIKT. i.e. the configuration file should NOT make mounts by udevd private or other processes will not be able to see the mount. This reverts commit 3640a12c85df4ac180e38f19038072df6b1d6d55.
2019-04-27systemd-conf: drop a obsolete patchMing Liu
That patch has been merged to systemd-conf. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2019-03-27systemd-conf: add version pattern to recipeMing Liu
Or else the changes for systemd-conf recipe will be missed. Signed-off-by: Ming Liu <liu.ming50@gmail.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>