Re: [yocto] [Yocto][Meta-Raspberrypi] Yocto apt sources.list for Raspberry Pi
Hello! On Sun, Feb 25, 2018 at 09:38:52PM +0800, Laigui Qin wrote: > I am building the GNU Linux with Yocto for Raspberry Pi using > meta-raspberrypi. Everything is good (with help of google search and yocto > manual) until I added apt support to the image. As I am a little confused > which Repository URL I should put in the sources.list, I tried the Raspbian > repository. However, when I do apt-get upgrade I got following error which is > not expected. Any idea on this effort? Unless you are planning to run your own repository server: none. There is certainly support for doing that, look for topic on "package feeds" in the Yocto documentation. Your snippet below looks like you are trying to use the raspbian repositories, which certainly won't work. You have to understand that what you have built is *NOT* a replacement for a raspbian installation that will just fill in - it is a whole separated, custom distribution and in no way related to any package repository thats out there. So if you actually want to use those, then you have also to use their base distribution. If you want to stick with Yocto, your two choices are: - just include everything you need in the build. (thats the common one) - run a custom package feed server (can be done, but probably you're better off with already existing solutions then. Greetz Joe > > root@raspberrypi-cm3:~# sudo apt-get upgrade > Reading package lists... Done > Building dependency tree > Reading state information... Done > Calculating upgrade... Done > The following packages have been kept back: > base-files cpp diffutils g++ gcc git initscripts libcap2 libgcc1 libgmp10 > libsysfs2 libusb-1.0-0 libwbclient0 netcat ntp procps samba-common usbutils > The following packages will be upgraded: > busybox ethtool sysfsutils > 3 upgraded, 0 newly installed, 0 to remove and 18 not upgraded. > Need to get 562 kB of archives. > After this operation, 1114 kB of additional disk space will be used. > Do you want to continue? [Y/n] > Get:1 http://archive.raspbian.org/raspbian wheezy/main armhf busybox armhf > 1:1.20.0-7 [438 kB] > Get:2 http://archive.raspbian.org/raspbian wheezy/main armhf ethtool armhf > 1:3.4.2-1 [98.7 kB] > Get:3 http://archive.raspbian.org/raspbian wheezy/main armhf sysfsutils armhf > 2.1.0+repack-2 [24.5 kB] > Fetched 562 kB in 5s (96.0 kB/s) > (Reading database ... 16225 files and directories currently installed.) > Preparing to unpack .../busybox_1%3a1.20.0-7_armhf.deb ... > Unpacking busybox (1:1.20.0-7) over (1.24.1-r0) ... > dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory > dpkg-deb: error: subprocess tar returned error exit status 2 > dpkg: error processing archive > /var/cache/apt/archives/ethtool_1%3a3.4.2-1_armhf.deb (--unpack): > subprocess dpkg-deb --control returned error exit status 2 > dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory > dpkg-deb: error: subprocess tar returned error exit status 2 > dpkg: error processing archive > /var/cache/apt/archives/sysfsutils_2.1.0+repack-2_armhf.deb (--unpack): > subprocess dpkg-deb --control returned error exit status 2 > Errors were encountered while processing: > /var/cache/apt/archives/ethtool_1%3a3.4.2-1_armhf.deb > /var/cache/apt/archives/sysfsutils_2.1.0+repack-2_armhf.deb > E: Sub-process /usr/bin/dpkg returned an error code (1) -- ——— Josef Holzmayr Software Developer Embedded Systems Tel: +49 8444 9204-48 Fax: +49 8444 9204-50 R-S-I Elektrotechnik GmbH & Co. KG Woelkestrasse 11 D-85301 Schweitenkirchen www.rsi-elektrotechnik.de ——— Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393 Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg Ust-IdNr: DE 128592548 _ Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363 Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg USt-IdNr.: DE 128592548 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [Yocto][Meta-Raspberrypi] Yocto apt sources.list for Raspberry Pi
Greetings. If i understand you correctly you configured your Yocto/Poky OS to try to fetch updates from Raspbian OS. You would need to configure Yocto/Poky to update from a Yocto/Poky repository. As with using Yocto you probably are defining your own, that would have to be your own repository URL. BR On 25.02.2018 14:38, Laigui Qin wrote: Hi Everyone, I am building the GNU Linux with Yocto for Raspberry Pi using meta-raspberrypi. Everything is good (with help of google search and yocto manual) until I added apt support to the image. As I am a little confused which Repository URL I should put in the sources.list, I tried the Raspbian repository. However, when I do apt-get upgrade I got following error which is not expected. Any idea on this effort? BR, Mike root@raspberrypi-cm3:~# sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages have been kept back: base-files cpp diffutils g++ gcc git initscripts libcap2 libgcc1 libgmp10 libsysfs2 libusb-1.0-0 libwbclient0 netcat ntp procps samba-common usbutils The following packages will be upgraded: busybox ethtool sysfsutils 3 upgraded, 0 newly installed, 0 to remove and 18 not upgraded. Need to get 562 kB of archives. After this operation, 1114 kB of additional disk space will be used. Do you want to continue? [Y/n] Get:1http://archive.raspbian.org/raspbianwheezy/main armhf busybox armhf 1:1.20.0-7 [438 kB] Get:2http://archive.raspbian.org/raspbianwheezy/main armhf ethtool armhf 1:3.4.2-1 [98.7 kB] Get:3http://archive.raspbian.org/raspbianwheezy/main armhf sysfsutils armhf 2.1.0+repack-2 [24.5 kB] Fetched 562 kB in 5s (96.0 kB/s) (Reading database ... 16225 files and directories currently installed.) Preparing to unpack .../busybox_1%3a1.20.0-7_armhf.deb ... Unpacking busybox (1:1.20.0-7) over (1.24.1-r0) ... dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory *dpkg-deb:**error:*subprocess tar returned error exit status 2 *dpkg:*error processing archive /var/cache/apt/archives/ethtool_1%3a3.4.2-1_armhf.deb (--unpack): subprocess dpkg-deb --control returned error exit status 2 dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory *dpkg-deb:**error:*subprocess tar returned error exit status 2 *dpkg:*error processing archive /var/cache/apt/archives/sysfsutils_2.1.0+repack-2_armhf.deb (--unpack): subprocess dpkg-deb --control returned error exit status 2 Errors were encountered while processing: /var/cache/apt/archives/ethtool_1%3a3.4.2-1_armhf.deb /var/cache/apt/archives/sysfsutils_2.1.0+repack-2_armhf.deb E: Sub-process /usr/bin/dpkg returned an error code (1) -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [Recipe reporting system] Upgradable recipe name list
This mail was sent out by Recipe reporting system. This message list those recipes which need to be upgraded. If maintainers believe some of them needn't to upgrade at this time, they can fill RECIPE_NO_UPDATE_REASON in respective recipe file to ignore this remainder until newer upstream version was detected. Example: RECIPE_NO_UPDATE_REASON = "Version 2.0 is unstable" You can check the detail information at: http://recipes.yoctoproject.org/ Package Version Upstream version Maintainer NoUpgradeReason --- -- opkg 0.3.50.3.6 Alejandro del Cas... opkg-utils0.3.50.3.6 Alejandro del Cas... vala 0.38.6 0.38.8Alexander Kanavin meson 0.44.0 0.44.1Alexander Kanavin ffmpeg3.4.13.4.2 Alexander Kanavin dtc 1.4.51.4.6 Alexander Kanavin btrfs-tools 4.13.3 4.15.1Alexander Kanavin kernelshark 2.6.22.7 Alexander Kanavin trace-cmd 2.6.22.7 Alexander Kanavin expect5.45.3 5.45.4Alexander Kanavin epiphany 3.26.5.1 3.26.6Alexander Kanavin apt-native1.2.24 1.4.8 Aníbal Limón apt 1.2.24 1.4.8 Aníbal Limón dpkg 1.18.24 1.19.0.5 Aníbal Limón xf86-video-vesa 2.3.42.4.0 Armin Kuster bind 9.10.6 9.12.0Armin Kuster busybox 1.27.2 1.28.1Armin Kuster gnutls3.6.13.6.2 Armin Kuster xkeyboard-config 2.22 2.23.1Armin Kuster nss 3.34.1 3.35 Armin Kuster libpcre2 10.3010.31 Armin Kuster kern-tools-native 0.2+gitX 0.2-new-commits-a... Bruce Ashfield linux-libc-headers4.15 4.15.6Bruce Ashfield kmscube git git-new-commits-a... Carlos Rafael Giani iproute2 4.14.1 4.15.0Changhyeok Bae ethtool 4.13 4.15 Changhyeok Bae iptables 1.6.11.6.2 Changhyeok Bae base-passwd 3.5.29 3.5.44Chang Rebecca Swe... Version 3.5.38 requires cde... systemd-boot 234 237 Chen Qi dbus-test 1.12.2 1.12.4Chen Qi dbus 1.12.2 1.12.4Chen Qi gawk 4.2.04.2.1 Chen Qi systemd 234 237 Chen Qi util-linux2.31 2.31.1Chen Qi sed 4.2.24.4 Chen Qi sysstat 11.7.1 11.7.2Chen Qi flex 2.6.02.6.4 Chen Qi dbus-glib 0.1080.110 Chen Qi build-appliance-i... 15.0.0 18.0.1Cristian Iorga lz4 1.7.41.8.1.2 Denys Dmytriyenko lzop 1.03 1.04 Denys Dmytriyenko hdparm9.53 9.54 Denys Dmytriyenko lzip 1.19 1.20 Denys Dmytriyenko python-numpy 1.13.1 1.14.1Derek Straka python3 3.5.43.6.4 Derek Straka python3-pycairo 1.15.6 1.16.2Derek Straka python3-numpy 1.13.3 1.14.1Derek Straka python3-native3.5.43.6.4 Derek Straka acpica20170303 20180209 Fathi Boudra patch 2.7.52.7.6 Hongxu Jia gnupg 2.2.42.2.5 Hongxu Jia dhcp 4.3.64.4.0 Hongxu Jia bash 4.4.12 4.4.18Hongxu Jia ghostscript 9.21 9.22 Hongxu Jia ncurses 6.0+20171125 6.1 Hongxu Jia man-pages 4.14 4.15 Hongxu Jia bc1.06 1.07.1Jose Lamego gdb 8.0.1
[yocto] Are environment variables specified in BB_ENV_EXTRAWHITE passed down to scripts called by recipies?
Hi folks, I haven’t found much documentation on this behaviour. Note that this is for Yocto release 2.4 Rocko. Let’s say I have a .bb recipe with the following task: do_something() { cd ${S} ./my_script.sh } And that “my_script.sh” is doing a git clone. I have noticed that the clone is failing due to SSH_AUTH_SOCK not being set, even though it is part of BB_ENV_EXTRAWHITE. If I echo $SSH_AUTH_SOCK and $BB_ENV_EXTRAWHITE values in “my_script.sh”, they are both empty. However if I add this line in the recipe, everything works fine and the echoed value of $SSH_AUTH_SOCK shows up correctly in “my_script.sh": export SSH_AUTH_SOCK That same recipe without the export line used to work fine before for a different project that uses an older version of Yocto (Morty 2.2 I believe). So: By default, should “my_script.sh” be seeing that key value without the need of the export line mentioned above? If not, then was that a recent change since it worked on previous Yocto releases? Thanks -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [Yocto][Meta-Raspberrypi] Yocto apt sources.list for Raspberry Pi
Hi Everyone, I am building the GNU Linux with Yocto for Raspberry Pi using meta-raspberrypi. Everything is good (with help of google search and yocto manual) until I added apt support to the image. As I am a little confused which Repository URL I should put in the sources.list, I tried the Raspbian repository. However, when I do apt-get upgrade I got following error which is not expected. Any idea on this effort? BR, Mike root@raspberrypi-cm3:~# sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages have been kept back: base-files cpp diffutils g++ gcc git initscripts libcap2 libgcc1 libgmp10 libsysfs2 libusb-1.0-0 libwbclient0 netcat ntp procps samba-common usbutils The following packages will be upgraded: busybox ethtool sysfsutils 3 upgraded, 0 newly installed, 0 to remove and 18 not upgraded. Need to get 562 kB of archives. After this operation, 1114 kB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://archive.raspbian.org/raspbian wheezy/main armhf busybox armhf 1:1.20.0-7 [438 kB] Get:2 http://archive.raspbian.org/raspbian wheezy/main armhf ethtool armhf 1:3.4.2-1 [98.7 kB] Get:3 http://archive.raspbian.org/raspbian wheezy/main armhf sysfsutils armhf 2.1.0+repack-2 [24.5 kB] Fetched 562 kB in 5s (96.0 kB/s) (Reading database ... 16225 files and directories currently installed.) Preparing to unpack .../busybox_1%3a1.20.0-7_armhf.deb ... Unpacking busybox (1:1.20.0-7) over (1.24.1-r0) ... dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory dpkg-deb: error: subprocess tar returned error exit status 2 dpkg: error processing archive /var/cache/apt/archives/ethtool_1%3a3.4.2-1_armhf.deb (--unpack): subprocess dpkg-deb --control returned error exit status 2 dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory dpkg-deb: error: subprocess tar returned error exit status 2 dpkg: error processing archive /var/cache/apt/archives/sysfsutils_2.1.0+repack-2_armhf.deb (--unpack): subprocess dpkg-deb --control returned error exit status 2 Errors were encountered while processing: /var/cache/apt/archives/ethtool_1%3a3.4.2-1_armhf.deb /var/cache/apt/archives/sysfsutils_2.1.0+repack-2_armhf.deb E: Sub-process /usr/bin/dpkg returned an error code (1)-- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto