google-coral / edgetpu-platforms

EdgeTPU support for other platforms, specifically Raspberry Pi Zero
Apache License 2.0
79 stars 11 forks source link

Release 1.9.2 uninstall script is missing armv6l #2

Closed stonehippo closed 5 years ago

stonehippo commented 5 years ago

The uninstall script currently fails with the error

Your platform is not supported. There’s nothing to uninstall.

This is due to a missing elif when checking the CPU architecture. Adding the following after the armv7l section resolves the issue:

elif [[ "$CPU_ARCH" == "armv6l" ]]; then
  MODEL=$(cat /proc/device-tree/model)
  if [[ "${MODEL}" == "Raspberry Pi Zero W Rev"* ]]; then
    info "Recognized as Raspberry Pi 0"
    LIBEDGETPU_SUFFIX=armv6
    HOST_GNU_TYPE=arm-linux-gnueabihf
  fi
mtyka commented 5 years ago

Fixed. Thanks for noticing this!