Skip to content

Instantly share code, notes, and snippets.

View lupyuen's full-sized avatar
💭
Apache NuttX RTOS on StarPro64 RISC-V SBC / ESWIN EIC7700X

Lup Yuen Lee lupyuen

💭
Apache NuttX RTOS on StarPro64 RISC-V SBC / ESWIN EIC7700X
View GitHub Profile
@lupyuen
lupyuen / run.sh
Created February 24, 2025 00:43
Apache NuttX RTOS on StarPro64: Build Script
#!/usr/bin/env bash
# Build NuttX for StarPro64
set -e # Exit when any command fails
set -x # Echo commands
## TODO: Set PATH
export PATH="$HOME/xpack-riscv-none-elf-gcc-13.2.0-2/bin:$PATH"
rm -rf \
@lupyuen
lupyuen / gist:2823528f7b53375f080256bc798b2bf5
Last active February 23, 2025 23:36
Apache NuttX RTOS on StarPro64: OSTest runs OK yay! (ESWIN EIC7700X) https://github.com/lupyuen/nuttx-starpro64
This file has been truncated, but you can view the full file.
PHY1 training process:100%
DDR type:LPDDR5;Size:32GB,Data Rate:6400MT/s
DDR self test OK
m
OpenSBI v1.5
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
@lupyuen
lupyuen / gist:64b447472cb953b3a09c4f176465146e
Created February 23, 2025 15:15
Apache NuttX RTOS on StarPro64: OSTest is OK yay!
This file has been truncated, but you can view the full file.
PHY1 training process:100%
DDR type:LPDDR5;Size:32GB,Data Rate:6400MT/s
DDR self test OK
m
OpenSBI v1.5
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
@lupyuen
lupyuen / nuttx-starpro64.log
Last active February 21, 2025 14:38
Apache #NuttX RTOS boots OK on #StarPro64 @ThePine64! 🎉 (#RISCV #ESWIN EIC7700X) ... But OSTest fails 😬 https://youtu.be/70DQ4YlQMMw
PHY1 training process:100%
DDR type:LPDDR5;Size:32GB,Data Rate:6400MT/s
DDR self test OK
m
OpenSBI v1.5
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
@lupyuen
lupyuen / gist:5553ee833440ceb3e2a85cdb5515ed65
Created February 21, 2025 11:39
waiter_func: Thread 2 waiting on semaphore
pll config ok
die_num:0,die_ordinal:0
Firmware version:1.4;disable ECC
PHY0 training process:100%
PHY1 training process:100%
DDR type:LPDDR5;Size:32GB,Data Rate:6400MT/s
DDR self test OK
OpenSBI v1.5
____ _____ ____ _____
PHY1 training process:100%
DDR type:LPDDR5;Size:32GB,Data Rate:6400MT/s
DDR self test OK
m
OpenSBI v1.5
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
pll config ok
die_num:0,die_ordinal:0
Firmware version:1.4;disable ECC
PHY0 training process:100%
PHY1 training process:100%
DDR type:LPDDR5;Size:32GB,Data Rate:6400MT/s
DDR self test OK
OpenSBI v1.5
____ _____ ____ _____
@lupyuen
lupyuen / gist:66f93f69b29ba77f9b0c9eb7f78f1f95
Created February 21, 2025 09:38
Boot HART ID = 2. Boot fail :-(
PHY1 training process:100%
DDR type:LPDDR5;Size:32GB,Data Rate:6400MT/s
DDR self test OK
m
OpenSBI v1.5
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
@lupyuen
lupyuen / gist:47170b4c4d7117ac495c5faede48280b
Created February 21, 2025 09:15
Boot HART ID = 0. OSTest OK yay!
Platform Name : ESWIN EIC7700 EVB
Platform Features : medeleg
Platform HART Count : 4
Platform IPI Device : aclint-mswi
Platform Timer Device : aclint-mtimer @ 1000000Hz
Platform Console Device : uart8250
Platform HSM Device : ---
Platform PMU Device : ---
Platform Reboot Device : eswin_eic770x_reset
Platform Shutdown Device : eswin_eic770x_reset
Script started on 2025-02-20 23:30:52+08:00 [TERM="xterm-256color" TTY="/dev/pts/35" COLUMNS="121" LINES="65"]
$ ./run.sh
+ export RUST_LOG=info
+ RUST_LOG=info
+ export RUST_BACKTRACE=1
+ RUST_BACKTRACE=1
+ (( 1 ))
+ (( 1 ))
+ cargo run
Finished ^[]8;;https://doc.rust-lang.org/cargo/reference/profiles.html#default-profiles^[\`dev` profile [unoptimized + debuginfo]^[]8;;^[\ target(s) in 0.30s