From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: RPmsg in pico-imx7d using mainline linux (5.6.xx) and Yocto dunfell To: meta-freescale@lists.yoctoproject.org From: "Neuber Sousa" X-Originating-Location: Franca, Sao Paulo, BR (191.178.85.134) X-Originating-Platform: Linux Chrome 91 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Sun, 15 Aug 2021 18:50:28 -0700 Message-ID: Content-Type: multipart/alternative; boundary="QeMJ0EezCh3Wfhly7M3t" --QeMJ0EezCh3Wfhly7M3t Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I have been interested in communicating between the a7 and the m4 of my imx= 7d-pico using RPmsg for a long time. Today I found that this tutorial:https://www.youtube.com/watch?v=3D4zMyjaEg= j2U&t=3D1182s I don=E2=80=99t use mainline linux. I stay using kernel 5.6.xx with libgpio= d 1.5 Using libgpiod I want to press a controlled button on a7 and flash an LED (= which is waiting for this command) on m4 *I was checking the issue link below and I have 2 questions below:* *https://community.nxp.com/t5/i-MX-Processors/I-cant-get-the-linux-side-of-= yocto-rpmsg-example-for-imx6sx/m-p/490383* 1 - How can I adapt this project: https://hub.mender.io/t/technexion-pico-p= i-imx7/136/6 ( https://hub.mender.io/t/technexion-pico-pi-imx7/136/61 ) to the nxp forum project (link above) for me to get the following files: mu= .c, imx_rpmsg.c, imx_rpmsg_tty.c and/or imx_rpmsg_tty.ko 2 - What is the best way to do RPmsg communication between a7 and m4 using = Yocto on a7? --QeMJ0EezCh3Wfhly7M3t Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

I have been interested in communicating between the= a7 and the m4 of my imx7d-pico using RPmsg for a long time.

Today I found that this tutorial:https://www.youtub= e.com/watch?v=3D4zMyjaEgj2U&t=3D1182s

I don’t use mainline linux. I stay using kern= el 5.6.xx with libgpiod 1.5

Using libgpiod I want to press a controlled button = on a7 and flash an LED (which is waiting for this command) on m4

 

I was checking the issue link bel= ow and I have 2 questions below:

= https://community.nxp.com/t5/i-MX-Processors/I-cant-get-the-linux-s= ide-of-yocto-rpmsg-example-for-imx6sx/m-p/490383

1 - How can I adapt this project:https://hub.mender.io/t/technexion-pico-pi-imx= 7/136/6 

to the nxp forum project (link a= bove) for me to get the following files: mu.c, imx_rpmsg.c, imx_rpmsg_tty.c= and/or imx_rpmsg_tty.ko

