I cant get the linux side of yocto rpmsg example for imx6sx

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I cant get the linux side of yocto rpmsg example for imx6sx

8,844 Views
aaronpadilla
Contributor II

Hi,

I am trying to make work the example ping-pong rpmsg, the compilation:

bitbake core-image-minimal

gives not the module that should be in

/lib/modules/3.14.52-1.1.0_ga+g5f6f0a5/kernel/drivers/rpmsg

So, looking for an answer I found someone that says that you should add "kernel-modules" to local.conf

so I did that:

$ MACHINE=imx6sxsabresd source fsl-setup-release.sh -b build

I added the next line to file ~/build/conf/local.conf :

IMAGE_INSTALL_append = "kernel-modules"

and next:

$ cd build

$ bitbake core-image-minimal

But the modules are not in the folder, could you advise?

by the way, does it means where in the file local.conf add the line? I have added this on top, the very fist line

I need understand how it works, so, where can I get the source code of imx_rpmsg_pingpond.ko?

It's a little bit urgent

thanks in advance.

Aaron Padilla

Labels (1)
Tags (4)
9 Replies

5,507 Views
tcmichals
Contributor III

If you want several examples of rpmsg for IMX6SX

https://github.com/tcmichals/rpmsg-neo

0 Kudos
Reply

5,507 Views
weigao
Contributor II

Hi Aaron,

   Have you solve the problem? Hopeful you have done it. And also, I attach the operation step by step in below:

  $ mkdir fsl-release-bsp

  $ cd fsl-release-bsp

  $ repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.52-1.1.0_ga

  $ repo sync

  $ DISTRO=fsl-imx-x11 MACHINE=imx6sxsabresd source fsl-setup-release.sh -b build-x11

  $ bitbake fsl-image-gui

After that, you can check the RPMSG source code in below path:

pastedImage_0.png

And then, in your build directory, execute the below operations:

$ bitbake linux-imx -c menuconfig

pastedImage_0.png

Find the path Device Drivers -> Rpmsg drivers -> RPMSG bus driver -> select the tty driver, and then save it.

then, execute the below:

$ bitbake linux-imx -c compile -f

$ bitbake linux-imx -c deploy

after then, you can get the new zImage and ext3 files to your SD card,( I assume that you can do that)...

Open the SSH console, such as 'Putty' or 'Secure-CRT', then power on your development kit and login in 'root' identity.

For A9 console, you can find the RPMSG driver in below:

pastedImage_1.png

and then execute 'cd rpmsg" to enter into it,  insmod imx_rpmsg_tty.ko, then you will find the 'ttyRPMSG" in /dev/ directory, shown below:

pastedImage_2.png

lastly, I am sure you can do the follow steps in person.

Best wishes

Wei

5,507 Views
aaronpadilla
Contributor II

Dear Wei,

Thanks for your attention, with your last answer is very clear and it works!

Now I am trying to debug by jtag the M4 and it's not working, I am going to start a new post

See you

Best regards

0 Kudos
Reply

5,507 Views
weigao
Contributor II

Hi Aaron,

   For my machine, I follow the steps as shown below:

  $ mkdir fsl-release-bsp

  $ cd fsl-release-bsp

  $ repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.52-1.1.0_ga

  $ repo sync

  $ DISTRO=fsl-imx-x11 MACHINE=imx6sxsabresd source fsl-setup-release.sh -b build-x11

  $ bitbake fsl-image-gui

  after above operation, you can get 'rpmsg' files in the driver files just like below path.

pastedImage_0.png

if you can not get what you wanted, try to execute the below three operations.
  $ bitbake linux-imx -c menuconfig              //menuconfig
  $ bitbake linux-imx -c compile -f                 //compile
  $ bitbake linux-imx -c deploy                      //deploy

Regards

Wei

0 Kudos
Reply

5,507 Views
weigao
Contributor II

Dear Aaron,

    I  used two of steps to build the core image, which are "DISTRO=fsl-imx-x11 MACHINE=imx6sxsabresd source fsl-setup-release.sh -b build-x11" and "bitbake fsl-image-gui", after that, I can find the RPMSG source code path as shown below:

pastedImage_0.png

   for the qt5 image, I think it should have included the same files in qt5 image, try to find the path in your machine.

   for your second question, it is possible, but I have no idea right now.

Regards

Wei

0 Kudos
Reply

5,504 Views
aaronpadilla
Contributor II

Dear Wei,

The only way to get my driver is based in the discussion below:

https://community.freescale.com/thread/376369#comment-582975

steps:

To create the folder build for bitbake:

MACHINE=imx6sxsabresd source fsl-setup-release.sh -b build

To activate the rpmsg drivers and demos:

bitbake linux-imx -c menuconfig

and then to obtain the sdcard image:

bitbake fsl-image-gui

for the last step I have tried bitbake linux-imx as suggested in the thread of reference but that gives only a zImage and the modules.

I am using the version 3.14.52-r0 like you I dont know why we have unequal results.

Regards

0 Kudos
Reply

5,507 Views
weigao
Contributor II

Hi Aaron,

  To be fare, we are the same situation at the beging, I try to bitbake the 'core-image-minimal',however, there is no source c file in rpmsg driver (such as drivers/rpmsg/).

  Therefore, you can bitbake the other cores,such as 'bitbake fsl-image-gui',which include the rpmsg c files which you will be wanted. By the way, the 'core-image-minial' is a small image that only allows a device to boot.

Regards

Wei

0 Kudos
Reply

5,507 Views
igorpadykov
NXP Employee
NXP Employee

Hi Aaron

sources can be found on link

linux-2.6-imx.git - Freescale i.MX Linux Tree

for obtaining sources may be recommended to try more full

images described in attached Yocto Guide Table 1. Freescale Yocto

project images.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

5,507 Views
aaronpadilla
Contributor II

Thanks for the prompt answer, the source code will be very useful

Yesterday I have compiled the full image fsl-image-qt5 but the module rpmsg is not there could you advise?

I am thinking about take the source code of module, compile it and then attach it as a mountable module, do you think that it is possible?

Best regards.

Aaron Padilla

0 Kudos
Reply