Template:Glsdk running examples

=Running Examples=

Running IPC examples
Processor SDK Linux Automotive includes IPC examples are part of the target filesystem.

User space sample application
MessageQ is the user space API provided for IPC. The sample application for MessageQ consists of an application &quot;MessageQApp&quot; running on the A15 and corresponding binaries running on the remotecore. The below table shows the paths under which the remotecore binaries can be found on the target filesystem. To ensure that these binaries are loaded by the kernel, please symbolic link them to the location shown in the below table.

Boot the target and ensure that the lad daemon is running. Use the  command to check if the lad daemon is already running. If not, please start the lad daemon.

target # /usr/bin/lad_dra7xx

Start the MessageQApp

target # /usr/bin/MessageQApp &lt;number of messages&gt; &lt;core id&gt;

The core id to be used is 1,2,3,4 for IPU2,IPU1,DSP2 and DSP1 respectively.

target # MessageQApp 10 3 Using numLoops: 10; procId : 3 Entered MessageQApp_execute Local MessageQId: 0x80 Remote queueId [0x30080] Exchanging 10 messages with remote processor DSP2... MessageQ_get #1 Msg = 0xb6400468 MessageQ_get #2 Msg = 0xb6400468 MessageQ_get #3 Msg = 0xb6400468 MessageQ_get #4 Msg = 0xb6400468 MessageQ_get #5 Msg = 0xb6400468 MessageQ_get #6 Msg = 0xb6400468 MessageQ_get #7 Msg = 0xb6400468 MessageQ_get #8 Msg = 0xb6400468 MessageQ_get #9 Msg = 0xb6400468 MessageQ_get #10 Msg = 0xb6400468 Exchanged 10 messages with remote processor DSP2 Sample application successfully completed! Leaving MessageQApp_execute

RPMsg client sample application
RPMsg is the kernel space IPC and the building block for the user space MessageQ IPC API. The below wiki page illustrates how to build and run an rpmsg Linux kernel space client to communicate with a slave processor (e.g. DSP, IPU, etc) using IPC's RPMsg module.

RPMsg_Kernel_Client_Application

Running basic Wifi tests
To run this test, you would need to have the Wilink COM module connected to the EVM.

Check if the wlan0 interface is showing up: target # ifconfig -a

Bring up the wlan0 inteface: target # ifconfig wlan0 up

Search for the available Wifi networks: target # iw wlan0 scan | grep -i ssid

Running basic Bluetooth tests
To run this test, you would need to have the Wilink COM module connected to the EVM. Make sure that this module supports the Bluetooth.

target # hciconfig hci0 up target # hciconfig -a

Turn on the Bluetooth on the device that you want to pair and make it discoverable, then run the following command:

target # hcitool scan

How to bring up the GNSS driver and sample application
WL8 GNSS driver that is compatible with SDK is now available as part of the click wrap license at the following location. http://www.ti.com/tool/wilink-sw

Users are requested to register and obtain the package.

The package contains the driver source and the required documentation.

The document "Bring up manual for WiLink8 GNSS driver on Linux" is the starting point that contains the instructions for compiling and trying the sample application.

'''NOTE: These instructions are known to work if the user starts with the Processor SDK Linux Automotive installer and compiles the Linux kernel using the instructions provided in the Software Developers Guide. '''