At Codethink, ensuring the reliability and integrity of embedded systems is an integral part of our engineering approach.
That’s why, in collaboration with Arm, we’ve published a white paper documenting the process of integrating Arm’s Software Test Libraries (STL) into Arm Cortex-A application processor systems. Specifically, our assignment involved integrating Arm’s STLs into an open source Linux environment.
Arm designed its Software Test Libraries to address challenges related to ensuring execution integrity in safety-critical embedded systems. The requirement for elevated privileges to access particular system registers further complicates these challenges, adding complexity to the testing process.
The project aimed to ensure the solution would be generic to most modern operating systems.
About the white paper
The white paper describes how the Codethink team integrated Arm’s A72 STL into a Linux environment running on a Raspberry Pi 4. The project team integrated the STLs into Trusted Firmware A (TF-A), therefore allowing the tests to be run at boot-time and at Exception Level 3 (EL3) via the Secure Monitor. This was done to avoid the licensing issues of directly linking the STL's to the Linux kernel: these issues arise as the Linux kernel is under GPLv2 and Arm's STL are closed source propriety software.
One of the primary focuses of the document is on the mechanisms for triggering STL tests in both Out-of-Reset (OOR) and Online (OnL) modes, helping to maintain system reliability and achieve excellent diagnostic coverage.
Ultimately, the Codethink project team explored two approaches:
- Secure Monitor service in the TF-A, to the run the Arm STL at EL3,
- Userspace dedicated application running Arm STL at EL0.
In addition, the document covers problems such as diagnostic coverage, integration complexity, software licensing, and compatibility, and performance overhead.
Access the white paper
You can access the full white paper here.
Codethink authors:
- Ben Dooks, Codethink Fellow
- Dickon Hood, Senior Software Engineer
- Roan Richmond, Software Engineer
Other Content
- Speed Up Embedded Software Testing with QEMU
- Open Source Summit Europe (OSSEU) 2024
- Watch: Real-time Scheduling Fault Simulation
- Improving systemd’s integration testing infrastructure (part 2)
- Meet the Team: Laurence Urhegyi
- A new way to develop on Linux - Part II
- Shaping the future of GNOME: GUADEC 2024
- Developing a cryptographically secure bootloader for RISC-V in Rust
- Meet the Team: Philip Martin
- Improving systemd’s integration testing infrastructure (part 1)
- A new way to develop on Linux
- RISC-V Summit Europe 2024
- Safety Frontier: A Retrospective on ELISA
- Codethink sponsors Outreachy
- The Linux kernel is a CNA - so what?
- GNOME OS + systemd-sysupdate
- Codethink has achieved ISO 9001:2015 accreditation
- Outreachy internship: Improving end-to-end testing for GNOME
- Lessons learnt from building a distributed system in Rust
- FOSDEM 2024
- QAnvas and QAD: Streamlining UI Testing for Embedded Systems
- Outreachy: Supporting the open source community through mentorship programmes
- Using Git LFS and fast-import together
- Testing in a Box: Streamlining Embedded Systems Testing
- SDV Europe: What Codethink has planned
- How do Hardware Security Modules impact the automotive sector? The final blog in a three part discussion
- How do Hardware Security Modules impact the automotive sector? Part two of a three part discussion
- How do Hardware Security Modules impact the automotive sector? Part one of a three part discussion
- Automated Kernel Testing on RISC-V Hardware
- Automated end-to-end testing for Android Automotive on Hardware
- GUADEC 2023
- Embedded Open Source Summit 2023
- RISC-V: Exploring a Bug in Stack Unwinding
- Adding RISC-V Vector Cryptography Extension support to QEMU
- Introducing Our New Open-Source Tool: Quality Assurance Daemon
- Achieving Long-Term Maintainability with Open Source
- FOSDEM 2023
- Think before you Pip
- BuildStream 2.0 is here, just in time for the holidays!
- A Valuable & Comprehensive Firmware Code Review by Codethink
- GNOME OS & Atomic Upgrades on the PinePhone
- Flathub-Codethink Collaboration
- Codethink proudly sponsors GUADEC 2022
- Tracking Down an Obscure Reproducibility Bug in glibc
- Web app test automation with `cdt`
- FOSDEM Testing and Automation talk
- Protecting your project from dependency access problems
- Full archive