Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Rt Thread
提交
7237da08
T
Third Party Rt Thread
项目概览
OpenHarmony
/
Third Party Rt Thread
8 个月 前同步成功
通知
2
Star
40
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Rt Thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
7237da08
编写于
2月 08, 2021
作者:
O
openharmony_ci
提交者:
Gitee
2月 08, 2021
浏览文件
操作
浏览文件
下载
差异文件
!1 增加对QEMU arm 'virt' CFI flash的兼容性
Merge pull request !1 from laokz/testqemu
上级
59f39d6c
ce69c4b2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
0 deletion
+12
-0
components/dfs/filesystems/jffs2/jffs2_config.h
components/dfs/filesystems/jffs2/jffs2_config.h
+2
-0
components/dfs/filesystems/jffs2/src/fs-ecos.c
components/dfs/filesystems/jffs2/src/fs-ecos.c
+8
-0
components/dfs/filesystems/jffs2/src/os-ecos.h
components/dfs/filesystems/jffs2/src/os-ecos.h
+2
-0
未找到文件。
components/dfs/filesystems/jffs2/jffs2_config.h
浏览文件 @
7237da08
#ifndef JFFS2_CONFIG_H
#define JFFS2_CONFIG_H
#ifndef LOSCFG_PLATFORM_QEMU_ARM_VIRT_CA7
#include "spinor.h"
#endif
#include "mtd_partition.h"
#ifdef __cplusplus
...
...
components/dfs/filesystems/jffs2/src/fs-ecos.c
浏览文件 @
7237da08
...
...
@@ -24,7 +24,9 @@
#include "jffs2/compr.h"
#include "port/fcntl.h"
#include "porting.h"
#ifndef LOSCFG_PLATFORM_QEMU_ARM_VIRT_CA7
#include "spinor.h"
#endif
#include "limits.h"
#include "los_process_pri.h"
#include "capability_type.h"
...
...
@@ -354,7 +356,11 @@ static int jffs2_mount(cyg_mtab_entry *mte, int partition_num)
if
(
current_node
->
patitionnum
==
partition_num
)
break
;
}
#ifndef LOSCFG_PLATFORM_QEMU_ARM_VIRT_CA7
spinor_mtd
=
GetMtd
(
"spinor"
);
#else
spinor_mtd
=
(
struct
MtdDev
*
)
LOS_DL_LIST_ENTRY
(
patition_head
->
pstNext
,
mtd_partition
,
node_info
)
->
mtd_info
;
#endif
if
(
spinor_mtd
==
NULL
)
{
free
(
jffs2_sb
);
return
EPERM
;
...
...
@@ -362,7 +368,9 @@ static int jffs2_mount(cyg_mtab_entry *mte, int partition_num)
jffs_part
[
partition_num
].
blockEnd
=
current_node
->
end_block
;
jffs_part
[
partition_num
].
blockSize
=
spinor_mtd
->
eraseSize
;
jffs_part
[
partition_num
].
blockStart
=
current_node
->
start_block
;
#ifndef LOSCFG_PLATFORM_QEMU_ARM_VIRT_CA7
(
void
)
FreeMtd
(
spinor_mtd
);
#endif
jffs2_sb
->
jffs2_sb
.
mtd
=
current_node
->
mtd_info
;
jffs2_sb
->
s_dev
=
(
cyg_io_handle_t
)(
&
jffs_part
[
partition_num
]);
...
...
components/dfs/filesystems/jffs2/src/os-ecos.h
浏览文件 @
7237da08
...
...
@@ -24,7 +24,9 @@
#include "errno.h"
#include "jffs2_fs_i.h"
#include "jffs2_fs_sb.h"
#ifndef LOSCFG_PLATFORM_QEMU_ARM_VIRT_CA7
#include "spinor.h"
#endif
#include "fileio.h"
#include "sys/uio.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录