Skip to main content
Visitor II
August 5, 2022
Solved

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

  • August 5, 2022
  • 4 replies
  • 1954 views

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

    This topic has been closed for replies.
    Best answer by ARehm

    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.

    4 replies

    ARehmAuthor
    Visitor II
    August 5, 2022

    Here is my log file

    ARehmAuthor
    Visitor II
    August 5, 2022

    Here is the log file

    ARehmAuthorAnswer
    Visitor II
    August 6, 2022

    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.

    Visitor II
    August 19, 2022

    I had the same problem