Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
AdRainty
rt-thread
提交
bfc1c615
R
rt-thread
项目概览
AdRainty
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bfc1c615
编写于
9月 07, 2021
作者:
B
BernardXiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[BSP] Enable romfs in x86 BSP
上级
5595df0b
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
73 addition
and
39 deletion
+73
-39
bsp/x86/.config
bsp/x86/.config
+40
-27
bsp/x86/applications/mnt.c
bsp/x86/applications/mnt.c
+24
-3
bsp/x86/rtconfig.h
bsp/x86/rtconfig.h
+9
-9
未找到文件。
bsp/x86/.config
浏览文件 @
bfc1c615
...
@@ -97,19 +97,19 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
...
@@ -97,19 +97,19 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# Command shell
# Command shell
#
#
CONFIG_RT_USING_FINSH
=
y
CONFIG_RT_USING_FINSH
=
y
CONFIG_RT_USING_MSH
=
y
CONFIG_FINSH_USING_MSH
=
y
CONFIG_FINSH_THREAD_NAME
=
"tshell"
CONFIG_FINSH_THREAD_NAME
=
"tshell"
CONFIG_FINSH_THREAD_PRIORITY
=
20
CONFIG_FINSH_THREAD_STACK_SIZE
=
4096
CONFIG_FINSH_USING_HISTORY
=
y
CONFIG_FINSH_USING_HISTORY
=
y
CONFIG_FINSH_HISTORY_LINES
=
5
CONFIG_FINSH_HISTORY_LINES
=
5
CONFIG_FINSH_USING_SYMTAB
=
y
CONFIG_FINSH_USING_SYMTAB
=
y
CONFIG_FINSH_CMD_SIZE
=
80
CONFIG_MSH_USING_BUILT_IN_COMMANDS
=
y
CONFIG_FINSH_USING_DESCRIPTION
=
y
CONFIG_FINSH_USING_DESCRIPTION
=
y
# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set
# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set
CONFIG_FINSH_THREAD_PRIORITY
=
20
CONFIG_FINSH_THREAD_STACK_SIZE
=
4096
CONFIG_FINSH_CMD_SIZE
=
80
# CONFIG_FINSH_USING_AUTH is not set
# CONFIG_FINSH_USING_AUTH is not set
CONFIG_FINSH_USING_MSH
=
y
CONFIG_FINSH_USING_MSH_DEFAULT
=
y
CONFIG_FINSH_USING_MSH_ONLY
=
y
CONFIG_FINSH_ARG_MAX
=
10
CONFIG_FINSH_ARG_MAX
=
10
#
#
...
@@ -117,8 +117,8 @@ CONFIG_FINSH_ARG_MAX=10
...
@@ -117,8 +117,8 @@ CONFIG_FINSH_ARG_MAX=10
#
#
CONFIG_RT_USING_DFS
=
y
CONFIG_RT_USING_DFS
=
y
CONFIG_DFS_USING_WORKDIR
=
y
CONFIG_DFS_USING_WORKDIR
=
y
CONFIG_DFS_FILESYSTEMS_MAX
=
2
CONFIG_DFS_FILESYSTEMS_MAX
=
4
CONFIG_DFS_FILESYSTEM_TYPES_MAX
=
2
CONFIG_DFS_FILESYSTEM_TYPES_MAX
=
4
CONFIG_DFS_FD_MAX
=
16
CONFIG_DFS_FD_MAX
=
16
# CONFIG_RT_USING_DFS_MNTTABLE is not set
# CONFIG_RT_USING_DFS_MNTTABLE is not set
CONFIG_RT_USING_DFS_ELMFAT
=
y
CONFIG_RT_USING_DFS_ELMFAT
=
y
...
@@ -144,7 +144,7 @@ CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=512
...
@@ -144,7 +144,7 @@ CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=512
# CONFIG_RT_DFS_ELM_USE_ERASE is not set
# CONFIG_RT_DFS_ELM_USE_ERASE is not set
CONFIG_RT_DFS_ELM_REENTRANT
=
y
CONFIG_RT_DFS_ELM_REENTRANT
=
y
CONFIG_RT_USING_DFS_DEVFS
=
y
CONFIG_RT_USING_DFS_DEVFS
=
y
# CONFIG_RT_USING_DFS_ROMFS is not set
CONFIG_RT_USING_DFS_ROMFS
=
y
# CONFIG_RT_USING_DFS_RAMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
#
#
...
@@ -288,6 +288,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
...
@@ -288,6 +288,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_AT_DEVICE is not set
# CONFIG_PKG_USING_AT_DEVICE is not set
# CONFIG_PKG_USING_ATSRV_SOCKET is not set
# CONFIG_PKG_USING_ATSRV_SOCKET is not set
# CONFIG_PKG_USING_WIZNET is not set
# CONFIG_PKG_USING_WIZNET is not set
# CONFIG_PKG_USING_ZB_COORDINATOR is not set
#
#
# IoT Cloud
# IoT Cloud
...
@@ -328,6 +329,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
...
@@ -328,6 +329,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_AGILE_MODBUS is not set
# CONFIG_PKG_USING_AGILE_MODBUS is not set
# CONFIG_PKG_USING_AGILE_FTP is not set
# CONFIG_PKG_USING_AGILE_FTP is not set
# CONFIG_PKG_USING_EMBEDDEDPROTO is not set
# CONFIG_PKG_USING_EMBEDDEDPROTO is not set
# CONFIG_PKG_USING_RT_LINK_HW is not set
#
#
# security packages
# security packages
...
@@ -344,6 +346,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
...
@@ -344,6 +346,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_LUA is not set
# CONFIG_PKG_USING_LUA is not set
# CONFIG_PKG_USING_JERRYSCRIPT is not set
# CONFIG_PKG_USING_JERRYSCRIPT is not set
# CONFIG_PKG_USING_MICROPYTHON is not set
# CONFIG_PKG_USING_MICROPYTHON is not set
# CONFIG_PKG_USING_PIKASCRIPT is not set
#
#
# multimedia packages
# multimedia packages
...
@@ -359,6 +362,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
...
@@ -359,6 +362,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TOUCHGFX2RTT is not set
# CONFIG_PKG_USING_TOUCHGFX2RTT is not set
# CONFIG_PKG_USING_NUEMWIN is not set
# CONFIG_PKG_USING_NUEMWIN is not set
# CONFIG_PKG_USING_MP3PLAYER is not set
# CONFIG_PKG_USING_MP3PLAYER is not set
# CONFIG_PKG_USING_TINYJPEG is not set
#
#
# tools packages
# tools packages
...
@@ -390,6 +394,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
...
@@ -390,6 +394,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VCONSOLE is not set
# CONFIG_PKG_USING_VCONSOLE is not set
# CONFIG_PKG_USING_KDB is not set
# CONFIG_PKG_USING_KDB is not set
# CONFIG_PKG_USING_WAMR is not set
# CONFIG_PKG_USING_WAMR is not set
# CONFIG_PKG_USING_WAMR_LATEST_VERSION is not set
# CONFIG_PKG_USING_MICRO_XRCE_DDS_CLIENT is not set
# CONFIG_PKG_USING_MICRO_XRCE_DDS_CLIENT is not set
# CONFIG_PKG_USING_LWLOG is not set
# CONFIG_PKG_USING_LWLOG is not set
# CONFIG_PKG_USING_ANV_TRACE is not set
# CONFIG_PKG_USING_ANV_TRACE is not set
...
@@ -453,6 +458,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
...
@@ -453,6 +458,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_LPM is not set
# CONFIG_PKG_USING_LPM is not set
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
# CONFIG_PKG_USING_WCWIDTH is not set
#
#
# peripheral libraries and drivers
# peripheral libraries and drivers
...
@@ -523,6 +530,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
...
@@ -523,6 +530,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_KOBUKI is not set
# CONFIG_PKG_USING_KOBUKI is not set
# CONFIG_PKG_USING_ROSSERIAL is not set
# CONFIG_PKG_USING_ROSSERIAL is not set
# CONFIG_PKG_USING_MICRO_ROS is not set
# CONFIG_PKG_USING_MICRO_ROS is not set
# CONFIG_PKG_USING_MCP23008 is not set
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
#
#
# AI packages
# AI packages
...
@@ -540,6 +549,27 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
...
@@ -540,6 +549,27 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
#
# miscellaneous packages
# miscellaneous packages
#
#
#
# samples: kernel and components samples
#
# CONFIG_PKG_USING_KERNEL_SAMPLES is not set
# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set
# CONFIG_PKG_USING_NETWORK_SAMPLES is not set
# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set
#
# entertainment: terminal games and other interesting software packages
#
# CONFIG_PKG_USING_CMATRIX is not set
# CONFIG_PKG_USING_SL is not set
# CONFIG_PKG_USING_CAL is not set
# CONFIG_PKG_USING_ACLOCK is not set
# CONFIG_PKG_USING_THREES is not set
# CONFIG_PKG_USING_2048 is not set
# CONFIG_PKG_USING_SNAKE is not set
# CONFIG_PKG_USING_TETRIS is not set
# CONFIG_PKG_USING_DONUT is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
# CONFIG_PKG_USING_FASTLZ is not set
...
@@ -557,14 +587,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
...
@@ -557,14 +587,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_DIGITALCTRL is not set
# CONFIG_PKG_USING_DIGITALCTRL is not set
# CONFIG_PKG_USING_UPACKER is not set
# CONFIG_PKG_USING_UPACKER is not set
# CONFIG_PKG_USING_UPARAM is not set
# CONFIG_PKG_USING_UPARAM is not set
#
# samples: kernel and components samples
#
# CONFIG_PKG_USING_KERNEL_SAMPLES is not set
# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set
# CONFIG_PKG_USING_NETWORK_SAMPLES is not set
# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set
# CONFIG_PKG_USING_HELLO is not set
# CONFIG_PKG_USING_HELLO is not set
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_KI is not set
...
@@ -572,18 +594,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
...
@@ -572,18 +594,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_CRCLIB is not set
#
# entertainment: terminal games and other interesting software packages
#
# CONFIG_PKG_USING_THREES is not set
# CONFIG_PKG_USING_2048 is not set
# CONFIG_PKG_USING_SNAKE is not set
# CONFIG_PKG_USING_TETRIS is not set
# CONFIG_PKG_USING_DONUT is not set
# CONFIG_PKG_USING_ACLOCK is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
# CONFIG_PKG_USING_MCURSES is not set
# CONFIG_PKG_USING_MCURSES is not set
# CONFIG_PKG_USING_COWSAY is not set
# CONFIG_PKG_USING_COWSAY is not set
# CONFIG_PKG_USING_TERMBOX is not set
CONFIG_IA32
=
y
CONFIG_IA32
=
y
bsp/x86/applications/mnt.c
浏览文件 @
bfc1c615
...
@@ -7,11 +7,32 @@
...
@@ -7,11 +7,32 @@
*/
*/
#include <rtthread.h>
#include <rtthread.h>
extern
int
rt_floppy_init
(
void
);
#define DBG_LEVEL DBG_INFO
#include <rtdbg.h>
int
mnt_init
(
void
)
#ifdef RT_USING_DFS
#include <dfs.h>
int
flopyy_system_init
(
void
)
{
{
extern
int
rt_floppy_init
(
void
);
return
rt_floppy_init
();
return
rt_floppy_init
();
}
}
INIT_ENV_EXPORT
(
mnt
_init
);
INIT_ENV_EXPORT
(
flopyy_system
_init
);
#if defined(RT_USING_DFS_ROMFS)
#include <dfs_fs.h>
#include <dfs_romfs.h>
int
mnt_init
(
void
)
{
if
(
dfs_mount
(
RT_NULL
,
"/"
,
"rom"
,
0
,
&
(
romfs_root
))
==
0
)
{
LOG_I
(
"root filesystem mounted."
);
}
return
0
;
}
INIT_APP_EXPORT
(
mnt_init
);
#endif
/* end of RT_USING_DFS_ROMFS */
#endif
/* end of RT_USING_DFS */
bsp/x86/rtconfig.h
浏览文件 @
bfc1c615
...
@@ -62,25 +62,25 @@
...
@@ -62,25 +62,25 @@
/* Command shell */
/* Command shell */
#define RT_USING_FINSH
#define RT_USING_FINSH
#define RT_USING_MSH
#define FINSH_USING_MSH
#define FINSH_THREAD_NAME "tshell"
#define FINSH_THREAD_NAME "tshell"
#define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096
#define FINSH_USING_HISTORY
#define FINSH_USING_HISTORY
#define FINSH_HISTORY_LINES 5
#define FINSH_HISTORY_LINES 5
#define FINSH_USING_SYMTAB
#define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION
#define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096
#define FINSH_CMD_SIZE 80
#define FINSH_CMD_SIZE 80
#define FINSH_USING_MSH
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_MSH_DEFAULT
#define FINSH_USING_DESCRIPTION
#define FINSH_USING_MSH_ONLY
#define FINSH_ARG_MAX 10
#define FINSH_ARG_MAX 10
/* Device virtual file system */
/* Device virtual file system */
#define RT_USING_DFS
#define RT_USING_DFS
#define DFS_USING_WORKDIR
#define DFS_USING_WORKDIR
#define DFS_FILESYSTEMS_MAX
2
#define DFS_FILESYSTEMS_MAX
4
#define DFS_FILESYSTEM_TYPES_MAX
2
#define DFS_FILESYSTEM_TYPES_MAX
4
#define DFS_FD_MAX 16
#define DFS_FD_MAX 16
#define RT_USING_DFS_ELMFAT
#define RT_USING_DFS_ELMFAT
...
@@ -97,6 +97,7 @@
...
@@ -97,6 +97,7 @@
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
#define RT_DFS_ELM_REENTRANT
#define RT_DFS_ELM_REENTRANT
#define RT_USING_DFS_DEVFS
#define RT_USING_DFS_DEVFS
#define RT_USING_DFS_ROMFS
/* Device Drivers */
/* Device Drivers */
...
@@ -186,7 +187,6 @@
...
@@ -186,7 +187,6 @@
/* miscellaneous packages */
/* miscellaneous packages */
/* samples: kernel and components samples */
/* samples: kernel and components samples */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录