Skip to content

Commit

Permalink
sync smart & dfs (#8672)
Browse files Browse the repository at this point in the history
Signed-off-by: xqyjlj <xqyjlj@126.com>
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
  • Loading branch information
2 people authored and Rbb666 committed Apr 19, 2024
1 parent da37ea8 commit 17d22ad
Show file tree
Hide file tree
Showing 131 changed files with 14,805 additions and 6,329 deletions.
4 changes: 2 additions & 2 deletions bsp/qemu-vexpress-a9/.config
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=256
CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
CONFIG_RT_VER_NUM=0x50100
# CONFIG_RT_USING_STDC_ATOMIC is not set
CONFIG_RT_USING_STDC_ATOMIC=y
CONFIG_RT_BACKTRACE_LEVEL_MAX_NR=32
CONFIG_RT_USING_CACHE=y
CONFIG_RT_USING_HW_ATOMIC=y
Expand Down Expand Up @@ -203,7 +203,7 @@ CONFIG_RT_USING_SOFT_RTC=y
CONFIG_RT_USING_SDIO=y
CONFIG_RT_SDIO_STACK_SIZE=4096
CONFIG_RT_SDIO_THREAD_PRIORITY=15
CONFIG_RT_MMCSD_STACK_SIZE=4096
CONFIG_RT_MMCSD_STACK_SIZE=16384
CONFIG_RT_MMCSD_THREAD_PREORITY=22
CONFIG_RT_MMCSD_MAX_PARTITION=16
# CONFIG_RT_SDIO_DEBUG is not set
Expand Down
3 changes: 2 additions & 1 deletion bsp/qemu-vexpress-a9/rtconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#define RT_CONSOLEBUF_SIZE 256
#define RT_CONSOLE_DEVICE_NAME "uart0"
#define RT_VER_NUM 0x50100
#define RT_USING_STDC_ATOMIC
#define RT_BACKTRACE_LEVEL_MAX_NR 32
#define RT_USING_CACHE
#define RT_USING_HW_ATOMIC
Expand Down Expand Up @@ -138,7 +139,7 @@
#define RT_USING_SDIO
#define RT_SDIO_STACK_SIZE 4096
#define RT_SDIO_THREAD_PRIORITY 15
#define RT_MMCSD_STACK_SIZE 4096
#define RT_MMCSD_STACK_SIZE 16384
#define RT_MMCSD_THREAD_PREORITY 22
#define RT_MMCSD_MAX_PARTITION 16
#define RT_USING_SPI
Expand Down
25 changes: 0 additions & 25 deletions bsp/qemu-virt64-aarch64/applications/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

#include <rtthread.h>

#if defined(RT_USING_POSIX_DEVIO) && defined(RT_USING_SMART)
#include <console.h>
#endif

#include <virtio_console.h>

static int console_init()
Expand All @@ -36,8 +32,6 @@ static int console_init()
}
INIT_ENV_EXPORT(console_init);

#ifdef FINSH_USING_MSH

static int console(int argc, char **argv)
{
rt_err_t result = RT_EOK;
Expand All @@ -48,23 +42,6 @@ static int console(int argc, char **argv)
{
rt_kprintf("console change to %s\n", argv[2]);
rt_console_set_device(argv[2]);

#ifdef RT_USING_POSIX_DEVIO
{
rt_device_t dev = rt_device_find(argv[2]);

if (dev != RT_NULL)
{
#ifdef RT_USING_SMART
console_set_iodev(dev);
#else
rt_kprintf("TODO not supported\n");
#endif
}
}
#else
finsh_set_device(argv[2]);
#endif /* RT_USING_POSIX_DEVIO */
}
else
{
Expand All @@ -81,5 +58,3 @@ static int console(int argc, char **argv)
return result;
}
MSH_CMD_EXPORT(console, set console name);

#endif /* FINSH_USING_MSH */
1 change: 0 additions & 1 deletion bsp/qemu-virt64-aarch64/applications/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* 2020/10/7 bernard the first version
*/

#include <stdio.h>
#include <rtthread.h>

int main(void)
Expand Down
8 changes: 8 additions & 0 deletions components/dfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ endif

config RT_USING_DFS_V2
bool "DFS v2.0"
select RT_USING_DEVICE_OPS
endchoice

if RT_USING_DFS_V1
Expand Down Expand Up @@ -170,6 +171,13 @@ endif
depends on RT_USING_DFS_ROMFS
default n

if RT_USING_SMART
config RT_USING_DFS_PTYFS
bool "Using Pseudo-Teletype Filesystem (UNIX98 PTY)"
depends on RT_USING_DFS_DEVFS
default y
endif

config RT_USING_DFS_CROMFS
bool "Enable ReadOnly compressed file system on flash"
default n
Expand Down
Loading

0 comments on commit 17d22ad

Please sign in to comment.