Migrating to angstrom-v2018.12-thud [YOCTO]

Hi there,

I’m trying to update my BSP with the latest angstrom version, so i modified my manifest.xml to point to the current branch here i have been following these instructions with a few changes:

  • repo init -u git://github.com/Angstrom-distribution/angstrom-manifest -b angstrom-v2018.12-thud

  • export KBRANCH=socfpga-4.14.73-ltsi

  • Have a look for the altera.xml (Appendix A)

bitbake fetch task gone well but i got an error when it is attempting to generate rootfs(Appendix B log.do_rootfs.29448 for reference) the ERROR is because opkg is Unable to install packages so i tried to manually run what the task is trying to do and the following log message is which i think, is the problem.

opkg_prep_intercepts: Added intercepts dir to PATH; new PATH=/home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/rootfs//home/build/angstrom-build/tmp-angstrom-glibc/work/x86_64-linux/opkg-native/1_0.3.6-r0/recipe-sysroot-native/usr/share/opkg/intercept:/home/build/angstrom-build/layers/openembedded-core/scripts:/home/build/angstrom-build/bitbake/bin:/home/build/angstrom-build/.repo/repo:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/build/angstrom-build

I think the problem is here -> gsrd-console-image/1.0-r0/rootfs//home/build/ i.e. there is no separation in absolute paths " : " so i think that is why opkg can’t install in rootfs.

So i need to correct this but i don’t know where, i am not used to opkg nor YOCTO
Please if someone know where i can change this or if there somewhere where i can address this issue i will appreciate it.

APPENDIX A

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
        <remote fetch="https://github.com" name="github_altera"/>
        <remove-project name="kraj/meta-altera" />
        <remove-project name="linux4sam/meta-atmel" />

        <project remote="github_altera"  name="altera-opensource/meta-altera" path="layers/meta-altera" revision="angstrom-v2018.06-yocto2.5"/>
        <project remote="github_altera"  name="altera-opensource/meta-altera-refdes" path="layers/meta-altera-refdes" revision="master"/>
</manifest>

APPENDIX B
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing python function do_rootfs
NOTE: Initializing intercept dir for /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/rootfs
DEBUG: Collected intercepts:
/home/build/angstrom-build/layers/openembedded-core/scripts/postinst-intercepts/delay_to_first_boot
/home/build/angstrom-build/layers/openembedded-core/scripts/postinst-intercepts/postinst_intercept
/home/build/angstrom-build/layers/openembedded-core/scripts/postinst-intercepts/update_font_cache
/home/build/angstrom-build/layers/openembedded-core/scripts/postinst-intercepts/update_gio_module_cache
/home/build/angstrom-build/layers/openembedded-core/scripts/postinst-intercepts/update_gtk_immodules_cache
/home/build/angstrom-build/layers/openembedded-core/scripts/postinst-intercepts/update_icon_cache
/home/build/angstrom-build/layers/openembedded-core/scripts/postinst-intercepts/update_pixbuf_cache
/home/build/angstrom-build/layers/openembedded-core/scripts/postinst-intercepts/update_udev_hwdb

