From 1ea3dec51e2199a5dce1034f4acf24105df5b160 Mon Sep 17 00:00:00 2001 From: Will_li8 Date: Mon, 24 Feb 2025 02:31:52 +0000 Subject: [PATCH] =?UTF-8?q?update=20README.md.=20=E4=B8=BA=E4=BE=BF?= =?UTF-8?q?=E4=BA=8E=E5=88=9D=E5=AD=A6=E8=80=85=E5=BF=AB=E9=80=9F=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E6=9E=84=E5=BB=BA=EF=BC=8C=E4=BF=AE=E6=94=B9=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Will_li8 --- README.md | 41 ++++++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 07435ab..594ffff 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 -- Gitee