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
@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;
@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
@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"
@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
@cjonesy
cjonesy / macbook_pro_ubuntu_install.md
Last active July 12, 2024 23:40
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