#!/bin/bash
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This script installs the packages required for a Linux Debian host
# to build apps for and flash the Coral Dev Board Micro

set -ex

sudo apt-get update
sudo apt-get -y install \
  protobuf-compiler \
  cmake \
  libhidapi-hidraw0 \
  libusb-1.0-0-dev \
  libudev-dev \
  python3-dev \
  python3-pip

python3 -m pip install pip --upgrade
python3 -m pip install -r scripts/requirements.txt

sudo cp scripts/99-coral-micro.rules /etc/udev/rules.d
sudo udevadm control --reload-rules
sudo udevadm trigger

#!/bin/bash
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This script installs the packages required for a Linux Debian host
# to build apps for and flash the Coral Dev Board Micro

set -ex

sudo apt-get update
sudo apt-get -y install \
  protobuf-compiler \
  cmake \
  libhidapi-hidraw0 \
  libusb-dev \
  libudev-dev \
  python3-dev \
  python3-pip

python3 -m pip install pip --upgrade
python3 -m pip install -r scripts/requirements.txt

sudo cp scripts/99-coral-micro.rules /etc/udev/rules.d
sudo udevadm control --reload-rules
sudo udevadm trigger

--- 
+++ 
@@ -23,7 +23,7 @@
   protobuf-compiler \
   cmake \
   libhidapi-hidraw0 \
-  libusb-dev \
+  libusb-1.0-0-dev \
   libudev-dev \
   python3-dev \
   python3-pip
Use correct name for libusb development package

Change-Id: I830bc4b4386298988758bceb0c65922a444713ae
GitOrigin-RevId: e3ed0e29ee7eadf14d81cb580b4b8bfdc8b27b89
