2022-07-20 05:46 AM
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
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!
Solved! Go to Solution.
2022-08-29 08:23 AM
Hi @bimorqt
From my understanding it might be the known issue with meta-st-stm32mp-addons in DV4.0.0 release
A patch is available in 4.0.2.
refer to :
meta-st-stmp32-addons variable issue ecosystem v4.0.0 - Kirkstone
and
OpenSTLinux Distribution patch release V4.0.2 is available
Both pinned at the top of the STM32 MPUs Community threads.
Olivier
2022-07-20 09:34 AM
Update on, so far I managed to solve
E: Failed to fetch store: (...) (36: File name too long)
following this other approach, where the machine configuration is placed within a custom layer under the meta-st.
Unfortunately, this did not solve the problem about:
Any help is greatly appreciated!
2022-07-20 09:34 AM
2022-08-29 01:11 AM
any news on this?
2022-08-29 08:23 AM
Hi @bimorqt
From my understanding it might be the known issue with meta-st-stm32mp-addons in DV4.0.0 release
A patch is available in 4.0.2.
refer to :
meta-st-stmp32-addons variable issue ecosystem v4.0.0 - Kirkstone
and
OpenSTLinux Distribution patch release V4.0.2 is available
Both pinned at the top of the STM32 MPUs Community threads.
Olivier
2022-08-29 08:56 AM
I confirm this solved the issue, thanks for the support.
2022-08-29 08:58 AM
Hi @bimorqt ,
Thanks for feedback and sorry for the inconvenience.
Olivier