Age | Commit message (Collapse) | Author |
|
OE master (styhead) no longer unpacks in ${WORKDIR} but rather does
it in path defined by the new variable UNPACKDIR.
Additionally '${S} = ${WORKDIR}' is no longer allowed and results in
a parse time error.
Cope with the change so that the layer builds against scarthgap and
styhead.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Add rules to make module family specific symlinks to devices according
to the V1.0 schematic.
I2C devices
/dev/aquila-i2c1"
/dev/aquila-i2c2"
/dev/aquila-i2c3"
/dev/aquila-i2c4"
/dev/aquila-i2c5"
/dev/aquila-i2c6"
/dev/aquila-i2c-on-module"
Serial devices
/dev/aquila-uart1"
/dev/aquila-uart2"
/dev/aquila-uart3"
/dev/aquila-uart4"
Watchdog device
/dev/aquila-watchdog"
/dev/aquila-watchdog-soc"
SPI devices
/dev/aquila-spi1-cs0
/dev/aquila-spi2-cs0
MMC/SD devices
/dev/emmc
/dev/emmc-boot0
/dev/emmc-boot1
/dev/emmc-part1"
/dev/emmc-part2"
/dev/aquila-sd"
/dev/aquila-sd-part1"
CAN interfaces
NICs have alternative names
aquila-can1
aquila-can2
aquila-can3
aquila-can4
Related-to: ELB-5482
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 0cb7188573584dd9db39e5689e843edbe9440588)
|
|
By default, OpenEmbedded sets the MOUNT_BASE variable to "/run/media" to
avoid mounting device errors when the system is set to "read-only-rootfs".
By using "/media" as MOUNT_BASE, the image cannot mount any external
devices or the "/boot" with bootloader files.
Therefore, use the MOUNT_BASE provided by base-files_*.bb on
OpenEmbedded recipe.
Related-to: ELB-5714
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
|
|
The sethostname script has issues when the root filesystem is mounted
as read-only, making not possible to create or modify the /etc/hostname
file.
Therefore, this change updates the sethostname script and adds the
@@HOSTNAMECTL_OPT@@ that can further be replaced with the "--transient"
flag for hostnamectl if the system uses a read-only root FS. This flag
will change the hostname without creating the /etc/hostname file.
With this change, update recipe version from 1.0 to 1.1.
Related-to: ELB-5713
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
(cherry picked from commit 9d2e8422f17a52e4dd7d2170c685cad2acba5550)
|
|
Previously, the network configuration file only supported mwifiex_pcie
driver, but WiFi/BT interface of the Verdin modules uses the SDIO
interface, which caused 10-toradex-wifi-ifnames.link was not being applied
to this hardware family. Therefore, fix this issue by extending support to
the SDIO driver.
Related-to: ELB-5696
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
(cherry picked from commit 0da03cf4aa7d96d12dfb6d26f839168fd2f3c3d3)
|
|
Add Verdin I2C_3_HDMI symlink rule to match upstream kernel naming.
Related-to: ELB-5638
Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
(cherry picked from commit 6bbb87e84c22559e56f8c2289f71352a2a5659d8)
|
|
Introduce systemd link files to incorporate alternative names for CAN
interfaces, adding compatibility with names provided in datasheets and
device tree comments.
With this modification, the alternative name for can0 will be 'verdin-can1',
and for can1, 'verdin-can2' on i.MX processors. For the AM62, can1 will
become 'verdin-can1', and can0 will become 'verdin-can2'. The alternative
names will be displayed as follows:
```
4: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
link/can
altname verdin-can1
5: can1: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
link/can
altname verdin-can2
```
Related-to: ELB-5600
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
(cherry picked from commit 96d9e5ecf6efb96e2029d71eb6592da1f1737e08)
|
|
add /dev/verdin-uart2 symlink on Verdin AM62
Related-to: ELB-5122
Signed-off-by: Parth Pancholi <parth.pancholi@toradex.com>
(cherry picked from commit 397e4f5e6df4ecb91693dd3c4d80d6e2b1427f04)
|
|
Fix these unwanted behaviors:
- With kernel >= v6.3 /dev/colibri-watchdog-som and /dev/colibri-watchdog
are missing. Driver init sequence changes, the KERNEL label changes
from watchdog to watchdog1 and relevant rule that create the symlinks
stops matching.
- With kernel < v6.3 /dev/colibri-watchdog-som and /dev/colibri-watchdog-soc
are pointing to the same device, respectively /dev/watchdog0 (miscdev)
and /dev/watchdog (cdev) using the same watchdog device
(the SoM rn5t618 watchdog). Instead, it is expected that
/dev/colibri-watchdog-soc links to the SoC imx2-wdt watchdog device.
These are the current two configurations:
< v6.3:
/dev/colibri-watchdog -> watchdog0 (rn5t618)
/dev/colibri-watchdog-soc -> watchdog1 (imx2-wdt)
/dev/colibri-watchdog-som -> watchdog0 (rn5t618)
>= v6.3:
/dev/colibri-watchdog -> watchdog1 (rn5t618)
/dev/colibri-watchdog-soc -> watchdog0 (imx2-wdt)
/dev/colibri-watchdog-som -> watchdog1 (rn5t618)
Related-to: ELB-5315
Fixes: 9f9fa5d6c8ed ("udev-toradex-rules: Add additional watchdog symlink")
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
(cherry picked from commit 73e42815204f68ac520037afe7046f6022d7bb55)
|
|
Add som family symlinks for the first SoC watchdog device
exposed as /dev/watchdog.
root@verdin-am62-14917625:~# ls -l /dev/verdin-watchdog*
lrwxrwxrwx 1 root root 8 Apr 5 12:49 /dev/verdin-watchdog -> watchdog
lrwxrwxrwx 1 root root 8 Apr 5 12:49 /dev/verdin-watchdog-soc -> watchdog
Related-to: ELB-5087
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit a31e6fc22579cdbfa1ff4ed4ec124cae7802fe03)
|
|
Related-to: ELB-5083 ELB-5068
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit e91fe9e903215369ded5383ea9aaf51ff5623740)
|
|
Add /dev/verdin-spi-cs0 symlink on Verdin AM62.
Related-to: ELB-5085
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
(cherry picked from commit f0071d8fb0b9e933d29ecb52389d373546e3dca2)
|
|
Some rules are commented until we have the real hardware.
Related-to: ELB-5012
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 46d3c7bec420d35500e5efcc42ac7ed8aa6c3d46)
|
|
Fix udev rule to create the /dev/$som-watchdog-som symlink, imx8
watchdog is on the SCU.
Related-to: ELB-5039
Fixes: 9f9fa5d6c8ed ("udev-toradex-rules: Add additional watchdog symlink")
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
(cherry picked from commit f25adb4833f65606f39f181a162aaa8ce14d9681)
|
|
${family}-watchdog-som -> SoM watchdog, e.g. pmic
${family}-watchdog-soc -> SoC watchdog
Related-to: ELB-5039
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
(cherry picked from commit 9f9fa5d6c8ed679f75566476099ac76baac54602)
|
|
Depending on the kernel driver probe time in some circumstances the udev
event is not add, but change, add both to the rules. Without this change
the uart symlinks are not created if the imx-sdma driver is loaded after
udev is started.
Related-to: ELB-4655
Signed-off-by: Francesco Dolcini <francesco.dolcini@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>
|
|
When toradex-mount-bootpart.sh is triggered by
bootpart-automount.rules, the mountpoint of boot partition might not be
created yet since "$MOUNT --no-block" is being used in
/etc/udev/scripts/mount.sh.
Let's change to calculate mountpoint from label and device name
instead.
Related-to: ELB-4620
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
It will handle bind mount boot partition to /boot. provided that the
modules boot from eMMC/SDCard devices and there is a boot partition
present.
It whould work with both sysvinit and systemd init managers.
Related-to: ELB-4620
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
There were two reasons for maintaining Toradex specific mount.sh:
- The first, we wanted to handle Toradex specific boot partitions for
eMMC modules in /etc/fstab..
- The second was we wanted to mount medias on /media instead of
/run/media.
But this has at least two drawbacks:
- It causes we might miss the future updates in OE's mount.sh.
- Another more serious drawback is it will lead to a knew issue:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=12644
For the first issue, we can fix it by introducing another udev rule for
boot partitions, to create a symbolic link:
/boot -> /media/BOOT-PARTITION-MOUNTPOINT
For the second issue, we can fix it by using MOUNT_BASE variable to
change mount base from /run/media to /media.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
Toradex specific mount.blacklist file was added by commit 9f0cd6f895:
[
Author: Max Krummenacher <max.krummenacher@toradex.com>
Date: Mon Jun 24 09:29:22 2013 +0200
udev: don't try to automount mmcblk0bootX
- these partitions are not meant to be mounted
]
udev now no longer tries to mount those partitions so it's safe to drop
it. And also mount.blacklist has been renamed to mount.ignorelist in OE,
it would not work any way.
Let's drop it.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
hotplug scripts had been broken since commit 523aea31bb7:
[
Author: Luka Pivk <luka.pivk@toradex.com>
Date: Fri Mar 6 16:01:52 2020 +0100
hostname: generate a uniqe hostname on boot
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>
]
since the conditional checking for `uname -n` equals to machine name in
hotplug.sh are compeletely wrong, they would never match because the
output of `uname -n` now are machine names plus serial numers.
So let's drop them, which should be safe since nobody complaint that.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
```
commit a6d094403cd6 ("ARM: dts: imx: Change usdhc node name on i.MX6/i.MX7 SoCs")
commit bffe02ccca5b ("ARM: dts: imx: make wdog node name generic")
```
in kernel source has changed the `usdhc`, `watchdog` node names, adapt
the udev rules to match both the old and new naming scheme.
Related-to: ELB-4373
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
Toradex NXP layer could be used by other external projects, so we
should make sure Toradex specific changes dont impact them.
Use 'tdx' overrides to ensure Toradex specific changes only valid for
Toradex distros.
Related-to: ELB-3046
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 9400ee43d6b14fbea12a82a047056c8581ec9d70)
|
|
This service sets the hostname on boot to the machine name amended
by the serial number unless /etc/hostname already exists.
systemd does also set a hostname, if none is available it uses
'localhost' and creates an empty /etc/hostname.
This two mechanism have a race condition so that systemd might
run before set-hostname was able to create /etc/hostname. Likely
only seens a recent systemd update.
Fix that by changing the conditions for executing set-hostname to
run when there is no or an empty /etc/hostname file.
Related-to: ELB-4277
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 2f6a4e41f66496b6719e9b493207b99b9446c837)
|
|
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)
|
|
Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
|
|
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>
|
|
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)
|
|
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)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 0aec0986a859ea7f0cb8f9aeb56aae9ce8786568)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 4de8e05587f71be709ed8ee22c91d5b01464d34b)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
Related-to: ELB-3895
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 5255163c0445a40802545f8337b2ac147a261092)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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>
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|