计算机工程2023,Vol.49Issue(12):25-34,45,11.DOI:10.19678/j.issn.1000-3428.0067108
支持MIPS架构的轻量型开源鸿蒙系统移植
Porting of Lightweight OpenHarmony System Supporting MIPS Architecture
摘要
Abstract
The distributed architecture of the spatial data system defined by the Consultative Committee for Space Data Systems(CCSDS)advanced in-orbit system standard is an effective solution to improve the overall reliability of the on-board system.In China,the spacecraft control terminals,as typical application nodes of the architecture,typically use Loongson series processors based on Microprocessor without Interlocked Pipelined Stages(MIPS)architecture.However,because of the lack of an autonomous and controllable lightweight operating system,the deployment and application of this architecture in China's aerospace field are limited.The aim of this study is to build an autonomous and controllable aerospace information system technology architecture and achieve the porting and adapting to the domestic OpenHarmony lightweight operating system on the Loongson control terminals.By analyzing the LiteOS-M lightweight real-time kernel of OpenHarmony and MIPS architecture and focusing on the Hardware Abstraction Layer(HAL)and kernel hardware related parts,a porting scheme comprising boot loading,HAL architecture adaptation,serial driver,kernel clipping,and tool chain construction is designed and implemented.Experimental test cases are designed based on the MIPS architecture Loongson spaceborne control terminal LS1J and LS1C hardware platforms to verify the basic functions and real-time performance indicators of the migrated system.The experimental results show that the lightweight real-time system of OpenHarmony successfully adapts to the MIPS architecture and can run stably and reliably on the Loongson control terminal.The system task context switching delay is 0.229 μs,and the interrupt response delay is 4.73 μs,which satisfy the requirements for real-time system indicators.关键词
移植/开源鸿蒙系统/MIPS架构/龙芯处理器/控制终端/分布式架构Key words
porting/OpenHarmony system/MIPS architecture/Loongson processor/control terminal/distributed architecture分类
信息技术与安全科学引用本文复制引用
王一泠,吴琦,安军社..支持MIPS架构的轻量型开源鸿蒙系统移植[J].计算机工程,2023,49(12):25-34,45,11.基金项目
国家重点研发计划(2022YFF0503900). (2022YFF0503900)