# device_ingenic **Repository Path**: min_rex/device_ingenic ## Basic Information - **Project Name**: device_ingenic - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 7 - **Created**: 2021-09-28 - **Last Updated**: 2021-12-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OpenHarmony Halley5快速上手 ## 预编译固件 系统预编译镜像已上传到百度网盘,下载方法: 链接: https://pan.baidu.com/s/1HVMrlOlkkqzvUqoSNtUmmQ 提取码: p3qw ## 分区方案 |name | start | size | fstype | | -------- | ------- | ------ | ------- | |uboot | 0m | 1m |MTD | |kernel | 1m | 8m |MTD | |rootfs | 9m | 112m |UBIFS | |userdata | 121m | 7m |UBIFS | ## 搭建编译环境 安装Ubuntu 18.04环境 ```bash # 安装必要的包 sudo apt update sudo apt install -y binutils git git-lfs gnupg flex bison gperf build-essential \ zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \ lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \ libgl1-mesa-dev libxml2-utils xsltproc unzip m4 wget bc python python3 \ android-tools-fsutils libssl-dev mtools # 安装repo curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 | sudo tee /usr/local/bin/repo >/dev/null sudo chmod a+x /usr/local/bin/repo # 安装hb python3 -m pip uninstall ohos-build python3 -m pip install --user ohos-build # 将/bin/sh设置为/bin/bash sudo ln -sf bash /bin/sh # 设置git信息 git config --global user.name your_name git config --global user.email your_email ``` ## 源码下载 ### OpenHarmony-2.2-beta2代码下载 ```bash cd ~/ohos mkdir openharmony cd openharmony repo init -u https://gitee.com/dsqiu/oh-ingenic.git -m halley5.xml --no-repo-verify repo sync -c repo forall -c 'git lfs pull' ``` ### OpenHarmony-3.0-lts代码下载 ```bash cd ~/ohos mkdir openharmony cd openharmony repo init -u https://gitee.com/dsqiu/oh-ingenic.git -m xml/halley5-3.0-lts.xml --no-repo-verify repo sync -c repo forall -c 'git lfs pull' ``` ## 编译 * 执行hb set命令,选择halley5_spi_nand_flash,如下图所示: ![](./readme/images/hbset-halley5.png) * 执行下面命令,进行编译: ```bash hb build -f --patch ``` ## 镜像烧录 编译后在out/x2000/halley5_spi_nand_flash目录下生成uboot,uImage,rootfs_ubifs.img三个镜像,将这三个镜像烧录到开发板上。具体烧录方法: [How_to_Burn](./readme/usb_cloner.md)