cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Julian
Visitor
Visitor
567 Views
Registered: ‎03-24-2020

How to use mailbox ip on linux?

We often use mailboxes between microblaze and zynq or between microblaze and microblaze when using freertos or baremetal.

Now we need to use the mailbox on linux, but we did not find the mailbox device in the /dev. How do I use it?

Is it necessary to use rpmsg and other openamp functions in Linux?

 

4 Replies
Julian
Visitor
Visitor
493 Views
Registered: ‎03-24-2020

No linux driver for MB?

 

 

0 Kudos
Reply
ksloatdesignlinx
Explorer
Explorer
465 Views
Registered: ‎02-24-2020

Looking at the Linux source tree, it does not appear so. Even if there was, I don't think it would show up in /dev like a char device. I believe mailbox controller drivers are intended to be manipulated by other client drivers within the kernel:

https://www.kernel.org/doc/Documentation/mailbox.txt

 

Looking at the datasheet, the device seems simple enough that you can probably memory map the register space via UIO or similar and write a simple userspace driver application to interface to it.

Ken Sloat - Embedded Software Engineer
https://www.designlinxhs.com
0 Kudos
Reply
stephenm
Moderator
Moderator
412 Views
Registered: ‎09-12-2007

I have used the UIO in the past for this

0 Kudos
Reply
JFP
Visitor
Visitor
237 Views
Registered: ‎11-27-2020

Hi @stephenm 

Could you go deeper into that approach? or provide a reference? In my mind openAMP should be the choice (because it's the only one I can picture), so I am quite interested on yours.

Thanks,
Jose.

0 Kudos
Reply