Hi ,
IPCF_SHM_User_Manual.pdf
6.2.4 Running the application
1. Copy ipc-shm-sample.elf to the target board rootfs. In case of building the sample manually, also
copy IPC UIO kernel module (ipc-shm-uio.ko) to the directory provided during compilation via
IPC_UIO_MODULE_DIR.
Notes: IPC UIO kernel module must be located in the same directory as provided via IPC_UIO_MODULE_DIR
when building the sample.
2. Boot Linux: for silicon, see section “How to boot” from Auto Linux BSP user manual.
3. Run sample and then specify the number of ping messages to be exchanged with peer when prompted:
./ipc-shm-sample.elf
Input number of messages to send:
Notes: To exit the sample, input number of messages 0 or send interrupt signal (e.g. Ctrl + C)
print:
ipc-shm-us-lib: ipc_os_init(): Loading ./ipc-shm-uio.ko with params: inter_core_tx_irq=2 inter_core_rx_irq=1 remote_core=1,1 local_core=6,1,15
Input number of messages to send: 10
ipc-shm-us-app: ch 0 >> 20 bytes: SENDING MESSAGES: 10
ipc-shm-us-app: ch 1 >> 32 bytes: #0 HELLO WORLD!
ipc-shm-us-app: ch 1 << 32 bytes: #0 HELLO WORLD!
ipc-shm-us-app: ch 2 >> 32 bytes: #1 HELLO WORLD!
ipc-shm-us-app: ch 2 << 32 bytes: #1 HELLO WORLD!
ipc-shm-us-app: ch 1 >> 32 bytes: #2 HELLO WORLD!
ipc-shm-us-app: ch 1 << 32 bytes: #2 HELLO WORLD!
ipc-shm-us-app: ch 2 >> 32 bytes: #3 HELLO WORLD!
ipc-shm-us-app: ch 2 << 32 bytes: #3 HELLO WORLD!
ipc-shm-us-app: ch 1 >> 32 bytes: #4 HELLO WORLD!
ipc-shm-us-app: ch 1 << 32 bytes: #4 HELLO WORLD!
ipc-shm-us-app: ch 2 >> 32 bytes: #5 HELLO WORLD!
ipc-shm-us-app: ch 2 << 32 bytes: #5 HELLO WORLD!
ipc-shm-us-app: ch 1 >> 32 bytes: #6 HELLO WORLD!
ipc-shm-us-app: ch 1 << 32 bytes: #6 HELLO WORLD!
ipc-shm-us-app: ch 2 >> 32 bytes: #7 HELLO WORLD!
ipc-shm-us-app: ch 2 << 32 bytes: #7 HELLO WORLD!
ipc-shm-us-app: ch 1 >> 32 bytes: #8 HELLO WORLD!
ipc-shm-us-app: ch 1 << 32 bytes: #8 HELLO WORLD!
ipc-shm-us-app: ch 2 >> 32 bytes: #9 HELLO WORLD!
ipc-shm-us-app: ch 0 << 20 bytes: REPLIED MESSAGES: 10
ipc-shm-us-app: ch 2 << 32 bytes: #9 HELLO WORLD!
ipc-shm-us-app: exit
ipc-shm-us/sample/sample.c
static void generate_msg(char *dest, int len, int msg_no)
{
static char *msg_pattern = "HELLO WORLD!";
snprintf(dest, len, "#%d %s\0", msg_no, msg_pattern);
}
modify
static void generate_msg(char *dest, int len, int msg_no)
{
static char *msg_pattern = "HELLO WORLD From Kernel!";
snprintf(dest, len, "#%d %s\0", msg_no, msg_pattern);
}
print:
ipc-shm-us-lib: ipc_os_init(): Loading ./ipc-shm-uio.ko with params: inter_core_tx_irq=2 inter_core_rx_irq=1 remote_core=1,1 local_core=6,1,15
ipc-shm-us-lib: ipc_os_init(): Created Rx softirq thread with priority=99
Bus error