google-coral / edgetpu-platforms

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

Add Support Raspberry Pi 2 #6

Closed wgcv closed 5 years ago

wgcv commented 5 years ago

I was checking and the coral has support to RaspberryPi 2 Model B but in the installer install.sh doesn't have.

https://coral.withgoogle.com/docs/accelerator/get-started/

And yes, this means Raspberry Pi is supported. However, we officially support only Raspberry Pi 2/3 Model B/B+ running Raspbian. Unofficially, support for Raspberry Pi Zero is also available (install the TAR from GitHub on your Pi Zero, instead of the one below).

I would add these lines to install.sh

  elif [[ "${MODEL}" == "Raspberry Pi 2 Model B Rev"* ]]; then
    info "Recognized as Raspberry Pi 2 B+."
    LIBEDGETPU_SUFFIX=arm32
    HOST_GNU_TYPE=arm-linux-gnueabihf
  fi
mtyka commented 5 years ago

I don't have a Pi 2 to test this with - can you confirm that this worked on an actual Pi 2? If so I can add unofficial support to the repo here.

wgcv commented 5 years ago

yes

mtyka commented 5 years ago

Ok, added a release binary for Pi 2 - thanks !!