From 079843d7772edd81b35e50eeb11ac7b99a547cc2 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Wed, 18 Aug 2021 11:09:59 -0700 Subject: [PATCH] add native build to bin zip --- bin/build-all.sh | 6 +++--- geeksville-private/TODO.md | 3 +-- geeksville-private/bl602.md | 23 +++++++++++++++++++++++ 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 geeksville-private/bl602.md diff --git a/bin/build-all.sh b/bin/build-all.sh index 4bf4ca2bb..b176df5fc 100755 --- a/bin/build-all.sh +++ b/bin/build-all.sh @@ -61,9 +61,6 @@ function do_boards() { # Build universal do_build $board "" "$isNrf" done - - pio run --environment native - cp .pio/build/native/program $OUTDIR/bins/universal/meshtasticd_linux_amd64 } # Make sure our submodules are current @@ -75,6 +72,9 @@ platformio lib update do_boards "$BOARDS_ESP32" "false" do_boards "$BOARDS_NRF52" "true" +pio run --environment native +cp .pio/build/native/program $OUTDIR/bins/universal/meshtasticd_linux_amd64 + echo "Building SPIFFS for ESP32 targets" pio run --environment tbeam -t buildfs cp .pio/build/tbeam/spiffs.bin $OUTDIR/bins/universal/spiffs-$VERSION.bin diff --git a/geeksville-private/TODO.md b/geeksville-private/TODO.md index c39f56e80..5ef0d4e4c 100644 --- a/geeksville-private/TODO.md +++ b/geeksville-private/TODO.md @@ -2,9 +2,8 @@ You probably don't care about this section - skip to the next one. -* add portduino builds to zip * measure rak4630 power draw and turn off power for GPS most of the time. We should be able to run on the small solar panel. -* usb lora dongle from pine64 +* usb lora dongle from pine64, add end user instructions * turn on watchdog reset if app hangs on nrf52 or esp32 * pine64 solar boards * for the matrix gateway? recommended by @sam-uk https://github.com/matrix-org/coap-proxy diff --git a/geeksville-private/bl602.md b/geeksville-private/bl602.md new file mode 100644 index 000000000..f4c27500c --- /dev/null +++ b/geeksville-private/bl602.md @@ -0,0 +1,23 @@ + +* nutcracker https://www.pine64.org/2020/10/28/nutcracker-challenge-blob-free-wifi-ble/ +* https://github.com/pine64/bl_iot_sdk +* https://github.com/pine64/bl602-docs / https://pine64.github.io/bl602-docs/ +* https://github.com/pine64/ArduinoCore-bouffalo + + +cd ~/packages +git clone --recursive https://github.com/pine64/bl_iot_sdk + +https://github.com/spacemeowx2/blflash/releases + + +# FIXME or BL604 +cd bl_iot_sdk +export BL60X_SDK_PATH=/home/kevinh/packages/bl_iot_sdk +export CONFIG_CHIP_NAME=BL602 +cd customer_app/bl602_boot2 +make + +* todo run hello world on hardware (check for bl604 vs bl602 first) +* build/run in the crummy arduino environment +* build in platformio \ No newline at end of file