lupyuen / pinetime-rust-mynewt

PineTime Smart Watch firmware based on Rust and Apache Mynewt OS
https://lupyuen.github.io/articles/sneak-peek-of-pinetime-smart-watch-and-why-its-perfect-for-teaching-iot
Apache License 2.0
213 stars 54 forks source link

install-pi.sh stops on non-existent path #14

Closed honyczek closed 4 years ago

honyczek commented 4 years ago
----- Installing openocd-spi...
+ '[' '!' -d /home/pi/openocd-spi ']'
+ cp /home/pi/openocd-spi/src/openocd /home/pi/pinetime-rust-mynewt/openocd/bin/openocd
cp: cannot create regular file '/home/pi/pinetime-rust-mynewt/openocd/bin/openocd': No such file or directory

At first I had this script in subdirectory /home/pi/PineTime/pinetime-rust-mynewt/scripts/, so I moved the solution to /home/pi/ but the issue was still there. So I created directory openocd/bin by mkdir -p ../openocd/bin and run the script install-pi.sh again and it worked.

Expected behavior:

  1. script will autodetect path.
  2. required directory will be autocreated
lupyuen commented 4 years ago

Thanks! Lemme find a good way to fix this. We will have to create the directory /home/pi/pinetime-rust-mynewt/openocd/bin if it doesn't exist.

I will have to do regression testing, which means installing a fresh Raspberry Pi from scratch with a new SD card. Wonder if there's a simpler way...

honyczek commented 4 years ago

When I tested it again on the fresh install of Raspberry Pi and Raspbian, this issue is still there.

lupyuen commented 4 years ago

Yep not fixed yet :-)

lupyuen commented 4 years ago

Closing this issue because pinetime-rust-mynewt has been revamped for educational use.