diff --git a/README.md b/README.md index 07435ab9210772616f5e7251dc315ef9302a735a..594ffff6ab06179cee1cace2e1f3d5a29cf2f7d2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ #### 介绍 -这是openEuler Embedded系统中 飞腾CPU的BSP支持包, 基于openEuler 24.03 LTS 基线, 5.10内核。 +这是openEuler Embedded系统中 飞腾CPU的BSP支持包, 基于openEuler 24.03 LTS 基线, 默认5.10内核(可修改为6.6内核)。 对应 oebuild 构建中的 yocto-meta-openeuler/bsp/meta-phytium **具体的使用方法请参见《Phytium CPU OpenEuler Embedded 用户使用手册》,手册文档在这里查看 https://gitee.com/phytium_embedded/phytium-embedded-docs/tree/master/linux** @@ -20,7 +20,7 @@ $ sudo usermod -a -G docker $(whoami) $ sudo systemctl reload docker && systemctl restart docker $ sudo chmod o+rw /var/run/docker.sock ``` -#### 3 编译镜像 +#### 3 使用默认配置编译镜像 ##### 3.1 初始化oebuild目录 ``` @@ -39,26 +39,30 @@ $ git clone https://gitee.com/phytium_embedded/phytium-bsp-openeuler-embedded.gi $ cp src/yocto-meta-openeuler/bsp/meta-phytium/phytium.yaml src/yocto-meta-openeuler/.oebuild/platform/ ``` -##### 3.3 配置内核选项(根据自身需要) +##### 3.3 执行构建操作 ``` $ cd -$ cd /build/phytium -$ oebuild bitbake -c menuconfig linux-openeuler -``` -##### 3.4 执行构建操作 -``` -$ cd +# 建立构建配置、生成工作路径 $ oebuild generate -p phytium $ cd /build/phytium + +# 执行构建命令 $ oebuild bitbake openeuler-image -or +# 或者 $ oebuild bitbake phydisk ``` -#### 4 其他构建选项说明 +#### 4 定制化构建(根据需要) -##### 4.1 支持编译SD卡镜像(只适用于飞腾派开发板,其他开发板请忽略) +##### 4.1 修改内核选项 +``` +$ cd +$ cd /build/phytium +$ oebuild bitbake -c menuconfig linux-openeuler +``` + +##### 4.2 支持编译SD卡镜像(只适用于飞腾派开发板,其他开发板请忽略) ``` 在local.conf.sample 里添加变量如下变量 $ vim src/yocto-meta-openeuler/.oebuild/local.conf.sample @@ -69,18 +73,25 @@ $ RAMSIZE="2GB" ``` 然后执行构建操作 -##### 4.2 6.6 内核选项 -f kernel6 +##### 4.3 使用6.6内核 ``` +# 添加选项 -f kernel6 $ oebuild generate -p phytium -f kernel6 $ oebuild bitbake openeuler-image ``` -##### 4.3 RT 内核选项 -f rt +##### 4.4 使用RT实时内核 ``` +# 添加选项 -f rt $ oebuild generate -p phytium -f rt $ oebuild bitbake openeuler-image ``` - +修改实时内核的内核选项 +``` +$ cd +$ cd /build/phytium +$ oebuild bitbake -c menuconfig linux-openeuler-rt +``` #### 5 编译完成后的镜像输出位置 ``` /build/phytium/tmp/deploy/images/phytium: kernel image ,rootfs ,dtb and phydisk.img