summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-30Bump SRCREVci.toradex
Bump SRCREV hashes as used in build of Thu Jun 24 23:53:00 UTC 2021 Matrix Build: image-tdxref-dunfell-5.x.y-nightly-matrix 343 Matrix Build Status: SUCCESS Triggered by: https://jenkins.int.toradex.com/job/image-tdxref-dunfell-5.x.y-nightly-matrix/343 Signed-off-by: ci.toradex <cicd@toradex.com>
2021-06-02udev: 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>
2021-05-31Bump SRCREVci.toradex
Bump SRCREV hashes as used in build of Fri May 7 22:38:51 UTC 2021 Matrix Build: image-tdxref-dunfell-5.x.y-nightly-matrix 297 Matrix Build Status: SUCCESS Triggered by: https://jenkins.int.toradex.com/job/image-tdxref-dunfell-5.x.y-nightly-matrix/297 Signed-off-by: ci.toradex <cicd@toradex.com>
2021-05-20recipes-core: udev: change sd-card symlinks to style of emmc rulesPhilippe Schenker
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>
2021-05-20image_type_tezi: handle emmc being mmcblk2Max Krummenacher
Note that we currently do not want to use the stable symlinks to the eMMC for modules were older version of the Toradex Easy Installer exist. Using the stable symlinks would require a Toradex Easy Instaler 5.3.0 or newer. For Verdin iMX8MP 5.3.0 is the first version and thus we can directly use the stable symlink name pointing to the eMMC. Related-to: TEI-750 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-05-17recipes-core: udev: add hardware stable symlinks for sd-cardPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2021-05-04toradex-sanity.bbclass: introduce bbclass fileMing Liu
I have observed a following OE build issue with the latest dunfell-5.x.y, as follows: ``` ERROR: OE-core's config sanity checker detected a potential misconfiguration. Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories: TMPDIR changed to include path filtering from the pseudo database. It is recommended to use a clean TMPDIR with the new pseudo path filtering so TMPDIR would need to be removed to continue. ``` this is due to the ABI VERSION changed in OE, usually we should remove the TMPDIR and rebuild when seeing this error, but it's not enough for Toradex builds, since we have split DEPLOY_DIR out of TMPDIR, so we should also check the ABI VERSION change in DEPLOY_DIR, or else it might not comply the OE layer. We should warn the end users about this risk, let's add a toradex sanity check bbclass for that. We can also add some other basic Toradex specific sanity checks, for instance, for fitimage, the end users must inherit toradex-fitimage rather than kernel-fitimage. Related-to: ELB-3944 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2021-05-03Bump SRCREVci.toradex
Bump SRCREV hashes as used in build of Mon Apr 19 22:46:50 UTC 2021 Matrix Build: image-tdxref-dunfell-5.x.y-nightly-matrix 280 Matrix Build Status: SUCCESS Triggered by: https://jenkins.int.toradex.com/job/image-tdxref-dunfell-5.x.y-nightly-matrix/280 Signed-off-by: ci.toradex <cicd@toradex.com>
2021-04-28systemd-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>
2021-04-19image_type_tezi.bbclass: fix a typoMing Liu
A typo was introduced by commit 9e9859a9: [ image_type_tezi.bbclass: introduce TEZI_AUTO_INSTALL ] TEZI_USE_BOOTFILES should be TEZI_AUTO_INSTALL. Related-to: TEI-773 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2021-04-16image_type_tezi.bbclass: introduce TEZI_AUTO_INSTALLMing Liu
This makes it possible to build a image tarball with 'autoinstall' enabled. Related-to: TEI-773 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2021-04-08linux-toradex-mainline: uprev to get newest configMax Krummenacher
toradex-imx_v6_v7_defconfig now builds RTC drivers not used on Toradex HW as kernel modules to reduce the zImage size. With that the kernel fits again also on the raw NAND based modules. Related-to: ELB-3931 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-04-07Bump SRCREV hashes as used in build of Sat Apr 3 03:25:09 UTC 2021ci.toradex
Matrix Build: image-torizoncore-dunfell-5.x.y-nightly-matrix 262 Matrix Build Status: SUCCESS Triggered by: https://jenkins.int.toradex.com/job/image-torizoncore-dunfell-5.x.y-nightly-matrix/262 Signed-off-by: ci.toradex <cicd@toradex.com>
2021-03-30verdin-imx8mp: udev: add symlink rules for native hdmi i2cMax Krummenacher
Related-to: ELB-3895 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-03-26u-boot-distro-boot: explicitly use bootm for booting fitImageMing Liu
We cant use a single KERNEL_BOOTCMD for both fit/non-fit kernel images, that makes a invalid bootcmd being used in boot.scr either for fit or for non-fit image. Let's change to explicitly use 'bootm' for booting fitimage. Related-to: TOR-1700 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2021-03-26toradex-fitimage.bbclass: build configuration for image tree when dtb is not ↵Ming Liu
present Partly back-port commit 2d9f3c3d763e2bca704da4019add973b9a2c572f from OE upstream: [ kernel-fitimage: build configuration for image tree when dtb is not present This patch adds support for adding configuration node even when dtb is not part of the FIT image. The conf and default node number are therefore changed to point to kernel ID rather than dtb ID when dtb does not exist. ] to support fitImage for qemu machines which dont have a dtb node. Related-to: TOR-1700 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2021-03-25tezi-metadata: set SSTATE_DUPWHITELISTMing Liu
We want to always check the latest EULA file in image_type_tezi.bbclass So we put LA_OPT_NXP_SW.html to sstate duplicate whitelist, this ensures it could be deployed to ${DEPLOY_DIR_IMAGE} as a backup even it's aleady existed. This fixes a following bitbake error: | ERROR: tezi-metadata-0.3-r0 do_deploy: The recipe tezi-metadata is | trying to install files into a shared area when those files already | exist. Those files and their manifest location are: | images/colibri-imx8x-v10b/LA_OPT_NXP_SW.html | (not matched to any task) | Please verify which recipe should provide the above files. Related-to: ELB-3485 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2021-03-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>
2021-03-18image_type_tezi.bbclass: NXP license backupDenys Drozdov
Keep hard-copy version of license file in sstate cache in case of NXP connection error Related-to: ELB-3485 Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
2021-03-04udev: 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>
2021-03-04image_type_tezi.bbclass: avoid installing dtb/dtbo for fitimageMing Liu
Devicetrees and overlays have been bundled into fitimage, so we dont have to install them to boot partition. Related-to: TOR-1700 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2021-03-04u-boot-distro-boot: add fitimage supportMing Liu
When the kernel image type is fitimage, load it to ${ramdisk_addr_r} and boot it from there. A new variable fitconf_fdt_overlays is introduced to collect overlays boot configs from overlays.txt file, and it would be passed to boot command. Related-to: TOR-1700 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2021-03-04toradex-fitimage.bbclass: introduce bbclass fileMing Liu
To support devicetree overlays, we need let fitimage_assemble handle both ${KERNEL_DEVICETREE} and ${EXTERNAL_KERNEL_DEVICETREE} at meanwhile, but the fitimage_assemble can only deal with one. ( when ${EXTERNAL_KERNEL_DEVICETREE} is set, it will skip ${KERNEL_DEVICETREE} ) Let's override fitimage_assemble to be able to assemble all dtb/dtbo files in ${KERNEL_DEVICETREE} and ${EXTERNAL_KERNEL_DEVICETREE}. Related-to: TOR-1700 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2021-03-04toradex-devicetree.bbclass: introduce bbclass fileMing Liu
The major reason for doing this is because we are currently deploying all dtbo files to ${DEPLOY_DIR_IMAGE}/devicetree, but not machine specific ones, and they will be unnecessarily bundled into fitimage when kernel-fitimage.bbclass is being inherited. To fix that, we introduce a extra task do_collect_overlays to collect machine specific overlays to ${DT_FILES_PATH} before do_compile, where dtb compilation is being compiled in. In this way, only machine specific overlays would be compiled and deployed. Now we can drop device-tree-overlay-filter recipe with this change. Related-to: TOR-1700 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2021-03-03udev: 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>
2021-03-02image_type_tezi.bbclass show license for tdxref builds onlyDenys Drozdov
The License window will be shown in case SHOW_EULA_FILE set to "1" Related-to: ELB-3485 Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
2021-03-02image_type_tezi.bbclass add license file to tezi imageDenys Drozdov
Ensure there is a popup that shows the EULA license to be accepted once installing a tdxref image Related-to: ELB-3485 Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
2021-03-02linux-toradex: export DTC_FLAGSMing Liu
Export DTC_FLAGS instead of passing it to make command by EXTRA_OEMAKE, this ensures 'make dtbs' in a devshell also get 'DTC_FLAGS=-@' option. Related-to: ELB-3578 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2021-03-01linux-toradex: upstream: update to latestMax Krummenacher
Related-to: ELB-3341 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-03-01Bump SRCREVci.toradex
Bump SRCREV hashes as used in build of Wed Feb 10 22:59:24 UTC 2021 Matrix Build: image-tdxref-dunfell-5.x.y-nightly-matrix 215 Matrix Build Status: SUCCESS Triggered by: https://jenkins.int.toradex.com/job/image-tdxref-dunfell-5.x.y-nightly-matrix/215 Signed-off-by: ci.toradex <cicd@toradex.com> Bump SRCREV Bump SRCREV hashes as used in build of Tue Feb 23 21:40:40 UTC 2021 Matrix Build: image-tdxref-dunfell-5.x.y-nightly-matrix 228 Matrix Build Status: SUCCESS Triggered by: https://jenkins.int.toradex.com/job/image-tdxref-dunfell-5.x.y-nightly-matrix/228 Signed-off-by: ci.toradex <cicd@toradex.com>
2021-02-05boot.cmd: Add flag skip_fdt_overlaysOleksandr Suvorov
This flag allows one to skip loading and applying overlay dtbo files, e.g. in case, these files prevent the system from booting. Related-to: ELB-3405 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2021-02-02Bump SRCREVci.toradex
Bump SRCREV hashes as used in build of Tue Feb 2 05:36:13 UTC 2021 Matrix Build: image-tdxref-dunfell-5.x.y-nightly-matrix 207 Matrix Build Status: SUCCESS Triggered by: https://jenkins.int.toradex.com/job/image-tdxref-dunfell-5.x.y-nightly-matrix/207 Signed-off-by: ci.toradex <cicd@toradex.com>
2021-01-28image_type_tezi: use device-tree-overlay-filterMax Krummenacher
Replace tezi_deploy_dt_overlays() with a depend on device-tree-overlay-filter. This allows to append the device tree overlays to IMAGE_BOOT_FILES and thus they do get installed to TEZI and WIC images. Before they were missing in the WIC images. Related-to: ELB-3197 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-01-28device-tree-overlay-filter: initial addMax Krummenacher
This recipe deploys from the available device tree overlays those which are applicable for the current machine. Additionally it creates the file overlays.txt containing a list of overlays which should be started by default. The files to deploy in the final image are: "overlays.txt overlays/*" The deploy code is a adapted copy of the image_type_tezi function tezi_deploy_dt_overlays(). Related-to: ELB-3197 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-01-19image_type_tezi: refine machine specific overlay deploymentMax Krummenacher
The current wildcard setting deploys machine specific overlays with <machine>* and thus e.g. apalis-imx8 gets additionally those specific to apalis-imx8x. Fix that. Related to: ELB-3499 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-01-19image_type_tezi: allow to use without a tordex distroMax Krummenacher
If one uses our BSP layers / machines without a Toradex distro the do_image_teziimg step fails due to missing variables. Add weak defines of those. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-01-05backports:: use https to fetch git repoMax Krummenacher
This helps people which can't access the web with the git protocol. Related-to: ELB-3475 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-12-28Bump SRCREVToardex CI
Bump SRCREV hashes as used in build of Thu Dec 24 23:56:45 UTC 2020 Matrix Build: image-tdxref-dunfell-5.x.y-nightly-matrix 169 Matrix Build Status: SUCCESS Triggered by: https://jenkins.int.toradex.com/job/image-tdxref-dunfell-5.x.y-nightly-matrix/169 Signed-off-by: ci.toradex <cicd@toradex.com> Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-12-18udev: 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>
2020-12-15udev: 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>
2020-12-09Revert "systemd: add boot.mount"Max Krummenacher
Revert in favor of fstab + udev automount. This reverts commit 2554f4eec62d2cd68dec3d043654874f3b221e63. Compare with commit 38705bd ("fstab: configure the emmc's first partition to mount at /boot") in meta-toradex-demos. Related-to: ELB-3250 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-12-03u-boot: boot.cmd: add boot informationOleksandr Suvorov
It is useful to see which devicetree file u-boot loads to boot kernel with. Print this information. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-11-30Bump SRCREVci.toradex
Bump SRCREV hashes as used in build of Fri Nov 27 22:22:56 UTC 2020 Matrix Build: image-tdxref-dunfell-5.x.y-nightly-matrix 143 Matrix Build Status: SUCCESS Triggered by: https://jenkins.int.toradex.com/job/image-tdxref-dunfell-5.x.y-nightly-matrix/143 Signed-off-by: ci.toradex <cicd@toradex.com>
2020-11-30linux-toradex-mainline: add usbgadget/libcomposite as autoload modsIgor Opaniuk
Add usbgadget and libcomposite as autoload modules. Related-to: ELB-3152 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2020-11-30systemd: add boot.mountIgor Opaniuk
Mount Separate FAT Boot Partition to /boot. Testing: Mounting Boot partition... [ OK ] Mounted Boot partition. .... root@colibri-imx6:/boot# ls -lah drwxrwx--- 3 root disk 1.0K Jan 1 1970 . drwxr-xr-x 18 root root 4.0K Mar 9 2018 .. -rwxrwx--- 1 root disk 4.7K Nov 29 19:21 boot.scr -rwxrwx--- 1 root disk 69.0K Nov 29 19:21 imx6dl-colibri-aster.dtb -rwxrwx--- 1 root disk 71.2K Nov 29 19:21 imx6dl-colibri-cam-eval-v3.dtb -rwxrwx--- 1 root disk 69.6K Nov 29 19:21 imx6dl-colibri-eval-v3.dtb -rwxrwx--- 1 root disk 70.2K Nov 29 19:21 imx6dl-colibri-iris-v2.dtb -rwxrwx--- 1 root disk 69.0K Nov 29 19:21 imx6dl-colibri-iris.dtb drwxrwx--- 2 root disk 1.5K Nov 29 19:21 overlays -rwxrwx--- 1 root disk 14 Nov 29 19:21 overlays.txt -rwxrwx--- 1 root disk 6.2M Nov 29 19:21 zImage Related-to: ELB-3250 Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com>
2020-11-26apalis-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>
2020-11-26verdin-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>
2020-11-25mtd-utils: add initial systemd service descriptionIgor Opaniuk
Add initial ubihealthd.service for systemd. It can be enabled to start automatically. Testing: [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting UBI health daemon... [ OK ] Started UBI health daemon. .... root@colibri-imx6ull:~# systemctl status ubihealthd.service * ubihealthd.service - UBI health daemon Loaded: loaded (/lib/systemd/system/ubihealthd.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2020-11-25 16:09:03 UTC; 41s ago Process: 498 ExecStart=/usr/sbin/ubihealthd (code=exited, status=0/SUCCESS) Main PID: 499 (ubihealthd) CGroup: /system.slice/ubihealthd.service `-499 /usr/sbin/ubihealthd Nov 25 16:09:03 colibri-imx6ull systemd[1]: Starting UBI health daemon... Nov 25 16:09:03 colibri-imx6ull systemd[1]: Started UBI health daemon. Related-to: ELB-3249 Signed-off-by: default avatarIgor Opaniuk <igor.opaniuk@toradex.com>
2020-11-25mtd-utils: backport latest recipe from OE core upstreamIgor Opaniuk
Backport the upstream mtd-utils v2.1.2 recipe from OE core [1]. [1] https://git.openembedded.org/openembedded-core/plain/meta/recipes-devtools/mtd/mtd-utils_git.bb Related-to: ELB-3249 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2020-11-24boot.cmd.in: use configurable prefix to load overlaysOleksandr Suvorov
Use the predefined prefix to overlay files to be loaded. This significantly reduces the size of the overlays.txt file and makes this file more readable and understandable by customers. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>