cancel
Showing results for 
Search instead for 
Did you mean: 

STM32mpu157c-dk2 Distribution package failed to 96% while doing do_rootfs

ARehm
Associate III

st-image-resize-initrd-1.0-r0 do_rootfs: Unable to update the package index files

st-image-vendorfs-1.0-r0 do_rootfs: Unable to update the package index files

Anyone know how to fix this.

Already have applied clean build.

Build Configuration:

BB_VERSION          = "2.0.0"

BUILD_SYS           = "x86_64-linux"

NATIVELSBSTRING     = "universal"

TARGET_SYS          = "arm-ostl-linux-gnueabi"

MACHINE             = "stm32mp15-disco"

DISTRO              = "openstlinux-weston"

DISTRO_VERSION      = "4.0.1-snapshot-20220805"

TUNE_FEATURES       = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"

TARGET_FPU          = "hard"

DISTRO_CODENAME     = "kirkstone"

ACCEPT_EULA_stm32mp15-disco = "1"

GCCVERSION          = "11.%"

PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp"

meta-python         

meta-oe             

meta-gnome          

meta-initramfs      

meta-multimedia     

meta-networking     

meta-webserver      

meta-filesystems    

meta-perl           = "HEAD:0b78362654262145415df8211052442823b9ec9b"

meta-st-stm32mp     = "HEAD:d00d3a076e103c549c5d7dbcd587269c863e97cb"

meta-qt5            = "HEAD:5b71df60e523423b9df6793de9387f87a149ac42"

meta-st-openstlinux = "HEAD:182b150c45ef874fb3bebc3ac5ba0ed784790938"

meta                = "HEAD:cb8647c08959abb1d6b7c2b3a34b4b415f66d7ee"

 Errors:

Command '['/home/ARehm/STM32MPU_workspace/STM32MP1-Ecosystem-v4.0.0/Distribution-Package/openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/build-openstlinuxweston-stm32mp15-disco/tmp-glibc/work/stm32mp15_disco-ostl-linux-gnueabi/st-image-resize-initrd/1.0-r0/recipe-sysroot-native/usr/bin/apt-get', 'update']' returned 100:

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
ARehm
Associate III

I have solved this problem. The problem was long path which is describe in the tutorial. Make sure keep short path for example :

mkdir $HOME/st_dist

cd $HOME/st_dist

//again create short name dir such as

mkdir openstlinux

cd openstlinux

// now install repo manually if not install in you PC by using below command

mkdir -p ~/.bin

PATH="${HOME}/.bin:${PATH}"

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo

chmod a+rx ~/.bin/repo

//now run

repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15

repo sync

//Now you need to run ;

DISTRO=openstlinux-weston MACHINE="stm32mp15-disco" source layers/meta-st/scripts/envsetup.sh build

//here "build" is the directory name at the end of the command if you don not give //the name it will take //default name which is again long name no need for that

bitbake st-image-weston

@FOR ST:

please make sure you default paths should not excced the OS requirement.

View solution in original post

4 REPLIES 4
ARehm
Associate III

Here is my log file

ARehm
Associate III

Here is the log file

ARehm
Associate III

I have solved this problem. The problem was long path which is describe in the tutorial. Make sure keep short path for example :

mkdir $HOME/st_dist

cd $HOME/st_dist

//again create short name dir such as

mkdir openstlinux

cd openstlinux

// now install repo manually if not install in you PC by using below command

mkdir -p ~/.bin

PATH="${HOME}/.bin:${PATH}"

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo

chmod a+rx ~/.bin/repo

//now run

repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15

repo sync

//Now you need to run ;

DISTRO=openstlinux-weston MACHINE="stm32mp15-disco" source layers/meta-st/scripts/envsetup.sh build

//here "build" is the directory name at the end of the command if you don not give //the name it will take //default name which is again long name no need for that

bitbake st-image-weston

@FOR ST:

please make sure you default paths should not excced the OS requirement.

超汪.1
Associate

I had the same problem