Skip to content

Instantly share code, notes, and snippets.

@btashton
btashton / jtag-with-ox64.md
Created November 2, 2022 03:53
BL808 Bring Up Notes

Pinouts

The pinout in the schematic is not correct. Instead it is:

GPIO Function
6 M0_JTAG_TMS
7 M0_JTAG_TDO
12 M0_JTAG_TCLK
13 M0_JTAG_TDI
@btashton
btashton / download-nuttx-builds.sh
Created August 11, 2021 05:20
Download Latest NuttX Builds
#!/bin/bash
set -x
# This uses the github cli to handle authenticated API calls
# https://cli.github.com/
gh auth refresh
RUN_ID=$(gh api repos/apache/incubator-nuttx/actions/workflows/908549/runs?branch=master --jq '.workflow_runs[0].id')
gh run download -R apache/incubator-nuttx -D nuttx-builds $RUN_ID
@btashton
btashton / nuttxrelease.md
Last active October 3, 2024 08:35
Create a NuttX Release

Creating an Apache NuttX Release

Checkout the distribution SVN repositories

Releases are managed through an SVN repository. There are two locations where releases can be committed dev and release. Prior to voting a release is staged in the dev folder after a release is approved by the IPMC it is then moved to the release location and committed for distribution. The release folder also holds the GPG public keys that are used for signing release in a KEYS file.

svn checkout https://dist.apache.org/repos/dist/dev/incubator/nuttx nuttx-dev
svn checkout https://dist.apache.org/repos/dist/release/incubator/nuttx nuttx-release

Adding your gpg key

Inside of the dist/release/incubator/nuttx folder is a KEYS file where committers must upload their GPG public key that they use to sign releases. On the top of the file you can see instructions on how to add your key to this file. Be careful to not remove any existing keys. There is a KEYS file in both the dev and releases folder, but uploading to the

@btashton
btashton / notes.md
Last active December 30, 2020 21:34
BL602 Notes

Notes for BL602

Flashing part

Use this OSS flashing tool here https://github.com/spacemeowx2/blflash

NOTE IO8 must be pulled HI on reset to enter ISP mode

cd ~/nuttx/blagain
./blflash-linux-amd64 flash ../wrk/nuttx/nuttx.bin --port /dev/ttyUSB0
@btashton
btashton / nuttxgrub.md
Last active August 4, 2020 04:51
NuttX Grub Config

Booting NuttX via Grub

Note: These instructions are somewhat Fedora specific and also rely on my partion setup.

You will need to make sure on Fedora you have the grub2-efi-x64-modules package installed to provide the multiboot2 grub module.

  1. Create a new file /etc/grub.d/20_nuttx:
#!/usr/bin/sh
exec tail -n +3 $0
@btashton
btashton / uartblink.S
Last active July 31, 2020 19:28
ecall debugging for SERV core
input {
syslog {
port => 5000
}
}
output {
elasticsearch {
embedded => ES_EMBEDDED
host => "ES_HOST"
@btashton
btashton / carcsv.py
Last active September 26, 2017 13:01
pyspark csv
from pyspark import SparkContext
from pyspark.sql import SQLContext
from pyspark.sql.types import *
from IPython.display import display
sc = SparkContext(appName="CarCSV")
sqlContext = SQLContext(sc)
schema = StructType([StructField("year", IntegerType(), False),
StructField("make", StringType(), False),
@btashton
btashton / Docker.txt
Last active August 29, 2015 14:23
Building Intel Edison Firmware
Maybe docker is a better idea
docker pull fedora:20
docker run -i -t -v ~/yoctodocker/:/builddir fedora:20 /bin/bash
cd /builddir
yum install -y gawk make wget tar bzip2 gzip python unzip perl patch \
diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \
ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue which
wget http://downloadmirror.intel.com/24910/eng/edison-src-ww18-15.tgz
@btashton
btashton / python-edison.sh
Created June 12, 2015 23:11
ipython on intel edison
wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install virtualenv