summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-11-24meta: drop 'overlays' sub-directory from fdt_overlaysMing Liu
This patch mainly aims to let fdt_overlays only contain devicetree overlay names without the 'overlays' sub-directory. Also add a sanity check for items in TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT, if a item not existing in boot filesystem, throw a error at build time. A complementary patch is needed to boot script, to load devicetree overlays from a configurable prefix. Related-to: TOR-1537 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-11-19linux-toradex-mainline: update to 5.4.77 and 5.4.77-rt43 respectivelyMarcel Ziswiler
This is actually an empty commit as I messed up the description in the previous commit f374cadde139 ("linux-toradex-mainline: update to 5.4.74 and 5.4.74-rt42 respectively"). Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-11-17linux-toradex-mainline: update to 5.4.74 and 5.4.74-rt42 respectivelyMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-11-17boot.cmd: add an ability to use static ip for nfs-rootOleksandr Suvorov
The kernel is able to use predefined IP address of NFS server. Add special values of root_devtype "nfs-dhcp" and "nfs-static" and proceed them accordingly to make the script able to boot the system from a network without dhcp-server. To boot the system from the particular server, just set the "serverip" to the proper IP address of an TFTP/NFS server and set "devtype" to "tftp". To use the particular NFS server for mouting the root-fs only, set the "serverip" to the proper IP address of an NFS server and set "root_devtype" to "nfs-static". Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-11-15linux-firmware: drop bbappendMax Krummenacher
The package split for sd8997 has been upstreamed to openembedded-core. openembedded-core provides now a rtl8188 package which contains the firmware for rtl8188 and rtl8188eu. Use that one. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 48ea0df0902cf3b52d937e3e8f3405c34f862228) Additionally deleted the now empty file. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-13image_type_tezi.bbclass: drop teziimg-distro image typeMing Liu
We have decided to drop boot partition from EMMC/RAWNAND devices for all Torizoncore images, in which case, we dont have to maintain a extra image type teziimg-distro for Torizoncore, let's drop it. This patch would not introduce any functional change to teziimg images, just aims to drop all Torizoncore related code. Introduce two new variables to make teziimg more extendable: - TEZI_ROOT_NAME: the end user could choose rootfs image name, for instance, "rootfs", "ota". - TEZI_USE_BOOTFILES: the end user could decide if a boot partition should be created for EMMC device. Related-to: TOR-1334 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-11-12linux-toradex-mainline: disable configs that lead to latencyMing Liu
Explicitly disable kernel configs that could lead to latency on preempt-rt kernel. Also explicitly enable CONFIG_EXPERT which is being depended by CONFIG_PREEMPT_RT. Related-to: TOR-1354 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-11-12linux-toradex-mainline: add 'real-time' to SUMMARYMing Liu
Related-to: TOR-1354 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-11-12linux-toradex-mainline: drop a deprecated defconfig fileMing Liu
It's being referred nowhere, let's drop it. Related-to: ELB-3035 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-11-05boot.cmd: fix booting from different mediaOleksandr Suvorov
The design of the script allows to use different sources for booting a kernel, dtb and overlays, and using as a rootfs. Using devtype to determine the media of rootfs breaks this ability. Use root_devtype setting to fix this issue. Note the script is still able to use the same devtype for both boot/rootfs media because both boot_devtype and root_devtype set from devtype by default. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-10-31Bump SRCREV hashes as used in build of Fri Oct 30 22:09:52 UTC 2020ci.toradex
Matrix Build: image-tdxref-dunfell-5.x.y-nightly-matrix 115 Matrix Build Status: SUCCESS Triggered by: https://jenkins.int.toradex.com/job/image-tdxref-dunfell-5.x.y-nightly-matrix/115 Signed-off-by: ci.toradex <cicd@toradex.com>
2020-10-30boot.cmd.in: print final bootargs before handover to kernelIgor Opaniuk
Print final bootargs value before jumping to the kernel. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2020-10-30boot.cmd.in: add error message for failed bootIgor Opaniuk
Add error message if booting fails from particular boot source. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2020-10-30boot.cmd.in: support properly dhcp bootIgor Opaniuk
1. Move invocation of $setup when $load_cmd is properly set. This helps to load hdp firmware from all supported boot sources, not only from internal emmc 2. Set proper dhcpargs if we boot via DHCP Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2020-10-28u-boot: boot.cmd: add common variables descriptionOleksandr Suvorov
The script uses global variable in tftp and dhcp mode. Add a description of these variables. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-10-28u-boot: boot.cmd: fix typo in documentationOleksandr Suvorov
Use root_* incoming variable names where it should be. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-10-20linux-toradex-mainline-rt-4.19: drop deprecated defconfigsMing Liu
This is complementary commit of: [ 09fa0594: linux-toradex-mainline-rt: drop obsolete recipe ] The main recipe of linux-toradex-mainline-rt-4.19 has been dropped, drop the defconfigs as well. Related-to: ELB-2631 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-10-19udev: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>
2020-10-16image_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>
2020-10-16u-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>
2020-10-15linux-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>
2020-10-15linux-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>
2020-10-14image_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>
2020-10-14image_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>
2020-10-14image_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>
2020-10-06class: 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>
2020-10-01Revert "boot.cmd: workaround kernel_image getting set to ancient default"Philippe Schenker
This commit was intended as a last-minute fix for apalis-imx8 which cannot boot because tezi writes the environment faulty. This commit however also caused to set kernel_image to Image.gz which is also used on TK1 and there this does not work at all. This reverts commit 6d6828218c4c4ecea2c44c114a711fe19359b408. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-09-30boot.cmd: workaround kernel_image getting set to ancient defaultMarcel Ziswiler
Workaround a Toradex Easy Installer issue causing kernel_image to be wrongly set to an ancient default. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-09-29Bump 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>
2020-09-28boot.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>
2020-09-27boot.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>
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>