Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "RockpiS/dev/otg"

< RockpiS‎ | dev
(Created page with "{{rockpiS_header}} {{Languages|rockpiS/dev/otg}} ROCK Pi S > Development > Using OTC for ROCK Pi S ====Requirement...")
 
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
{{Languages|rockpiS/dev/otg}}
 
{{Languages|rockpiS/dev/otg}}
  
     [[rockpiS | ROCK Pi S]] > [[rockpiS/dev | Development]] > [[RockpiS/dev/otg | Using OTC for ROCK Pi S]]
+
     [[rockpiS | ROCK Pi S]] > [[rockpiS/dev | Development]] > [[RockpiS/dev/otg | Using OTG for ROCK Pi S]]
  
====Requirement====
+
===Requirement===
  
 
* ROCK Pi S
 
* ROCK Pi S
*USB Type C to USB-A cable
+
* USB Type C to USB-A cable
  
====Step 1:  Connecting your ROCK Pi S on PC====
+
===Step 1:  Connecting your ROCK Pi S on PC===
  
 
Using USB Type C to USB-A cable connect your ROCK Pi S and PC.
 
Using USB Type C to USB-A cable connect your ROCK Pi S and PC.
  
====Step 2: Make sure rkdeveloptool is set up on host computer Linux====  
+
===Step 2: Make sure rkdeveloptool is set up on host computer Linux===
  
==== Linux====
+
====Linux====
To build rkdeveloptool on a debain based Linux distribution, follow the instruction below:
+
To build rkdeveloptool on a debian based Linux distribution, follow the instruction below:
  
Install build dependecy:
+
Install build dependency:
 
   sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf
 
   sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf
  
Line 45: Line 45:
 
   sudo cp rkdeveloptool /usr/local/bin/
 
   sudo cp rkdeveloptool /usr/local/bin/
  
==== MacOS ====
+
====MacOS====
  
 
To build rkdeveloptool on macOS, you need [https://brew.sh/ homebrew](or similar package manager) to install required packages.
 
To build rkdeveloptool on macOS, you need [https://brew.sh/ homebrew](or similar package manager) to install required packages.
Line 78: Line 78:
 
     sudo cp rkdeveloptool /usr/local/bin/
 
     sudo cp rkdeveloptool /usr/local/bin/
  
====Step 3: Testing connected and get help====
+
===Step 3: Testing connected and get help===
  
 
On linux host:
 
On linux host:
Line 84: Line 84:
 
   $ rkdeveloptool ld
 
   $ rkdeveloptool ld
  
If you can see the information for device your connecting is successed, if you want to get help you can type:
+
If you can see the information for device your connection is successful, if you want to get help you can type:
  
 
   $ rkdeveloptool ?
 
   $ rkdeveloptool ?

Latest revision as of 07:56, 28 October 2019

    ROCK Pi S >  Development >  Using OTG for ROCK Pi S

Requirement

  • ROCK Pi S
  • USB Type C to USB-A cable

Step 1: Connecting your ROCK Pi S on PC

Using USB Type C to USB-A cable connect your ROCK Pi S and PC.

Step 2: Make sure rkdeveloptool is set up on host computer Linux

Linux

To build rkdeveloptool on a debian based Linux distribution, follow the instruction below:

Install build dependency:

 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/

Step 3: Testing connected and get help

On linux host:

  $ rkdeveloptool ld

If you can see the information for device your connection is successful, if you want to get help you can type:

  $ rkdeveloptool ?