Automotive Grade Linux Functional Safety: AGL & Certification
In this article
Automotive Grade Linux (AGL) does not certify anything itself; it provides a software platform and documentation that can help your product achieve certification, but the actual certification is done by an independent third-party assessor against standards like ISO 26262. In short, AGL gives you the building blocks and a safety manual, but you are responsible for the final safety case and certification of your specific system.
What is Automotive Grade Linux (AGL)?
Automotive Grade Linux is a collaborative open-source project hosted by the Linux Foundation. It aims to create a shared, Linux-based software stack for the entire vehicle—from infotainment and instrument clusters to advanced driver assistance systems (ADAS) and autonomous driving. The project brings together automakers, suppliers, and technology companies to develop a common platform, reducing duplication of effort and accelerating innovation. AGL provides a full software stack, including the operating system, middleware, and application framework, all built on the Linux kernel and other open-source components.
Functional Safety and ISO 26262: The Basics
Functional safety is about ensuring that a system operates correctly in response to its inputs, including when something goes wrong. In the automotive world, the key standard is ISO 26262, which provides a framework for managing functional safety throughout the lifecycle of road vehicles. It defines Automotive Safety Integrity Levels (ASILs) from A (lowest) to D (highest), which indicate the required level of risk reduction. For software, ISO 26262 requires a rigorous development process, including hazard analysis, safety requirements, verification, and validation. Certification is performed by an independent body, such as TÜV or UL, which audits the entire development process and the final product against the standard.
What AGL Actually Provides for Functional Safety
AGL does not claim to be a certified safety-critical OS. Instead, it offers several concrete resources to help you build a certifiable system:
- Safety Manual: AGL publishes a comprehensive safety manual that explains how to use the platform in a safety-related context. It describes the intended safety concept, the assumptions of use, and the necessary steps to achieve ISO 26262 compliance.
- Safety Architecture: The project has defined a reference safety architecture that partitions safety-critical functions from non-critical ones. This typically involves running safety-critical software on a separate, certified real-time operating system (RTOS) or in a hypervisor, with AGL handling the less critical infotainment tasks.
- Documentation and Tools: AGL provides documentation on its development process, including coding standards, testing practices, and tooling that can support your own safety process. This includes static analysis tools, test frameworks, and traceability tools.
- Community Expertise: The AGL community includes many companies with deep functional safety expertise. Their contributions and discussions can guide you through common pitfalls and best practices.
What AGL Does NOT Certify
It is crucial to understand the limits of AGL's role:
- No Pre-Certification: AGL is not certified as a whole. There is no single "AGL safety certificate" you can point to. The project explicitly states that certification is the responsibility of the integrator.
- No Guarantee of Compliance: Using AGL does not automatically make your system ISO 26262 compliant. You must still perform all the required safety activities, such as hazard analysis, safety requirement specification, and verification.
- No Liability: The AGL project and its contributors do not take on liability for the safety of your final product. The safety case is yours to build and defend.
- Not a Safety-Critical OS: The standard AGL distribution is not designed to be a safety-critical operating system. It is a general-purpose Linux, which is not suitable for ASIL-D applications without significant additional work, such as using a hypervisor or separating safety functions.
How to Achieve Certification with AGL
If you are planning to use AGL in a safety-related system, here is a typical path to certification:
- Define the Safety Concept: Start with a thorough hazard analysis and risk assessment to determine the ASIL for each function. This will dictate the required safety measures.
- Choose a Safety Architecture: Decide how to partition your system. A common approach is to have a certified RTOS or hypervisor running the safety-critical functions, with AGL running on a separate core or in a virtual machine for non-critical features.
- Apply the AGL Safety Manual: Follow the guidance in the AGL safety manual to configure and use the platform correctly. This includes using the recommended toolchain, kernel configuration, and build process.
- Implement Safety Mechanisms: Add the necessary safety mechanisms, such as watchdog timers, memory protection, and error detection, to meet the ASIL requirements.
- Conduct Verification and Validation: Perform rigorous testing, including unit, integration, and system tests, to demonstrate that the system meets its safety requirements.
- Engage an Independent Assessor: Hire an accredited certification body to audit your development process and the final system. They will review your safety case and issue the certificate if everything meets the standard.
Common Misconceptions and Pitfalls
One common misconception is that because AGL is open source, it is automatically safe or certifiable. That is not true. Open source does not equal safety. Another pitfall is assuming that the AGL safety manual is a checklist that guarantees compliance. It is a guide, not a guarantee. You must still do the hard work of building a safety case. Also, beware of using AGL for safety-critical functions without proper isolation. Running a safety function on the same OS as infotainment can lead to interference and violate ASIL requirements. Finally, do not underestimate the effort involved. Certification can take many months and significant resources, even with a good starting point like AGL.
Alternatives and Comparisons
AGL is not the only option for automotive Linux. Other platforms include GENIVI (which has merged with AGL), and various commercial Linux distributions from companies like Wind River, Canonical, and Red Hat. Some of these offer pre-certified versions of their stacks, which can save time but may be costly. There are also proprietary real-time operating systems like QNX and VxWorks that are widely used for safety-critical applications. The choice depends on your priorities: AGL offers a large community and flexibility, but you must do the certification work yourself. Commercial options may offer more out-of-the-box safety support but with licensing fees. For a safety-critical system, you might even consider a mixed approach: use a certified RTOS for the safety functions and AGL for the rest.
Costs and Effort
The cost of certifying a system with AGL is not the software itself (which is free) but the engineering effort. You will need to invest in:
- Safety engineering: Hiring or training engineers with ISO 26262 expertise.
- Tooling: Static analysis, dynamic testing, and traceability tools, which can be expensive.
- Certification body fees: The cost of the independent audit, which varies by scope and region.
- Time: The development and verification process can take months or even years.
In comparison, a commercial pre-certified solution might have a higher upfront license cost but could reduce the engineering effort. However, it may be less flexible and tie you to a vendor.
Frequently Asked Questions
Is AGL certified to ISO 26262?
No, AGL as a project is not certified. Certification is always for a specific product or system, not a generic software platform. AGL provides resources to help you achieve certification for your own system.
Can I use AGL for ASIL-D safety functions?
Not directly. The standard AGL distribution is not designed for ASIL-D. You would need to run safety-critical functions on a separate certified RTOS or hypervisor, or do extensive additional work to make AGL itself safe, which is generally not recommended.
What does the AGL Safety Manual contain?
The safety manual provides a safety concept, assumptions of use, and guidance on how to configure and use AGL in a safety-related context. It is a starting point, not a complete safety case.
Do I need to use a hypervisor with AGL for safety?
Not necessarily, but it is a common and recommended approach. A hypervisor allows you to isolate safety-critical software from non-critical software, reducing the risk of interference and making certification easier.
How long does it take to get a system with AGL certified?
There is no fixed timeline. It depends on the complexity of your system, the ASIL level you are targeting, and your team's experience. It can range from several months to over a year.
Is AGL free to use for commercial products?
Yes, AGL is open source and free to use, including for commercial products. However, you are responsible for complying with the licenses of the individual components and for your own certification efforts.