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
    Are you on Neo or Quad/Dual?

    Gesendet von meinem Nexus 4 mit Tapatalk
     
  2. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    Do you have any error message?

    Gesendet von meinem Nexus 4 mit Tapatalk
     
  3. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    yes, arduino ide can't establish connexion ! perhaps they need to add FOTA to the image ? Otherwise, i have seen that if i program (blink exemple) the M4 with udoobuntu2 (with a pc) and after that launch the card with yocto image the led is not blinking !
     
  4. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
  5. graugans

    graugans Administrator Staff Member

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

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    yes, this will be the solution !;)
     
    graugans likes this.
  7. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    I just pushed two recipes for udoofota and m4uploader. The udoofota needs some fine tuning related to starting the server during boot-up (init.d).

    All of this is mostly untested...
     
    modjo likes this.
  8. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    bb in working ...

    for info, when i start a bitbake, i have this warning

    WARNING: Getting checksum for qtwebengine SRC_URI entry 0002-media_capture_devices_dispatcher.h-Include-QCoreApplication-translate.patch: file not found except in DL_DIR | ETA: 00:01:02
    WARNING: Getting checksum for qtwebengine SRC_URI entry 0003-WebEngine-qquickwebengineview_p_p.h-add-inc-QColor.patch: file not found except in DL_DIR
    WARNING: Getting checksum for qtwebengine SRC_URI entry 0001-chromium-jpeg_codec.cc_Change-false-to-FALSE-and-1-to-TRUE.patch: file not found except in DL_DIR
     
    Last edited: Feb 8, 2016
  9. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    Further investigation on the QA warnings needed...

    Gesendet von meinem Nexus 4 mit Tapatalk
     
  10. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Compilation works without error, good job. The (neo) card boot but i think the M4 is not started and impossible for the moment to upload with arduino. Like you said need to tune udoofota ! perhaps udooteam can help
     
  11. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
  12. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Great ! Do i need to recompil yocto or can i write it directly on the sd (/boot i presume ?)
     
    graugans likes this.
  13. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    So meta-udoo should be ready for M4 FOTA ....
     
  14. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    repo sync
    bb
    copie to sd
    All seems ok, i will test tomorrow !
     
    graugans likes this.
  15. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Hi graugans, the A9 boot but it seems that the M4 doesn't ! I have enabled it in Uenv.text but it stay halt ! If i plug the sd with udoobuntu2 the M4 start and the led blink (i have loaded a blink exemple, leg toggle each second), but if i plug sd with yocto the led stay off.
     
  16. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    Okay, I'll check this M4 is a long standing topic on my list.

    Gesendet von meinem Nexus 4 mit Tapatalk
     
    modjo likes this.
  17. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    @modjo argh, I love it fixing stuff totally unrelated to the topic I want to fix... I am not a fanboy of Arduino but this drove me crazy..... I finally fixed Arduino GUI, by manually changing the target IP in the file

    Code:
    ~/.arduino15/packages/UDOO/hardware/solox/1.6.5/platform.txt
    Is this the way to go or did I missed the menu item to change stuff @Andrea Rovai ?

    Anyway the real bug I was hunting was a missing directory: /var/opt/m4/
    So everything should be fine after an update.
     
    modjo likes this.
  18. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    At the moment we didn't made available any tool to change the IP from GUI. The correct mode is, how you said, modifying the file
    /home/chris/.arduino15/packages/UDOO/hardware/solox/1.6.5/platform.txt
    Would you be able to write a guide for this? It would be SUPERCOOL. We haven't released a guide yet because this stuff could eventually cause security problems.
     
    modjo and graugans like this.
  19. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    [UDOO Neo] Arduino workflow on Yocto for M4 core

    Follow the instruction how to install the Arduino GUI on the UDOO Neo Docs

    Install and configure the Arduino IDE
    • Download Arduino Software in version 1.6.5 for your Platform Arduino_dl_version.png
    • Install the Arduino IDE on your PC
    • Start the IDE. Select File -> Preferences and add this link to Additional Boards Manager URLs: https://udooboard.github.io/arduino-board-package/package_udoo_index.json , then click Ok.
      Arduino_pref.png
      Arduino_manager-conf.png
    • Select Tools -> Boards and open the Board Manager.
      Arduino_manager.png
    • Wait few seconds 'till the end of the "index download" then look for UDOO NEO (iMX6 SoloX) and install it.
      Arduino_manager-dl.png
    • After this a new board is selectable in Tools -> Boards you should see the UDOO NEO (Cortex M4), if so Click on it.
      Arduino_board-neo.png
    • Now it's time to insert your first sketch
      Code:
      void setup(){
          pinMode(13, OUTPUT);
      }
      
      void loop(){
          delay(1000);
          digitalWrite(13, LOW);
          delay(1000);
          digitalWrite(13, HIGH);
      }
      
    • Compile it but not yet upload it
    • For uploading the binary to the M4 we are using the Firmware over the Air Update Feature (FOTA) to get this working you have to edit the following file:
      Code:
      ~/.arduino15/packages/UDOO/hardware/solox/1.6.5/platform.txt
      and scroll down to the line
      Code:
      tools.udooclient.upload.pattern="{path}/{cmd}" "192.168.23.147:5152" "{build.path}/{build.project_name}.bin"
      and adapt the IP address to your needs. This is the one the Neo port was assigned to.
      Thx for @modjo pointing out the location for this file under windows:
      Code:
      C:\Users\<YOUR_USER>\AppData\Roaming\Arduino15\packages\UDOO\hardware\solox\1.6.5
     
    Last edited: Feb 11, 2016
    modjo likes this.
  20. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Another time thanks for this ;) I will try tomorrow and let you know !
     

Share This Page