2 - What is the best way to do RPmsg communication between a7 an= d m4 using Yocto on a7? --QeMJ0EezCh3Wfhly7M3t-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) by mx.groups.io with SMTP id smtpd.web08.23451.1629116931865547960 for ; Mon, 16 Aug 2021 05:28:52 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DosFo6ro; spf=pass (domain: gmail.com, ip: 209.85.167.42, mailfrom: festevam@gmail.com) Received: by mail-lf1-f42.google.com with SMTP id y34so34025654lfa.8 for ; Mon, 16 Aug 2021 05:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=nrr2EjKp09XIgGMgFArNbLvPIDC0+Wc+KQZHUueyjJ4=; b=DosFo6roxEd+/sdALY5HEXnFTfgcy9rQlaJqa50BE93k4txlyNDPIS4MoO+G9vaVfk miHUhbSAymYOWmkalXQcf6l5m1sMYsl/hcYdv2lN37Qv0TWzb1pN8Sd2uBPnJyUjig5v VyWt0SxFDC2G0p9NVVMJLmLOhy8e3URHyXIrAyMThvsb7N3mze3xVjKRkXiJ7pOH9LBs Ru8kvk+XLO+kO80d61eAxml0OT2QO63yI3J8wWDC9prtY2t5jmrT/Z5XJkaNWDiNSvzA TEw0cJP7tR7LbI3wAGxvUMwQPLyXmfrzBlcOxHdGxlstBgqLPRNwfhwVS9hDCrJ/+OX4 rDlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=nrr2EjKp09XIgGMgFArNbLvPIDC0+Wc+KQZHUueyjJ4=; b=pwhKRK9QBhUFJOqhlq4uljbEsgIkcfiyFGeIzGGoJ6u+n1qtXbY7YqUaE1gc5nMM0i n7e0Ep1ELw2IJ8TwtyGIELBv/R6US+LKQTHlZQIJPEkCpcfYSPOYH9ZZ9WXbCyxmVRp9 S6Jk7JQrFZJPAYPgCFnt9WhC6vnwkz/Q7+EBHvFl0I5XE8o4LJJ5T4EGm/dchws6ObBq sAb0iNMOeo0bR3DLn0uwhwjtsKfjtaJSPS65t4sRn6FA1XTxoJ50OFipJOhWzA0so0H1 7HdzUvo36W0n1ouPl6h8rqkb9d0B5GrpiE26cUdgxdc2fgPF7E+9Uc/o1s99C/eY44GT /AsQ== X-Gm-Message-State: AOAM531hTQVgn3YvXd0XM6OkX9qovStb7M4iDYLorXTlv7cHRYTpaiJO ZekrpQtvLZfMsabMbInycEebgbGGV4+ayKoiOaw= X-Google-Smtp-Source: ABdhPJxk92zmdZCYWVNpKxf3pf+d7tJm07kHpgB7SAu1WKhYQDHCpOVBWKoaQDjrNXkess45TjPR10757JXDcKaL5mA= X-Received: by 2002:a05:6512:3996:: with SMTP id j22mr12340023lfu.295.1629116929731; Mon, 16 Aug 2021 05:28:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Fabio Estevam" Date: Mon, 16 Aug 2021 09:28:38 -0300 Message-ID: Subject: Re: [meta-freescale] RPmsg in pico-imx7d using mainline linux (5.6.xx) and Yocto dunfell To: Neuber Sousa Cc: meta-freescale@lists.yoctoproject.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Neuber, On Sun, Aug 15, 2021 at 10:50 PM Neuber Sousa wrote: > > I have been interested in communicating between the a7 and the m4 of my i= mx7d-pico using RPmsg for a long time. > > Today I found that this tutorial:https://www.youtube.com/watch?v=3D4zMyja= Egj2U&t=3D1182s > > I don=E2=80=99t use mainline linux. I stay using kernel 5.6.xx with libgp= iod 1.5 5.6 is an unsupported kernel version. It is not a good idea to develop using such an unsupported kernel version. Please see the supported ones at https://www.kernel.org/ > Using libgpiod I want to press a controlled button on a7 and flash an LED= (which is waiting for this command) on m4 > > > > I was checking the issue link below and I have 2 questions below: > > https://community.nxp.com/t5/i-MX-Processors/I-cant-get-the-linux-side-of= -yocto-rpmsg-example-for-imx6sx/m-p/490383 > > 1 - How can I adapt this project:https://hub.mender.io/t/technexion-pico-= pi-imx7/136/6 > > to the nxp forum project (link above) for me to get the following files: = mu.c, imx_rpmsg.c, imx_rpmsg_tty.c and/or imx_rpmsg_tty.ko These drivers only exist on the NXP vendor kernel. Mainline uses drivers/remoteproc/imx_rproc.c instead. From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by mx.groups.io with SMTP id smtpd.web10.40562.1629212994692636221 for ; Tue, 17 Aug 2021 08:09:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uiWylR71; spf=pass (domain: gmail.com, ip: 209.85.167.49, mailfrom: festevam@gmail.com) Received: by mail-lf1-f49.google.com with SMTP id i9so21254181lfg.10 for ; Tue, 17 Aug 2021 08:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Uw/5dtdodFiIzQdpescINF0FM6brFA8IsWIzi2j3hr0=; b=uiWylR71wGPp0+ImbewPpcohMa24YeAjD81LvwX5M5GwbhKNd0kxAjiv+63cuZJJlP Cm2nW//Zs1qj0T3lY4bSp8JXs9SANPyCOUYsKdyaXp8YYpVDFytIJXxOvFZj0CGMDJgB aemcJMASeyUPr2YawVo2A2pRliPHCV5/DdMuiO0EkkfS0NyHz0d7lcvVX44PayClOQAk FTs4v1RMGa89Qt9z2tBs1RYyjbdfl1/e6T/nKyaZu/1q4f1CAglkjSnxwrm5IVms9wX7 rLo6y3h5/OTM/4LPaGNaJGWa2ahmLZfkUue3LzU+BR76stp3PEE/MsLlKlEZZmG/yoBC 89Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Uw/5dtdodFiIzQdpescINF0FM6brFA8IsWIzi2j3hr0=; b=n24sW6ZuqG0RzjxUfPyrF38BOgLVw9Tl0VVS3/vYgPLrNez1hQuekJ99CTJpsllYoC hGGxZAF1hfbNGunXXEw9gQpCnRpIfTYu8dGC4OlYjlsd/VFg05XMacj2ZjTtHNNnfwj+ 0pxG3yStUutTtc44n7+FWqnzNscPOuBgxTsuwscVsLcIWdcHuz4C2XvWL5Pm1WbGb8LV VOb4iRPQstXqEPP8uaFWwELb6/PwyJKGUub9SNc9e5KEA2odllMKGd0jbpg4LuBI33/8 B9ZTaBRnKZ41lQYraQ1m68bclnXJ0hSTz7Umj3BTEx0AqOdLgtX/V5k9zLjmT1Mr4leU 7QvA== X-Gm-Message-State: AOAM533tJ1poTvwywthpCGoumnw76+PZaWc3Dqbg4Qh5zaPsaK7otZXI InpNvLq1+Stw19qtG4V5rQV659eFoMkB9UJjqOk= X-Google-Smtp-Source: ABdhPJxTIlREHCDfTHTB9YFMrt3C5qGwZXROvY4QEynkfa9uPSbAubW1jQD/3ouc6iWM7EgxGrx7gCeEjjGkDh4Dh+A= X-Received: by 2002:ac2:5b46:: with SMTP id i6mr2672242lfp.500.1629212992877; Tue, 17 Aug 2021 08:09:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Fabio Estevam" Date: Tue, 17 Aug 2021 12:09:41 -0300 Message-ID: Subject: Re: [meta-freescale] RPmsg in pico-imx7d using mainline linux (5.6.xx) and Yocto dunfell To: Neuber Sousa Cc: meta-freescale@lists.yoctoproject.org Content-Type: text/plain; charset="UTF-8" Hi Neuber, I think you forgot to hit reply-all. On Mon, Aug 16, 2021 at 10:55 AM Neuber Sousa wrote: > > Hi Fabio, > > In this video: https://mail.google.com/mail/u/0/?tab=rm&ogbl#all/FMfcgzGkZsrTzPBfwTMTnDdMWlJRQlCW > > at 23 minutes and 17 seconds, Diego Suero uses the following files: > > ../arch/arm/mach-imx/mu.c > ../drivers/rpmsg/imx_rpmsg.c > ../drivers/rpmsg/imx_rpmsg_tty.c > > What are the equivalent files (on mainline linux, one of them seems to be: ../drivers/remoteproc/imx_rproc.c) > so that I can implement RPmsg on mainline linux/device tree correctly? The mailbox driver is at drivers/mailbox/imx-mailbox.c in mainline. > > Or is the approach to mainline linux (RPmsg) in imx7d-pico different? > > > i.e.:I haven't had any problems with dunfell using kernel 5.6.xx at the moment. Sure, feel free to use it. It is just that you will not get any support from the community using this version. Personally, I haven't used the remoteproc driver in mainline, so I can't help you.