预编译固件
系统预编译镜像已上传到百度网盘,下载方法:
链接: 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环境
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
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
python3 -m pip uninstall ohos-build
python3 -m pip install --user ohos-build
sudo ln -sf bash /bin/sh
git config --global user.name your_name
git config --global user.email your_email
源码下载
OpenHarmony-2.2-beta2代码下载
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代码下载
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,如下图所示:
![](//file.elecfans.com/web2/M00/4F/16/pYYBAGK-pTqAEko6AADG509Zy_E666.png)
hb build -f --patch
镜像烧录
编译后在out/x2000/halley5_spi_nand_flash目录下生成uboot,uImage,rootfs_ubifs.img三个镜像,将这三个镜像烧录到开发板上。具体烧录方法:
How_to_Burn
|