Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
apps/ | 12-May-2024 | - | 8,055 | 5,010 | ||
arch/ | 12-May-2024 | - | 13,038 | 7,944 | ||
bsd/ | 12-May-2024 | - | 640 | 471 | ||
compat/ | 12-May-2024 | - | 5,857 | 3,807 | ||
drivers/ | 12-May-2024 | - | 5,859 | 3,564 | ||
figures/ | 12-May-2024 | - | ||||
fs/ | 12-May-2024 | - | 29,726 | 23,027 | ||
kernel/ | 12-May-2024 | - | 57,204 | 35,543 | ||
lib/ | 12-May-2024 | - | 2,766 | 1,937 | ||
net/ | 12-May-2024 | - | 10,473 | 7,691 | ||
platform/ | 12-May-2024 | - | 271 | 148 | ||
security/ | 12-May-2024 | - | 813 | 466 | ||
shell/ | 12-May-2024 | - | 4,455 | 3,053 | ||
syscall/ | 12-May-2024 | - | 6,869 | 5,362 | ||
testsuites/ | 12-May-2024 | - | 197,754 | 107,877 | ||
tools/ | 12-May-2024 | - | 1,867 | 1,367 | ||
.gitignore | D | 12-May-2024 | 215 | 25 | 20 | |
BUILD.gn | D | 12-May-2024 | 10.5 KiB | 415 | 368 | |
Kconfig | D | 12-May-2024 | 9.9 KiB | 337 | 284 | |
LICENSE | D | 12-May-2024 | 1.6 KiB | 29 | 23 | |
Makefile | D | 12-May-2024 | 7.4 KiB | 202 | 141 | |
OAT.xml | D | 12-May-2024 | 6 KiB | 86 | 36 | |
README.md | D | 12-May-2024 | 6 KiB | 97 | 72 | |
README_zh-HK.md | D | 12-May-2024 | 4.7 KiB | 96 | 71 | |
README_zh.md | D | 12-May-2024 | 5.4 KiB | 99 | 74 | |
build.sh | D | 12-May-2024 | 2.5 KiB | 70 | 32 | |
bundle.json | D | 12-May-2024 | 1.5 KiB | 66 | 65 | |
config.mk | D | 12-May-2024 | 3.2 KiB | 69 | 32 | |
liteos.gni | D | 12-May-2024 | 4.6 KiB | 144 | 133 |
README.md
1# LiteOS Cortex-A<a name="EN-US_TOPIC_0000001096612501"></a> 2 3- [Introduction](#section11660541593) 4- [Directory Structure](#section161941989596) 5- [Constraints](#section119744591305) 6- [Usage](#section741617511812) 7 - [Preparations](#section1579912573329) 8 - [Source Code Acquisition](#section11443189655) 9 - [Compilation and Building](#section2081013992812) 10 11- [Repositories Involved](#section1371113476307) 12 13## Introduction<a name="section11660541593"></a> 14 15The OpenHarmony LiteOS Cortex-A is a new-generation kernel developed based on the Huawei LiteOS kernel. Huawei LiteOS is a lightweight operating system \(OS\) built for the Internet of Things \(IoT\) field. With the rapid development of the IoT industry, OpenHarmony LiteOS Cortex-A brings small-sized, low-power, and high-performance experience and builds a unified and open ecosystem for developers. In addition, it provides rich kernel mechanisms, more comprehensive Portable Operating System Interface \(POSIX\), and a unified driver framework, Hardware Driver Foundation \(HDF\), which offers unified access for device developers and friendly development experience for application developers. [Figure 1](#fig27311582210) shows the architecture of the OpenHarmony LiteOS Cortex-A kernel. 16 17**Figure 1** Architecture of the OpenHarmony LiteOS Cortex-A kernel<a name="fig27311582210"></a> 18![](figures/architecture-of-the-openharmony-liteos-cortex-a-kernel.png "architecture-of-the-openharmony-liteos-cortex-a-kernel") 19 20## Directory Structure<a name="section161941989596"></a> 21 22``` 23/kernel/liteos_a 24├── apps # User-space init and shell application programs 25├── arch # System architecture, such as ARM 26│ └── arm # Code for ARM architecture 27├── bsd # Code of the driver and adaptation layer module related to the FreeBSD, such as the USB module 28├── compat # Kernel API compatibility 29│ └── posix # POSIX APIs 30├── drivers # Kernel drivers 31│ └── char # Character device 32│ ├── mem # Driver for accessing physical input/output (I/O) devices 33│ ├── quickstart # APIs for quick start of the system 34│ ├── random # Driver for random number generators 35│ └── video # Framework of the framebuffer driver 36├── fs # File system module, which mainly derives from the NuttX open-source project 37│ ├── fat # FAT file system 38│ ├── jffs2 # JFFS2 file system 39│ ├── include # Header files exposed externally 40│ ├── nfs # NFS file system 41│ ├── proc # proc file system 42│ ├── ramfs # RAMFS file system 43│ └── vfs # VFS layer 44├── kernel # Kernel modules including the process, memory, and IPC modules 45│ ├── base # Basic kernel modules including the scheduling and memory modules 46│ ├── common # Common components used by the kernel 47│ ├── extended # Extended kernel modules including the dynamic loading, vDSO, and LiteIPC modules 48│ ├── include # Header files exposed externally 49│ └── user # Init process loading 50├── lib # Kernel library 51├── net # Network module, which mainly derives from the lwIP open-source project 52├── platform # Code for supporting different systems on a chip (SOCs), such as Hi3516D V300 53│ ├── hw # Logic code related to clocks and interrupts 54│ ├── include # Header files exposed externally 55│ └── uart # Logic code related to the serial port 56├── platform # Code for supporting different systems on a chip (SOCs), such as Hi3516D V300 57├── security # Code related to security features, including process permission management and virtual ID mapping management 58├── syscall # System calling 59└── tools # Building tools as well as related configuration and code 60``` 61 62## Constraints<a name="section119744591305"></a> 63 64- Programming languages: C and C++ 65- Applicable development boards: Hi3516D V300 66- Hi3516D V300 uses the FAT file system by default. 67 68## Usage<a name="section741617511812"></a> 69 70OpenHarmony LiteOS Cortex-A supports the [Hi3516D V300](https://gitee.com/openharmony/docs/blob/master/en/device-dev/quick-start/quickstart-lite-introduction-hi3516.md). You can develop and run your applications based on this development board. 71 72### Preparations<a name="section1579912573329"></a> 73 74You need to set up the compilation environment on Linux. 75 76- [Setting Up Ubuntu Development Environment](https://gitee.com/openharmony/docs/blob/master/en/device-dev/quick-start/quickstart-lite-env-setup.md) 77- For Hi3516D V300, see [Setting Up the Hi3516 Development Environment](https://gitee.com/openharmony/docs/blob/master/en/device-dev/quick-start/quickstart-lite-steps-hi3516-setting.md). 78 79### Source Code Acquisition<a name="section11443189655"></a> 80 81Download and decompress a set of source code on a Linux server to acquire the [source code](https://gitee.com/openharmony/docs/blob/master/en/device-dev/get-code/sourcecode-acquire.md). 82 83### Compilation and Building<a name="section2081013992812"></a> 84 85For details about how to develop the first application, see: 86 87- [Developing the First Example Program Running on Hi3516](https://gitee.com/openharmony/docs/blob/master/en/device-dev/quick-start/quickstart-lite-steps-hi3516-running.md) 88 89## Repositories Involved<a name="section1371113476307"></a> 90 91[Kernel subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/kernel.md) 92 93[drivers\_liteos](https://gitee.com/openharmony/drivers_liteos/blob/master/README.md) 94 95[kernel\_liteos\_a](https://gitee.com/openharmony/kernel_liteos_a/blob/master/README.md) 96 97
README_zh-HK.md
1# LiteOS-A內核<a name="ZH-CN_TOPIC_0000001096612501"></a> 2 3- [簡介](#section11660541593) 4- [目錄](#section161941989596) 5- [約束](#section119744591305) 6- [使用說明](#section741617511812) 7 - [準備](#section1579912573329) 8 - [獲取源碼](#section11443189655) 9 - [編譯構建](#section2081013992812) 10 11- [相關倉](#section1371113476307) 12 13## 簡介<a name="section11660541593"></a> 14 15OpenHarmony LiteOS-A內核是基於Huawei LiteOS內核演進發展的新一代內核,Huawei LiteOS是面向IoT領域構建的輕量級物聯網操作系統。在IoT產業高速發展的潮流中,OpenHarmony LiteOS-A內核能夠帶給用戶小體積、低功耗、高性能的體驗以及統一開放的生態系統能力,新增了豐富的內核機制、更加全面的POSIX標準接口以及統一驅動框架**HDF**(OpenHarmony Driver Foundation)等,為設備廠商提供了更統一的接入方式,為OpenHarmony的應用開發者提供了更友好的開發體驗。圖1為OpenHarmony LiteOS-A內核架構圖: 16 17**圖 1** OpenHarmony LiteOS-A內核架構圖<a name="fig27311582210"></a> 18 19![](figures/OpenHarmony-LiteOS-A内核架构图.png "OpenHarmony-LiteOS-A內核架構圖") 20 21## 目錄<a name="section161941989596"></a> 22 23``` 24/kernel/liteos_a 25├── apps # 用戶態的init和shell應用程序 26├── arch # 體系架構的目錄,如arm等 27│ └── arm # arm架構代碼 28├── bsd # freebsd相關的驅動和適配層模塊代碼引入,例如USB等 29├── compat # 內核接口兼容性目錄 30│ └── posix # posix相關接口 31├── drivers # 內核驅動 32│ └── char # 字符設備 33│ ├── mem # 訪問物理IO設備驅動 34│ ├── quickstart # 系統快速啟動接口目錄 35│ ├── random # 隨機數設備驅動 36│ └── video # framebuffer驅動框架 37├── fs # 文件系統模塊,主要來源於NuttX開源項目 38│ ├── fat # fat文件系統 39│ ├── jffs2 # jffs2文件系統 40│ ├── include # 對外暴露頭文件存放目錄 41│ ├── nfs # nfs文件系統 42│ ├── proc # proc文件系統 43│ ├── ramfs # ramfs文件系統 44│ └── vfs # vfs層 45├── kernel # 進程、內存、IPC等模塊 46│ ├── base # 基礎內核,包括調度、內存等模塊 47│ ├── common # 內核通用組件 48│ ├── extended # 擴展內核,包括動態加載、vdso、liteipc等模塊 49│ ├── include # 對外暴露頭文件存放目錄 50│ └── user # 加載init進程 51├── lib # 內核的lib庫 52├── net # 網絡模塊,主要來源於lwip開源項目 53├── platform # 支持不同的芯片平台代碼,如Hi3516DV300等 54│ ├── hw # 時鐘與中斷相關邏輯代碼 55│ ├── include # 對外暴露頭文件存放目錄 56│ └── uart # 串口相關邏輯代碼 57├── security # 安全特性相關的代碼,包括進程權限管理和虛擬id映射管理 58├── syscall # 系統調用 59└── tools # 構建工具及相關配置和代碼 60``` 61 62## 約束<a name="section119744591305"></a> 63 64- 開發語言:C/C++; 65- 適用於Hi3516DV300單板; 66- Hi3516DV300默認使用FAT文件系統。 67 68## 使用說明<a name="section741617511812"></a> 69 70OpenHarmony LiteOS-A內核支持Hi3516DV300([介紹](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart-lite-introduction-hi3516.md))單板,開發者可基於此單板開發運行自己的應用程序。 71 72### 準備<a name="section1579912573329"></a> 73 74開發者需要在Linux上搭建編譯環境: 75 76- [編譯環境凖備](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart-lite-env-setup.md); 77- Hi3516DV300單板:參考[環境搭建](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart-lite-steps-hi3516-setting.md)。 78 79### 獲取源碼<a name="section11443189655"></a> 80 81在Linux服務器上下載並解壓一套源代碼,源碼獲取方式參考[源碼獲取](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/get-code/sourcecode-acquire.md)。 82 83### 編譯構建<a name="section2081013992812"></a> 84 85開發者開發第一個應用程序可參考: 86 87- [helloworld for Hi3516DV300](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart-lite-steps-hi3516-running.md)。 88 89## 相關倉<a name="section1371113476307"></a> 90 91[內核子系統](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E5%86%85%E6%A0%B8%E5%AD%90%E7%B3%BB%E7%BB%9F.md) 92 93[drivers\_liteos](https://gitee.com/openharmony/drivers_liteos/blob/master/README_zh.md) 94 95[kernel\_liteos\_a](https://gitee.com/openharmony/kernel_liteos_a/blob/master/README_zh-HK.md) 96
README_zh.md
1# LiteOS-A内核<a name="ZH-CN_TOPIC_0000001096612501"></a> 2 3- [简介](#section11660541593) 4- [目录](#section161941989596) 5- [约束](#section119744591305) 6- [使用说明](#section741617511812) 7 - [准备](#section1579912573329) 8 - [获取源码](#section11443189655) 9 - [编译构建](#section2081013992812) 10 11- [相关仓](#section1371113476307) 12 13## 简介<a name="section11660541593"></a> 14 15OpenHarmony LiteOS-A内核是基于Huawei LiteOS内核演进发展的新一代内核,Huawei LiteOS是面向IoT领域构建的轻量级物联网操作系统。在IoT产业高速发展的潮流中,OpenHarmony LiteOS-A内核能够带给用户小体积、低功耗、高性能的体验以及统一开放的生态系统能力,新增了丰富的内核机制、更加全面的POSIX标准接口以及统一驱动框架**HDF**(OpenHarmony Driver Foundation)等,为设备厂商提供了更统一的接入方式,为OpenHarmony的应用开发者提供了更友好的开发体验。图1为OpenHarmony LiteOS-A内核架构图: 16 17**图 1** OpenHarmony LiteOS-A内核架构图<a name="fig27311582210"></a> 18![](figures/OpenHarmony-LiteOS-A内核架构图.png "OpenHarmony-LiteOS-A内核架构图") 19 20## 目录<a name="section161941989596"></a> 21 22``` 23/kernel/liteos_a 24├── apps # 用户态的init和shell应用程序 25├── arch # 体系架构的目录,如arm等 26│ └── arm # arm架构代码 27├── bsd # freebsd相关的驱动和适配层模块代码引入,例如USB等 28├── compat # 内核接口兼容性目录 29│ └── posix # posix相关接口 30├── drivers # 内核驱动 31│ └── char # 字符设备 32│ ├── mem # 访问物理IO设备驱动 33│ ├── quickstart # 系统快速启动接口目录 34│ ├── random # 随机数设备驱动 35│ └── video # framebuffer驱动框架 36├── figures # 内核架构图 37├── fs # 文件系统模块,主要来源于NuttX开源项目 38│ ├── fat # fat文件系统 39│ ├── jffs2 # jffs2文件系统 40│ ├── include # 对外暴露头文件存放目录 41│ ├── nfs # nfs文件系统 42│ ├── proc # proc文件系统 43│ ├── ramfs # ramfs文件系统 44│ └── vfs # vfs层 45├── kernel # 进程、内存、IPC等模块 46│ ├── base # 基础内核,包括调度、内存等模块 47│ ├── common # 内核通用组件 48│ ├── extended # 扩展内核,包括动态加载、vdso、liteipc等模块 49│ ├── include # 对外暴露头文件存放目录 50│ └── user # 加载init进程 51├── lib # 内核的lib库 52├── net # 网络模块,主要来源于lwip开源项目 53├── platform # 支持不同的芯片平台代码,如Hi3516DV300等 54│ ├── hw # 时钟与中断相关逻辑代码 55│ ├── include # 对外暴露头文件存放目录 56│ └── uart # 串口相关逻辑代码 57├── security # 安全特性相关的代码,包括进程权限管理和虚拟id映射管理 58├── shell # 接收用户输入的命令,内核去执行 59├── syscall # 系统调用 60├── testsuilts # 测试套件 61└── tools # 构建工具及相关配置和代码 62``` 63 64## 约束<a name="section119744591305"></a> 65 66- 开发语言:C/C++; 67- 适用于Hi3516DV300单板; 68- Hi3516DV300默认使用FAT文件系统。 69 70## 使用说明<a name="section741617511812"></a> 71 72OpenHarmony LiteOS-A内核支持[Hi3516DV300](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart-lite-introduction-hi3516.md)单板。开发者可基于此单板开发运行自己的应用程序。 73 74### 准备<a name="section1579912573329"></a> 75 76开发者需要在Linux上搭建编译环境: 77 78- [编译环境准备](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart-lite-env-setup.md); 79- Hi3516DV300单板:参考[环境搭建](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart-lite-steps-hi3516-setting.md)。 80 81### 获取源码<a name="section11443189655"></a> 82 83在Linux服务器上下载并解压一套源代码,源码获取方式参考[源码获取](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/get-code/sourcecode-acquire.md)。 84 85### 编译构建<a name="section2081013992812"></a> 86 87如果这是您的首次应用程序开发,可参考: 88 89- [helloworld for Hi3516DV300](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart-lite-steps-hi3516-running.md)。 90 91## 相关仓<a name="section1371113476307"></a> 92 93[内核子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E5%86%85%E6%A0%B8%E5%AD%90%E7%B3%BB%E7%BB%9F.md) 94 95[drivers\_liteos](https://gitee.com/openharmony/drivers_liteos/blob/master/README_zh.md) 96 97[kernel\_liteos\_a](https://gitee.com/openharmony/kernel_liteos_a/blob/master/README_zh.md) 98 99