summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-10-19image_type_tezi.bbclass: add tezi_deploy_dt_overlays prefuncsMing Liu
Move the code deploying dtb overlays to a prefuncs tezi_deploy_dt_overlays of do_image_bootfs, and put all prefuncs of do_image_bootfs, do_image_teziimg, do_image_teziimg_distro to variables so that they could be overridden in other meta layers. For instance, an end user might want to write his/her own image.json file according to his/her partitions layout. Also fix a missing double quotes. Related-to: TOR-1334 Signed-off-by: Ming Liu <ming.liu@toradex.com> (cherry picked from commit 29c2fb146a127e2a26d6baab641bd7ba3867c3b5)
2020-10-19u-boot-distro-boot: dont inherit nopackagesMing Liu
The reason we inherit nopackages was that there was no files being packaged at that moment, but this makes it impossible for a bbappend to add packages, let's drop it. Now torizoncore decides to add a ostree-uboot-env package in this recipe. Related-to: TOR-1335 Signed-off-by: Ming Liu <ming.liu@toradex.com> (cherry picked from commit 7b7a2f85e2fcea83c15b1819479506d7d18914bc)
2020-10-17linux-toradex-mainline-5.4: drop separate defconfigsMax Krummenacher
Change to use the defconfig which is part of the kernel tree. In order to provide a defconfig from your bbappend add a file 'defconfig' through SRC_URI which will take precedence. Related-to: ELB-3035 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 0006e2a7616674e768a698123a13caff5c1661ba)
2020-10-17linux-toradex-mainline: add preempt-rt configs as scc fileMing Liu
Change to add preempt-rt configs as scc file by including linux-imx.inc, also avoid setting KERNEL_FEATURES to empty, it could be used in torizoncore layer. Related-to: ELB-3171 Signed-off-by: Ming Liu <ming.liu@toradex.com> (cherry picked from commit 6737ce79c453953be6faf02519d9fc920dd58bb9)
2020-10-17image_type_tezi: fix machine overlay with carrier postfix deploymentMax Krummenacher
We have machine overlay where the machine name is postfixed with the carrier board name, e.g. colibri-imx7-aster_atmel-mxt_overlay.dts. No longer require an '_' after the machine name to deploy also overlays with a postfix after the machine name. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 0e19023b9fd03f6922992c59f4ddc3a4aff9f36d)
2020-10-17image_type_tezi: colibri-imx7-emmc fix overlay deploymentMax Krummenacher
For the colibri-imx7-emmc machine we need the overlays prefixed with colibri-imx7. Due to the changed machine name the machine specific overlays did not get deployed into a image. Fix that. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 75d703f9af475110554d1a88954998291b2ce96a)
2020-10-17image_type_tezi: i.mx 8x fix overlay deployment for b0 siliconMax Krummenacher
We have separate machines for the now deprecated i.MX 8X B0 silicon based modules. Due to the changed machine name the machine specific overlays did not get deployed into a image. Fix that. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit ec02225f82cbf9054ea1bf301967ebf1b9ea98fa)
2020-10-17class: image_type_tezi: use tezi config format 4 for mx8Philippe Schenker
On i.MX8 processors there was a bug in Tezi that leaked an old u-boot environment into newly installed image. This got fixed and can be enforced by using Tezi config format number 4. Make use of that. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit 51927b354280c398b11b7b6bd64c1617825f17d1)
2020-10-17Bump SRCREVci.toradex
Bump SRCREV hashes as used in build of Tue Sep 29 12:07:53 UTC 2020 Matrix Build: image-tdxref-dunfell-5.x.y-nightly-matrix 81 Matrix Build Status: SUCCESS Triggered by: https://jenkins.int.toradex.com/job/image-tdxref-dunfell-5.x.y-nightly-matrix/81 Signed-off-by: ci.toradex <cicd@toradex.com> (cherry picked from commit 15385a89f3aff2a13f316c26ef23abc7efa19cab)
2020-10-17boot.cmd: Fix a licenseOleksandr Suvorov
The second license should be MIT instead of X11. Fix it. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit 7f667bc15f617b6f9fd98f73a50f7fa756a75aa7)
2020-10-17boot.cmd: add independent boot/root settingsOleksandr Suvorov
Add an ability to independently set device type, num and partition for boot and root partitions. Makes script able to boot kernel via tftp/dhcp. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit bc2c6c3b5b4bfdccd93b6ace3a3a1a9fd7ff3cef)
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-23linux-toradex-mainline: tegra: enable can_j1939Max Krummenacher
Add CAN_J1939 as a module. and run savedefconfig. This is a copy of tegra_defconfig from the kernel sources. Related-to: ELB-3023 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-09-23linux-toradex-mainline: imx 32bit: use a common defconfig and enable can_j1939Max Krummenacher
Use the common defconfig from the kernel sources toradex-imx_v6_v7_defconfig. This increases the kernel size for the so far smallest kernel by about 200k. We need a file for each machine as we do not have a common override to use in the use-mainline-bsp case. This additionally adds CAN_J1939 as a kernel module. Related-to: ELB-3023 Signed-off-by: Max Krummenacher <max.krummenacher@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-09-10linux-toradex-mainline: update to 5.4.61 and 5.4.61-rt37 respectivelyMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-09-07u-boot-distro-boot: provide proper KERNEL_IMAGE valueIgor Opaniuk
Provide KERNEL_IMAGE value for boot.scr. Use Image.gz for imx8 machines. Relates-to: ELB-1372 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2020-09-07boot.cmd: add support Image.gz boot imageIgor Opaniuk
1. Provide information about kernel image format instead of using that information from U-Boot env. 2. Unpack kernel image before calling boot cmd, in case Image.gz is used. Relates-to: ELB-1372 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2020-09-03device-tree-overlays-mainline: update to latestMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-09-03libubootenv: drop bbappendMax Krummenacher
This has been applied to the openembedded-core layer's master and dunfell branch. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-09-01Revert "image_type_tezi: drop device-tree-overlays"Max Krummenacher
The device-tree overlays have been reworked. Reenable the build and deployment. This reverts commit 1914b33f70f13b5460152daaf49de7511e4990ee. Related-to: ELB-2943 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
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-17image_type_tezi: drop device-tree-overlaysMax Krummenacher
They currently do not build against the downstream kernel, drop them if building for a downstream kernel for now. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-08-09image_type_tezi.bbclass: drop UBOOT_BINARYMing Liu
It's useless and would be overridden by the same definition in imx-base.inc of meta-freescale layer. Related-to: ELB-2553 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-08-09image_type_tezi.bbclass: change u-boot env file nameMing Liu
The default u-boot env file name has changed to u-boot-initial-env in OE layer, adapt to it. Related-to: ELB-2553 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-08-09u-boot-toradex: drop u-boot-toradex-initial-env.incMing Liu
The initial env has been implemented in OE, we dont need maintain this. Related-to: ELB-2553 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-08-09libubootenv: fix several issuesMing Liu
- We dont want to store to device when fw_setenv is called and there is no value change, to avoid flash wear-out. - We are using symbolic links in /etc/fw_env.config, libubootenv should handle that. - u-boot-default-env is being referred by libubootenv, add it to RRECOMMENDS_${PN}-bin tor target build. Related-to: ELB-2552 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-08-06linux-toradex-mainline: fix src_uri nameMax Krummenacher
Add the accidently dropped file reference name so the checksums are found. fixes 9b13de4 ("linux-toradex-mainline: update to latest") Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-08-06linux-toradex-mainline: update to latestMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit cf3aca30b171672fe011b404d0c12378b7c79f5d)
2020-08-06linux-toradex-mainline-5.4: enable GPIO/serial sources for PPSOleksandr Suvorov
Enable GPIO and serial-port (CD-signal) sources for the PPS (pulse-per-second) module. Related-to: ELB-2837 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit b736ab934b1067d032c1ac61bb753a8039222096)
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-07-11linux-toradex-mainline: add lzop-native to DEPENDSMing Liu
This fixes a following compilation error when compiling zImage: | /bin/sh: lzop: command not found Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-07-06linux-firmware: use mrvl sdsd8997_combo_v4 from linux-firmwareMax Krummenacher
The firmware for Marvell 8997 using SDIO as the interface is also available from the regular linux-firmware repo, although with an other filename. Use that one and provide a symlink to cope with the old name. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-07-06image_type_tezi: rename overlays folderIgor Opaniuk
Rename destination "devicetree" with dtb overlays (on bootfs) to "overlays". Relates-to: ELB-2807 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> (cherry picked from commit 288b7e41f508e0dcde66b536953d014dd4497971)
2020-06-30linux-toradex-mainline: update to latestMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit 5c82f9ec57e0676de240acaa40b78ce4d3cd2181)
2020-06-30device-tree-overlays: update to latestMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit 14ccfef1cb6334ca165cae84173476cb6d961383)
2020-06-30image_type_tezi.bbclass: increase min boot partition size to 3x payloadMarcel Ziswiler
If using upstream variants kernel itself is close to 8 MB and one can barely keep a backup copy in the resulting 16 MB! Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit aae74f006cd02717df3b047b59940196de53c105)
2020-06-30linux-toradex-mainline: enable adv7180 configMarcel Ziswiler
This driver is also applicable to the ADV7280 e.g. as found on our Analogue Camera Adapter V2.0B. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit 441c2eec6c7b59331642395e5d962540b214aaae)
2020-06-30linux-toradex-mainline-rt: drop obsolete recipeStefan Agner
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> (cherry picked from commit 5f773cd50f387c92f9511c173cb08a8af8263075)
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)