Go to file
Ben V. Brown bcc29aa0a8 Prevent touching buds during charge putting us into DFU 2022-12-28 18:18:13 +11:00
apps Prevent touching buds during charge putting us into DFU 2022-12-28 18:18:13 +11:00
config Enable auto shutdown 2022-12-28 17:19:04 +11:00
include/rtos add first commit 2022-08-15 17:20:27 +08:00
platform Add missing .a files 2022-12-27 10:51:10 +11:00
rtos add first commit 2022-08-15 17:20:27 +08:00
scripts add first commit 2022-08-15 17:20:27 +08:00
services Disable factory mode 2022-12-28 17:18:28 +11:00
tests/anc_usb add first commit 2022-08-15 17:20:27 +08:00
thirdparty Add missing .a files 2022-12-27 10:51:10 +11:00
utils Add missing .a files 2022-12-27 10:51:10 +11:00
.gitignore Build bestool first in docker chain 2022-12-27 10:47:35 +11:00
Dockerfile Working Docker build 2022-12-27 22:45:11 +11:00
Makefile add first commit 2022-08-15 17:20:27 +08:00
README.md Update README.md 2022-12-28 17:16:00 +11:00
build.sh Add docker 2022-09-25 18:17:03 +10:00
clear.sh Add docker 2022-09-25 18:17:03 +10:00
docker-compose.yml Use matching compiler to their blobs 2022-12-27 17:00:04 +11:00
download.sh upstream 2022-12-27 10:27:11 +11:00
notes.txt upstream 2022-12-27 10:27:11 +11:00
start_dev.sh Add docker build env 2022-09-25 17:55:03 +10:00
uart_log.sh Set execute bits 2022-09-25 17:23:47 +10:00

README.md

PineBuds Open Source SDK

This is just the SDK from the wiki (so far), with dockerfile setup to make building easier, and my reverse engineered bestool integrated. The docker image will build bestool for you first, then drop you into the dev container for building and flashing the buds.

Usage

To use this setup to build & flash your pine buds you will need a system with docker setup at the minimum. Docker is used to (1) make this all much more reprodicible and easier to debug and (2) so that we dont mess with your host system at all. In order to program the buds from inside of the docker container; privileged mode is used. So do be a tad more careful than usual.


./start_dev.sh # This will cause docker to start your working environment; this should take roughly 1-3 minutes depending on your network speed to the GCC hosting server

# Now you will be inside of the container, and your prompt will look akin to "root@ec5410d0a265:/usr/src#"

./build.sh # This will run make and build the output program. If you have weird build errors try running clean.sh or rm -rf'ing the out folder first

# Now that the firmware has finished building; if there are no errors you can load it to your buds
# Assuming that your serial ports are 0 and 1, run the following to commands to program each bud in series.
# You may need to take the buds out of the case, wait three seconds, place them back. This wakes them up.
bestool write-image out/open_source/open_source.bin --port /dev/ttyACM0
bestool write-image out/open_source/open_source.bin --port /dev/ttyACM1