Received: from yocto-www.yoctoproject.org (yocto-www.yoctoproject.org [140.211.169.56]) by mx.groups.io with SMTP id smtpd.web10.1082.1576278643020809653 for ; Fri, 13 Dec 2019 15:10:43 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@sbcglobal.net header.s=s2048 header.b=tEQMcW0a; spf=none, err=permanent DNS error (domain: sbcglobal.net, ip: 140.211.169.56, mailfrom: develone@sbcglobal.net) Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6F936E01166; Fri, 13 Dec 2019 15:10:42 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no * trust * [74.6.135.45 listed in list.dnswl.org] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from sonic302-6.consmr.mail.bf2.yahoo.com (sonic302-6.consmr.mail.bf2.yahoo.com [74.6.135.45]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E6AA8E01126 for ; Fri, 13 Dec 2019 15:10:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1576278638; bh=Dr36V/2e5x/+Bg7RmSNKr3Z5E9BRVnlZoOHSreZha5c=; h=Date:From:To:Cc:Subject:References:From:Subject; b=tEQMcW0afHxg9km7Lrk+54BfbF+S4hBNZGwhd6ihNK+p5T3bJ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DcMkAzfXpqn9pPwOx3W5e7Ikl5UIxxdTpj__EF6_RbHl_ UYZEBDesI6j9gu1xkXDB6f4pgwlcNR3RPmDCmmuMuYdalTbSoZAvUU2CeIlDf4Q6AkHNecTDammv p2iBdD.SyZgbHQdJwIKLiCCOwoYrhhdicmgHGtZ1Q7mWSE_dRnX99YvvnorUHSZEmzm0uSqQkNhe 6kHGvm1i4gqz2yFisQC5CpnUfH57dGZbiFebsGSJU6gH25aHsxnMcMwLmOP0HFWsEV0ODT4tJ2M0 cz.zWvS9I7zdmADtweS9_4pgchHKfBUTmGCgHdIZa0Dv9m35INSnFMMdNaOeubY3tm3ydR7z1nDq FYYCh2j.RkQPcysXy2bEa8tLEAWWPhVZBqoJuYMFDmuPU_5b47sgdeKU7JySHOTDEUsLht2LzsuN 7ugi2L08gjnmS2vxX3IeK93rLt8J.hb357r_kMAtZ.VS41SBAvoDwuy1TvqcGmgrEqha62NOSISz tKHCVI0GpEpIEiuqRrh9Y59myk.5Mo6v_rGKsEuo.pYhHNryqWk7vPBOzYKOvIHgLbV7elmOE.WB IYy.4fBI9BpfmTRcy9Uqhv9DDlG5oCeU- Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.bf2.yahoo.com with HTTP; Fri, 13 Dec 2019 23:10:38 +0000 Date: Fri, 13 Dec 2019 23:10:35 +0000 (UTC) From: "Ed Vidal" To: Josef Holzmayr Cc: "yocto@yoctoproject.org" Message-ID: <769876899.8739756.1576278635643@mail.yahoo.com> Subject: Re: [yocto] Raspberry pi 4 recipe and layer issues. MIME-Version: 1.0 References: <769876899.8739756.1576278635643.ref@mail.yahoo.com> X-Mailer: WebService/1.1.14728 YMailNorrin Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 Chrome/74.0.3729.157 Safari/537.36 Content-Type: multipart/alternative; boundary="----=_Part_8739755_2105737752.1576278635641" ------=_Part_8739755_2105737752.1576278635641 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Josef,Thanks for your help.=C2=A0 My icestorm recipe still fails trying to include ftdi.h even with in the DE= PENDS.has libftdi.=C2=A0 The header file is found libftdi-dev rpm.=C2=A0 Wh= en I tried adding it to DEPENDS. I get nothing provides=C2=A0libftdi-dev. Making progress in the yosys recipe now getting to do_install where the err= or see below=C2=A0Unable to recognise the format of the input file `/home/v= idal/wkg/yocto-zeus-3.0/rpi4-64/build/tmp/work/aarch64-poky-linux/yosys/0.1= +gitAUTOINC+e275692e84-r0/image/usr/local/bin/yosys'=C2=A0 =C2=A0 Makefile:= 567: recipe for target 'install' failed =C2=A0 =C2=A0 getting error in do_compile=C2=A0 =C2=A0 bash: tclsh: command= not found=C2=A0 =C2=A0 Have tried adding to DEPENDS one at time bash=C2=A0= =C2=A0 and tclsh.=C2=A0 =C2=A0 Have tried adding to inherit one at time ba= sh=C2=A0 =C2=A0 and tclsh.=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 In the Makefile = chg line 110=C2=A0 =C2=A0 to ae6716b default=C2=A0 =C2=A0 ABCREV =3D ae6716= b=C2=A0 =C2=A0 ABCREV =3D default=C2=A0 =C2=A0 [100%] Building yosys=C2=A0 = =C2=A0=C2=A0=C2=A0 =C2=A0 =C2=A0 Build successful=C2=A0 =C2=A0=C2=A0=C2=A0 = =C2=A0 This is part of do_install=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 [=C2=A0 5= %] ABC: `` Building binary: abc-default=C2=A0 =C2=A0 [ 10%] Building yosys-= abc=C2=A0 =C2=A0 mkdir -p /home/vidal/wkg/yocto-zeus-3.0/rpi4-64/build/tmp/= work/aarch64-poky-linux/yosys/0.1+gitAUTOINC+e275692e84-r0/image/usr/local/= bin=C2=A0 =C2=A0 cp yosys yosys-config yosys-abc yosys-filterlib yosys-smtb= mc /home/vidal/wkg/yocto-zeus-3.0/rpi4-64/build/tmp/work/aarch64-poky-linux= /yosys/0.1+gitAUTOINC+e275692e84-r0/image/usr/local/bin=C2=A0 =C2=A0 aarch6= 4-poky-linux-strip -S /home/vidal/wkg/yocto-zeus-3.0/rpi4-64/build/tmp/work= /aarch64-poky-linux/yosys/0.1+gitAUTOINC+e275692e84-r0/image/usr/local/bin/= yosys=C2=A0 =C2=A0 aarch64-poky-linux-strip: Unable to recognise the format= of the input file `/home/vidal/wkg/yocto-zeus-3.0/rpi4-64/build/tmp/work/a= arch64-poky-linux/yosys/0.1+gitAUTOINC+e275692e84-r0/image/usr/local/bin/yo= sys'=C2=A0 =C2=A0 Makefile:567: recipe for target 'install' failed=C2=A0 = =C2=A0 make: *** [install] Error 1=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 +inherit= pkgconfig=C2=A0 =C2=A0 -=C2=A0 =C2=A0 =C2=A0 =C2=A0oe_runmake install=C2= =A0 =C2=A0 +=C2=A0 =C2=A0 =C2=A0 =C2=A0oe_runmake install 'DESTDIR=3D${D}' Let me know if I can provide additional information. Edward Vidal Jr. e-mail develone@sbcglobal.net 915-595-1613=20 On Friday, December 13, 2019, 1:20:48 AM MST, Josef Holzmayr wrote: =20 =20 On Thu, Dec 12, 2019 at 10:20:03PM +0000, Ed Vidal wrote: > Hi AllAny and all help is appreciated.=C2=A0 Thanks in advance. > I want to install 6 software packages needed for FPGA Development.These a= re icestorm, arachne-pnr, yosys, nextpnr, verilator, and zipcpu.I have crea= ted 4 of the recipes (icestorm_0.1.bb, arachne-pnr_0.1.bb, yosys_0.1.bb, an= d nextpnr_0.1.bb)using the recipetool & bitbake-layers, and I added these t= o 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 p= roject.The first time the recipe goes thru the python build and gets an err= or existing the shell.If I rerun "bitbake icestorm" I get=C2=A0 > | iceprog.c:27:10: fatal error: ftdi.h: No such file or directory|=C2=A0 = =C2=A0 27 | #include |=C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ^~~~~~~~Which is the 2nd C++ program in the Makfile.On th= e rpi4-64 all that is needed are the following steps to build icestorm git = clone https://github.com/cliffordwolf/icestorm.git cd icestorm=C2=A0 make r= eal 33m4.774s user 32m39.073s sys 0m19.247s I first tried using the cross c= ompiler with little sucess.=C2=A0 This is why I trying to generate=C2=A0the= recipes to build using bitbake instead. These are the location of the head= er 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" > =C2=A0=C2=A0/usr/include/libftdi1/ftdi.h/usr/include/pcap/usb.h > As root make install which install to /usr/local/bin & /usr/local/share.C= reates /usr/local/bin & /usr/local/sharels /usr/local/bin/icebox.py icebox_= diff icebox_maps=C2=A0 icebram=C2=A0 =C2=A0iceprogicebox_asc2hlc icebox_exp= lain icebox_stat=C2=A0 icemulti=C2=A0 icetimeicebox_chipdb icebox_hlc2asc i= cebox_vlog=C2=A0 icepack=C2=A0 =C2=A0iceunpackicebox_colbuf icebox_html ice= boxdb.py=C2=A0 icepll > ls /usr/local/share/icebox/chipdb-1k.txt chipdb-lm4k.txt=C2=A0 =C2=A0timi= ngs_lp1k.txt=C2=A0 =C2=A0timings_up5k.txtchipdb-384.txt chipdb-u4k.txt =C2= =A0 timings_lp384.txtchipdb-5k.txt timings_hx1k.txt=C2=A0 timings_lp8k.txtc= hipdb-8k.txt timings_hx8k.txt=C2=A0 timings_u4k.txt > When I executed "bitbake nextpnr", I noticed the boost was built first.= =C2=A0 Since then=C2=A0I have added boost to rpi4-core-image-sato which add= ed quite a bit to the image2420113408 without boost and 2839543808 with boo= st. This sounds all very much like you just need to sort out your dependencies. If something needs boost, there should be DEPENDS =3D "boost" in the recipe. If smething needs libftdi, there should be DEPENDS =3D "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 --=20 =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 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 =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 Amtsgericht Ingolstadt =E2=80=93 GmbH: HRB 191328 =E2=80=93 KG: HRA 170393 Gesch=C3=A4ftsf=C3=BChrer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg Ust-IdNr: DE 128592548=20 _____________________________________________________________ Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363 Gesch=C3=A4ftsf=C3=BChrer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg USt-IdNr.: DE 128592548 =20 ------=_Part_8739755_2105737752.1576278635641 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Josef,
Thanks for your help. 

My icestorm recipe still fails trying to include ftdi.h even with in the = DEPENDS.
has libftdi.  The= header file is found libftdi-dev rpm.  When I tried adding it to DEPE= NDS. I get nothing provides 
libftdi-dev.

Making progress in the yosys recipe now g= etting to do_install where the error see below 
Unable to recognise the form= at of the input file `/home/vidal/wkg/yocto-zeus-3.0/rpi4-64/build/tmp/work= /aarch64-poky-linux/yosys/0.1+gitAUTOINC+e275692e84-r0/image/usr/local/bin/= yosys'
    Makefile:567: recipe for targ= et 'install' failed

    getting error in do_compile
  &= nbsp; bash: tclsh: command not found
    Have tried add= ing to DEPENDS one at time bash
    and tclsh.
    Have tried adding to inherit one at time bash
&nb= sp;   and tclsh.
    
   = In the Makefile chg line 110
    to ae6716b default
    ABCREV =3D ae6716b
    ABCREV =3D= default
    [100%] Building yosys
  &nb= sp; 
      Build successful
  =   
    This is part of do_install
&= nbsp;   
    [  5%] ABC: `` Building bin= ary: abc-default
    [ 10%] Building yosys-abc
    mkdir -p /home/vidal/wkg/yocto-zeus-3.0/rpi4-64/build/tmp/w= ork/aarch64-poky-linux/yosys/0.1+gitAUTOINC+e275692e84-r0/image/usr/local/b= in
    cp yosys yosys-config yosys-abc yosys-filterlib = yosys-smtbmc /home/vidal/wkg/yocto-zeus-3.0/rpi4-64/build/tmp/work/aarch64-= poky-linux/yosys/0.1+gitAUTOINC+e275692e84-r0/image/usr/local/bin
    aarch64-poky-linux-strip -S /home/vidal/wkg/yocto-zeus-3.0/r= pi4-64/build/tmp/work/aarch64-poky-linux/yosys/0.1+gitAUTOINC+e275692e84-r0= /image/usr/local/bin/yosys
    aarch64-poky-linux-strip= : Unable to recognise the format of the input file `/home/vidal/wkg/yocto-z= eus-3.0/rpi4-64/build/tmp/work/aarch64-poky-linux/yosys/0.1+gitAUTOINC+e275= 692e84-r0/image/usr/local/bin/yosys'
    Makefile:567: = recipe for target 'install' failed
    make: *** [insta= ll] Error 1
    
    +inherit = pkgconfig
    -       oe_runmake in= stall
    +       oe_runmake instal= l 'DESTDIR=3D${D}'


Let me know if I can provide additional information.

Edward Vidal Jr. e-mail develone@sbcglobal.net 915-595-1613


=20
=20
On Friday, December 13, 2019, 1:20:48 AM MST, Josef Hol= zmayr <holzmayr@rsi-elektrotechnik.de> wrote:


On Thu, Dec 12, 2019 at 10:20:03PM +0000, Ed Vidal wro= te:

> H= i AllAny and all help is appreciated.  Thanks in advance.
> I want to install 6 software packages needed for FPGA Developmen= t.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++ Mak= efile 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 <ftdi.h>|      &= nbsp;|          ^~~~~~~~Which is the 2nd C++ progr= am in the Makfile.On the rpi4-64 all that is needed are the following steps= to build icestorm git clone https://github.com/cliffordwol= f/icestorm.git cd icestorm  make real 33m4.774s user 32m39.073s sy= s 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 comman= ds. "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/in= clude/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  icebra= m   iceprogicebox_asc2hlc icebox_explain icebox_stat  icemul= ti  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&nb= sp;  timings_lp1k.txt   timings_up5k.txtchipdb-384.txt chipd= b-u4k.txt   timings_lp384.txtchipdb-5k.txt timings_hx1k.txt  timi= ngs_lp8k.txtchipdb-8k.txt timings_hx8k.txt  timings_u4k.txt
> When I executed "bitbake nextpnr", I noticed the boost was b= uilt first.  Since then I have added boost to rpi4-core-image-sat= o which added quite a bit to the image2420113408 without boost and 28395438= 08 with boost.


This sounds all v= ery much like you just need to sort out your
dependencies= . If something needs boost, there should be

DEPENDS =3D "boost"

in the recip= e. If smething needs libftdi, there should be

DEPENDS =3D "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 al= ready around when
some random, other recipe is being buil= t.

So, first and foremost - sort out y= our dependencies.

There is some introd= uctory information here:
https://youtu.be/IehnEC3GOGU<= br clear=3D"none">
Greetz

--
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94
Josef Holzmayr
Software= Developer Embedded Systems

Tel: +49 8= 444 9204-48
Fax: +49 8444 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woel= kestrasse 11
D-85301 Schweitenkirchen
w= ww.rsi-elektrotechnik.de
=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94
Amtsgericht Ingolstadt =E2= =80=93 GmbH: HRB 191328 =E2=80=93 KG: HRA 170393
Gesch=C3= =A4ftsf=C3=BChrer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
Ust-IdNr: DE 128592548

_______= ______________________________________________________
Am= tsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
= Gesch=C3=A4ftsf=C3=BChrer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548


------=_Part_8739755_2105737752.1576278635641--