Skip to content

Instantly share code, notes, and snippets.

View lupyuen's full-sized avatar
💭
Apache NuttX RTOS on Sophgo SG2000 / Milk-V Duo S RISC-V SBC

Lup Yuen Lee lupyuen

💭
Apache NuttX RTOS on Sophgo SG2000 / Milk-V Duo S RISC-V SBC
View GitHub Profile
[I][]
[I][] ____ ____ __ __ _
[I][] / __ \ \ / _|/ _| | | | |_ __ ___ _ __ | |_) | ___ _| |_| |_ __ _| | ___
[I][] / _ \ '_ \| _ < / _ \| | | | _/ _` | |/ _ \
[I][] | |__| | | __/ | | | |_) | (_) | |_| | || (_| | | (_) |
[I][] \____/| / \___|_| |_|____/ \___/ \__,_|_ |_| \__,_|_|\___/
[I][] |
[I][] |
[I][]
[IPowered by BouffaloLab
[I][]
[I][] ____ ____ __ __ _
[I][] / __ \ | _ \ / _|/ _| | |
[I][] | | | |_ __ ___ _ __ | |_) | ___ _ _| |_| |_ __ _| | ___
[I][] | | | | '_ \ / _ \ '_ \| _ < / _ \| | | | _| _/ _` | |/ _ \
[I][] | |__| | |_) | __/ | | | |_) | (_) | |_| | | | || (_| | | (_) |
[I][] \____/| .__/ \___|_| |_|____/ \___/ \__,_|_| |_| \__,_|_|\___/
[I][] | |
[I][] |_|
[I][]
@lupyuen
lupyuen / ox64-led-driver.md
Last active July 2, 2024 07:12
Prepare Local PR for Ox64 LED Driver

Prepare Local PR for Ox64 LED Driver

  1. For NuttX and NuttX Apps: Sync Fork > Update Branch

  2. Based on NuttX and NuttX Apps master branch: Create a new branch gpio3

  3. Copy from gpio to gpio3, ONLY the Ox64 LED Driver, not the BL808 GPIO Driver

    (Only 7 files, see below)

Script started on 2024-06-27 15:18:15+08:00 [COMMAND="screen /dev/ttyUSB0 2000000" TERM="xterm-256color" TTY="/dev/pts/1" COLUMNS="63" LINES="39"]
[I][]
[I][] ____ ____ __ __ _
[I][] / __ \ | _ \ / _|/ _| | |
[I][] | | | |_ __ ___ _ __ | |_) | ___ _ _| |_| |_ __ _| | ___
[I][] | | | | '_ \ / _ \ '_ \| _ < / _ \| | | | _| _/ _` | |/ _ \
[I][] | |__| | |_) | __/ | | | |_) | (_) | |_| | | | || (_| | | (_) |
[I][] \____/| .__/ \___|_| |_|____/ \___/ \__,_|_| |_| \__,_|_|\___/
[I][] | |
[I][] |_|
Script started on 2024-06-25 18:15:46+08:00 [COMMAND="screen /dev/ttyUSB0 115200" TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="72" LINES="40"]
[!p[?3;4l>[?1049h[?1h=(BDRAM: 2048 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.2(release):v2.2-904-gf9ea3a629
NOTICE: BL31: Built : 15:32:12, Apr 9 2020
NOTICE: BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE: BL31: Found U-Boot DTB at 0x4064410, model: PinePhone
NOTICE: PSCI: System suspend is unavailable
Script started on 2024-06-25 17:57:04+08:00 [COMMAND="screen /dev/ttyUSB0 115200" TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="72" LINES="40"]
[!p[?3;4l>[?1049h[?1h=(B
U-Boot SPL 2021.10 (Jan 19 2023 - 04:09:41 +0800)
DDR version: dc2e84f0.
Trying to boot from SPI
OpenSBI v1.2
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
[I][]
[I][] ____ ____ __ __ _
[I][] / __ \ / _|/ _| | |
[I][] |_ __ | |_) | ___ _ _| |_| |_ __ _| | ___
[I][] | | | | '_ \ / _ \ '_ \| _ < / _ \| | | | _| _/ _` | |/ _ \
[I][] | |__| | |_) | __/ | | | |_) | (_) | |_| | | | || (_| | | (_) |
[I][] \____/| .__/ \___|_| |_|____/ \___/ \__,_|_| |_| \__,_|_|\___/
[I][] | |
[I][] |_|
[I][]
Script started on Tue Jun 25 17:27:15 2024
Command: screen /dev/tty.usbserial-0001 115200
[?1049h[!p[?3;4l>[?1h=(BC.SCS/0/0.WD.URPL.SDI/25000000/6000000.BS/SD.PS.SD/0x0/0x1000/0x1000/0.PE.BS.SD/0x1000/0x8200/0x8200/0.BE.J.
FSBL Jb2829:gbeb1483-dirty:2024-05-07T08:13:20+00:00
st_on_reason=d0000
st_off_reason=0
P2S/0x1000/0xc00a200.
SD/0x9200/0x1000/0x1000/0.P2E.
DPS/0xa200/0x2000.
SD/0xa200/0x2000/0x2000/0.DPE.
* Executing task: cd nuttx && ../run.sh
+ export PATH=/Users/luppy/xpack-riscv-none-elf-gcc-13.2.0-2/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/luppy/.cargo/bin:/Users/Luppy/.platformio/penv/bin:/Users/Luppy/.platformio/penv:/Users/Luppy/.local/bin:/usr/local/opt/llvm@3.9/bin:/Users/Luppy/google-cloud-sdk/bin:/Users/Luppy/anaconda/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/opt/local/bin:/opt/local/sbin:/opt/X11/bin:/usr/local/go/bin:PATH=/Users/Luppy/google-cloud-sdk/bin:/Users/Luppy/go/bin:/Users/Luppy/.rvm/bin:/Applications/apache-ant-1.8.4/bin:/usr/local/share/npm/bin/:/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin
+ PATH=/Users/luppy/xpack-ris
* Executing task: cd nuttx && ../run.sh
rm: init.S: No such file or directory
rm: initrd: No such file or directory
rm: boards/risc-v/bl808/ox64/src/etctmp: No such file or directory
+ git pull
Already up to date.
+ git status
On branch fix12320
Your branch is up to date with 'origin/fix12320'.