https://wiki.radxa.com/mw/index.php?title=RockpiS/dev/otg/testing&feed=atom&action=historyRockpiS/dev/otg/testing - Revision history2024-03-29T04:53:11ZRevision history for this page on the wikiMediaWiki 1.23.3https://wiki.radxa.com/mw/index.php?title=RockpiS/dev/otg/testing&diff=3976&oldid=prevStephen: Created page with "{{rockpiS_header}} {{Languages|rockpiS/dev/otg}} ROCK Pi S > Development > Using OTG for ROCK Pi S ===Requirement=..."2019-10-28T07:26:34Z<p>Created page with "{{rockpiS_header}} {{Languages|rockpiS/dev/otg}} <a href="/RockpiS" title="RockpiS"> ROCK Pi S</a> > <a href="/RockpiS/dev" title="RockpiS/dev"> Development</a> > <a href="/RockpiS/dev/otg" title="RockpiS/dev/otg"> Using OTG for ROCK Pi S</a> ===Requirement=..."</p>
<p><b>New page</b></p><div>{{rockpiS_header}}<br />
<br />
{{Languages|rockpiS/dev/otg}}<br />
<br />
[[rockpiS | ROCK Pi S]] > [[rockpiS/dev | Development]] > [[RockpiS/dev/otg | Using OTG for ROCK Pi S]]<br />
<br />
===Requirement===<br />
<br />
* ROCK Pi S<br />
* USB Type C to USB-A cable<br />
<br />
===Step 1: Connecting your ROCK Pi S on PC===<br />
<br />
Using USB Type C to USB-A cable connect your ROCK Pi S and PC.<br />
<br />
===Step 2: Make sure rkdeveloptool is set up on host computer Linux===<br />
<br />
==== Linux====<br />
To build rkdeveloptool on a debian based Linux distribution, follow the instruction below:<br />
<br />
Install build dependency:<br />
sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf<br />
<br />
Clone the source code and build:<br />
git clone https://github.com/rockchip-linux/rkdeveloptool<br />
cd rkdeveloptool<br />
autoreconf -i<br />
./configure<br />
make<br />
<br />
If you encounter compile error like below<br />
./configure: line 4269: syntax error near unexpected token `LIBUSB1,libusb-1.0'<br />
./configure: line 4269: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)'<br />
<br />
<br />
You should install pkg-config libusb-1.0<br />
sudo apt-get install pkg-config libusb-1.0<br />
<br />
Then re-run <br />
autoreconf -i<br />
./configure<br />
make<br />
<br />
Now you have rkdeveloptool executable at the current directory.<br />
sudo cp rkdeveloptool /usr/local/bin/<br />
<br />
==== MacOS ====<br />
<br />
To build rkdeveloptool on macOS, you need [https://brew.sh/ homebrew](or similar package manager) to install required packages.<br />
<br />
Install build dependency:<br />
<br />
brew install automake autoconf libusb<br />
<br />
Clone the source code and build:<br />
<br />
git clone https://github.com/rockchip-linux/rkdeveloptool<br />
cd rkdeveloptool<br />
autoreconf -i<br />
./configure<br />
make<br />
<br />
If you encounter compile error like below<br />
./configure: line 4269: syntax error near unexpected token `LIBUSB1,libusb-1.0'<br />
./configure: line 4269: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)'<br />
<br />
<br />
You should install pkg-config libusb-1.0<br />
brew install pkg-config<br />
<br />
Then re-run <br />
autoreconf -i<br />
./configure<br />
make<br />
<br />
Now you have rkdeveloptool executable at the current directory.<br />
<br />
sudo cp rkdeveloptool /usr/local/bin/<br />
<br />
===Step 3: Testing connected and get help===<br />
<br />
On linux host:<br />
<br />
$ rkdeveloptool ld<br />
<br />
If you can see the information for device your connection is successful, if you want to get help you can type:<br />
<br />
$ rkdeveloptool ?</div>Stephen