cancel
Showing results for 
Search instead for 
Did you mean: 

How to bitbake rpsmg-sdb-mod?

HMasu.1
Senior

I want to exchange large data buffers with the coprocessor

I have tried following wiki page.

https://wiki.st.com/stm32mpu-ecosystem-v1/wiki/How_to_exchange_large_data_buffers_with_the_coprocessor_-_principle#User_space_interface

I tried to bitbake, but I have an error.

= Steps =​

$ cd [my Distribution Package Directory Path]/layers/meta-st/

$ git clone https://github.com/STMicroelectronics/meta-st-stm32mpu-app-logicanalyser.git -b dunfell​

$ DISTRO=openstlinux-weston MACHINE=stm32mp1-demo-logicanalyser source [my Distribution Package Directory Path]/layers/meta-st/scripts/envsetup.sh

$ bitbake st-image-weston

= Error =

ERROR: Layer stm-st-stm32mp-app-logicanalyzer is not compatible with the core layer which only supports these series

​Are there missing something in my steps?

Best Regards.

H Masuda

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @HMasu.1​ 

Ok fine if you succeed to compile.

Regarding the /dev/rpmsg_sdb, it is created when the kernle module stm32_rpmsg_sdb is probed, and this is not done automatically.

Please try:

insmod /lib/modules/$(uname -r)/kernel/drivers/misc/stm32_rpmsg_sdb.ko

Best regards

Jean-Philippe

View solution in original post

6 REPLIES 6
JeanPhilippeR
ST Employee

Hi @HMasu.1​ 

Are you using dunfell or thus yocto version?

Best regards

Jean-Philippe

Hi, @JeanPhilippeR​ ,

Thank you for your reply.

I'm using "thud" yocto version.

Does ​meta-st-stm32mpu-app-logicanalyser not correspond to "thud" yocto version?

I will try with "dunfell" yocto version.

Best Regards.

H Masuda

Hi, @JeanPhilippeR (ST Employee)​ ,

I tried with "dunfell" yocto version and could bitbake it including meta-st-stm32mpu-app-logicanalyser.

However, I can not find /dev/rpmsg_sdb sysfs when started on STM32MP157C-DK2.

How can I create /dev/rpmsg_sdb sysfs?

​Are there missing something in my steps?

And, are there any sample source code of Cortex-M4 firmware to exchange large data buffers with Cotex-A7?

Best Regards.

H Masuda

Hi @HMasu.1​ 

You can see in the git tree that two branches exist, one for thud, and one for dunfell.

With the git clone command you previously mention, you select dunfell one:

$ git clone https://github.com/STMicroelectronics/meta-st-stm32mpu-app-logicanalyser.git -b dunfell​

You can then set "-b thud" to select thud branch.

BR

Jean-Philippe

Hi @HMasu.1​ 

Ok fine if you succeed to compile.

Regarding the /dev/rpmsg_sdb, it is created when the kernle module stm32_rpmsg_sdb is probed, and this is not done automatically.

Please try:

insmod /lib/modules/$(uname -r)/kernel/drivers/misc/stm32_rpmsg_sdb.ko

Best regards

Jean-Philippe

Hi, @JeanPhilippeR​ 

Thank you for your reply.

I tried the way you taught and was able to load the rpmsg_sdb.ko module.

And I was able to run the logic analyzer sample.

Thank you for your polite reply.

​H Masuda