Readingkernel space memory using the UIO driver

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Readingkernel space memory using the UIO driver

951件の閲覧回数
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 返答(返信)

910件の閲覧回数
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 件の賞賛
返信

934件の閲覧回数
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 件の賞賛
返信