Cross-platform driver porting method and application based on HarmonyOS HDF

With the increasing fragmentation of IoT device hardware ecosystem, cross-platform driver compatibility has become a core challenge for the landing of HarmonyOS distributed capabilities. To solve this problem, this paper proposes a standardised and componentised cross-platform driver porting method based on the HarmonyOS Hardware Driver Framework (HDF). The decoupling of driver logic and hardware resources is achieved by constructing a hardware abstraction layer (HAL) and an operating system adaptation layer (OSAL), combined with the dynamic parsing mechanism of hardware configuration source files (HCS). Through the unified driver interface model and dynamic loading process, this method adapts to different kernels (LiteOS, Linux) and hardware architectures (ARM, RISC-V), and effectively supports cross-platform driver porting. In terms of specific applications, this paper takes the UART serial port as an example to verify the effectiveness of the porting method. The study shows that the HDF-based driver porting method can improve system compatibility and porting efficiency, and promote the application of HarmonyOS on diverse hardware platforms.

Authors

Institutions

Publication Details

Published
2025-07-11
DOI
https://doi.org/10.1109/cisat66811.2025.11181930
Primary Topic
Embedded Systems and FPGA Design
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Cross-platform driver porting method and application based on HarmonyOS HDF

Shiyu Gan, Ruyi Qiao
Embedded Systems and FPGA Design
article

Cross-platform driver porting method and application based on HarmonyOS HDF

Shiyu Gan, Ruyi Qiao
article en

Abstract

With the increasing fragmentation of IoT device hardware ecosystem, cross-platform driver compatibility has become a core challenge for the landing of HarmonyOS distributed capabilities. To solve this problem, this paper proposes a standardised and componentised cross-platform driver porting method based on the HarmonyOS Hardware Driver Framework (HDF). The decoupling of driver logic and hardware resources is achieved by constructing a hardware abstraction layer (HAL) and an operating system adaptation layer (OSAL), combined with the dynamic parsing mechanism of hardware configuration source files (HCS). Through the unified driver interface model and dynamic loading process, this method adapts to different kernels (LiteOS, Linux) and hardware architectures (ARM, RISC-V), and effectively supports cross-platform driver porting. In terms of specific applications, this paper takes the UART serial port as an example to verify the effectiveness of the porting method. The study shows that the HDF-based driver porting method can improve system compatibility and porting efficiency, and promote the application of HarmonyOS on diverse hardware platforms.

China Electronics Technology Group Corporation (CN)
Openalex Percentile: Top 66%
Embedded Systems and FPGA Design
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.