OpenEmbedded/Yocto for UDOO Boards

Discussion in 'Yocto' started by graugans, Nov 7, 2015.

  1. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    @modjo, are using windows for Arduino? If yes can you please post the windows path?

    Gesendet von meinem Nexus 4 mit Tapatalk
     
  2. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    I use windows:eek: and linux :) tomorrow i can send you this informations !
     
    graugans likes this.
  3. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Hi graugans, very goog job, the M4 works now :cool: just a point to verify-> your script create the folder /var/opt/M4 but i need to put manually the file m4last.fw (tested 2 times, erase and dd sdcard) afeer that it works very well. Tested with arduino ide under win7 and linux !

    the path for windows is :

    Code:
    C:\Users\YOUR_USER\AppData\Roaming\Arduino15\packages\UDOO\hardware\solox\1.6.5
     
  4. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    @modjo I will test this, with a fresh install. Can you please be so kind and add all your outstanding issues as issues in github? So I can track them better. BTW it would be cool to get some stars in github :)
     
  5. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Andrea Rovai and graugans like this.
  6. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    Yes, exactly this way...

    Gesendet von meinem Nexus 4 mit Tapatalk
     
    Andrea Rovai likes this.
  7. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    After a little test, lvds7 inchs work, just need to add some adjustment (see git issues). About Qt, touch not working for the moment (with lvds7). Serial com between M4 and A9 works ... I will begin a little tutorial with qt now ...
     
  8. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Hi, i would like to enable espci2 (A9 side) that is disabled for the moment :

    from imx6sx-udoo-neo-externalpins.dtsi in : udoo-community-bsp/neoBuild/tmp/work/udooneo-poky-linux-gnueabi/linux-udooboard/3.14.56-r0/git/arch/arm/boot/dts/

    &ecspi2 {
    fsl,spi-num-chipselects = <1>;
    cs-gpios = <&gpio6 14 0>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_ecspi2>;
    status = "disabled";
    };


    I suppose i have just to write

    status = enabled

    but how i can recompile kernel from yocto ?
     
  9. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    modjo likes this.
  10. addrazak

    addrazak New Member

    Joined:
    Apr 6, 2015
    Messages:
    6
    Likes Received:
    5
    @graugans/modjo
    Thank you for the excellent guide. I started from scratch by installing ubuntu 14.04 and by following you tutorial it worked fine until i started to cross compile the QT5 SDK. I am getting the below error: Did you guys face such issue??

    | /home/abdul/build/tmp/sysroots/i686-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.gold: error: cannot find -lQt5XmlPatterns
    | ERROR: oe_runmake failed

    | ERROR: Function failed: do_compile (log file is located at /home/abdul/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtdeclarative/5.5.1+gitAUTOINC+3e9f61f305-r0/temp/log.do_compile.13876)
    ERROR: Task 241 (/home/abdul/sources/meta-qt5/recipes-qt/qt5/qtdeclarative_git.bb, do_compile) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 4108 tasks of which 3801 didn't need to be rerun and 1 failed.
    Waiting for 0 running tasks to finish:

    Summary: 1 task failed:
    /home/abdul/sources/meta-qt5/recipes-qt/qt5/qtdeclarative_git.bb, do_compile
    Summary: There were 8 ERROR messages shown, returning a non-zero exit code.
     
    modjo and graugans like this.
  11. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    @addrazak what platform are you building for? Neo or Quad/Dual? I had similar issues when building first for Neo and afterwards for the Quad. It was a while ago when I did a complete Qt5 build. I can try this afternoon to build a fresh Qt5 image.
     
    addrazak likes this.
  12. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Hi, i didn't remember to have this issue but my local.conf (and bblayers) are different from the git --> i had some modules to have a full qt5 image ! I can post this evening my conf ...
     
    addrazak likes this.
  13. addrazak

    addrazak New Member

    Joined:
    Apr 6, 2015
    Messages:
    6
    Likes Received:
    5
    @graugans: I am using udoo quad. I was thinking about this and wondering if I would first have to install QT natively on my Ubuntu 14.04? Did you guys have this installed on your system before building the tool chain? I ask this because the recipe seems to be looking for some libraries that are missing


    Sent from my iPhone using Tapatalk
     
    graugans likes this.
  14. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    You do not need to have Qt installed on the host

    Gesendet von meinem FP2 mit Tapatalk
     
    addrazak likes this.
  15. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
  16. addrazak

    addrazak New Member

    Joined:
    Apr 6, 2015
    Messages:
    6
    Likes Received:
    5
    Will try this out [emoji106]


    Sent from my iPhone using Tapatalk
     
  17. addrazak

    addrazak New Member

    Joined:
    Apr 6, 2015
    Messages:
    6
    Likes Received:
    5
    @modjo: I used the conf files you provided, but this time it fails while building the image itself. Below is the error. Did you face this issue?

    | linking ../../lib/libQt5WebEngineCore.so.5.5.1
    | /home/abdul/udoo-community-bsp/build/tmp/sysroots/i686-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.gold: fatal error: libQt5WebEngineCore.so.5.5.1: mmap: failed to allocate 1559168904 bytes for output file: Cannot ERROR: oe_runmake failed
    | ERROR: Function failed: do_compile (log file is located at /home/abdul/udoo-community-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtwebengine/5.5.1+gitAUTOINC+qtwebengine_146ebe26dc-r0/temp/log.do_compile.29312)
    ERROR: Task 7 (/home/abdul/udoo-community-bsp/sources/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb, do_compile) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 1709 tasks of which 1703 didn't need to be rerun and 1 failed.
    No currently running tasks (1709 of 1716)

    Summary: 1 task failed:
    /home/abdul/udoo-community-bsp/sources/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb, do_compile
    Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
     
  18. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    What is your build machines RAM & CPU config?
     
    addrazak likes this.
  19. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Hi i didn't remember to have this error, normally now they have all the patch to build qtwebengine ! did you make a bitbake -c cleanall udoo-image-qt5.bb before your build ? Sometimes when i have too many errors i make a big clean of my yocto package (tmp folder ...) and restart a build ! Perhaps you can try to build the image for the moment without qtwebengine (and add it after), to do this remove
    qtwebengine \
    qtwebengine-qmlplugins \
    from local.conf
     
    addrazak likes this.
  20. JonathanC

    JonathanC New Member

    Joined:
    Feb 25, 2016
    Messages:
    9
    Likes Received:
    5
    Thanks a lot for your great tuto ! It worked for me with Qt5.
     
    modjo and graugans like this.

Share This Page