Transition from DeveloperPackage to DistributionPackage for a Custom Board
Hello everyone,
I am trying to define a machine configuration file for a custom board using the DistributionPackage (I am following this approach from the ST wiki and my directory tree is the same described there).
Currently, I managed to successfully boot my custom board using the DeveloperPackage, this makes me believe that the device tree files I generated using the ST MX Cube are okay.
From my understanding, it is not possible to generate the filesystem files (e.g. ext4) within the DeveloperPackage (I used the ones from the StarterPackage); can you confirm this?
So far, I populated the mx directory under
<path of STM32MP1_Distribution_Package>/layers/meta-st/meta-st-stm32mp-addons/with the device tree files I generated using the DeveloperPackage and its directory tree looks as it follows:
mx
└── es-frank-ghiacciolo
├── kernel
│ └── stm32mp157c-es-frank-ghiacciolo-mx.dts
├── optee-os
│ └── stm32mp157c-es-frank-ghiacciolo-mx.dts
├── tf-a
│ ├── stm32mp157c-es-frank-ghiacciolo-mx.dts
│ ├── stm32mp157c-es-frank-ghiacciolo-mx-fw-config.dts
│ └── stm32mp15-mx.dtsi
└── u-boot
├── stm32mp157c-es-frank-ghiacciolo-mx.dts
├── stm32mp157c-es-frank-ghiacciolo-mx.dts.bak
└── stm32mp157c-es-frank-ghiacciolo-mx-u-boot.dtsi
- Can you confirm that generating device tree files with the DeveloperPackage and importing them in the DistributionPackage is a valid approach?
- Can you confirm that it is allowed to have the machine name (i.e. the project name under the mx folder) not matching the names of the device tree files?
- Can you confirm that it is allowed not to have the string "stm32mp1" as the prefix of my custom machine?
The first blocking error I am experiencing when I use the bitbake command is reported in the attached log file, this happens when the rootfs file is being generated:
E: Failed to fetch store: (...) (36: File name too long)To exclude that something else is wrong in my setup, I tried to define a new machine named "es-fg" and the build was successful. This leads to the second problem I am experiencing: no .tsv nor sdcard.stm32 files are generated, even though I configured them in the corresponding machine configuration file (see attached file)
I feel like the filename problem and the missing generated files are somehow related, but I am struggling to find exhaustive examples for the DistributionPackage.
Is there a way to manipulate the name of the filesystems being referenced? The referenced filenames are absolute paths and includes quite long strings.
Thank you in advance for the support!
