2026-03-26 9:19 AM
I have a platform where I need two different Linux distros, one kinda like Android's recovery environment, and one main application environment.
They will have different packages, and probably also different init-systems, as the recovery environment should be as small as possible, so I probably need to build them in separate steps and separate Yocto distros.
Additionally the recovery environment will be completely stored in a separate NOR flash, where also the bootloader is stored, the main application distro will be in a NAND flash.
How can I get the OpenSTLinux build system to generate an appropriate flashlayout for this?
So far I got it to work with the bootloader in NOR and rootfs in NAND, but the extra system in NOR seems to be a bit more effort.
2026-03-27 3:57 AM
Hello @WERTBON1789 ,
In fact, flashlayout used by CubeProgrammer is only a file describing which software to install, on which flash, and at which offset. See: https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout
In your case, my recommendation would be to take a look at the wiki and at the default flashlayout ST provides in its Starter package (sdcard / eMMC / nand / nor).
For me, you will just have to describe what you want to install in both your NOR and your NAND, and the Programmer will execute.
I would advise you to make simple tests to begin, taking all the binary you want to install in a same folder, then create your TSV file a try to program. Once it will be done, then you can begin to think about how to integrate it in Yocto for autogeneration for example. For sure, native OpenSTLinux is not able to generate a such flashlayout itself without any modification.
Kind regards,
Erwan.