boards/risc-v: Add support for Milk-V Duo S SBC (SOPHGO SG2000 SoC) #60
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.
Summary
This PR adds support for Milk-V Duo S 64-bit RISC-V SBC, based on SOPHGO SG2000 SoC (T-Head C906 Core). Most of the code is derived from NuttX for Ox64 BL808. The source files are explained in the articles here
Modified Files
boards/Kconfig
: Added Milk-V Duo S boardarch/risc-v/src/sg2000/sg2000_timerisr.c
: Fixed MTIMER_FREQ for sleep() to work correctlyNew Files in boards/risc-v/sg2000/duos
src/sg2000_appinit.c
: Startup Codeinclude/board.h
: Milk-V Duo S Definitionsinclude/board_memorymap.h
: Memory Mapsrc/etc/init.d/rc.sysinit
,rcS
: Startup Scriptsrc/.gitignore
: Ignore the tmp filesystemscripts/ld.script
: Linker Scriptscripts/Make.defs
: Milk-V Duo S Makefilesrc/Makefile
: Milk-V Duo S MakefileKconfig
: Milk-V Duo S Configconfigs/nsh/defconfig
: Build Config forduos:nsh
Updated Documentation
platforms/risc-v/sg2000/index.rst
: New page for SOPHGO SG2000 SoCplatforms/risc-v/sg2000/boards/duos/index.rst
: Building and booting NuttX for Milk-V Duo SImpact
This PR is needed to support NuttX on Milk-V Duo S SBC.
No impact on existing code, since the Milk-V Duo S source files are not used by existing code.
Testing
We tested the NuttX Build on Milk-V Duo S SBC via U-Boot Network Boot (TFTP):
NuttX boots correctly to NSH Shell.
ostest
completes successfully:NuttX Log on Milk-V Duo S
Watch the Demo Video
See the Build Outputs
See the Build Log