Toradex Easy Installer on LVDS Iris2+imx8x

I would like run Toradex Easy Installer on LVDS on my platform Iris2+imx8x
(run recovery-windows.bat and download Toradex Easy Installer from Winows in recovery mode)

  1. Dump tezi.itb
dumpimage -l tezi.itb > tezi_dump.txt

tezi_dump.txt (17.4 KB)

dumpimage tezi.itb -T flat_dt -p 0 -o zImage
dumpimage tezi.itb -T flat_dt -p 27 -o ramdisk
dumpimage tezi.itb -T flat_dt -p 8 -o system.dtb
  1. create tezi.its
/dts-v1/;
 
/ {
    description = "U-Boot fitImage for Toradex Easy Installer";
    #address-cells = <1>;
 
    images {
        kernel@0 {
            description = "Linux Kernel";
            data = /incbin/("./zImage");
            type = "kernel";
            arch = "aarch64";
            os = "linux";
            compression = "none";
            load = <0x96000000>;
            entry = <0x96000000>;
            hash@1 {
                algo = "md5";
            };
        };
        fdt@0 {
            description = "Flattened Device Tree blob";
            data = /incbin/("./system.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash@1 {
                algo = "md5";
            };
        };
        ramdisk@0 {
            description = "Ramdisk Image";
            data = /incbin/("./ramdisk");
            type = "ramdisk";
            arch = "arm";
            os = "linux";
            compression = "none";
            hash@1 {
                algo = "md5";
            };
        };
    };
    configurations {
        default = "config@1";
        config@1 {
            description = "Boot Linux kernel with FDT blob + ramdisk";
            kernel = "kernel@0";
            fdt = "fdt@0";
            ramdisk = "ramdisk@0";
            hash@1 {
                algo = "md5";
            };
        };
    };
};
  1. generate
    mkimage -f tezi.its tezi_new.itb
tezi.its:8.18-20.11: Warning (unit_address_vs_reg): /images/kernel@0: node has a unit name, but no reg or ranges property
tezi.its:17.20-19.15: Warning (unit_address_vs_reg): /images/kernel@0/hash@1: node has a unit name, but no reg or ranges property
tezi.its:21.15-30.11: Warning (unit_address_vs_reg): /images/fdt@0: node has a unit name, but no reg or ranges property
tezi.its:27.20-29.15: Warning (unit_address_vs_reg): /images/fdt@0/hash@1: node has a unit name, but no reg or ranges property
tezi.its:31.19-41.11: Warning (unit_address_vs_reg): /images/ramdisk@0: node has a unit name, but no reg or ranges property
tezi.its:38.20-40.15: Warning (unit_address_vs_reg): /images/ramdisk@0/hash@1: node has a unit name, but no reg or ranges property
tezi.its:45.18-53.11: Warning (unit_address_vs_reg): /configurations/config@1: node has a unit name, but no reg or ranges property
tezi.its:50.20-52.15: Warning (unit_address_vs_reg): /configurations/config@1/hash@1: node has a unit name, but no reg or ranges property
mkimage: verify_header failed for FIT Image support with exit code 1

What is wrong ?

Hello @MariusM ,
In the tezi.its file you don’t need unit addresses like kernel@0, hash@1 ,etc .These are giving you these warnings and ultimately it results in the error that you see.

Please use the syntax provided in:

That should solve your issue.

Best regards,
Josep

@josep.tx thx !

Toradex Easy Installer is open or close source ?
I can’t find repository.

Hello @MariusM ,

The Qt user interface and othe SW components are closed source.

Best regards,
Josep

@josep.tx thank you for the link

I have a question about your first message
there are many files saved in the tezi.itb file but one is selected “default”
Default Configuration: 'conf-imx8dx-colibri-aster.dtb'
is possible change default ? or overload it in overlays.txt

the name suggests aster carrier board but I have iris-v2

Hi @MariusM

When you rebuild the Toradex Easy Installer you can set the default-config yourself. You just have to select your default config (default = “config…”):

    configurations {
        default = "config-2";
        config-1 {
            description = "Boot Linux kernel with FDT 0 blob + ramdisk";
            kernel = "kernel";
            fdt = "fdt-0";
            ramdisk = "ramdisk-0";
            hash {
                algo = "sha256";
            };
        };
        config-2 {
            description = "Boot Linux kernel with FDT 1 blob + ramdisk";
            kernel = "kernel";
            fdt = "fdt-1";
            ramdisk = "ramdisk-0";
            hash {
                algo = "sha256";
            };
        };
    };

If you just want to load another configuration on a prebuilt image. You have to stop the system in U-Boot and then do the following:

setenv fdt_board "ixora"

run bootcmd

The configuration is dynamically generated like this (see boot-tezi.scr):

env set fdtfile ${fdt_prefix}${soc}-apalis${variant}-${fdt_board}.dtb
env set bootcmd_run 'echo "Bootargs: \${bootargs}" && bootm ${ramdisk_addr_r}#conf-\${fdtfile}\${fitconf_fdt_overlays}'

I hope this helps.

Regards,
Stefan

@stefan_e.tx Thank you very much for the materials !
I try build:

export PATH=~/bin:$PATH
mkdir ./oe-core
cd ./oe-core
repo init -u git://git.toradex.com/toradex-manifest.git -b 60427ab17ac3acc67a6aa8715184f7ee2ca2f0d6 -m tezi/default.xml
repo sync
repo status
....
export PATH=~/bin:$PATH
cd oe-core
. export
.......
-- oe-core/build/conf/local.conf 
-- ACCEPT_FSL_EULA = "1"
-- MACHINE ?= "colibri-imx8x"
.......
cd oe-core
. export
bitbake tezi-run

I have error

ERROR: u-boot-toradex-2022.04-r0 do_configure: oe_runmake failed
ERROR: u-boot-toradex-2022.04-r0 do_configure: ExecutionError('/home/max/tezi/oe-core/build/tmp-glibc/work/colibri_imx8x-oe-linux/u-boot-toradex/2022.04-r0/temp/run.do_configure.1487327', 1, None, None)
ERROR: Logfile of failure stored in: /home/max/tezi/oe-core/build/tmp-glibc/work/colibri_imx8x-oe-linux/u-boot-toradex/2022.04-r0/temp/log.do_configure.1487327

| ***
| *** Can't find default configuration "arch/../configs/colibri-imx8x_tezi_defconfig"!
| ***

Hello @MariusM ,
In order to avoid having multiple topics per thread, could you please create a new topic with this last issue?

Best regards,
Josep

@josep.tx Your forum your rules! I’ll try to remember in new treads

I built ToradexEasyInstaller, problem was in repo init

correct version
repo init -u git://git.toradex.com/toradex-manifest.git -b 45b522ba1f392949ae01e9d2107f63b67c22ca0e -m tezi/default.xml
This version is OK

@stefan_e.tx A tiny request, please tell me what package contains the configuration for buid tezi.itb

Hi @MariusM

The kernel-firimage.bbclass is used to create the fit image. You can find more information here:
https://docs.yoctoproject.org/ref-manual/classes.html#kernel-fitimage

meta-toradex-tezi can be found here:

However, keep in mind that it will not build because you have no access to qt-tezi and qt-tezictl. So you would have to remove it from recipes-tezi/images/tezi-initramfs.bb

Regards,
Stefan

a small thing but I’m very happy
Toradex Easy Installer on my LVDS

Hi @MariusM

This is awesome news, congratulations!

Have a great weekend,
Stefan

Hello @MariusM ,
Thanks for sharing your progress :slight_smile:
Could you please explain how you achieved it , in case other community memebers need to do the same?

Best regards,
Josep