Difference between revisions of "Rock3/dev/usb-install"
Line 5: | Line 5: | ||
* Power adapter | * Power adapter | ||
* '''USB Male A to Male A cable'''(important) USB-C has been seen as not working, an adaptor for USB-C to USB-A has worked. [https://forum.radxa.com/t/otg-flashing-not-working/717 See discussion]. | * '''USB Male A to Male A cable'''(important) USB-C has been seen as not working, an adaptor for USB-C to USB-A has worked. [https://forum.radxa.com/t/otg-flashing-not-working/717 See discussion]. | ||
+ | === Step 1: Make sure rkdeveloptool is set up on host computer === | ||
+ | ==== Linux==== | ||
+ | To build rkdeveloptool on a debain based Linux distribution, follow the instruction below: | ||
+ | |||
+ | Install build dependecy: | ||
+ | sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf | ||
+ | |||
+ | Clone the source code and build: | ||
+ | git clone https://github.com/rockchip-linux/rkdeveloptool | ||
+ | cd rkdeveloptool | ||
+ | autoreconf -i | ||
+ | ./configure | ||
+ | make | ||
+ | |||
+ | If you encounter compile error like below | ||
+ | ./configure: line 4269: syntax error near unexpected token `LIBUSB1,libusb-1.0' | ||
+ | ./configure: line 4269: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)' | ||
+ | |||
+ | |||
+ | You should install pkg-config libusb-1.0 | ||
+ | sudo apt-get install pkg-config libusb-1.0 | ||
+ | |||
+ | Then re-run | ||
+ | autoreconf -i | ||
+ | ./configure | ||
+ | make | ||
+ | |||
+ | Now you have rkdeveloptool executable at the current directory. | ||
+ | sudo cp rkdeveloptool /usr/local/bin/ | ||
+ | |||
+ | ==== MacOS ==== | ||
+ | |||
+ | To build rkdeveloptool on macOS, you need [https://brew.sh/ homebrew](or similar package manager) to install required packages. | ||
+ | |||
+ | Install build dependency: | ||
+ | |||
+ | brew install automake autoconf libusb | ||
+ | |||
+ | Clone the source code and build: | ||
+ | |||
+ | git clone https://github.com/rockchip-linux/rkdeveloptool | ||
+ | cd rkdeveloptool | ||
+ | autoreconf -i | ||
+ | ./configure | ||
+ | make | ||
+ | |||
+ | If you encounter compile error like below | ||
+ | ./configure: line 4269: syntax error near unexpected token `LIBUSB1,libusb-1.0' | ||
+ | ./configure: line 4269: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)' | ||
+ | |||
+ | |||
+ | You should install pkg-config libusb-1.0 | ||
+ | brew install pkg-config | ||
+ | |||
+ | Then re-run | ||
+ | autoreconf -i | ||
+ | ./configure | ||
+ | make | ||
+ | |||
+ | Now you have rkdeveloptool executable at the current directory. | ||
+ | |||
+ | sudo cp rkdeveloptool /usr/local/bin/ |
Revision as of 03:37, 26 August 2021
Contents
Install on eMMC from USB port
This page describes how to download and install the image on eMMC and boot on ROCK 3.
Requirement
- ROCK 3 mainboard
- Power adapter
- USB Male A to Male A cable(important) USB-C has been seen as not working, an adaptor for USB-C to USB-A has worked. See discussion.
Step 1: Make sure rkdeveloptool is set up on host computer
Linux
To build rkdeveloptool on a debain based Linux distribution, follow the instruction below:
Install build dependecy:
sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf
Clone the source code and build:
git clone https://github.com/rockchip-linux/rkdeveloptool cd rkdeveloptool autoreconf -i ./configure make
If you encounter compile error like below
./configure: line 4269: syntax error near unexpected token `LIBUSB1,libusb-1.0' ./configure: line 4269: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)'
You should install pkg-config libusb-1.0
sudo apt-get install pkg-config libusb-1.0
Then re-run
autoreconf -i ./configure make
Now you have rkdeveloptool executable at the current directory.
sudo cp rkdeveloptool /usr/local/bin/
MacOS
To build rkdeveloptool on macOS, you need homebrew(or similar package manager) to install required packages.
Install build dependency:
brew install automake autoconf libusb
Clone the source code and build:
git clone https://github.com/rockchip-linux/rkdeveloptool cd rkdeveloptool autoreconf -i ./configure make
If you encounter compile error like below
./configure: line 4269: syntax error near unexpected token `LIBUSB1,libusb-1.0' ./configure: line 4269: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)'
You should install pkg-config libusb-1.0
brew install pkg-config
Then re-run
autoreconf -i ./configure make
Now you have rkdeveloptool executable at the current directory.
sudo cp rkdeveloptool /usr/local/bin/