...
Elprotronic GangFlasher ST provides convenient procedure for programming boards with ST MPx microprocessor inside. Within this procedure called User-Defined boards programming it is possible to automatically adapt user Device Trees memory nodes into Elprotronic bootloaders (it is provided only for single particular programming session). They provide non-recoverable peripherals and external devices as a static structure. One of GangFlasher (GF) functionalities is export of used minimal Device Tree (DTmin) and direct user correction of used nodes via DTmin configuration file. Let us consider one of microprocessor (MPU) Vendor example board, in this case it will be Karo TXMP-1570 board.
...
Firstly compile GF-CLI with F_LoadOS()
functionality (argument cmd
cmd equal 3). GF-CLI functionalities are described in details in GF-CLI tutorial. To setup Karo in GF User-Defined mode please set Karo board in configuration file and load it this file with usage of function F_LoadTargetConfig()
:
...
Thirdly export minimal Device Tree used in GangFlasher-ST. For doing this there is special DLL function. In GF-CLI use function F_SaveDTmin(DTMIN_TYPE_FSBL, (char*)"DTmin.dtb")
to save processed DTmin. Exported file must be recompiled with usage od Device Tree Compiler (DTC) dtc -I dtb -O dts -o DTmin.dts DTmin.dtb
. Open recompiled DTmin source file and compare it with recompiled Karo source code. Recompilation means that firstly there must be avaiable available binary version of DT and then it is recompiled with DTC to human-readable source version. It could be ease to compare two recompiled source files with source comparison tool for example Meld.
...