Skip to content

GAnthony/omap-test-mailbox

 
 

Repository files navigation

Simple loopback message test for mailbox.

**NOTE**  DT Kernel patch required.

Adapted from a test program written by Kevin Hilman:
https://github.com/khilman/omap-test-mailbox
and updated for v3.8.12 kernel mailbox framework.

Tested on DRA7XX.

Kernel Patch
============
The patch '0001-OMAP2-mailbox-convert-Slave-mailboxes-to-MPU-loopbac.patch' 
changes the USER, Tx and Rx fifo numbers of the slaves to cause
the MPU to receive the messages destined for the slaves {ipu1,dsp1,ipu2,dsp2}
of mailboxes 5 and 6.

Usage
=====
Load the test module using the 'name=' command-line argument
with the name of one of the mailboxes listed in the DT mailbox name fields:
"mbox-ipu1", "mbox-dsp1", "mbox-ipu2", "mbox-dsp2".

# insmod mbox_test.ko name=mbox-ipu1 count=100
# rmmod mbox_test.ko

By default, the test will send 16 test messages with an incremeting number
as the message.  

The number of messages can be changed with the 'count=' 
command-line option at module load time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 72.1%
  • Shell 27.9%