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
@cjonesy
cjonesy / macbook_pro_ubuntu_install.md
Last active November 16, 2024 19:37
Installing Ubuntu on MacBook Pro

Macbook Pro - Ubuntu Install

Requirements

2 USB drives > 2GB

Pre-Install

Create bootable USB drive

  1. Grab the latest Ubuntu Desktop iso image
@lupyuen
lupyuen / nuttx-resolve-conflict.sh
Last active December 15, 2022 00:02
How to Resolve Conflicts for Downstream vs Upstream NuttX
## How to Resolve Conflicts for Downstream vs Upstream NuttX
export MERGE_BRANCH=TODO_CHANGE_THIS
cd /tmp
git clone --branch $MERGE_BRANCH https://github.com/lupyuen/nuttx
cd nuttx
git status
git checkout -b apache-master $MERGE_BRANCH
git pull https://github.com/apache/nuttx.git master
@lupyuen
lupyuen / release.sh
Last active April 12, 2023 12:15
Validate NuttX Release for PinePhone
#!/usr/bin/env bash
## Validate NuttX Release for PinePhone
## Based on https://cwiki.apache.org/confluence/display/NUTTX/Validating+a+staged+Release
## Sample Output: https://gist.github.com/lupyuen/5760e0375d44a06b3c730a10614e4d24
## clear && cd /tmp && script release.log ~/PinePhone/wip-nuttx/release.sh
echo ----- Validate NuttX Release for PinePhone
## TODO: Update PATH
export PATH="$PATH:/Applications/ArmGNUToolchain/11.3.rel1/aarch64-none-elf/bin"
@Pavlos1
Pavlos1 / nuttx_poc.sh
Created February 14, 2024 15:50
Ox64 proof of concept: boot NuttX from flash
##############################################################################
# In this document, we outline the steps required to make a standalone flash
# image for the Ox64 that boots NuttX. We will be using the OpenBouffalo
# buildroot overlay to help us with this, but we will not be building the
# Linux kernel or rootfs.
##############################################################################
# We are using a patched OpenBouffalo overlay so that NuttX is loaded at
# 0x50200000 instead of 0x50000000. If you wish, you can build your own
# NuttX image whose memory map starts at 0x50000000, and then continue following
@kassane
kassane / builtin_cnl.zig
Last active March 26, 2024 14:15
zig esp32 (espressif llvm backend)
const std = @import("std");
/// Zig version. When writing code that supports multiple versions of Zig, prefer
/// feature detection (i.e. with `@hasDecl` or `@hasField`) over version checks.
pub const zig_version = std.SemanticVersion.parse(zig_version_string) catch unreachable;
pub const zig_version_string = "0.12.0-dev.xtensa.2858+8e52bb152";
pub const zig_backend = std.builtin.CompilerBackend.stage2_llvm;
pub const output_mode = std.builtin.OutputMode.Obj;
pub const link_mode = std.builtin.LinkMode.Static;
pub const is_test = false;
@jerpelea
jerpelea / ci-xtensa-01.log
Created October 28, 2024 21:39
[xtensa-01] CI Log for nuttx @ 17bca89f078d38f2ee0c99f79cb150082371ddbc / nuttx-apps @ 48db89158a6912fce16b39bbb15c578e86325261
Script started on 2024-10-28 21:50:56+01:00 [COMMAND="/awork/nuttx/NuttX/farm/run-job.sh xtensa-01" TERM="screen.xterm-256color" TTY="/dev/pts/9" COLUMNS="190" LINES="48"]
latest: Pulling from apache/nuttx/apache-nuttx-ci-linux
Digest: sha256:15949c71a5b70cd12ff63ff326c1d002fd41b8eda504f174c00e96d49b5c4cd5
Status: Image is up to date for ghcr.io/apache/nuttx/apache-nuttx-ci-linux:latest
ghcr.io/apache/nuttx/apache-nuttx-ci-linux:latest
/root
Cloning into 'nuttx'...
remote: Enumerating objects: 803193, done.
remote: Counting objects: 0% (1/2839)remote: Counting objects: 1% (29/2839)remote: Counting objects: 2% (57/2839)remote: Counting objects: 3% (86/2839)remote: Counting objects: 4% (114/2839)remote: Counting objects: 5% (142/2839)remote: Counting objects: 6% (171/2839)remote: Counting objects: 7% (199/2839)remote: Counting objects: 8% (228/2839)remote: Counting objects: 9% (256/2839)remote: Counting objects: 10% (284/2839)remote: Counting objects: 11% (313/2839)remote: Counting objects