Tutorial
Step 8: Complete the Target System Setup
To complete the target system setup, you will enable the cache allocation capabilities of Intel® TCC Tools. You will run a script that reserves a portion of the L2 and L3 cache. A reserved portion of cache is called software static random-access memory (software SRAM).
Software SRAM enables the cache allocation library to provide low-latency memory buffers to your real-time applications. At the same time, part of the cache will be removed from general use, potentially reducing the performance of non-real-time applications.
This step reserves the recommended amount of cache for running the cache allocation sample. You can choose a different amount later via the cache configurator tool, based on the memory requirements of your real-time application.
To complete and verify setup:
Wait for the target system to boot.
On the development host system, connect to the target via SSH. Replace <target> with the IP address or hostname of the target system.
ssh root@<target>
In the SSH session, go to the following directory:
cd /usr/share/tcc_tools/scripts/setup_ssram/
Run the following command to set up the target system to be used with the cache allocation library. If the script is unable to detect the CPU automatically, it will list possible supported CPUs, and you can specify the CPU model name by passing the --cpu option. The target system will reboot after executing the script.
./tcc_setup_ssram.sh enable
This script:
Enables cache allocation capabilities on the target system, by configuring a component called real-time configuration manager (RTCM).
Adds the real-time configuration driver (RTCD) to auto load.
Reserves a portion of cache (software SRAM) sufficent to run the provided samples. Refer to the Select a Cache Partitioning Preset section in the Developer Guide for more information on the preset applied for different Intel® platforms.
Now the system is configured and software SRAM buffers can be allocated with the cache allocation library.
Wait for the target system to boot.
On the host system, connect to the target via SSH. Replace <target> with the IP address or hostname of the target system.
ssh root@<target>
In the SSH session, run the following commands to verify that the system is configured:
Go to the following directory:
cd /usr/share/tcc_tools/scripts/setup_ssram/
Verify that the system is configured:
./tcc_setup_ssram.sh enable --verify
If the system is configured, you will see the following message:
[ENABLED ] RTCM [ENABLED ] Driver [ENABLED ] Driver auto-load [VALID ] Cache configuration (from RTCT) SYSTEM CONFIGURATION IS CORRECT
If you do not see this message, run step 4 again.