This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

meta-ti for am3359 + bitbake compilation issue ( for PRU unit)

Other Parts Discussed in Thread: AM3359

hi

im using am3359 running a a module, in which i need to compile and use the PRUSS package. im using yocto and followed a manual to install the the whole meta-ti package as an layer into my yocto source, but during executing the bitbake (bitbake pru-iscc_git.bb) to compile the PRU recipes i get this error:-

Error: no recipes available for:-

/opt/PHYTEC_BSPs/yocto_ti/sources/poky/../meta-ti/recipes-core/udev/eudev/eudev_%.bbappend

because of this error i also cant compile the PRU package.

i cloned the meta-ti into my source folder from here:- 

http://layers.openembedded.org/layerindex/branch/master/layer/meta-ti/

so basically my question is this issue related to the uncomplete recipes in the meta-ti data itself?? how do i solve this??

do in need find the lost recipes or is there any tweaking can be done to solve it??

  • i try the solution u gave but i think it is dependent as the same error is displayed again for both of the command u gave for me to try.

    and if i use the -k options to force run bitbake and compiled the image i still get the same error. i modifed your command to -g pru and not pru-icss as the folder in the meta-ti is named pru, but still i get the same error.

  • Could you checkout to d3ed6de7f59802ed11363bf1933b89631301d07a then retry.
    git checkout d3ed6de7f59802ed11363bf1933b89631301d07a

  • i cant checkout as it says:- fatal: reference is not a tree: 3b27c871dbf67497ea9a953fe3fa0f819c6e41c9

    how to go about this??


     but anyway as im cloning the meta-ti from :-

    http://layers.openembedded.org/layerindex/branch/fido/layers/

    here i can find 8 branches - master jecthro fido dizzy daisy dora dylan danny.. dizzy and jecthro doesnt have meta-ti layer others all have but each have many errors after cloning it and bitbaking the image. so only fido had minimal error and atleast can display somethings but still cant create the image.

    anyway how find the branch u suggested and load??

    if using the fido branch i find in the openembedded i get:-

                                                      

  • The commit 3b27c871dbf67497ea9a953fe3fa0f819c6e41c9 is from the remotes/origin/fido branch, could you try to checkout to d3ed6de7f59802ed11363bf1933b89631301d07a which if from the master branch.
  • ok i check-out in my meta-ti layer using the branch u suggest but finally the errors as below after bitbaking to create image. my software info is as below:-

    linux kernel 3.12.30

    yocto 1.8(fido)

    anyway the checkout screen after following your suggestions, this just to u let see if it done correctly or not:-

    after checked out i gave bit bake command,i get the results as below got errors too:-

  • Check this reference for the errors from this layer: www.phytec.eu/.../L-813e_1.pdf

  • hi


    ok finally i made it to compile with a warning, the confusion was in the downloaded folder which i direct download from the webrepo the PRU package was named "pru", and i used the "folders name" as the package name in the local.conf file to add it to the image. and in the fido branch meta-ti layer the package was "pru-icss", so i changed in my local config file to pru-icss (used the recipe name) and it compile successfully with warning as attached.

  • Hello,

    I have managed to integrate the PRU-ICSS package as above and flash the image into the PHYTEC Board.

    root@phycore-am335x-1:~# ls -la /lib/firmware/    

    drwxr-xr-x    3 root     root           368 Apr 20  2016 .

    drwxr-xr-x    9 root     root          6208 Apr 18  2016 ..

    lrwxrwxrwx    1 root     root            47 Apr 20  2016 am335x-pru0-fw -> /lib/firmware/pru/PRU_RPMsg_Echo_Interrupt0.out

    lrwxrwxrwx    1 root     root            47 Apr 20  2016 am335x-pru1-fw -> /lib/firmware/pru/PRU_RPMsg_Echo_Interrupt1.out

    drwxr-xr-x    2 root     root           408 Apr 20  2016 pru

    I cannot find the remoteproc and RPMSG drivers.

    Also when I go to kernel menuconfig using

    #bitbake linux-ti -c menuconfig  

    but the driver doesn't show up.

    am I missing any thing ?

  • Hello Hardik,

    Please check the software information about PRU and IC Subsystem here.

    Best regards,
    Kemal

  • Hello,

    I have read the complete link provided by you..

    http://processors.wiki.ti.com/index.php/PRU-ICSS_Getting_Started_Guide

    from the above link they tell Linux driver comes with TI-SDK (Linux Processor SDK v2.0.2.11)

    from my YOCTO environment

    /opt/PHYTEC_BSPs/yocto_ti$ bitbake linux-ti -c menuconfig

    menu doesn't display the drivers.

    Do I need to separately integrate drivers into the kernel or it comes by default as suggested by the link ?

  • Hello ,

    I have managed to add remoteproc and rpmsg source to my kernel.

    following are the drivers created

    ls /lib/modules/3.12.30-AM335x-PD15.2.1/kernel/drivers/remoteproc
    pruss_remoteproc.ko remoteproc.ko

    ls /lib/modules/3.12.30-AM335x-PD15.2.1/kernel/drivers/
    rpmsg_pru.ko virtio_rpmsg_bus.ko

    I have loaded the modules.

    As the documents tells remoteproc driver will load the example firmware into the PRU core.

    following is the example firmware

    root@phycore-am335x-1:~# ls /lib/firmware/
    am335x-pru0-fw am335x-pru1-fw pru

    How can I verify whether firmware is loaded ? How can I proceed further with PRU Firmware?

    after pruss_remoteproc module is loaded I don’t any messages.
  • Hi Hardik,

    Since the topic of this thread is for bitbake PRU compilation, please file a new question about the PRU firmware loading and verification.

    Best regards,
    Kemal