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
    Fixed + example bblayers.conf
     
  2. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Thank's but now i have thie error :

    osboxes@osboxes:~/udoo-community-bsp/build$ MACHINE=udooneo bitbake udoo-image-full-cmdline
    ERROR: Unable to parse /home/osboxes/udoo-community-bsp/sources/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py
    Traceback (most recent call last):
    File "/home/osboxes/udoo-community-bsp/sources/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 188, in feeder(lineno=20, s='BBLAYERS = " ${BSPDIR}/sources/poky/meta ${BSPDIR}/sources/poky/meta-yocto ${BSPDIR}/sources/meta-openembedded/meta-oe ${BSPDIR}/sources/meta-openembedded/meta-multimedia ${BSPDIR}/sources/meta-openembedded/meta-python ${BSPDIR}/sources/meta-openembedded/meta-networking ${BSPDIR}/sources/meta-fsl-arm ${BSPDIR}/sources/meta-fsl-arm-extra ${BSPDIR}/sources/meta-udoo ${BSPDIR}/sources/meta-fsl-demos ', fn='/home/osboxes/udoo-community-bsp/build/conf/bblayers.conf', statements=[<bb.parse.ast.DataNode object at 0x28f3e90>, <bb.parse.ast.DataNode object at 0x28f3ed0>, <bb.parse.ast.DataNode object at 0x28f3f10>, <bb.parse.ast.DataNode object at 0x28f3f50>]):

    > raise ParseError("unparsed line: '%s'" % s, fn, lineno);

    ParseError: ParseError at /home/osboxes/udoo-community-bsp/build/conf/bblayers.conf:20: unparsed line: 'BBLAYERS = " ${BSPDIR}/sources/poky/meta ${BSPDIR}/sources/poky/meta-yocto ${BSPDIR}/sources/meta-openembedded/meta-oe ${BSPDIR}/sources/meta-openembedded/meta-multimedia ${BSPDIR}/sources/meta-openembedded/meta-python ${BSPDIR}/sources/meta-openembedded/meta-networking ${BSPDIR}/sources/meta-fsl-arm ${BSPDIR}/sources/meta-fsl-arm-extra ${BSPDIR}/sources/meta-udoo ${BSPDIR}/sources/meta-fsl-demos '
     
  3. graugans

    graugans Administrator Staff Member

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

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    No problem, i'm doing this, this evening
     
  5. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Dear @graugans,
    thanks for what you're doing from the UDOO Team - and also from the Community I assume :)
    Would you mind hand us a precompiled image so we can put it into the Downloads section?
     
  6. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    Sure, I will upload two images one for quad and dual and the other for the NEO family.

    Gesendet von meinem Nexus 4 mit Tapatalk
     
    Andrea Rovai and modjo like this.
  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
    Looks pretty good... May I ask for the conf/local.conf as-well? I'll prepare a clean build at the moment to verify my tutorial...
    What Host OS are you using?
     
  9. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Hi Graugans, i make another yocto build on another machine (the first test i made was under a virtual machine with ubuntu 12.04). My second test is under kubuntu 15.10 (no virtual, 64 bit coreI5, 8Gb of ram) and for the moment it compil (just one warning), see under :

    modjo@Linux-corei5:/media/modjo/39a50e93-4c35-4598-a6b8-9627986411e5/yocto/seco/udoo-community-bsp/build$ MACHINE=udooneo bitbake udoo-image-full-cmdline
    WARNING: Unable to get checksum for linux-toradex SRC_URI entry defconfig: file could not be found########################################################################################## | ETA: 00:00:00

    Parsing recipes: 100% |######################################################################################################################################################################| Time: 00:02:08
    Parsing of 1910 .bb files complete (0 cached, 1910 parsed). 2456 targets, 169 skipped, 0 masked, 0 errors.
    NOTE: Resolving any missing task queue dependencies
    NOTE: multiple providers are available for jpeg-native (jpeg-native, libjpeg-turbo-native)
    NOTE: consider defining a PREFERRED_PROVIDER entry to match jpeg-native

    Build Configuration:
    BB_VERSION = "1.28.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "Ubuntu-15.10"
    TARGET_SYS = "arm-poky-linux-gnueabi"
    MACHINE = "udooneo"
    DISTRO = "poky"
    DISTRO_VERSION = "2.0.1"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard cortexa9"
    TARGET_FPU = "vfp-neon"
    meta
    meta-yocto = "HEAD:dd0ba9ea4a11ab15348d4fe3574e4b28784db82f"
    meta-oe
    meta-multimedia
    meta-python
    meta-networking = "HEAD:ad6133a2e95f4b83b6b3ea413598e2cd5fb3fd90"
    meta-fsl-arm = "HEAD:35b8b9bd9863de208ab60e33b55f10ee43e2619b"
    meta-fsl-arm-extra = "HEAD:95f6f731517817ae2f8b379da43ab3376005e5d4"
    meta-udoo = "HEAD:9ae3d7a99621238ca1424b0e33540bbfe8560eb3"
    meta-fsl-demos = "HEAD:2231e946e7a94d096394f2b2477e8184c9bbde7b"

    NOTE: Preparing RunQueue
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    Currently 4 running tasks (44 of 3332):


    I let you know the progress ...
     
    graugans likes this.
  10. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Hi, let my pc work all the night :) and this morning 1 error :mad:

    Log data follows:
    | DEBUG: Executing python function sysroot_cleansstate
    | DEBUG: Python function sysroot_cleansstate finished
    | DEBUG: Executing shell function autotools_preconfigure
    | DEBUG: Shell function autotools_preconfigure finished
    | DEBUG: Executing python function autotools_copy_aclocals
    | DEBUG: Python function autotools_copy_aclocals finished
    | DEBUG: Executing shell function do_configure
    |
    | ERROR: User requested feature sdl
    | configure was not able to find it.
    | Install SDL devel
    |
    | WARNING: exit code 1 from a shell command.
    | ERROR: Function failed: do_configure (log file is located at /media/modjo/39a50e93-4c35-4598-a6b8-9627986411e5/yocto/seco/udoo-community-bsp/build/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/log.do_configure.2056)


    To correct this i install
    sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev

    with no success, after i downloaded the source of sdl 2 and compil it
    modjo@Linux-corei5:/media/modjo/39a50e93-4c35-4598-a6b8-9627986411e5/yocto/seco/udoo-community-bsp$ sdl2-config --version
    2.0.4
    modjo@Linux-corei5:/media/modjo/39a50e93-4c35-4598-a6b8-9627986411e5/yocto/seco/udoo-community-bsp$ sdl-config --version
    1.2.15


    Do you an idea to resolve this ?
     
  11. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    That's strange, I do not recommend installing stuff from sources in this case. I'll dig a bit deeper to check dependencies.
    can you send me the /media/modjo/39a50e93-4c35-4598-a6b8-9627986411e5/yocto/seco/udoo-community-bsp/build/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/log.do_configure.2056 file please?
     
  12. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    Could you please try the workarround mentioned in Yocto's bug tracker: Bug 8553 - qemu-native to build on Ubuntu 15.10
    add BUILD_LDFLAGS_prepend_pn-qemu-native = "-Wl,-rpath-link,/lib/x86_64-linux-gnu " to local.conf.

    After changing conf/local.conf try this:
    $ cd /media/modjo/39a50e93-4c35-4598-a6b8-9627986411e5/yocto/seco/udoo-community-bsp
    $ MACHINE=udooneo source ./setup-environment build
    $ bitbake -ccleanall qemu-native

    $ bitbake qemu-native
     
    modjo and Andrea Rovai like this.
  13. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Work's like a charm :D thanks !!! build is running (task 1319 of 3332) ...
     
    Andrea Rovai and graugans like this.
  14. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Hi graugans, udooneo image builded with success on kubuntu 15.10. write the image to the sdcard and boot it :

    [​IMG]

    under just some test i made on it under ssh :
    modjo@Linux-corei5:/media/modjo/39a50e93-4c35-4598-a6b8-9627986411e5/yocto/seco/udoo-community-bsp/build/tmp/deploy/images/udooneo$ ssh root@192.168.1.18
    root@udooneo:~# ifconfig -a
    eth0 Link encap:Ethernet HWaddr 00:c0:08:8c:0f:79
    inet addr:192.168.1.18 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::2c0:8ff:fe8c:f79/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:173 errors:0 dropped:8 overruns:0 frame:0
    TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:54300 (53.0 KiB) TX bytes:10565 (10.3 KiB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:34 errors:0 dropped:0 overruns:0 frame:0
    TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:2380 (2.3 KiB) TX bytes:2380 (2.3 KiB)

    wlan0 Link encap:Ethernet HWaddr de:ad:be:ef:00:00
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    root@udooneo:~# uname -a
    Linux udooneo 3.14.56_1.0.0_ga-udooboard+g757d7c7 #1 SMP PREEMPT Tue Jan 19 19:04:14 CET 2016 armv7l GNU/Linux
    root@udooneo:~# hciconfig hci0 up
    root@udooneo:~# hciconfig
    hci0: Type: BR/EDR Bus: UART
    BD Address: 5C:31:3E:D5:6E:3F ACL MTU: 1021:6 SCO MTU: 180:4
    UP RUNNING
    RX bytes:1176 acl:0 sco:0 events:62 errors:0
    TX bytes:804 acl:0 sco:0 commands:62 errors:0

    root@udooneo:~# hcitool lescan
    LE Scan ...
    5C:31:3E:C2:61:C3 (unknown)
    5C:31:3E:C2:61:C3 Geonaute BLE HRM
    5C:31:3E:C2:61:C3 (unknown)
    5C:31:3E:C2:61:C3 Geonaute BLE HRM
    ^Croot@udooneo:~# iw wlan0 scan
    command failed: Network is down (-100)
    root@udooneo:~# ifconfig wlan0 up
    root@udooneo:~# iw wlan0 scan
    BSS c8:d3:a3:15:65:5a(on wlan0)
    TSF: 515105812775 usec (5d, 23:05:05)
    freq: 2437
    beacon interval: 100 TUs
    capability: ESS ShortSlotTime APSD (0x0c01)
    signal: -43.00 dBm
    last seen: 160 ms ago
    Information elements from Probe Response frame:
    SSID: wifi-bureau
    Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0
    DS Parameter set: channel 6
    ERP: Barker_Preamble_Mode
    Extended supported rates: 6.0 12.0 24.0 48.0
    HT capabilities:
    Capabilities: 0x116e
    HT20/HT40
    SM Power Save disabled
    RX HT20 SGI
    RX HT40 SGI
    RX STBC 1-stream
    Max AMSDU length: 3839 bytes
    DSSS/CCK HT40
    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
    Minimum RX AMPDU time spacing: 4 usec (0x05)
    HT RX MCS rate indexes supported: 0-7, 32
    HT TX MCS rate indexes are undefined
    HT operation:
    * primary channel: 6
    * secondary channel offset: below
    * STA channel width: any
    * RIFS: 0
    * HT protection: 20 MHz
    * non-GF present: 1
    * OBSS non-GF present: 0
    * dual beacon: 0
    * dual CTS protection: 0
    * STBC beacon: 0
    * L-SIG TXOP Prot: 0
    * PCO active: 0
    * PCO phase: 0
    Secondary Channel Offset: no secondary (0)
    WMM: * Parameter version 1
    * u-APSD
    * BE: CW 15-1023, AIFSN 3
    * BK: CW 15-1023, AIFSN 7
    * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
    * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
    BSS Load:
    * station count: 1
    * channel utilisation: 5/255
    * available admission capacity: 31250 [*32us]
    Overlapping BSS scan params:
    * passive dwell: 20 TUs
    * active dwell: 10 TUs
    * channel width trigger scan interval: 300 s
    * scan passive total per channel: 200 TUs
    * scan active total per channel: 20 TUs
    * BSS width channel transition delay factor: 5
    * OBSS Scan Activity Threshold: 0.25 %
    Extended capabilities: HT Information Exchange Supported
    Country: GB Environment: Indoor/Outdoor
    Channels [1 - 13] @ 16 dBm
    WPS: * Version: 1.0
    * Wi-Fi Protected Setup State: 2 (Configured)
    * Selected Registrar: 0x0
    * Response Type: 3 (AP)
    * UUID: d7bc3e58-7e95-a936-98aa-c8d3a315655b
    * Manufacturer: D-Link
    * Model: DIR-600
    * Model Number: DIR-600
    * Serial Number: 00000000
    * Primary Device Type: 6-0050f204-1
    * Device name: DIR-600
    * Config methods: PBC
    root@udooneo:~# echo 1 > /sys/class/misc/FreescaleAccelerometer/enable
    root@udooneo:~# cat /sys/class/misc/FreescaleAccelerometer/data
    1068,-336,-16480
    root@udooneo:~# echo 1 > /sys/class/misc/FreescaleGyroscope/enable
    root@udooneo:~# /sys/class/misc/FreescaleGyroscope/data
    -sh: /sys/class/misc/FreescaleGyroscope/data: Permission denied
    root@udooneo:~# cat /sys/class/misc/FreescaleGyroscope/data
    -96,-45,2
    root@udooneo:~# exit
    logout


    All work fine (like bluettooth LE, gyro ...) except my logitec keyboard (wireless). Do you make a test for the arduino side (m4 micro) ?
    Congratulation for your very good job, time and explanation to do it :)

    Next step Qt5 !!!
     
  15. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Graugans, could you guive me some help to build an image with qt5.51 ? To do this, in my source i add the meta qt5 :

    git clone -b jethro https://github.com/meta-qt5/meta-qt5.git

    after that i edit the bblayer.conf to add qt5 (and ruby), this is my file :

    LCONF_VERSION = "6"

    BBPATH = "${TOPDIR}"
    BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"

    BBFILES ?= ""
    BBLAYERS = " \
    ${BSPDIR}/sources/poky/meta \
    ${BSPDIR}/sources/poky/meta-yocto \
    \
    ${BSPDIR}/sources/meta-openembedded/meta-oe \
    ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
    ${BSPDIR}/sources/meta-openembedded/meta-python \
    ${BSPDIR}/sources/meta-openembedded/meta-networking \
    ${BSPDIR}/sources/meta-openembedded/meta-ruby \
    \
    ${BSPDIR}/sources/meta-fsl-arm \
    ${BSPDIR}/sources/meta-fsl-arm-extra \
    ${BSPDIR}/sources/meta-udoo \
    ${BSPDIR}/sources/meta-fsl-demos \
    ##meta qt5
    ${BSPDIR}/sources/meta-openembedded \
    ${BSPDIR}/sources/meta-qt5 \
    "

    Do you think i need to add something ?
    I just want to add qt5.5.1 (full) to your image, to do this can i launch :

    MACHINE=udooneo bitbake fsl-image-multimedia-full

    edit :
    do you think i need to add gstreamer, vivante header and all qt modules on local.conf like in this wiki :
    http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard
     
    Last edited: Jan 19, 2016
  16. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Thanks Christian!
     
  17. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    This wandboard article is pretty what I would expect what is needed. Those development stuff is not needed on the image when you do cross development. When you plan to hack on the device you'll need it. I'll prepare an image in meta-udoo
     
  18. graugans

    graugans Administrator Staff Member

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

    graugans Administrator Staff Member

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

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Whaou, you are the best !!!

    i did this :
    $ PATH=${PATH}:~/bin
    $ repo sync -->this add your file
    $ MACHINE=udooneo source ./setup-environment build
    $ MACHINE=udooneo bitbake udoo-image-qt5


    --> build is running (task 1103 of 5480) ... I let you know the result

    For information my bblayers.conf, i added the lines in blue.

    LCONF_VERSION = "6"

    BBPATH = "${TOPDIR}"
    BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"

    BBFILES ?= ""
    BBLAYERS = " \
    ${BSPDIR}/sources/poky/meta \
    ${BSPDIR}/sources/poky/meta-yocto \
    \
    ${BSPDIR}/sources/meta-openembedded/meta-oe \
    ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
    ${BSPDIR}/sources/meta-openembedded/meta-python \
    ${BSPDIR}/sources/meta-openembedded/meta-networking \

    ${BSPDIR}/sources/meta-openembedded/meta-ruby \
    \
    ${BSPDIR}/sources/meta-fsl-arm \
    ${BSPDIR}/sources/meta-fsl-arm-extra \
    ${BSPDIR}/sources/meta-udoo \

    ${BSPDIR}/sources/meta-fsl-demos \
    ${BSPDIR}/sources/meta-qt5 \

    "
     

Share This Page