OpenEmbedded/Yocto for UDOO Boards

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

  1. Retasor

    Retasor New Member

    Joined:
    Dec 26, 2016
    Messages:
    2
    Likes Received:
    0
    Hello @graugans that sounds great. Can you tell something about the LVDS output or is that connected to the Morty branch?
     
  2. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    382
    Likes Received:
    116
    Hi Retasor, about the lvds output, i didn't work on it for the moment (i'm on goodix touchscreen adaptation for the moment ...). On a62 quad it work fine but i don't know why it didn't work on solo/dual ! I think it's a problem with kernel (device tree ?) but saw nothing that can resolve it for the moment. I have a yocto image with krogoth branch that have qt5.7 working. For that you need to use master branch of meta-qt5, add font (ttf-dejavu to your local.conf) in your layer and this var
    Code:
    export QT_QPA_FONTDIR=/usr/share/fonts/truetype
    on qt5env.sh. You can look my repo (forked from Graugans) to see how i did this. But the best way is to wait Graugans update for this ...
     
  3. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    318
    Likes Received:
    135
    Today I made good progress on Morty, everything is pushed to github already. It compiles for the Quad. I'll give it a try tomorrow. There are some things different with Morty the build instructions need an update.

    Gesendet von meinem FP2 mit Tapatalk
     
    cyrilf and modjo like this.
  4. cyrilf

    cyrilf Active Member

    Joined:
    Feb 19, 2015
    Messages:
    155
    Likes Received:
    43
    Maybe this could be the right opportunity to move forward to the last version of the kernel?

    Here are the SPI/CAN patches for the UDOO Quad (tested):

    0001-Add-FlexCAN-support.patch
    Code:
    From fddf66db35210b3e131a4e69c34ecb77a24bf91e Mon Sep 17 00:00:00 2001
    From: Cyril Franceschini <cyril.franceschini@eeproperty.ch>
    Date: Fri, 16 Dec 2016 11:34:52 +0100
    Subject: [meta-udoo][PATCH] Add FlexCAN support
    
    Signed-off-by: Cyril Franceschini <cyril.franceschini@eeproperty.ch>
    ---
     arch/arm/boot/dts/imx6qdl-udoo-externalpins.dtsi | 6 +++---
     1 file changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/arch/arm/boot/dts/imx6qdl-udoo-externalpins.dtsi b/arch/arm/boot/dts/imx6qdl-udoo-externalpins.dtsi
    index b45b5eb..34b5a3b 100644
    --- a/arch/arm/boot/dts/imx6qdl-udoo-externalpins.dtsi
    +++ b/arch/arm/boot/dts/imx6qdl-udoo-externalpins.dtsi
    @@ -66,8 +66,8 @@
                 MX6QDL_PAD_EIM_CS1__GPIO2_IO24       0x80000000  // {{external-gpio-51}}
                 MX6QDL_PAD_EIM_CS0__GPIO2_IO23       0x80000000  // {{external-gpio-52}}
                 MX6QDL_PAD_EIM_D24__GPIO3_IO24       0x80000000  // {{external-gpio-53}}
    -            MX6QDL_PAD_GPIO_8__GPIO1_IO08        0x80000000  // {{external-gpio-54}}
    -            MX6QDL_PAD_GPIO_7__GPIO1_IO07        0x80000000  // {{external-gpio-55}}
    +            //MX6QDL_PAD_GPIO_8__GPIO1_IO08        0x80000000  // {{external-gpio-54}}
    +            //MX6QDL_PAD_GPIO_7__GPIO1_IO07        0x80000000  // {{external-gpio-55}}
                 >;
             };
    @@ -161,7 +161,7 @@
     &flexcan1 {
         pinctrl-names = "default";
         pinctrl-0 = <&pinctrl_flexcan1>;
    -    status = "disabled";
    +    status = "okay";
     };
     
     &usdhc1 {
    --
    2.7.4
    0002-Add-ECSPI1-and-ECSPI2-support.patch
    Code:
    From af288ce3e0a891d5ddbd7b245c8c662af198d47d Mon Sep 17 00:00:00 2001
    From: Cyril Franceschini <cyril.franceschini@eeproperty.ch>
    Date: Fri, 16 Dec 2016 11:55:53 +0100
    Subject: [meta-udoo][PATCH] Add ECSPI1 and ECSPI2 support
    
    Signed-off-by: Cyril Franceschini <cyril.franceschini@eeproperty.ch>
    ---
     arch/arm/boot/dts/imx6qdl-udoo-externalpins.dtsi | 20 ++++++++++----------
     1 file changed, 10 insertions(+), 10 deletions(-)
    
    diff --git a/arch/arm/boot/dts/imx6qdl-udoo-externalpins.dtsi b/arch/arm/boot/dts/imx6qdl-udoo-externalpins.dtsi
    index 34b5a3b..cb9b1f4 100644
    --- a/arch/arm/boot/dts/imx6qdl-udoo-externalpins.dtsi
    +++ b/arch/arm/boot/dts/imx6qdl-udoo-externalpins.dtsi
    @@ -46,10 +46,10 @@
                 MX6QDL_PAD_DISP0_DAT15__GPIO5_IO09   0x80000000  // {{external-gpio-31}}
                 MX6QDL_PAD_DISP0_DAT16__GPIO5_IO10   0x80000000  // {{external-gpio-32}}
                 MX6QDL_PAD_DISP0_DAT17__GPIO5_IO11   0x80000000  // {{external-gpio-33}}
    -            MX6QDL_PAD_DISP0_DAT18__GPIO5_IO12   0x80000000  // {{external-gpio-34}}
    +            //MX6QDL_PAD_DISP0_DAT18__GPIO5_IO12   0x80000000  // {{external-gpio-34}}
                 MX6QDL_PAD_DISP0_DAT19__GPIO5_IO13   0x80000000  // {{external-gpio-35}}
    -            MX6QDL_PAD_DISP0_DAT20__GPIO5_IO14   0x80000000  // {{external-gpio-36}}
    -            MX6QDL_PAD_DISP0_DAT21__GPIO5_IO15   0x80000000  // {{external-gpio-37}}
    +            //MX6QDL_PAD_DISP0_DAT20__GPIO5_IO14   0x80000000  // {{external-gpio-36}}
    +            //MX6QDL_PAD_DISP0_DAT21__GPIO5_IO15   0x80000000  // {{external-gpio-37}}
                 MX6QDL_PAD_EIM_A16__GPIO2_IO22       0x80000000  // {{external-gpio-38}}
                 MX6QDL_PAD_GPIO_18__GPIO7_IO13       0x80000000  // {{external-gpio-39}} (KEY_VOL_UP)
                 MX6QDL_PAD_NANDF_D0__GPIO2_IO00      0x80000000  // {{external-gpio-40}} (HOME)
    @@ -57,14 +57,14 @@
                 MX6QDL_PAD_NANDF_D2__GPIO2_IO02      0x80000000  // {{external-gpio-42}} (BACK)
                 MX6QDL_PAD_NANDF_D1__GPIO2_IO01      0x80000000  // {{external-gpio-43}} (MENU)
                 MX6QDL_PAD_GPIO_19__GPIO4_IO05       0x80000000  // {{external-gpio-44}} (KEY_VOL_DOWN)
    -            MX6QDL_PAD_DISP0_DAT22__GPIO5_IO16   0x80000000  // {{external-gpio-45}}
    -            MX6QDL_PAD_DISP0_DAT23__GPIO5_IO17   0x80000000  // {{external-gpio-46}}
    +            //MX6QDL_PAD_DISP0_DAT22__GPIO5_IO16   0x80000000  // {{external-gpio-45}}
    +            //MX6QDL_PAD_DISP0_DAT23__GPIO5_IO17   0x80000000  // {{external-gpio-46}}
                 MX6QDL_PAD_EIM_D25__GPIO3_IO25       0x80000000  // {{external-gpio-47}}
                 MX6QDL_PAD_KEY_ROW1__GPIO4_IO09      0x80000000  // {{external-gpio-48}}
                 MX6QDL_PAD_KEY_COL1__GPIO4_IO08      0x80000000  // {{external-gpio-49}}
    -            MX6QDL_PAD_EIM_OE__GPIO2_IO25        0x80000000  // {{external-gpio-50}}
    -            MX6QDL_PAD_EIM_CS1__GPIO2_IO24       0x80000000  // {{external-gpio-51}}
    -            MX6QDL_PAD_EIM_CS0__GPIO2_IO23       0x80000000  // {{external-gpio-52}}
    +            //MX6QDL_PAD_EIM_OE__GPIO2_IO25        0x80000000  // {{external-gpio-50}}
    +            //MX6QDL_PAD_EIM_CS1__GPIO2_IO24       0x80000000  // {{external-gpio-51}}
    +            //MX6QDL_PAD_EIM_CS0__GPIO2_IO23       0x80000000  // {{external-gpio-52}}
                 MX6QDL_PAD_EIM_D24__GPIO3_IO24       0x80000000  // {{external-gpio-53}}
                 //MX6QDL_PAD_GPIO_8__GPIO1_IO08        0x80000000  // {{external-gpio-54}}
                 //MX6QDL_PAD_GPIO_7__GPIO1_IO07        0x80000000  // {{external-gpio-55}}
    @@ -228,7 +228,7 @@
         cs-gpios = <&gpio5 17 0>;
         pinctrl-0 = <&pinctrl_ecspi1>;
         pinctrl-names = "default";
    -   status = "disabled";
    +   status = "okay";
         spidev0: spi@0 {
             compatible = "spidev";
    @@ -242,7 +242,7 @@
         cs-gpios = <&gpio5 12 0>;
         pinctrl-0 = <&pinctrl_ecspi2>;
         pinctrl-names = "default";
    -   status = "disabled";
    +   status = "okay";
         spidev1: spi@0 {
             compatible = "spidev";
    --
    2.7.4
    You must enable :
    Code:
    CONFIG_SPI_SPIDEV=m
    in your defconfig file.

    linux-udooboard_3.14.56.bb
    Code:
    ...
    SRC_URI_append_udooqdl = "file://0010-default-bpp-to-16.patch \
        ${@base_conditional("ENABLE_CAN_BUS", "1", "file://0001-Add-FlexCAN-support.patch", "", d)} \
        ${@base_conditional("ENABLE_SPI_BUS", "1", "file://0002-Add-ECSPI1-and-ECSPI2-support.patch", "", d)} \
    "
    ...
     
    graugans and modjo like this.
  5. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    382
    Likes Received:
    116
    @graugans , if i understand, with dts overlay we can use the same image (same sd card) for all the card (neo, quad, sa62) ?
     
  6. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    318
    Likes Received:
    135
    The Device-Tree Overlay provides an mechanism to patch the device-tree during boottime (runtime). My focus is primary for easier selection of CAN / SPI etc. With the U-Boot used in morty it is already possible to use device-tree overlays.
     
    modjo likes this.

Share This Page