Readingkernel space memory using the UIO driver

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

Readingkernel space memory using the UIO driver

458 Views
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 Kudos
Reply
2 Replies

417 Views
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 Kudos
Reply

441 Views
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 Kudos
Reply