NOTE: ###### Generate rootfs #######
NOTE: Executing ‘/home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg-make-index -r /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/oe-rootfs-repo/armv7at2hf-neon/Packages -p /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/oe-rootfs-repo/armv7at2hf-neon/Packages -m /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/oe-rootfs-repo/armv7at2hf-neon’ …
NOTE: Executing ‘/home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg-make-index -r /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/oe-rootfs-repo/cyclone5/Packages -p /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/oe-rootfs-repo/cyclone5/Packages -m /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/oe-rootfs-repo/cyclone5’ …
NOTE: Executing ‘/home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg-make-index -r /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/oe-rootfs-repo/all/Packages -p /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/oe-rootfs-repo/all/Packages -m /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/oe-rootfs-repo/all’ …
NOTE: Installing the following packages: altera-gsrd-apps altera-gsrd-initscripts altera-gsrd-pio-interrupt altera-gsrd-webcontent altera-lighttpd-conf angstrom-feed-configs bash connman ethtool fpga-overlay gcc i2c-tools iperf3 lighttpd lighttpd-module-cgi net-tools nfs-utils-client openssh opkg opkg-config-base packagegroup-core-boot pciutils perl run-postinsts tcpdump
NOTE: /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/opkg.conf -t /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/temp/ipktemp/ -o /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version install altera-gsrd-apps altera-gsrd-initscripts altera-gsrd-pio-interrupt altera-gsrd-webcontent altera-lighttpd-conf angstrom-feed-configs bash connman ethtool fpga-overlay gcc i2c-tools iperf3 lighttpd lighttpd-module-cgi net-tools nfs-utils-client openssh opkg opkg-config-base packagegroup-core-boot pciutils perl run-postinsts tcpdump
ERROR: Unable to install packages. Command ‘/home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/opkg.conf -t /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/temp/ipktemp/ -o /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version install altera-gsrd-apps altera-gsrd-initscripts altera-gsrd-pio-interrupt altera-gsrd-webcontent altera-lighttpd-conf angstrom-feed-configs bash connman ethtool fpga-overlay gcc i2c-tools iperf3 lighttpd lighttpd-module-cgi net-tools nfs-utils-client openssh opkg opkg-config-base packagegroup-core-boot pciutils perl run-postinsts tcpdump’ returned 255:
Installing altera-gsrd-initscripts (1.0) on root
Downloading file:/home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/oe-rootfs-repo/all/altera-gsrd-initscripts_1.0-r0.0_all.ipk.
Installing altera-gsrd-webcontent (1.0) on root
Downloading file:/home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/oe-rootfs-repo/armv7at2hf-neon/altera-gsrd-webcontent_1.0-r0.0_armv7at2hf-neon.ipk.
Installing altera-lighttpd-conf (1.0) on root
Downloading file:/home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/oe-rootfs-repo/all/altera-lighttpd-conf_1.0-r0.0_all.ipk.
Installing opkg-arch-config (1.0) on root
Downloading file:/home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/oe-rootfs-repo/cyclone5/opkg-arch-config_1.0-r1.0_cyclone5.ipk.

[…]

Configuring python-robotparser.
Configuring python-compiler.
Configuring libperl5.
Configuring perl.
Configuring bluez5.
Configuring python-multiprocessing.
Configuring python-stringold.
Configuring python-2to3.
Configuring python-argparse.
Configuring python-audio.
Configuring python-doctest.
Configuring python-hotshot.
Configuring python-html.
ConfigurStarted /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/recipe-sysroot-native/usr/bin/systemctl --root=/home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/rootfs enable fpga-overlay.service
Try to find location of fpga-overlay.service…
Found fpga-overlay.service in /lib/systemd/system/fpga-overlay.service
WantedBy=multi-user.target found in fpga-overlay.service
Enabled fpga-overlay.service for multi-user.target.
Started /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/recipe-sysroot-native/usr/bin/systemctl --root=/home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/rootfs enable run-postinsts.service
Try to find location of run-postinsts.service…
Found run-postinsts.service in /lib/systemd/system/run-postinsts.service
WantedBy=sysinit.target found in run-postinsts.service
Enabled run-postinsts.service for sysinit.target.
update-alternatives: Linking /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/rootfs/etc/resolv.conf to /etc/resolv-conf.connman
Started /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/recipe-sysroot-native/usr/bin/systemctl --root=/home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/rootfs enable connman.service
Try to find location of connman.service…
Found connman.service in /lib/systemd/system/connman.service
WantedBy=multi-user.target found in connman.service
Enabled connman.service for multi-user.target.
Collected errors:

  • check_data_file_clashes: Package systemd wants to install file /home/build/angstrom-build/tmp-angstrom-glibc/work/cyclone5-angstrom-linux-gnueabi/gsrd-console-image/1.0-r0/rootfs/etc/systemd/journald.conf
    But that file is already provided by package * systemd-conf
    ing python-idle.
    Configuring python-image.
    Configuring python-logging.
    Configuring python-misc.
    Configuring python-plistlib.
    Configuring python-profile.
    Configuring python-runpy.
    Configuring python-terminal.
    Configuring python-modules.
    Configuring dtbt.
    Configuring fpga-overlay.
    Configuring run-postinsts.
    Configuring connman.
    Configuring altera-gsrd-pio-interrupt.
    Configuring iperf3.

DEBUG: Python function do_rootfs finished
ERROR: Function failed: do_rootfs