Readingkernel space memory using the UIO driver

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Readingkernel space memory using the UIO driver

483 次查看
ababatola
Contributor III

Hi,

I am working on communicaiton between the MPU and MCU of the IMX8MP and I want to send data to the MPU from the MCU and the read this data from the user space using the UIO driver.

I tried creating a node in the device tree but the node is not listed in the 

      /sys/class/uio/

The device tree entry is below

        shared_memory@55000000{
        compatible = "generic-uio";
        status = "okay";
        reg = < 0x55000000 0x8000 >;
        interrupts = < 0 88 0 >;
        interrupt-parent = <&gic>;

What have I left undone or is there an example for this?

Thanks

0 项奖励
回复
2 回复数

442 次查看
ababatola
Contributor III

Hi,

The MCU and the MPU refers to the core M7 in and the A53 processor in the IMX8MP.

I want to write a user space application that would access the shared memory using the userspace I/O.

Thanks

0 项奖励
回复

466 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

 

For MCU you refer to an external MCU? because the MX8MP has the M7 inside.

It depend how to connect your MCU is it from SPI or UART but example are in the device tree of the Linux BSP.

Regards

0 项奖励
回复