arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.19240cs.SE
收藏

嵌入式Linux开发中CI/CD实现的一种通用解决方案

A General Solution for the Implementation of CI/CD in Embedded Linux Development

Amirkabir University of Technology(阿米尔卡比尔理工大学)

Behnam Agahi, Hamed Farbeh

AI总结:

针对嵌入式Linux开发,提出基于Yocto三层架构与GitLab CI及Docker的通用CI/CD方案,实现可复现构建,经QEMU六场景验证,显著缩短构建时间并支持扩展。

摘要:

随着嵌入式系统在各行业的日益普及,对用于开发和部署定制化Linux操作系统的自动化平台的需求变得更加重要。本研究旨在利用Yocto项目设计和实现一个集成且可复现的基础设施,用于Linux操作系统的开发、构建和测试。所提出的结构基于三层架构实现,包括主要的Yocto仓库、一个自定义层(meta-custom)以及一个协调的清单层,以确保版本同步、可扩展性和可复现性。开发了三个示例项目,包括libhelloworld、helloworld和内核模块hello mod,并将其集成到构建过程中。使用GitLab CI实现了持续集成和持续部署流水线,并与隔离的Docker环境相结合,以自动化和简化构建及测试工作流程。使用包含hashserv的本地缓存服务器,下载和sstate缓存显著减少了构建时间。通过QEMU模拟器中的六种启动测试场景验证了系统的功能和稳定性。结果表明,所提出的设计不仅确保了可复现性,而且可以扩展到高级应用,如实时Linux版本的持续部署。未来的建议包括扩展自动化测试、使用Prometheus和Grafana实现系统监控、使用分布式构建、通过Docker多阶段构建进行优化,以及实现实时Linux更改的持续部署,从而为嵌入式系统中的工业和研究项目提供稳定且可扩展的模型,并具有快速可靠的开发周期。

英文摘要:

With the growing use of embedded systems in various industries, the need for automated platforms for the development and deployment of customized Linux-based operating systems has become more important. This research was conducted with the aim of designing and implementing an integrated and reproducible infrastructure for the development, building, and testing of a Linux-based operating system using the Yocto Project. The proposed structure was implemented based on a three-layer architecture consisting of the main Yocto repositories, a custom layer (meta-custom), and a coordinating manifest layer to ensure version synchronization, scalability, and reproducibility. Three sample projects, including libhelloworld, helloworld, and the kernel module hello mod, were developed and integrated into the build process. Continuous Integration and Continuous Deployment pipelines were implemented with GitLab CI and combined with an isolated Docker environment to automate and streamline the build and testing workflows. Using a local cache server containing hashserv, downloads and sstate cache significantly reduced the build time. The functionality and stability of the system were verified through six boot test scenarios in the QEMU simulator. The results show that the proposed design not only ensures reproducibility but also can be extended to advanced applications such as continuous deployment of real-time Linux versions. Future recommendations include expanding automated tests, implementing system monitoring with Prometheus and Grafana, using distributed builds, optimizing with Docker multi-stage builds, and enabling continuous deployment of real-time Linux changes to provide a stable and scalable model for industrial and research projects in embedded systems with a rapid and reliable development cycle.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