Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
b7106f29
D
Docs
项目概览
OpenHarmony
/
Docs
大约 1 年 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b7106f29
编写于
6月 29, 2022
作者:
Z
zhujiaxin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
kernel common patch
Signed-off-by:
N
zhujiaxin
<
zhujiaxin@huawei.com
>
上级
b38cab68
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
35 addition
and
23 deletion
+35
-23
en/device-dev/kernel/kernel-standard-patch.md
en/device-dev/kernel/kernel-standard-patch.md
+1
-1
en/device-dev/porting/porting-linux-kernel.md
en/device-dev/porting/porting-linux-kernel.md
+5
-4
en/readme/kernel.md
en/readme/kernel.md
+11
-6
zh-cn/device-dev/kernel/kernel-standard-patch.md
zh-cn/device-dev/kernel/kernel-standard-patch.md
+1
-1
zh-cn/device-dev/porting/porting-linux-kernel.md
zh-cn/device-dev/porting/porting-linux-kernel.md
+6
-5
zh-cn/readme/内核子系统.md
zh-cn/readme/内核子系统.md
+11
-6
未找到文件。
en/device-dev/kernel/kernel-standard-patch.md
浏览文件 @
b7106f29
...
...
@@ -5,7 +5,7 @@
Apply the HDF patches based on the kernel version in the **kernel/linux/build** repository. For details, see the method for applying the HDF patch in **kernel.mk**.
```
$(OHOS_BUILD_HOME)/drivers/
adapter/khdf/linux/patch_hdf.sh $(OHOS_BUILD_HOME) $(KERNEL_SRC_TMP_PATH) $(HDF_PATCH_FIL
E)
$(OHOS_BUILD_HOME)/drivers/
hdf_core/adapter/khdf/linux/patch_hdf.sh $(OHOS_BUILD_HOME) $(KERNEL_SRC_TMP_PATH) $(KERNEL_PATCH_PATH) $(DEVICE_NAM
E)
```
2.
Apply the chip driver patches.
...
...
en/device-dev/porting/porting-linux-kernel.md
浏览文件 @
b7106f29
...
...
@@ -131,14 +131,14 @@ For details about how to use the logs, see [Hilog\_lite](https://gitee.com/openh
Run the shell script to apply HDF patches.
1. Set the
three
variables in the **patch\_hdf.sh** script.
1. Set the
four
variables in the **patch\_hdf.sh** script.
2. Obtain the **patch\_hdf.sh** script.
3. Run the **patch\_hdf.sh** script to pass the
three
variables in sequence.
3. Run the **patch\_hdf.sh** script to pass the
four
variables in sequence.
Run the following command:
```
./patch_hdf.sh [Project root directory path] [Kernel directory path] [
HDF patch fil
e]
./patch_hdf.sh [Project root directory path] [Kernel directory path] [
Kernel patch path] [Device nam
e]
```
The following uses Raspberry Pi 3b as an example:
...
...
@@ -148,7 +148,8 @@ For details about how to use the logs, see [Hilog\_lite](https://gitee.com/openh
PROJ_ROOT/drivers/adapter/khdf/linux/patch_hdf.sh \
PROJ_ROOT # Specify the path of the project root directory.\
PROJ_ROOT/out/KERNEL_OBJ/kernel/src_tmp/linux-rpi3b # Specify the kernel directory for applying the patch.\
PROJ_ROOT/kernel/linux/patches/linux-4.19/hi3516dv300_patch/hdf.patch # HDF patch file.
PROJ_ROOT/kernel/linux/patches/linux-4.19 # Kernel patch patch.\
hi3516dv300 # Device name.
```
2.
Configure the
**config**
file.
...
...
en/readme/kernel.md
浏览文件 @
b7106f29
...
...
@@ -64,18 +64,23 @@ kernel/
│ ├── linux-4.19 # OpenHarmony linux-4.19 common kernel
│ ├── linux-5.10 # OpenHarmony linux-5.10 common kernel
│ ├── build
│ │ ├── BUILD.gn # GN file of the build framework
│ │ ├── BUILD.gn
# GN file of the build framework
│ │ ├── kernel.mk # Kernel build file
│ │ └── ohos.build # Kernel build component file
│ ├── patches
│ │ ├── linux-4.19 # linux-4.19 patches
│ │ │ ├── common_patch
│ │ │ │ └── hdf.patch # linux-4.19 HDF patches
│ │ │ └── hi3516dv300_patch
│ │ │ ├── hi3516dv300.patch # linux-4.19 Hi3516D V300 SOC patches
│ │ │ └── hdf.patch # linux-4.19 Hi3516D V300 HDF patches
│ │ │ └── hi3516dv300.patch # linux-4.19 Hi3516D V300 SOC patches
│ │ └── linux-5.10
│ │ ├── common_patch
│ │ │ └── hdf.patch # linux-5.10 HDF patches
│ │ └── hi3516dv300_patch
│ │ ├── hi3516dv300.patch # linux-5.10 Hi3516D V300 SOC patches
│ │ └── hdf.patch # linux-5.10 Hi3516D V300 HDF patches
│ │ │ └── hi3516dv300.patch # linux-5.10 Hi3516D V300 SOC patches
│ │ └── rkrk3568_patch
│ │ ├── kernel.patch # linux-5.10 rk3568 SOC patches
│ │ └── hdf.patch # linux-5.10 rk3568 customized HDF patches
│ └── config
│ ├── linux-4.19
│ │ └── arch
...
...
@@ -151,7 +156,7 @@ For details, see "Usage" in LiteOS-A Kernel [README](https://gitee.com/openharmo
Apply the HDF kernel patches matching your kernel version. For details, see the method in **kernel.mk** in the **kernel/linux/build** repository.
```
$(OHOS_BUILD_HOME)/drivers/
adapter/khdf/linux/patch_hdf.sh $(OHOS_BUILD_HOME) $(KERNEL_SRC_TMP_PATH) $(HDF_PATCH_FIL
E)
$(OHOS_BUILD_HOME)/drivers/
hdf_core/adapter/khdf/linux/patch_hdf.sh $(OHOS_BUILD_HOME) $(KERNEL_SRC_TMP_PATH) $(KERNEL_PATCH_PATH) $(DEVICE_NAM
E)
```
2.
Apply the chip driver patches.
...
...
zh-cn/device-dev/kernel/kernel-standard-patch.md
浏览文件 @
b7106f29
...
...
@@ -3,7 +3,7 @@
1.
合入HDF补丁
在kernel/linux/build仓中,按照kernel.mk中HDF的补丁合入方法,合入不同内核版本对应的HDF内核补丁:
```
$(OHOS_BUILD_HOME)/drivers/
adapter/khdf/linux/patch_hdf.sh $(OHOS_BUILD_HOME) $(KERNEL_SRC_TMP_PATH) $(HDF_PATCH_FIL
E)
$(OHOS_BUILD_HOME)/drivers/
hdf_core/adapter/khdf/linux/patch_hdf.sh $(OHOS_BUILD_HOME) $(KERNEL_SRC_TMP_PATH) $(KERNEL_PATCH_PATH) $(DEVICE_NAM
E)
```
2.
合入芯片平台驱动补丁
...
...
zh-cn/device-dev/porting/porting-linux-kernel.md
浏览文件 @
b7106f29
...
...
@@ -144,15 +144,15 @@ obj-$(CONFIG_HIEVENT) += hievent/
1.
打HDF补丁。
在Linux内核打HDF补丁时,执行补丁shell脚本合入HDF补丁。
1.
配置HDF补丁脚本的
三
个变量参数。
1.
配置HDF补丁脚本的
四
个变量参数。
2.
获取patch_hdf.sh脚本。
3.
执行patch_hdf.sh脚本依次传入
三
个变量参数。
3.
执行patch_hdf.sh脚本依次传入
四
个变量参数。
patch_hdf.sh脚本
三个参数含义为:第一个入参为工程根目录路径,第二入参为内核目录路径,第三个入参为hdf补丁文件
。
patch_hdf.sh脚本
四个参数含义为:第一个入参为工程根目录路径,第二入参为内核目录路径,第三个入参为内核版本路径,第四个参数是当前设备名
。
```
./patch_hdf.sh [工程根目录路径] [内核目录路径] [
hdf补丁文件
]
./patch_hdf.sh [工程根目录路径] [内核目录路径] [
内核补丁路径] [设备名
]
```
以树莓派3b为示例介绍:
...
...
@@ -163,7 +163,8 @@ obj-$(CONFIG_HIEVENT) += hievent/
PROJ_ROOT/drivers/adapter/khdf/linux/patch_hdf.sh \
PROJ_ROOT # 指定工程根目录路径 \
PROJ_ROOT/out/KERNEL_OBJ/kernel/src_tmp/linux-rpi3b # 打补丁的内核目录路径 \
PROJ_ROOT/kernel/linux/patches/linux-4.19/hi3516dv300_patch/hdf.patch # HDF补丁文件
PROJ_ROOT/kernel/linux/patches/linux-4.19 # 内核补丁路径.\
hi3516dv300 # 设备名.
```
2.
配置config。
...
...
zh-cn/readme/内核子系统.md
100755 → 100644
浏览文件 @
b7106f29
...
...
@@ -75,18 +75,23 @@ kernel/
│ ├── linux-4.19 # OpenHarmony linux-4.19 Common kernel
│ ├── linux-5.10 # OpenHarmony linux-5.10 Common kernel
│ ├── build
│ │ ├── BUILD.gn # 编译框架GN文件
│ │ ├── BUILD.gn
# 编译框架GN文件
│ │ ├── kernel.mk # 内核编译文件
│ │ └── ohos.build # 内核编译组件文件
│ ├── patches
│ │ ├── linux-4.19 # linux-4.19 相关patch
│ │ │ ├── common_patch
│ │ │ │ └── hdf.patch # linux-4.19 HDF patches
│ │ │ └── hi3516dv300_patch
│ │ │ ├── hi3516dv300.patch # linux-4.19 hi3516dv300 SOC patch
│ │ │ └── hdf.patch # linux-4.19 hi3516dv300 hdf patch
│ │ │ └── hi3516dv300.patch # linux-4.19 Hi3516D V300 SOC patches
│ │ └── linux-5.10
│ │ ├── common_patch
│ │ │ └── hdf.patch # linux-5.10 HDF patches
│ │ └── hi3516dv300_patch
│ │ ├── hi3516dv300.patch # linux-5.10 hi3516dv300 SOC patch
│ │ └── hdf.patch # linux-5.10 hi3516dv300 hdf patch
│ │ │ └── hi3516dv300.patch # linux-5.10 Hi3516D V300 SOC patches
│ │ └── rkrk3568_patch
│ │ ├── kernel.patch # linux-5.10 rk3568 SOC patches
│ │ └── hdf.patch # linux-5.10 rk3568 定制 HDF patches
│ └── config
│ ├── linux-4.19
│ │ └── arch
...
...
@@ -162,7 +167,7 @@ Hi3518EV300默认使用jffs2文件系统,Hi3516DV300默认使用FAT文件系
在kernel/linux/build仓中,按照kernel.mk中HDF的补丁合入方法,合入不同内核版本对应的HDF内核补丁:
```
$(OHOS_BUILD_HOME)/drivers/
adapter/khdf/linux/patch_hdf.sh $(OHOS_BUILD_HOME) $(KERNEL_SRC_TMP_PATH) $(HDF_PATCH_FIL
E)
$(OHOS_BUILD_HOME)/drivers/
hdf_core/adapter/khdf/linux/patch_hdf.sh $(OHOS_BUILD_HOME) $(KERNEL_SRC_TMP_PATH) $(KERNEL_PATCH_PATH) $(DEVICE_NAM
E)
```
2.
合入芯片平台驱动补丁
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录