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
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:
And then, in your build directory, execute the below operations:
$ bitbake linux-imx -c menuconfig
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:
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:
lastly, I am sure you can do the follow steps in person.
Best wishes
Wei
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
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.
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
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:
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
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
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
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!
-----------------------------------------------------------------------------------------------------------------------
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