Skip to content

Instantly share code, notes, and snippets.

View lupyuen's full-sized avatar
💭
Apache NuttX RTOS on Oz64 RISC-V SBC / Sophgo SG2000 SoC

Lup Yuen Lee lupyuen

💭
Apache NuttX RTOS on Oz64 RISC-V SBC / Sophgo SG2000 SoC
View GitHub Profile
➜ riscv $ cd /tmp/special-qemu-riscv-knsh64/nuttx/nuttx
for i in {1..20}
do
echo "===== Attempt $i"
./qemu-riscv-knsh64.exp
if [ $? -ne 0 ]
then
echo "===== ERROR AT ATTEMPT $i"
break
fi
@lupyuen
lupyuen / special-qemu-riscv-knsh64.log
Created September 30, 2024 03:32
Special Build and Test NuttX for QEMU RISC-V 64-bit (Kernel Build)
Script started on Mon Sep 30 11:29:35 2024
Command: /Users/luppy/riscv/nuttx-riscv64/special-qemu-riscv-knsh64.sh
+ tmp_path=/tmp/special-qemu-riscv-knsh64
+ rm -rf /tmp/special-qemu-riscv-knsh64
+ mkdir /tmp/special-qemu-riscv-knsh64
+ cd /tmp/special-qemu-riscv-knsh64
+ neofetch
'c.
,xNMM.
.OMMMMo
* Executing task: cd nuttx && ../run.sh
+ ../nxstyle arch/risc-v/Kconfig
+ ../nxstyle arch/risc-v/src/common/riscv_addrenv.c
+ ../nxstyle arch/risc-v/src/common/riscv_exception.c
+ ../nxstyle arch/risc-v/src/common/riscv_mmu.h
+ 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/[email protected]/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/g
* Executing task: cd nuttx && ../run.sh
+ ../nxstyle arch/risc-v/Kconfig
+ ../nxstyle arch/risc-v/src/common/riscv_addrenv.c
+ ../nxstyle arch/risc-v/src/common/riscv_exception.c
+ ../nxstyle arch/risc-v/src/common/riscv_mmu.h
+ 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/[email protected]/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/g
@lupyuen
lupyuen / special-qemu-riscv-knsh.log
Created September 29, 2024 02:06
Special Build and Test NuttX for QEMU RISC-V 32-bit (Kernel Build)
Script started on Sun Sep 29 10:04:00 2024
Command: /Users/luppy/riscv/nuttx-riscv64/special-qemu-riscv-knsh.sh
+ tmp_path=/tmp/special-qemu-riscv-knsh
+ rm -rf /tmp/special-qemu-riscv-knsh
+ mkdir /tmp/special-qemu-riscv-knsh
+ cd /tmp/special-qemu-riscv-knsh
+ neofetch
'c.
,xNMM.
.OMMMMo
@lupyuen
lupyuen / special-qemu-riscv-knsh64.log
Created September 29, 2024 02:05
Special Build and Test NuttX for QEMU RISC-V 64-bit (Kernel Build)
Script started on Sun Sep 29 10:03:27 2024
Command: /Users/luppy/riscv/nuttx-riscv64/special-qemu-riscv-knsh64.sh
+ tmp_path=/tmp/special-qemu-riscv-knsh64
+ rm -rf /tmp/special-qemu-riscv-knsh64
+ mkdir /tmp/special-qemu-riscv-knsh64
+ cd /tmp/special-qemu-riscv-knsh64
+ neofetch
'c.
,xNMM.
.OMMMMo
@lupyuen
lupyuen / special-qemu-riscv-knsh.log
Created September 29, 2024 02:01
Special Build and Test NuttX for QEMU RISC-V 32-bit (Kernel Build)
Script started on Sun Sep 29 09:58:20 2024
Command: /Users/luppy/riscv/nuttx-riscv64/special-qemu-riscv-knsh.sh
+ tmp_path=/tmp/special-qemu-riscv-knsh
+ rm -rf /tmp/special-qemu-riscv-knsh
+ mkdir /tmp/special-qemu-riscv-knsh
+ cd /tmp/special-qemu-riscv-knsh
+ neofetch
'c.
,xNMM.
.OMMMMo
+ ../nxstyle arch/risc-v/Kconfig
+ ../nxstyle arch/risc-v/src/common/riscv_addrenv.c
+ ../nxstyle arch/risc-v/src/common/riscv_exception.c
+ ../nxstyle arch/risc-v/src/common/riscv_mmu.h
+ 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/[email protected]/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/ap
@lupyuen
lupyuen / special-qemu-riscv-knsh64.log
Created September 29, 2024 01:43
Special Build and Test NuttX for QEMU RISC-V 64-bit (Kernel Build)
Script started on Sun Sep 29 09:40:55 2024
Command: /Users/luppy/riscv/nuttx-riscv64/special-qemu-riscv-knsh64.sh
+ tmp_path=/tmp/special-qemu-riscv-knsh64
+ rm -rf /tmp/special-qemu-riscv-knsh64
+ mkdir /tmp/special-qemu-riscv-knsh64
+ cd /tmp/special-qemu-riscv-knsh64
+ neofetch
'c.
,xNMM.
.OMMMMo
* Executing task: cd nuttx && ../run.sh
+ ../nxstyle arch/risc-v/Kconfig
+ ../nxstyle arch/risc-v/src/common/riscv_addrenv.c
+ ../nxstyle arch/risc-v/src/common/riscv_exception.c
+ ../nxstyle arch/risc-v/src/common/riscv_mmu.h
+ 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/[email protected]/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/g