July 6th, 2024

RISC-V Emulator for Sophgo SG2000 SoC (Pine64 Oz64 / Milk-V Duo S)

A RISC-V emulator tailored for Sophgo SG2000 SoC now supports Pine64 Oz64 and Milk-V Duo SBCs. It emulates SG2000 memory map, UART controller, and 64 interrupts, enabling NuttX testing. Future plans include GPIO emulation.

Read original articleLink Icon
RISC-V Emulator for Sophgo SG2000 SoC (Pine64 Oz64 / Milk-V Duo S)

A RISC-V emulator was developed for the Sophgo SG2000 SoC, specifically targeting Pine64 Oz64 and Milk-V Duo SBCs. The emulator underwent updates to match the SG2000 memory map, resolve auipc overflow issues in the boot code, and emulate the 16550 UART controller. Additionally, efforts were made to emulate UART output and input registers, with a focus on handling UART interrupts and data transmission. The emulator was enhanced to support 64 interrupts, crucial for proper functioning of the UART controller. By customizing the TinyEMU emulator, daily automated testing of NuttX for SG2000 became feasible. The process involved modifying the boot code to ensure correct booting addresses and transitioning between RISC-V machine and supervisor modes. Emulation of SG2000 peripherals like GPIO was planned for future implementation. The emulator's development and testing procedures were detailed, emphasizing the importance of accurately emulating hardware components for successful system operation.

Related

Daily Automated Testing for Milk-V Duo S RISC-V SBC (IKEA Tretakt, Apache NuttX)

Daily Automated Testing for Milk-V Duo S RISC-V SBC (IKEA Tretakt, Apache NuttX)

The article discusses daily automated testing for Milk-V Duo S RISC-V SBC using IKEA TRETAKT and NuttX RTOS. Tests run via Home Assistant API, Google Assistant, and USB serial port. Future plans include software emulator testing.

NUMA Emulation Yields "Significant Performance Uplift" to Raspberry Pi 5

NUMA Emulation Yields "Significant Performance Uplift" to Raspberry Pi 5

Engineers at Igalia developed NUMA emulation for ARM64, enhancing Raspberry Pi 5 performance. Linux kernel patches showed 18% multi-core and 6% single-core improvement in Geekbench tests. The concise code may be merged into the mainline kernel for broader benefits.

Milk-V Reveals Technical Specs of Milk-V Jupiter RISC-V Mini-ITX PC

Milk-V Reveals Technical Specs of Milk-V Jupiter RISC-V Mini-ITX PC

Milk-V unveils Milk-V Jupiter RISC-V Mini-ITX PC with SpacemiT K1/M1 SoC, octa-core X60 processor, 2.0 TOPS AI power, RAM options, GPU support, multimedia features, storage choices, connectivity options, and OS compatibility. Available on Taobao.

1990's Workstation in Your Pocket

1990's Workstation in Your Pocket

A project on Hackaday emulates a 1990s DECstation workstation with an RP2040 microcontroller, replicating features like a MIPS processor, UNIX OS, monochrome screen, USB peripherals, and Ethernet. The GitHub repository offers detailed information.

The Workstation You Wanted in 1990, in Your Pocket

The Workstation You Wanted in 1990, in Your Pocket

A project emulates a DECstation on an RP2040 microcontroller, showcasing 1990s computing power. The emulation board offers modest specs but highlights past software efficiency. Enthusiasts discuss early workstation capabilities.

Link Icon 2 comments
By @dmitrygr - 3 months
What manner of insanity is that memory map. Start: 0x80000000. End: 0xFFFFFFFF. Size: 4GB....what now? Did I forget how to subtract?
By @daghamm - 3 months
Speaking of RISCV emulators, I'm looking for an emulator for ESP32-C3 (the new riscv version of esp32).

How hard would it be to add this to qemu, which already supports sifive boards.