[PATCH 0/2] board: sophgo: add support for Milk-V Duo 256M
Hiago De Franco
hfranco at baylibre.com
Fri Jul 10 18:33:54 CEST 2026
Milk-V Duo 256M is a small development board based on the Sophgo SG2002
SoC.
U-Boot runs as the S-mode payload on top of the vendor FSBL and OpenSBI,
packaged together into a FIP image on the SD card.
The vendor FIP tool prepends a 32-byte loader header to u-boot.bin and
loads the result at 0x80200000, so TEXT_BASE is set to 0x80200020 to
match the address the U-Boot code actually runs.
The following peripherals are supported:
- ns16550 serial console (UART0)
- SD/MMC
- Ethernet with the SoC internal PHY
This patch was tested on Milk-V Duo 256MB using an SD card and the Duo
USB & Ethernet IOB (base board) [0].
This series uses the CV1800B SYS_CPU target since SG2002 shares common
IPs with CV1800B. Other SG2002 as LicheeRV Nano does the same.
Note: Linux device tree is not yet merged [1], therefore I am adding a
device tree here and it can be later changed to use the kernel upstream
one.
[0] https://milkv.io/docs/duo/io-board/usb-ethernet-iob
[1] https://lore.kernel.org/lkml/20260710075917.159969-1-chenyou910331@gmail.com/
Link: https://milkv.io/docs/duo/getting-started/duo256m
Signed-off-by: Hiago De Franco <hfranco at baylibre.com>
---
Hiago De Franco (2):
board: sophgo: move ethernet driver to common directory
board: sophgo: add support for Milk-V Duo 256M
arch/riscv/Kconfig | 4 ++
arch/riscv/dts/Makefile | 1 +
arch/riscv/dts/sg2002-milkv-duo256m.dts | 46 +++++++++++++++
board/sophgo/{milkv_duo => common}/ethernet.c | 0
board/sophgo/{milkv_duo => common}/ethernet.h | 0
board/sophgo/milkv_duo/MAINTAINERS | 1 +
board/sophgo/milkv_duo/Makefile | 2 +-
board/sophgo/milkv_duo/board.c | 2 +-
board/sophgo/milkv_duo_256m/Kconfig | 30 ++++++++++
board/sophgo/milkv_duo_256m/MAINTAINERS | 5 ++
board/sophgo/milkv_duo_256m/Makefile | 6 ++
board/sophgo/milkv_duo_256m/board.c | 19 ++++++
board/sophgo/milkv_duo_256m/milkv_duo_256m.env | 8 +++
configs/milkv_duo_256m_defconfig | 42 +++++++++++++
doc/board/sophgo/index.rst | 1 +
doc/board/sophgo/milkv_duo_256m.rst | 82 ++++++++++++++++++++++++++
include/configs/milkv_duo_256m.h | 12 ++++
17 files changed, 259 insertions(+), 2 deletions(-)
---
base-commit: ece349ade2973e220f524ce59e59711cc919263f
change-id: 20260710-add-milkv-duo256m-1662c5cafb35
Best regards,
--
Hiago De Franco <hfranco at baylibre.com>
More information about the U-Boot
mailing list