cancel
Showing results for 
Search instead for 
Did you mean: 

bitbake st-image-weston error (use CubeMX Device Tree - stm32mp157f)

SPark.15
Associate II

Hello Guys.

I look at the following wiki Page and try Image Build(https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_machine).

The MPU used is stm32mp157f.

I am working on modifying a part in stm32mp157f-ev1 in CubeMX to make a My custom board.

It was going without a problem.

But at the end, the following error appears.

ERROR: st-image-userfs-1.0-r0 do_rootfs: Unable to install packages. Command '/home/parksh/STM32MPU_EV1_Workspace/SDK/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1-HSOT_GW01/tmp-glibc/work/stm32mp1_HSOT_GW01-ostl-linux-gnueabi/st-image-userfs/1.0-r0/recipe-sysroot-native/usr/bin/apt-get install --force-yes --allow-unauthenticated --no-remove m4projects-stm32mp1-userfs packagegroup-st-demo linux-examples-stm32mp1-userfs' returned 100:
 
Reading package lists...
 
Building dependency tree...
 
Package m4projects-stm32mp1-userfs is not available, but is referred to by another package.
 
This may mean that the package is missing, has been obsoleted, or
 
is only available from another source
 
​
 
E: Package 'm4projects-stm32mp1-userfs' has no installation candidate

And I get the following error.

​ERROR: st-image-weston-1.0-r0 do_rootfs: Unable to install packages. Command '/home/parksh/STM32MPU_EV1_Workspace/SDK/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1-HSOT_GW01/tmp-glibc/work/stm32mp1_HSOT_GW01-ostl-linux-gnueabi/st-image-weston/1.0-r0/recipe-sysroot-native/usr/bin/apt-get install --force-yes --allow-unauthenticated --no-remove packagegroup-core-boot packagegroup-framework-core-base resize-helper apt packagegroup-framework-core packagegroup-framework-core-extra hostapd packagegroup-base-extended run-postinsts tzdata lighttpd psplash-drm cronie dpkg packagegroup-framework-tools-base myapp packagegroup-st-demo packagegroup-core-eclipse-debug packagegroup-framework-tools packagegroup-core-ssh-dropbear packagegroup-core-tools-profile' returned 100:
 
Reading package lists...
 
Building dependency tree...
 
Reading state information...
 
Some packages could not be installed. This may mean that you have
 
requested an impossible situation or if you are using the unstable
 
distribution that some required packages have not yet been created
 
or been moved out of Incoming.
 
The following information may help to resolve the situation:
 
 
 
The following packages have unmet dependencies:
 
 packagegroup-st-demo : Depends: ai-hand-char-reco-launcher but it is not going to be installed
 
E: Unable to correct problems, you have held broken packages.

How can I solve this problems?

I tried after emptying the PACKAGE_INSTALL part of st-image-userfs.bb.

As a result, st-image-weston fails the same. However, st-image-core succeeded in building.

How do I modify it to build st-image-weston?

In the same way, I couldn't check the problem when proceeding based on stm32mp157c-ev1 using CubeMX.

When I tried bitbake after changing only sdmmc3 in stm32mp157c-ev1, there was no build error.

I need your help

Thanks​

4 REPLIES 4
Yves C
ST Employee

Hi @SPark.15​ 

I didn't see the link between the issue you face and the customized part you have made (means the DTS files with CubeMX).

It seems that you have some bad configuration for the ST demo/example, only available for STM32MP157C-EV1 and STM32MP157C-DK2 according to my analyzing of the specific recipes defined for the ST demo/examples

what did you modify in your machine config file for the STM32MP157CF

BR

Yves C

SMich.1
Senior

hi, did you managed to find the problem ?

i have the same issue but i know that my problem because of new recipe that i added to the image :

this is the recipe its add files to rootfs files from git repository ( scripts , bin files etc.. )

```

SUMMARY = "csr copy the application files "

DESCRIPTION = "Recipe created by bitbake-layers"

LICENSE="CLOSED"

LIC_FILES_CHKSUM=""

inherit bin_package

FILESEXTRAPATHS_prepend := "${THISDIR}:"

RDEPENDS_${PN} += "bash"

# PACKAGE_ARCH = "armhf"

# change this URI if you plan to fork the repository or use an alternate repository

SRC_URI = "git://git@#############.git;protocol=ssh"

# this SRCREV determines the branch or tag to be used

SRCREV = "master"

PV = "1.0-git-${SRCREV}"

S="${WORKDIR}/git"

do_install_append() {

install -d ${D}/usr/csr/dwnld/

install -d ${D}/usr/csr/files/

install -d ${D}/usr/bin/boot_proc/

install -d ${D}/lib/firmware/

install -d ${D}/etc/

install -d ${D}/etc/default/

install -d ${D}/etc/init.d/

install -d ${D}/etc/logrotate.d/

install -d ${D}/etc/systemd/system/

install -m 0755 ${S}/fs/lib/firmware/* ${D}/lib/firmware

install -m 0755 ${S}/fs/usr/bin/boot_proc/csr_init.py ${D}/usr/bin/boot_proc/

install -m 0755 ${S}/fs/usr/csr/dwnld/* ${D}/usr/csr/dwnld

install -m 0755 ${S}/fs/usr/csr/files/* ${D}/usr/csr/files

install -m 0755 ${S}/fs/etc/crontab ${D}/etc

install -m 0755 ${S}/fs/etc/profile ${D}/etc

install -m 0755 ${S}/fs/etc/syslog.conf ${D}/etc

install -m 0755 ${S}/fs/etc/wpa_supplicant.CSR.conf ${D}/etc

install -m 0755 ${S}/fs/etc/default/* ${D}/etc/default

install -m 0755 ${S}/fs/etc/init.d/* ${D}/etc/init.d

install -m 0755 ${S}/fs/etc/logrotate.d/* ${D}/etc/logrotate.d

install -m 0755 ${S}/fs/etc/systemd/system/* ${D}/etc/systemd/system

}

do_package_qa (){

}

FILES_${PN} += "/usr/csr/dwnld/*"

FILES_${PN} += "/usr/csr/files/*"

FILES_${PN} += "/usr/bin/boot_proc/*"

FILES_${PN} += "/etc/*"

FILES_${PN} += "/etc/default/*"

FILES_${PN} += "/lib/firmware/*"

FILES_${PN} += "/etc/init.d/*"

FILES_${PN} += "/etc/logrotate.d/*"

FILES_${PN} += "/etc/systemd/system/*"

```

SMich.1
Senior

ok i founded the problem :

trying to overwrite '/etc/profile', which is also in package base-files:armhf

i have a lot of files that i trying to overwrite. how can i force overwrite them ?

Any solutions ?