Step 6: 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 the
cache configurator
tool to reserve 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, a 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.
To complete target system setup:
- Confirm that the host is still connected to the target via SSH.
- In the SSH session, go to the following directory:cd /usr/share/tcc_tools/scripts/setup_ssram/
- Run the following command to add thetcc_bufferdriver on the target system. This script adds thetcc_bufferdriver to auto load. The cache allocation library interfaces with the driver to provide low-latency buffers../control_tcc_driver.sh enable
- Run the following command to removeRTCMtemporarily from the boot options../control_rtcm_sbl.sh disable
- Reboot the target system.
- On the host system, upload keys for the SBL bootloader from your SBL to$TCC_TOOLS_PATH/keys/sblthat you saved in Step 1: Configure SBL.
- On the host system, confirm that the host system and target system have a passwordless connection.
- Generate a key with an empty passphrase:ssh-keygen -t rsaPressEnterwhen when prompted by the system duringGenerating public/private rsa key pairstep.
- Copy the key to the target system:ssh-copy-id <user>@<target>If you do not havessh-copy-idon your host system, use the commandcat .ssh/id_rsa.pub | ssh <user>@<target> 'cat >> .ssh/authorized_keys'
- Verify that a password is not required anymore, for example:ssh <user>@<target> ls
- On the host system, go to thetoolsdirectory:cd ${TCC_TOOLS_PATH}
- Run thecache configuratortool to reserve a portion of the L2 and L3 cache:
- Open the target connection settings file. This command example uses the nano text editor, but you can use any text editor.nano ./host_scripts/target_connection_settings.sh
- Modify the following fields (see an example below):Field NameDescriptionHOSTNAMEReplacehostnamewith the IP address or host name of the target system.USERReplaceuserwithroot.SSH_EXTRAAdd any additional SSH command-line options.This file contains the hostname and username to connect to the target board through SSH.Target connection settings file example:HOSTNAME='hostname' USER='user' SSH_EXTRA=''
- Save and close the file.
- Run the cache configurator tool../tcc_cache_configurator.py --environment demo/environment/sample_environment_sbl.json
- In the cache configurator tool, enterP.
- Select preset number 4.
- Extra steps forIntel® Xeon® W-11000E Series Processors MR1release only:
- EnterCto continue configuration
- EnterAto add cache allocation
- EnterCfor choosing cache level
- Enter2for choosing L2 cache level
- Enter3for choosing CPU core 3
- Enter262144buffer size
- EnterYto proceed with the selected configuration.
- EnterYto apply the configuration and go to the reboot screen.
- After the target system reboots, enterYto confirm.
- Connect to the target via SSH. Replace<target>with the IP address or host name 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 addRTCMto the boot options and set it to the first boot priority on the target system. Real-time configuration manager (RTCM) is an application that makes it possible to use software SRAM technology on non-virtualized systems../control_rtcm_sbl.sh enable
- Run the following command to reboot the target system.reboot
Now the system is configured. The software SRAM buffers can be allocated with the cache allocation library.