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 can you please copy all m4* firmware files from UDOOBuntu to the Boot partition of the yocto SD-Card and retest USB issues? It looks like a m4 firmware is needed for a powered USB. @Andrea Rovai is this true?
     
    modjo likes this.
  2. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    I just pushed some updates:
    • Bumped kernel to 3.14.56.x
    • Added M4 default firmware for USB fix on Neo
     
    Andrea Rovai and modjo like this.
  3. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    This is ok, now i have usb on neo ! I have made an image for udoo quad that seems to work (usb, eth ok, Qt5 ok) Could you re-precise the procedure to make the tool-chain sdk please ?
     
    graugans likes this.
  4. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    THX for the feedback. I'll write some advice about the toolchain later...

    Gesendet von meinem Nexus 4 mit Tapatalk
     
  5. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    i have a problem since your update, if i try a repo sync, i have this errors now :

    modjo@Linux-corei5:/media/modjo/39a50e93-4c35-4598-a6b8-9627986411e5/yocto/seco/udoo-community-bsp/neoBuild$ repo sync
    Fetching project meta-udoo
    Fetching project Documentation
    Fetching project meta-fsl-demos
    Fetching project meta-openembedded
    Fetching projects: 12% (1/8) Fetching project meta-fsl-arm
    Fetching projects: 25% (2/8) Fetching project meta-fsl-arm-extra
    Fetching projects: 37% (3/8) Fetching project poky
    Fetching projects: 50% (4/8) Fetching project fsl-community-bsp-base
    Fetching projects: 100% (8/8), done.
    error: Your local changes to the following files would be overwritten by checkout:
    recipes-udoo/images/udoo-image-qt5.bb
    Please, commit your changes or stash them before you can switch branches.
    Aborting

    error: sources/meta-udoo/: meta-udoo checkout d89cb80aad5486e0c43222083e2191449dc53eea
     
  6. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    Can you please change to meta-udoo folder and call

    git diff

    And post the result here or on github's gist service?

    Gesendet von meinem Nexus 4 mit Tapatalk
     
  7. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
  8. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    I can not see any special, you can do the following in the meta-uddo folder:

    $ git stash

    This should fix your issues
     
    modjo likes this.
  9. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    This resolve the problem ;)
     
    graugans likes this.
  10. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    @modjo QtCreator set-up is added to the #1 posting..
     
    Andrea Rovai and modjo like this.
  11. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    very nice wok !!! :D you are an incredible man guy !
    About the qt creator conf, i make a test yesterday (with my old neo config) and have a problem to compil with the sdk. Do you test a deploy on the card (since your host machine) , tomorrow i will make a test !
     
    Andrea Rovai likes this.
  12. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    You need to source the toolchain before starting qtcreator. From cmdline otherwise compilation fails. Deployment from creator not yet tested.

    Gesendet von meinem Nexus 4 mit Tapatalk
     
  13. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    For information, compilation since your update seems to be ok for neo (rest 100 task ...)
     
    graugans likes this.
  14. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Hi graugans, good news the build for neo and quad is ok and deploy with qtcreator on the card work fine !!! :rolleyes:
    Good job !

    Just little points to update :
    The path to the poky sdk for me is /opt/poky/2.0.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi
    [​IMG]

    some module are missing like qtquick controls, qt3d canvas ... i will try to add it and let you know. Gpu accelerated (under eglfs) seems good. Otherwise, i let active wayland for the build ...

    About the kernel, i have a egalax touch screen (usb) that works under udoobuntu2 but not with yocto. Do you build a special kernel ?
     
  15. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    Thx, for the update. I guess they updated the upstream Jethro branch to 2.01 this is the cause for the 2.01. I'll fix this.

    Regarding the kernel I do use the same configs. Can you please provide output of

    - lsmod
    - dmesg

    Before and after plugin of the touch?

    Gesendet von meinem Nexus 4 mit Tapatalk
     
  16. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    BTW you may have to add the arm gdb to qtcreator like you did for the g++ for remote debugging.

    Gesendet von meinem Nexus 4 mit Tapatalk
     
  17. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Yes, i forgot gdb ... otherwise, i had some missing module and it seems to compile ... For the touch screen, i can say this tomorrow (i erase my sd and i'm waiting the new build :eek:). A question, i add new module to qt5 image, i need to rebuild the sdk, but do i need to remove the directory /opt/poky or the sdk script will update it ?
     
  18. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    Normally by adding modules you do not need to wipe your build directory. When installing a new toolchain I erase the old before. Because it is a simple shell script.

    Gesendet von meinem Nexus 4 mit Tapatalk
     
  19. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Graugan, this is my udoo-image-qt5 : https://gist.github.com/modjo756/15d82766d957df7a2022
    This work, but when i add to it
    qtwebengine \
    qtwebengine-qmlplugin \

    The layer is find and fetched, but during the compile i have this error : https://gist.github.com/modjo756/e649d7473fd618c3a5ba

    Do you have an idea ?

    edit :
    perhaps i find a solution, ligne 39 of the log, there is this error :
    /udoo-community-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtwebengine/5.5.1+gitAUTOINC+qtwebengine_146ebe26dc-r0/git/src/3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc:123:10: error: invalid conversion from 'int' to 'boolean' [-fpermissive]

    and i find this :

    https://github.com/meta-qt5/meta-qt5/commit/d8b2426588abd64c079b8796b7fb3ff68fc2351e

    Do i need to apply this patch manually ? If yes how ?
     
    Last edited: Jan 26, 2016
  20. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    for the Patch:
    1. go to meta-qt5
    2. $ cd recipes-qt/qt5/qtwebengine_git.bb
    3. download all the patches from the commit https://github.com/meta-qt5/meta-qt5/commit/d8b2426588abd64c079b8796b7fb3ff68fc2351e
    4. by view -> raw
      $ wget https://raw.githubusercontent.com/m....cc_Change-false-to-FALSE-and-1-to-TRUE.patch
    5. fix the bb file
      Code:
       +    file://0002-media_capture_devices_dispatcher.h-Include-QCoreApplication-translate.patch \
      +    file://0003-WebEngine-qquickwebengineview_p_p.h-add-inc-QColor.patch \
      +    file://0001-chromium-jpeg_codec.cc_Change-false-to-FALSE-and-1-to-TRUE.patch \
      "
      "
    Or you have to create a bbappend in the meta-udoo
    Or wait until I've fixed it for you in meta-udoo :)
     
    modjo likes this.

Share This Page