Prerequisites
Note
- Compile the RTSS source code on an Ubuntu 22.04 host computer.
- The build environment is initialized as described in the BSP image build with firmware.
-
Download the RTSS firmware by running the
git clonecommand:For example:Thegit clonecommand clones the content into the<FIRMWARE_ROOT>/qualcomm-linux-spf-2-0_ap_standard_oem_sail.gitdirectory. For the latest<firmware release tag>, see Release tags. -
Download the FreeRTOS kernel.
- Clone the FreeRTOS kernel using the
git clonecommand: - Go to the FreeRTOS kernel directory:
- Copy the
croutine.c,cspell.config.yaml,event_groups.c,include manifest.yml,queue.c,stream_buffer.c,tasks.c,timers.c, andlist.cfiles to<top_directory>/sail_proc/FreeRTOS/kernel/:
- Clone the FreeRTOS kernel using the
-
Download the Arm® GNU Toolchain compiler:
NoteInstall the Arm GNU Toolchain compiler on x86 64-bit host computer only.
- Download the
arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabitoolchain variant from Arm GNU Toolchain Downloads: - Extract the downloaded
arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabi.tar.xzfile: - Go to the
sail_procdirectory: - Create the
toolchainfolder under thesail_procdirectory: - Copy the extracted
arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabifolder into thesail_proc/toolchaindirectory. - Export the
SECTOOLSvariable from the top-level directory of<FIRMWARE_ROOT>/: For IQ-9075:For IQ-8275:
- Download the
Procedure
-
Enter bash:
-
Go to the main directory of RTSS:
-
Set up the build environment on the device:
Note
- Before running the command, ensure that the toolchain and RTOS code/binaries are copied to the build to avoid compilation issues.
-
Build the image:
For IQ-9075:For IQ-8275:After successful execution of the RTSS build,
sailhyp.elfandsailsw1.elfare generated at: For IQ-9075:qualcomm-linux-spf-2-0_ap_standard_oem_sail/SAIL.SI.1.2/sail_proc/build/ms/bin/SAIL_RTOS/DEBUG/lemans/signedFor IQ-8275:qualcomm-linux-spf-2-0_ap_standard_oem_sail/SAIL.SI.1.2/sail_proc/build/ms/bin/SAIL_RTOS/DEBUG/monaco/signed -
Copy the generated RTSS files into the
<workspace_path>/build-<DISTRO>/tmp-glibc/deploy/images/<MACHINE>/<IMAGE>/sail_norfolder to program on the NOR flash. Example:<workspace_path>/build-qcom-wayland/tmp-glibc/deploy/images/qcs9075-iq-9075-evk/qcom-multimedia-image/sail_norParameters:- <DISTRO>:
qcom-wayland - <MACHINE>:
qcs9075-iq-9075-evk - <IMAGE>:
qcom-multimedia-image
NoteFor information about <MACHINE>, see the Software Release Notes. - <DISTRO>:
-
(Optional) To refresh the build, clean the build:
For IQ-9075:For IQ-8275:After running the
make clean TARGET=<target name>command, perform the following steps to rebuild the image using themake TARGET=<target name>command:- Go to the main directory of RTSS:
- Set up the build environment on the device:
- Rebuild the image:
For IQ-9075:For IQ-8275:
- Go to the main directory of RTSS:
- For instructions about flashing RTSS, see Flash SAIL.

