Re: [yocto] Raspberry pi 4 recipe and layer issues.
Howdy. On Mon, Dec 23, 2019 at 09:11:07PM +, Ed Vidal wrote: > The Makefile executes several lines, which set variables ARACHNE_VER, > GIT_REV, and VER_HASH. These are used in the rule which creates a file > src/version_$(VER_HASH).cc.The line below appears to be the one that causes > the error.VER_HASH = $(shell echo "$(ARACHNE_VER) $(GIT_REV)" | sum | cut -d > ' ' -f -1) > src/version_$(VER_HASH).cc: echo "const char *version_str = \"arachne-pnr > $(ARACHNE_VER) (git sha1 $(GIT_REV), $(notdir $(CXX)) `$(CXX) --version | tr > ' ()' '\n' | grep '^[0-9]' | head -n1` $(filter -f% -m% -O% > -DNDEBUG,$(CXXFLAGS)))\";" > src/version_$(VER_HASH).cc > bin/arachne-pnr$(EXE): src/arachne-pnr.o src/netlist.o src/blif.o src/pack.o > src/place.o src/util.o src/io.o src/route.o src/chipdb.o src/location.o > src/configuration.o src/line_parser.o src/pcf.o src/global.o src/constant.o > src/designstate.o src/version_$(VER_HASH).o $(CXX) $(CXXFLAGS) $(LDFLAGS) -o > $@ $^ $(LIBS) > These variables are based on git revision. So I can not hard code them.This > is the error that I get. > /bin/sh: 1: sum: not found If a Makefile does such _stupid_ things, then better patch it. An example of patching something like this is https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch which targets configure.ac, but hey, little difference to a Makefile. Greetz -- ——— 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 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#47814): https://lists.yoctoproject.org/g/yocto/message/47814 Mute This Topic: https://lists.yoctoproject.org/mt/68293684/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] Raspberry pi 4 recipe and layer issues.
Hi The Makefile executes several lines, which set variables ARACHNE_VER, GIT_REV, and VER_HASH. These are used in the rule which creates a file src/version_$(VER_HASH).cc.The line below appears to be the one that causes the error.VER_HASH = $(shell echo "$(ARACHNE_VER) $(GIT_REV)" | sum | cut -d ' ' -f -1) src/version_$(VER_HASH).cc: echo "const char *version_str = \"arachne-pnr $(ARACHNE_VER) (git sha1 $(GIT_REV), $(notdir $(CXX)) `$(CXX) --version | tr ' ()' '\n' | grep '^[0-9]' | head -n1` $(filter -f% -m% -O% -DNDEBUG,$(CXXFLAGS)))\";" > src/version_$(VER_HASH).cc bin/arachne-pnr$(EXE): src/arachne-pnr.o src/netlist.o src/blif.o src/pack.o src/place.o src/util.o src/io.o src/route.o src/chipdb.o src/location.o src/configuration.o src/line_parser.o src/pcf.o src/global.o src/constant.o src/designstate.o src/version_$(VER_HASH).o $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) These variables are based on git revision. So I can not hard code them.This is the error that I get. /bin/sh: 1: sum: not found I have tried adding busybox & coreutils to DEPENDS Thanks Best Regards, Edward Vidal Jr. e-mail devel...@sbcglobal.net 915-595-1613 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#47813): https://lists.yoctoproject.org/g/yocto/message/47813 Mute This Topic: https://lists.yoctoproject.org/mt/68293684/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] Raspberry pi 4 recipe and layer issues.
Hi Ed if you are building on target, you need to install glibc-dev package on your target as well. or perhaps you can build your image for target with IMAGE_INSTALL_append = " packagegroup-core-buildessential" added to local.conf On Sun, Dec 22, 2019 at 9:22 AM Ed Vidal wrote: > > Hi, > Testing 1 of the 4 recipes in meta-yosys-tools nextpnr_0.1.bb. > I tried testing on target rpi4-64 to determine, EXTRA_OECMAKE = "-DARCH=ice40 > -DBUILD_GUI=OFF ${S} " > variable. In yocto this uses the build directory. On the target, "cmake > -DARACH=ice40 -DBUILD_GUI=OFF ." > which is the nextpnr directory. It appears that yocto uses ninja, while the > target uses make. I have copies of both > CMakeError.log files for target & yocto at the links below. > > https://github.com/develone/meta-yosys-tools/blob/master/doc-recipes/target/CMakeFiles/CMakeError.log > > & > https://github.com/develone/meta-yosys-tools/blob/master/doc-recipes/yocto/CMakeFiles/CMakeError.log > > > The target builds and installs while yocto fails do_configure step. > > The recipe I am testing with the cmd "bitbake -DDD nextpnr" is > > https://github.com/develone/meta-yosys-tools/blob/master/recipes-nextpnr/nextpnr/nextpnr_0.1.bb > > > This recipe nextpnr_0.1.bb is dependent on a 2nd recipe in meta-yosys-tools > layer icestorm_0.1.bb in the same layer. This recipe creates the RPMs, but > is failing in QA step. I use the "rpm -i > icestorm-0.1+git0+041c075e4a-r0.aarch64.rpm" to test on the target. > > Let me know if I can provide any additional information. > Thanks > > Regards > > > Edward Vidal Jr. e-mail devel...@sbcglobal.net 915-595-1613 > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > You automatically follow any topics you start or reply to. > > View/Reply Online (#47795): > https://lists.yoctoproject.org/g/yocto/message/47795 > Mute This Topic: https://lists.yoctoproject.org/mt/68293684/1997914 > Group Owner: yocto+ow...@lists.yoctoproject.org > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub > [raj.k...@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#47799): https://lists.yoctoproject.org/g/yocto/message/47799 Mute This Topic: https://lists.yoctoproject.org/mt/68293684/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] Raspberry pi 4 recipe and layer issues.
Hi,Testing 1 of the 4 recipes in meta-yosys-tools nextpnr_0.1.bb.I tried testing on target rpi4-64 to determine, EXTRA_OECMAKE = "-DARCH=ice40 -DBUILD_GUI=OFF ${S} "variable. In yocto this uses the build directory. On the target, "cmake -DARACH=ice40 -DBUILD_GUI=OFF ."which is the nextpnr directory. It appears that yocto uses ninja, while the target uses make. I have copies of both CMakeError.log files for target & yocto at the links below. https://github.com/develone/meta-yosys-tools/blob/master/doc-recipes/target/CMakeFiles/CMakeError.log & https://github.com/develone/meta-yosys-tools/blob/master/doc-recipes/yocto/CMakeFiles/CMakeError.log The target builds and installs while yocto fails do_configure step. The recipe I am testing with the cmd "bitbake -DDD nextpnr" is https://github.com/develone/meta-yosys-tools/blob/master/recipes-nextpnr/nextpnr/nextpnr_0.1.bb This recipe nextpnr_0.1.bb is dependent on a 2nd recipe in meta-yosys-tools layer icestorm_0.1.bb in the same layer. This recipe creates the RPMs, but is failing in QA step. I use the "rpm -i icestorm-0.1+git0+041c075e4a-r0.aarch64.rpm" to test on the target. Let me know if I can provide any additional information. Thanks Regards Edward Vidal Jr. e-mail devel...@sbcglobal.net 915-595-1613 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#47795): https://lists.yoctoproject.org/g/yocto/message/47795 Mute This Topic: https://lists.yoctoproject.org/mt/68293684/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] Raspberry pi 4 recipe and layer issues.
Hi All, This is the error, that I was getting with meta-yosys-tools/recipes-yosys/yosys/yosys_0.1.bb,found at github.com/develone. The strip command fails, both on raspberrypi4-64 target and during the "bitbake yosys" build.During the do_install which returns an error.strip: Unable to recognise the format of the input file `yosys' This above error was happening during do_install.Made some chgs to the Makefile chg'ed prefix from /usr/local to /optadded a variable YOCTO := "--input-target=elf64-littleaarch64"added $(YOCTO) to lines 763, 765, and 769 of yosys Makefile Now, my build for the rpi4-64 gets to the do_package step.NOTE: Skipping file /opt/bin/yosys-abc from yosys for already-stripped QA testNOTE: Skipping file /opt/bin/yosys-filterlib from yosys for already-stripped QA testERROR: Fatal errors occurred in subprocesses: ls tmp/work/aarch64-poky-linux/yosys/0.1+gitAUTOINC+d406f2ffd7-r0/image/opt/bin share Where the desired, files are located, in the /opt/bin & /opt/share/yosys folders. I tested these files on rpi4-64 target. I am getting an error on rpi4-64 target./opt/bin/yosys: cannot execute binary file: Exec format error. All help is appreciated.Best Regards Edward Vidal Jr. e-mail devel...@sbcglobal.net 915-595-1613 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#47780): https://lists.yoctoproject.org/g/yocto/message/47780 Mute This Topic: https://lists.yoctoproject.org/mt/68293684/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] Raspberry pi 4 recipe and layer issues.
Hi Josef, I restored my poky repository. These are in my arachne-pnr_0.1.bb. DEPENDS = " icestorm busybox coreutils-native" RDEPENDS_${PN} = "coreutils" When I try the following, bitbake -c cleanall arachne-pnr bitbake -DDD arachne-pnr Still getting this error.| /bin/sh: 1: sum: not found Thanks,Regards Edward Vidal Jr. e-mail devel...@sbcglobal.net 915-595-1613 On Wednesday, December 18, 2019, 6:35:22 AM MST, Josef Holzmayr wrote: Howdy! On Wed, Dec 18, 2019 at 01:12:23PM +, Edward Vidal wrote: > > Hi Joesf, I did not understand what you meant with "pull". These are the > steps that I did. > Downloaded the file coreutils_8.31.bb from openemedded to > ~/wkg/yocto-zeusSaved the original file > poky/meta/recipes-core/coreutils/coreutils_8.31.bb ~/wkg/yocto-zeus/repo120319 > Made the chgs below to > rpi4-64/poky/meta/recipes-core/coreutils/coreutils_8.31.bb > vidal@ws009:~/wkg/yocto-zeus-3.0$ diff coreutils_8.31.bb > repo120319/coreutils_8.31.bb 52c52< sha384sum sha512sum shred > shuf sort split sum tac tail tee test timeout \---> sha384sum > sha512sum shred shuf sort split stdbuf sum tac tail tee test timeout > \60,63d59< < PACKAGE_BEFORE_PN_class-target += "coreutils-stdbuf"< > FILES_coreutils-stdbuf = "${bindir}/stdbuf ${libdir}/coreutils/libstdbuf.so"< > RDEPENDS_coreutils_class-target += "coreutils-stdbuf" > Tested with DEPENDS = " icestorm busybox " and DEPENDS = " icestorm busybox > coreutils" > Still getting error "/bin/sh: 1: sum: not found" with bitbake -DDD arachne-pnr > Also tried adding coreutils to inherit line and that failed. > Let me know if I can provide additional information. > Thanks for you help. > Regards If your recipe needs sum at build time, then it shall have DEPENDS = "coreutils-native" If it needs sum at runtime, then it shall have RDEPENDS_${PN} = "coreutils" No need to download any recipes from anywhere, coreutils is part of yocto already. And please, try to improve the formatting of your mails. It is incredibly hard to actually read and understand what you do or ask. Greetz > > > Edward Vidal Jr. e-mail devel...@sbcglobal.net 915-595-1613 > > On Wednesday, December 18, 2019, 12:00:16 AM MST, Josef Holzmayr > wrote: > > Howdy! > > On Wed, Dec 18, 2019 at 12:55:38AM +, Ed Vidal wrote: > > Hi All > > This is the error that I see bitbake -DDD arachne-pnr in log.do_compile > > My recipe is found at > > https://github.com/develone/meta-yosys-tools/blob/master/recipes-arachne-pnr/arachne-pnr/arachne-pnr_0.1.bb > > > > I have added to the depends DEPENDS = " icestorm busybox" no help > > /bin/sh: 1: sum: not found > > I did a search for does busybox provide > > sumhttps://busybox.net/BusyBox.htmlIt provides both sh & sum > > [, [[, acpid, add-shell, addgroup, adduser, adjtimex, ar, arp, > > arping, awk, base64, basename, bbconfig, beep, blkid, blockdev, > > bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chat, > > chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt, > > cksum, clear, cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw, > > cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, > > devfsd, devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, > > dnsdomainname, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, > > echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake, expand, > > expr, fakeidentd, false, fbset, fbsplash, fdflush, fdformat, fdisk, > > fgconsole, fgrep, find, findfs, flash_eraseall, flash_lock, > > flash_unlock, flashcp, flock, fold, free, freeramdisk, fsck, > > fsck.minix, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, > > gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname, > > httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave, ifplugd, > > ifup, inetd, init, inotifyd, insmod, install, ionice, iostat, ip, > > ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, > > kbd_mode, kill, killall, killall5, klogd, last, length, less, > > linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger, login, > > logname, logread, losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lspci, > > lsusb, lzcat, lzma, lzop, lzopcat, makedevs, makemime, man, md5sum, > > mdev, mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, > > mkfs.minix, mkfs.reiser, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, > > modinfo, modprobe, more, mount, mountpoint, mpstat, msh, mt, mv, > > nameif, nanddump, nandwrite, nbd-client, nc, netstat, nice, nmeter, > > nohup, nslookup, ntpd, od, openvt, passwd, patch, pgrep, pidof, > > ping, ping6, pipe_progress, pivot_root, pkill, pmap, popmaildir, > > poweroff, powertop, printenv, printf, ps, pscan, pwd, raidautorun, > > rdate, rdev, readahead, readlink,
Re: [yocto] Raspberry pi 4 recipe and layer issues.
Howdy! On Wed, Dec 18, 2019 at 01:12:23PM +, Edward Vidal wrote: > > Hi Joesf, I did not understand what you meant with "pull". These are the > steps that I did. > Downloaded the file coreutils_8.31.bb from openemedded to > ~/wkg/yocto-zeusSaved the original file > poky/meta/recipes-core/coreutils/coreutils_8.31.bb ~/wkg/yocto-zeus/repo120319 > Made the chgs below to > rpi4-64/poky/meta/recipes-core/coreutils/coreutils_8.31.bb > vidal@ws009:~/wkg/yocto-zeus-3.0$ diff coreutils_8.31.bb > repo120319/coreutils_8.31.bb 52c52< sha384sum sha512sum shred > shuf sort split sum tac tail tee test timeout \---> sha384sum > sha512sum shred shuf sort split stdbuf sum tac tail tee test timeout > \60,63d59< < PACKAGE_BEFORE_PN_class-target += "coreutils-stdbuf"< > FILES_coreutils-stdbuf = "${bindir}/stdbuf ${libdir}/coreutils/libstdbuf.so"< > RDEPENDS_coreutils_class-target += "coreutils-stdbuf" > Tested with DEPENDS = " icestorm busybox " and DEPENDS = " icestorm busybox > coreutils" > Still getting error "/bin/sh: 1: sum: not found" with bitbake -DDD arachne-pnr > Also tried adding coreutils to inherit line and that failed. > Let me know if I can provide additional information. > Thanks for you help. > Regards If your recipe needs sum at build time, then it shall have DEPENDS = "coreutils-native" If it needs sum at runtime, then it shall have RDEPENDS_${PN} = "coreutils" No need to download any recipes from anywhere, coreutils is part of yocto already. And please, try to improve the formatting of your mails. It is incredibly hard to actually read and understand what you do or ask. Greetz > > > Edward Vidal Jr. e-mail devel...@sbcglobal.net 915-595-1613 > > On Wednesday, December 18, 2019, 12:00:16 AM MST, Josef Holzmayr > wrote: > > Howdy! > > On Wed, Dec 18, 2019 at 12:55:38AM +, Ed Vidal wrote: > > Hi All > > This is the error that I see bitbake -DDD arachne-pnr in log.do_compile > > My recipe is found at > > https://github.com/develone/meta-yosys-tools/blob/master/recipes-arachne-pnr/arachne-pnr/arachne-pnr_0.1.bb > > > > I have added to the depends DEPENDS = " icestorm busybox" no help > > /bin/sh: 1: sum: not found > > I did a search for does busybox provide > > sumhttps://busybox.net/BusyBox.htmlIt provides both sh & sum > > [, [[, acpid, add-shell, addgroup, adduser, adjtimex, ar, arp, > > arping, awk, base64, basename, bbconfig, beep, blkid, blockdev, > > bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chat, > > chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt, > > cksum, clear, cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw, > > cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, > > devfsd, devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, > > dnsdomainname, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, > > echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake, expand, > > expr, fakeidentd, false, fbset, fbsplash, fdflush, fdformat, fdisk, > > fgconsole, fgrep, find, findfs, flash_eraseall, flash_lock, > > flash_unlock, flashcp, flock, fold, free, freeramdisk, fsck, > > fsck.minix, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, > > gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname, > > httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave, ifplugd, > > ifup, inetd, init, inotifyd, insmod, install, ionice, iostat, ip, > > ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, > > kbd_mode, kill, killall, killall5, klogd, last, length, less, > > linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger, login, > > logname, logread, losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lspci, > > lsusb, lzcat, lzma, lzop, lzopcat, makedevs, makemime, man, md5sum, > > mdev, mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, > > mkfs.minix, mkfs.reiser, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, > > modinfo, modprobe, more, mount, mountpoint, mpstat, msh, mt, mv, > > nameif, nanddump, nandwrite, nbd-client, nc, netstat, nice, nmeter, > > nohup, nslookup, ntpd, od, openvt, passwd, patch, pgrep, pidof, > > ping, ping6, pipe_progress, pivot_root, pkill, pmap, popmaildir, > > poweroff, powertop, printenv, printf, ps, pscan, pwd, raidautorun, > > rdate, rdev, readahead, readlink, readprofile, realpath, reboot, > > reformime, remove-shell, renice, reset, resize, rev, rfkill, rm, > > rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, run-parts, runlevel, > > runsv, runsvdir, rx, script, scriptreplay, sed, sendmail, seq, > > setarch, setconsole, setfont, setkeycodes, setlogcons, setsid, > > setuidgid, sh, sha1sum, sha256sum, sha512sum, showkey, slattach, > > sleep, smemcap, softlimit,
Re: [yocto] Raspberry pi 4 recipe and layer issues.
Hi Joesf, I did not understand what you meant with "pull". These are the steps that I did. Downloaded the file coreutils_8.31.bb from openemedded to ~/wkg/yocto-zeusSaved the original file poky/meta/recipes-core/coreutils/coreutils_8.31.bb ~/wkg/yocto-zeus/repo120319 Made the chgs below to rpi4-64/poky/meta/recipes-core/coreutils/coreutils_8.31.bb vidal@ws009:~/wkg/yocto-zeus-3.0$ diff coreutils_8.31.bb repo120319/coreutils_8.31.bb 52c52< sha384sum sha512sum shred shuf sort split sum tac tail tee test timeout \---> sha384sum sha512sum shred shuf sort split stdbuf sum tac tail tee test timeout \60,63d59< < PACKAGE_BEFORE_PN_class-target += "coreutils-stdbuf"< FILES_coreutils-stdbuf = "${bindir}/stdbuf ${libdir}/coreutils/libstdbuf.so"< RDEPENDS_coreutils_class-target += "coreutils-stdbuf" Tested with DEPENDS = " icestorm busybox " and DEPENDS = " icestorm busybox coreutils" Still getting error "/bin/sh: 1: sum: not found" with bitbake -DDD arachne-pnr Also tried adding coreutils to inherit line and that failed. Let me know if I can provide additional information. Thanks for you help. Regards Edward Vidal Jr. e-mail devel...@sbcglobal.net 915-595-1613 On Wednesday, December 18, 2019, 12:00:16 AM MST, Josef Holzmayr wrote: Howdy! On Wed, Dec 18, 2019 at 12:55:38AM +, Ed Vidal wrote: > Hi All > This is the error that I see bitbake -DDD arachne-pnr in log.do_compile > My recipe is found at > https://github.com/develone/meta-yosys-tools/blob/master/recipes-arachne-pnr/arachne-pnr/arachne-pnr_0.1.bb > > I have added to the depends DEPENDS = " icestorm busybox" no help > /bin/sh: 1: sum: not found > I did a search for does busybox provide sumhttps://busybox.net/BusyBox.htmlIt > provides both sh & sum > [, [[, acpid, add-shell, addgroup, adduser, adjtimex, ar, arp, > arping, awk, base64, basename, bbconfig, beep, blkid, blockdev, > bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chat, > chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt, > cksum, clear, cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw, > cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, > devfsd, devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, > dnsdomainname, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, > echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake, expand, > expr, fakeidentd, false, fbset, fbsplash, fdflush, fdformat, fdisk, > fgconsole, fgrep, find, findfs, flash_eraseall, flash_lock, > flash_unlock, flashcp, flock, fold, free, freeramdisk, fsck, > fsck.minix, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, > gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname, > httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave, ifplugd, ifup, > inetd, init, inotifyd, insmod, install, ionice, iostat, ip, ipaddr, > ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kbd_mode, > kill, killall, killall5, klogd, last, length, less, linux32, linux64, > linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, > losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lspci, lsusb, lzcat, lzma, > lzop, lzopcat, makedevs, makemime, man, md5sum, mdev, mesg, microcom, > mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.minix, mkfs.reiser, > mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo, modprobe, more, > mount, mountpoint, mpstat, msh, mt, mv, nameif, nanddump, nandwrite, > nbd-client, nc, netstat, nice, nmeter, nohup, nslookup, ntpd, od, > openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress, > pivot_root, pkill, pmap, popmaildir, poweroff, powertop, printenv, > printf, ps, pscan, pwd, raidautorun, rdate, rdev, readahead, readlink, > readprofile, realpath, reboot, reformime, remove-shell, renice, reset, > resize, rev, rfkill, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, > run-parts, runlevel, runsv, runsvdir, rx, script, scriptreplay, sed, > sendmail, seq, setarch, setconsole, setfont, setkeycodes, setlogcons, > setsid, setuidgid, sh, sha1sum, sha256sum, sha512sum, showkey, > slattach, sleep, smemcap, softlimit, sort, split, start-stop-daemon, > stat, strings, stty, su, sulogin, sum, sv, svlogd, swapoff, swapon, > switch_root, sync, sysctl, syslogd, tac, tail, tar, taskset, tcpsvd, > tee, telnet, telnetd, test, tftp, tftpd, time, timeout, top, touch, > tr, traceroute, traceroute6, true, tty, ttysize, tunctl, tune2fs, > ubiattach, ubidetach, udhcpc, udhcpd, udpsvd, umount, uname, > uncompress, unexpand, uniq, unix2dos, unlzma, unlzop, unxz, unzip, > uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, volname, wall, > watch, watchdog, wc, wget, which,
Re: [yocto] Raspberry pi 4 recipe and layer issues.
Howdy! On Wed, Dec 18, 2019 at 12:55:38AM +, Ed Vidal wrote: > Hi All > This is the error that I see bitbake -DDD arachne-pnr in log.do_compile > My recipe is found at > https://github.com/develone/meta-yosys-tools/blob/master/recipes-arachne-pnr/arachne-pnr/arachne-pnr_0.1.bb > > I have added to the depends DEPENDS = " icestorm busybox" no help > /bin/sh: 1: sum: not found > I did a search for does busybox provide sumhttps://busybox.net/BusyBox.htmlIt > provides both sh & sum > [, [[, acpid, add-shell, addgroup, adduser, adjtimex, ar, arp, > arping, awk, base64, basename, bbconfig, beep, blkid, blockdev, > bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chat, > chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt, > cksum, clear, cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw, > cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, > devfsd, devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, > dnsdomainname, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, > echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake, expand, > expr, fakeidentd, false, fbset, fbsplash, fdflush, fdformat, fdisk, > fgconsole, fgrep, find, findfs, flash_eraseall, flash_lock, > flash_unlock, flashcp, flock, fold, free, freeramdisk, fsck, > fsck.minix, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, > gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname, > httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave, ifplugd, ifup, > inetd, init, inotifyd, insmod, install, ionice, iostat, ip, ipaddr, > ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kbd_mode, > kill, killall, killall5, klogd, last, length, less, linux32, linux64, > linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, > losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lspci, lsusb, lzcat, lzma, > lzop, lzopcat, makedevs, makemime, man, md5sum, mdev, mesg, microcom, > mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.minix, mkfs.reiser, > mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo, modprobe, more, > mount, mountpoint, mpstat, msh, mt, mv, nameif, nanddump, nandwrite, > nbd-client, nc, netstat, nice, nmeter, nohup, nslookup, ntpd, od, > openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress, > pivot_root, pkill, pmap, popmaildir, poweroff, powertop, printenv, > printf, ps, pscan, pwd, raidautorun, rdate, rdev, readahead, readlink, > readprofile, realpath, reboot, reformime, remove-shell, renice, reset, > resize, rev, rfkill, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, > run-parts, runlevel, runsv, runsvdir, rx, script, scriptreplay, sed, > sendmail, seq, setarch, setconsole, setfont, setkeycodes, setlogcons, > setsid, setuidgid, sh, sha1sum, sha256sum, sha512sum, showkey, > slattach, sleep, smemcap, softlimit, sort, split, start-stop-daemon, > stat, strings, stty, su, sulogin, sum, sv, svlogd, swapoff, swapon, > switch_root, sync, sysctl, syslogd, tac, tail, tar, taskset, tcpsvd, > tee, telnet, telnetd, test, tftp, tftpd, time, timeout, top, touch, > tr, traceroute, traceroute6, true, tty, ttysize, tunctl, tune2fs, > ubiattach, ubidetach, udhcpc, udhcpd, udpsvd, umount, uname, > uncompress, unexpand, uniq, unix2dos, unlzma, unlzop, unxz, unzip, > uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, volname, wall, > watch, watchdog, wc, wget, which, who, whoami, xargs, xz, xzcat, yes, > zcat, zcip Thats only halfways correct: busybox *CAN* provide sum, if configured accordingly. It obviously is not, in your case. The easiest way to get sum is probably to just pull in coreutils: http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-core/coreutils/coreutils_8.31.bb Greetz -- ——— 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 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#47743): https://lists.yoctoproject.org/g/yocto/message/47743 Mute This Topic: https://lists.yoctoproject.org/mt/68293684/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com]
Re: [yocto] Raspberry pi 4 recipe and layer issues.
Hi All This is the error that I see bitbake -DDD arachne-pnr in log.do_compile My recipe is found at https://github.com/develone/meta-yosys-tools/blob/master/recipes-arachne-pnr/arachne-pnr/arachne-pnr_0.1.bb I have added to the depends DEPENDS = " icestorm busybox" no help /bin/sh: 1: sum: not found I did a search for does busybox provide sumhttps://busybox.net/BusyBox.htmlIt provides both sh & sum [, [[, acpid, add-shell, addgroup, adduser, adjtimex, ar, arp, arping, awk, base64, basename, bbconfig, beep, blkid, blockdev, bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw, cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devfsd, devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake, expand, expr, fakeidentd, false, fbset, fbsplash, fdflush, fdformat, fdisk, fgconsole, fgrep, find, findfs, flash_eraseall, flash_lock, flash_unlock, flashcp, flock, fold, free, freeramdisk, fsck, fsck.minix, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname, httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave, ifplugd, ifup, inetd, init, inotifyd, insmod, install, ionice, iostat, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd, last, length, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lspci, lsusb, lzcat, lzma, lzop, lzopcat, makedevs, makemime, man, md5sum, mdev, mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.minix, mkfs.reiser, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo, modprobe, more, mount, mountpoint, mpstat, msh, mt, mv, nameif, nanddump, nandwrite, nbd-client, nc, netstat, nice, nmeter, nohup, nslookup, ntpd, od, openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff, powertop, printenv, printf, ps, pscan, pwd, raidautorun, rdate, rdev, readahead, readlink, readprofile, realpath, reboot, reformime, remove-shell, renice, reset, resize, rev, rfkill, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, run-parts, runlevel, runsv, runsvdir, rx, script, scriptreplay, sed, sendmail, seq, setarch, setconsole, setfont, setkeycodes, setlogcons, setsid, setuidgid, sh, sha1sum, sha256sum, sha512sum, showkey, slattach, sleep, smemcap, softlimit, sort, split, start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv, svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac, tail, tar, taskset, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd, time, timeout, top, touch, tr, traceroute, traceroute6, true, tty, ttysize, tunctl, tune2fs, ubiattach, ubidetach, udhcpc, udhcpd, udpsvd, umount, uname, uncompress, unexpand, uniq, unix2dos, unlzma, unlzop, unxz, unzip, uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, volname, wall, watch, watchdog, wc, wget, which, who, whoami, xargs, xz, xzcat, yes, zcat, zcip Thanks in advance. Best Regards Edward Vidal Jr. e-mail devel...@sbcglobal.net 915-595-1613 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#47738): https://lists.yoctoproject.org/g/yocto/message/47738 Mute This Topic: https://lists.yoctoproject.org/mt/68293684/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] Raspberry pi 4 recipe and layer issues.
Hi Any help is appreciated. Thanks in advance. Progress in 2 of the 4 recipes. The recipe yosys_0.1.bb creates 3 executeable programs, bash script, and Python script.The do_install is reporting the following error.ERROR: Task (/home/vidal/wkg/yocto-zeus-3.0/rpi4-64/poky/meta-yosys-tools/recipes-yosys/yosys/yosys_0.1.bb:do_install) failed with exit code '1'NOTE: Tasks Summary: Attempted 1614 tasks of which 1606 didn't need to be rerun and 1 failed. Summary: 1 task failed: /home/vidal/wkg/yocto-zeus-3.0/rpi4-64/poky/meta-yosys-tools/recipes-yosys/yosys/yosys_0.1.bb:do_installSummary: There was 1 WARNING message shown.Summary: There were 2 ERROR messages shown, returning a non-zero exit code. I checked the files, using the file command, these are the results.file tmp/work/aarch64-poky-linux/yosys/0.1+gitAUTOINC+e275692e84-r0/image/usr/local/bin/yosys*tmp/work/aarch64-poky-linux/yosys/0.1+gitAUTOINC+e275692e84-r0/image/usr/local/bin/yosys: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/l, for GNU/Linux 2.6.32, BuildID[sha1]=59eddedb17cdb807f9122ccd6339376c152f3d26, not strippedtmp/work/aarch64-poky-linux/yosys/0.1+gitAUTOINC+e275692e84-r0/image/usr/local/bin/yosys-abc: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/l, for GNU/Linux 2.6.32, BuildID[sha1]=8330a22bba177391314a2ab237a7c5486077dc66, not strippedtmp/work/aarch64-poky-linux/yosys/0.1+gitAUTOINC+e275692e84-r0/image/usr/local/bin/yosys-config: Bourne-Again shell script, ASCII text executable, with very long linestmp/work/aarch64-poky-linux/yosys/0.1+gitAUTOINC+e275692e84-r0/image/usr/local/bin/yosys-filterlib: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/l, for GNU/Linux 2.6.32, BuildID[sha1]=f1c039944fa7a78fda555629b062466214eb7c7c, not strippedtmp/work/aarch64-poky-linux/yosys/0.1+gitAUTOINC+e275692e84-r0/image/usr/local/bin/yosys-smtbmc: Python script, ASCII text executablerpi4-64 The recipe icestorm_0.1.bb Now compiles and installs. It is fails do_package QA.icestorm: 32 installed and not shipped files. [installed-vs-shipped] in /usr/local/bin & /usr/local/shareI have tried FILES_${PN} += "DESTDIR${D}/*" PACKAGE_BEFORE_PN = "info"FILES_${PN}-info = "Info.plist"None help. Edward Vidal Jr. e-mail devel...@sbcglobal.net 915-595-1613 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#47684): https://lists.yoctoproject.org/g/yocto/message/47684 Mute This Topic: https://lists.yoctoproject.org/mt/68293684/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] Raspberry pi 4 recipe and layer issues.
On Thu, Dec 12, 2019 at 10:20:03PM +, Ed Vidal wrote: > Hi AllAny and all help is appreciated. Thanks in advance. > I want to install 6 software packages needed for FPGA Development.These are > icestorm, arachne-pnr, yosys, nextpnr, verilator, and zipcpu.I have created 4 > of the recipes (icestorm_0.1.bb, arachne-pnr_0.1.bb, yosys_0.1.bb, and > nextpnr_0.1.bb)using the recipetool & bitbake-layers, and I added these to a > meta-yosys-tools layer. > https://github.com/develone/meta-yosys-tools.git > I can now execute "bitbake icestorm" which is a python and C++ Makefile > project.The first time the recipe goes thru the python build and gets an > error existing the shell.If I rerun "bitbake icestorm" I get > | iceprog.c:27:10: fatal error: ftdi.h: No such file or directory| 27 | > #include | | ^~~~Which is the 2nd C++ program in > the Makfile.On the rpi4-64 all that is needed are the following steps to > build icestorm git clone https://github.com/cliffordwolf/icestorm.git cd > icestorm make real 33m4.774s user 32m39.073s sys 0m19.247s I first tried > using the cross compiler with little sucess. This is why I trying to > generate the recipes to build using bitbake instead. These are the location > of the header files, needed to be added to the cross compiler sdkwhich I > installed for rpi4 using the following commands. "bitbake meta-toolchain" > "bitbake core-image-sato -c populate_sdk_ext" > "./poky-glibc-x86_64-meta-toolchain-aarch64-raspberrypi4-64-toolchain-3.0.1.sh" > /usr/include/libftdi1/ftdi.h/usr/include/pcap/usb.h > As root make install which install to /usr/local/bin & > /usr/local/share.Creates /usr/local/bin & /usr/local/sharels > /usr/local/bin/icebox.py icebox_diff icebox_maps icebram > iceprogicebox_asc2hlc icebox_explain icebox_stat icemulti > icetimeicebox_chipdb icebox_hlc2asc icebox_vlog icepack > iceunpackicebox_colbuf icebox_html iceboxdb.py icepll > ls /usr/local/share/icebox/chipdb-1k.txt chipdb-lm4k.txt timings_lp1k.txt > timings_up5k.txtchipdb-384.txt chipdb-u4k.txt > timings_lp384.txtchipdb-5k.txt timings_hx1k.txt > timings_lp8k.txtchipdb-8k.txt timings_hx8k.txt timings_u4k.txt > When I executed "bitbake nextpnr", I noticed the boost was built first. > Since then I have added boost to rpi4-core-image-sato which added quite a bit > to the image2420113408 without boost and 2839543808 with boost. This sounds all very much like you just need to sort out your dependencies. If something needs boost, there should be DEPENDS = "boost" in the recipe. If smething needs libftdi, there should be DEPENDS = "libftdi" and so on, and so on. Randomly adding things to the image does not solve those issue, for a simple reason: It guarantees that the thing go into the image. It does *not* guarantee that they are already around when some random, other recipe is being built. So, first and foremost - sort out your dependencies. There is some introductory information here: https://youtu.be/IehnEC3GOGU Greetz -- ——— 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 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#47658): https://lists.yoctoproject.org/g/yocto/message/47658 Mute This Topic: https://lists.yoctoproject.org/mt/68293684/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-