Repository navigation
[bsp][k230] add K230D support and Smart improvements - #11897
Open
BernardXiong wants to merge 6 commits into
Open
BernardXiong wants to merge 6 commits into
BernardXiong wants to merge 6 commits into
Conversation
|
rcitach
reviewed
Oct 27, 2026
Comment on lines
+605
to
+617
| #define BSP_ROOTFS_TYPE_EXT4 | ||
| #define BSP_RISCV_FPU_SOFT | ||
| #define RT_USING_DFS_V2 | ||
| #define RT_USING_DFS_DEVFS | ||
| #define RT_USING_DFS_PTYFS | ||
| #define RT_USING_DFS_PROCFS | ||
| #define RT_USING_DFS_CROMFS | ||
| #define RT_USING_DFS_TMPFS | ||
| #define PKG_USING_LWEXT4 | ||
| #define RT_USING_DFS_LWEXT4 | ||
| #define PKG_USING_LWEXT4_LATEST_VERSION | ||
| #define PKG_USING_ZLIB | ||
| #define PKG_USING_ZLIB_LATEST_VERSION |
Contributor
There was a problem hiding this comment.
这个地方感觉怪怪的,建议是通过 menuconfig 重新刷一遍
Member
Author
There was a problem hiding this comment.
已按建议改用 scons --pyconfig-silent 重新生成 bsp/k230/.config 和 rtconfig.h(commit 87a0051),并把分支 rebase 到最新 master。
原来手动追加在 rtconfig.h 末尾的 SOC_K230D、BSP_ROOTFS_TYPE_EXT4、RT_USING_DFS_*、PKG_USING_LWEXT4、PKG_USING_ZLIB 等宏,现在都由 Kconfig 输出到各自对应的 section。生成时为了与 #11892 的依赖保持一致,临时应用了 #11892 的 libcpu/Kconfig 变更,提交中不包含该文件。
- add SOC_K230/SOC_K230D selection and a 128MB memory layout - register GPIO as an RT-Thread pin device - support ext4 rootfs and mount ptyfs and procfs - remove unused board peripheral definitions - switch the toolchain to the musleabi ABI - regenerate .config and rtconfig.h
- use the lp64d ABI expected by libc_kernel.a and libgcc.a - restore the riscv64-unknown-linux-musl toolchain prefix - fix the double-float and soft-float link failure
- format memory layout macros - format the pin device callbacks - no functional change
- initialize all RTC register fields before writing them to hardware - fix the cppcheck uninitvar warning for reserved fields
- initialize alarm date and time register fields before use - fix the cppcheck uninitvar warning for reserved fields
Normalize bsp/k230/.config and rtconfig.h with scons --pyconfig-silent so the Kconfig symbols are emitted in their proper sections instead of being appended at the end of the file. The previous configuration choices are preserved. Co-Authored-By: Claude Code <noreply@anthropic.com>
BernardXiong
force-pushed
the
pr/k230-k230d-smart
branch
from
October 31, 2026 16:04
d82b195 to
87a0051
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
拉取/合并请求描述:(PR description)
为什么提交这份PR (why to submit this PR)
The K230 BSP only targeted the 512MB K230 board and had no K230D (128MB DDR)
variant. It also lacked a pin device, ext4 rootfs support and pseudo terminal
mount points required by the Smart configuration.
你的解决方案是什么 (what is your solution)
Dependencies
ARCH_RISCV_XUANTIE, SVPBMT and RISC-V MMU fixes)RT_LWIP_USING_LOOPBACKKconfig symbol)applied. This PR will be rebased and the configuration regenerated after
the dependencies are merged.
请提供验证的bsp和config (provide the config and bsp)
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up