# device_soc_ingenic **Repository Path**: openharmony-sig/device_soc_ingenic ## Basic Information - **Project Name**: device_soc_ingenic - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2022-11-09 - **Last Updated**: 2025-07-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 🚨 **重要提示 | IMPORTANT** > > **⚠️ 此代码仓已归档。新地址请访问 [device_soc_ingenic](https://gitcode.com/openharmony-sig/device_soc_ingenic)。| ⚠️ This repository has been archived. For the new address, please visit [device_soc_ingenic](https://gitcode.com/openharmony-sig/device_soc_ingenic).** > --- > # device_soc_ingenic ## 介绍 该仓库托管君正旗下SoC芯片相关代码,包含X2000 HAL通用模块。 | 芯片 | 能力介绍 | | -------------- | -------------| | X2000 | [Ingenic官网](http://www.ingenic.com.cn/?product/id/34.html)| ## 目录框架 ``` device_soc_ingenic/ ├── docs # 芯片相关通用文档 ├── EULA # 最终用户许可协议 ├── LICENSE # 证书文件 ├── OAT.xml # 开源仓审查规则配置文件 ├── README_zh.md # 中文README文件 └── x2000 # X2000芯片平台目录 └── hal # 代码适配目录 ├── BUILD.gn # GN构建脚本 └── display # hdi display适配模块 ``` ## 编译环境搭建 * 安装必要的库和工具 ``` sudo apt-get install build-essential gcc g++ make zlib* libffi-dev e2fsprogs pkg-config flex bison perl bc openssl libssl-dev libelf-dev libc6-dev binutils binutils-dev libdwarf-dev u-boot-tools mtd-utils cpio device-tree-compiler git git-lfs ruby ccache ``` * 安装python3 ``` 1.sudo apt-get install python3.8 2.安装pip3,更换下载源 sudo apt install python3-pip ``` * 安装hb ``` python3 -m pip install --user ohos-build ``` ## 编译流程 1. 选择芯片 ``` hb set ``` 使用键盘方向键进行板卡demo选择: ``` ingenic > halley5_spi_nand_flash ``` 2. 编译 ``` hb build -f ``` 编译成功界面: ``` [OHOS INFO] c targets overlap rate statistics [OHOS INFO] subsystem files NO. percentage builds NO. percentage overlap rate [OHOS INFO] commonlibrary 3 0.6% 3 0.6% 1.00 [OHOS INFO] hdf 54 11.5% 54 11.5% 1.00 [OHOS INFO] hiviewdfx 12 2.5% 12 2.5% 1.00 [OHOS INFO] kernel 32 6.8% 32 6.8% 1.00 [OHOS INFO] securec 39 8.3% 39 8.3% 1.00 [OHOS INFO] security 54 11.5% 54 11.5% 1.00 [OHOS INFO] startup 6 1.3% 6 1.3% 1.00 [OHOS INFO] systemabilitymgr 15 3.2% 15 3.2% 1.00 [OHOS INFO] test 60 12.7% 60 12.7% 1.00 [OHOS INFO] third_party 215 45.6% 215 45.6% 1.00 [OHOS INFO] thirdparty 215 45.6% 215 45.6% 1.00 [OHOS INFO] updater 4 0.8% 4 0.8% 1.00 [OHOS INFO] xts 60 12.7% 60 12.7% 1.00 [OHOS INFO] [OHOS INFO] c overall build overlap rate: 1.00 [OHOS INFO] [OHOS INFO] [OHOS INFO] xxx build success [OHOS INFO] cost time: 0:00:57 ``` ## 烧录流程 - Cloner [烧录工具下载](https://pan.baidu.com/s/1vdSXvc4wSixspPvyYNCNKA?pwd=BJJZ) [烧录工具教程](docs/usb_cloner.md) ## 相关仓 [vendor_ingenic](https://gitee.com/openharmony-sig/vendor_ingenic) [device_board_ingenic](https://gitee.com/openharmony-sig/device_board_ingenic)