Skip to content

🎯 rt-smart for riscv64 TODO list #8358

Closed
@BernardXiong

Description

@BernardXiong
Member

列出一些rt-smart for riscv64上需要完成的工作事项,希望社区有更多人参与,一起来完成:

  • 升级musl libc版本
    • 因为目前主要使用的musl libc版本是musl-1.1.22版本,而musl对riscv的支持是从1.1.23开始。目前最新的musl libc版本是1.2.4;
    • 解决__riscv_flush_icache的问题;
    • 加入riscv64的ld.so支持,从而支持到动态链接的应用程序; -- 升级musl libc后,应该就可以自动支持到。
  • backtrace,coredump,gdb stub支持到riscv64架构
    统一riscv64的libcpu,把virt,c906等的都统一起来;
    riscv64 cpu,内存,UART,中断相关初始化都可以支持到设备树;

Activity

flyingcys

flyingcys commented on Dec 12, 2023

@flyingcys
Contributor

backtrace我之前有看过一些原理,刚好可以实操一下,backtrace任务我领走。
RISCV64的libcpu统一,也可以我来推进。

pinned this issue on Feb 7, 2024
unpinned this issue on Apr 20, 2024
polarvid

polarvid commented on May 6, 2024

@polarvid
Contributor

进程管理

  • 参考 aarch64 PR sync smart & dfs #8672 支持 arch_syscall_restart

milkv 平台支持

完善 milkv 平台的硬件适配和内核支持,特别是地址空间管理适配到内核地址重映射的模式,确保 libc 和用户程序能够使用更加完善的虚拟内存支持。推进 milkv 平台应用验证和集成测试,提升平台的稳定性和功能完整性,使其成为一个高实时、可靠且多功能的开发平台。

RVV 1.0 合入主线

  • 在 c908/virt64 libcpu 移植中已完成支持,后续期望在 common64 中统一支持该 ISA(待确认)
unicornx

unicornx commented on Dec 4, 2024

@unicornx
Contributor
  • riscv64 cpu,内存,UART,中断相关初始化都可以支持到设备树;

该问题已经建立如下 issue 进行跟踪,先在 duo 上实现支持。

unicornx

unicornx commented on Dec 4, 2024

@unicornx
Contributor
  • 统一riscv64的libcpu,把virt,c906等的都统一起来;

该问题已经建立如下 issue 进行跟踪。

@polarvid 需要确认一下,#9151 就是针对这个问题的工作吗?这个统一的工作你觉得目前是做完了吗?

unicornx

unicornx commented on Dec 4, 2024

@unicornx
Contributor
  • ARCH_REMAP_KERNEL cvitek bsp 支持(待确认)

@polarvid 这个是不是对应的 148e577 的修改?

commit 148e5774c96f84c326452ebe2ee7690f2224949a
Author: Shell <smokewood@qq.com>
Date:   Fri Jul 26 10:12:13 2024 +0800

    bsp: enable KERNEL_REMAP for cvitek platform
    
    Changes:
    
    - board.c: add static assert for KERNEL_VADDR_START to check if it's valid
    - board.h: updated deafult KERNEL_VADDR_START for standard version
    - config bsp for v5.2.0 smart requirements
    - kconfig: update bsp Kconfig for remap kernel
    
    Signed-off-by: Shell <smokewood@qq.com>
    Reviewed-on: https://github.com/RT-Thread/rt-thread/pull/9229
    Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
unicornx

unicornx commented on Dec 4, 2024

@unicornx
Contributor
  • 应用验证:hello world/ Busybox init/ash/gzip(待确认)
    应用验证:vim(待确认)
    应用验证:dropbear(待确认)

@polarvid 请问还能详细描述一下,这里三个”应用验证“ 具体是什么意思?我好对应建立 issue 来 track

unicornx

unicornx commented on Dec 4, 2024

@unicornx
Contributor

RVV 1.0 合入主线

  • 在 c908/virt64 libcpu 移植中已完成支持,后续期望在 common64 中统一支持该 ISA(待确认)

@polarvid 请问这个是否已经实现了? 我看到下面这两个 commit,rvv 1.0 似乎已经统一在 libcpu/risc-v/vector/rvv-1.0 中。

commit 3268716c4fdd506487f89b39b09b8f5339882ae5
Author: heyuanjie87 <943313837@qq.com>
Date:   Thu Nov 21 17:18:35 2024 +0800

    [libcpu][riscv]virt64使用通用vector支持代码

 libcpu/risc-v/virt64/SConscript        |   4 ++--
 libcpu/risc-v/virt64/rvv_context.h     | 111 ---------------------------------------------------------------------------------------------------------------
 libcpu/risc-v/virt64/vector_encoding.h |  51 ---------------------------------------------------
 libcpu/risc-v/virt64/vector_gcc.S      |  45 ---------------------------------------------
 4 files changed, 2 insertions(+), 209 deletions(-)

commit 49b661476393bd9c9fc199362cf4b008c35a9340
Author: heyuanjie87 <943313837@qq.com>
Date:   Wed Oct 16 14:10:09 2024 +0800

    [libcpu]添加对riscv vector的支持 (#9531)
    
    [libcpu]添加对riscv vector的支持

 libcpu/Kconfig                                 |  12 ++++++++++++
 libcpu/risc-v/common64/stackframe.h            |   3 ++-
 libcpu/risc-v/t-head/c908/SConscript           |   4 ++--
 libcpu/risc-v/vector/rvv-1.0/rvv_context.h     | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 libcpu/risc-v/vector/rvv-1.0/vector_encoding.h |  55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 183 insertions(+), 3 deletions(-)
unicornx

unicornx commented on Dec 4, 2024

@unicornx
Contributor

进程管理

  • 参考 aarch64 PR sync smart & dfs #8672 支持 arch_syscall_restart

@polarvid 请问具体这个具体是指什么工作?是否已经完成了?

12 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: RISC-VBSP related with risc-vRT-SmartRT-Thread Smart related PR or issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @BernardXiong@unicornx@heyuanjie87@flyingcys@polarvid

        Issue actions

          🎯 rt-smart for riscv64 TODO list · Issue #8358 · RT-Thread/rt-thread