You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query-continue>
    <allpages gapcontinue="Rock/AP_android" />
  </query-continue>
  <query>
    <pages>
      <page pageid="1088" ns="0" title="Roc3/dev/adb">
        <revisions>
          <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">{{rock3_header}}

{{Languages|rock3/dev/adb}}

    [[rock3 | ROCK 3]] &gt; [[rock3/dev | Development]] &gt; [[rock3/dev/adb | Using adb]]

===Description===

ROCK 3 supports adb function. Here we use test it on ROCK 3A.
Here we use Type-A to Type-A USB cable with one port connected to the Type-A socket of ROCK 3A, 
and the other port connected to the Type-A socket of the PC.

===Hardware support===

Support hardware platform:
* ROCK 3A  V1.1 or later

=== Operations on ROCK 3A ===

Step 1: Set the USB OTG switch to the '''device''' side(silk screen)

Step 2: Use ssh or [[rock3/dev/serial-console  | serial console]] to access ROCK 3A.

Step 3: Update rockchip-overlay, kernel, rockchip-adbd kernel packages to the latest version.

  $ sudo apt-get install update
  $ sudo apt-get install -y rockchip-overlay 
  $ sudo apt-get install -y linux-4.19-rock-3-latest # (&gt;=4.19.193-5-rockchip)
  $ sudo apt-get install -y rockchip-adbd

Step 4: Reboot the device.

  $ sudo reboot

=== Operations on PC ===

==== Windows ====

Install adb tool under Wins PC. Refer [[Rock/windows_adb | Windows ADB]]

==== Linux ====

Install adb tool under Linux PC. Refer [[Rock/linux_adb | Linux ADB]]

=== ADB Usage ===

Here we use adb to access ROCK 3A under Linux PC.

====Check adb devices====

  $ adb devices
  List of devices attached 
  0123456789ABCDEF	device

====Login/Shell====

  $ adb shell
  # 

And type /bin/bash followed by Enter key to switch to bash shell.

  $ adb shell
  # /bin/bash
  root@rock3a:/# 
  root@rock3a:/# 

====Transmit files from PC to ROCK 3A====

  $ adb push &lt;local path&gt; &lt;remote path&gt;

Example:

On PC, input the following in Terminal

  $ adb push /tmp/meet-rock3a.md /home/rock
  /tmp/meet-rock3a.md: 1 file pushed. 0.0 MB/s (31 bytes in 0.002s)

Check on ROCK 3A

  root@rock3a:/# cat /home/rock/meet-rock3a.md 
  How do you do! ROCK 3 Model A!

====Transmit files from ROCK 3A to PC====

  $ adb pull &lt;remote path&gt; &lt;local path&gt;

Example:

  $ adb pull /home/rock/meet-pc.md /tmp
  /home/rock/meet-pc.md: 1 file pulled. 0.0 MB/s (19 bytes in 0.002s)

  $ cat /tmp/meet-pc.md 
  How do you do! PC!

=== FAQ ===

==== Usage of rockchip-adbd service ====

Start rockchip-adbd service

  $ sudo systemctl start rockchip-adbd

Stop rockchip-adbd service

  $ sudo systemctl stop rockchip-adbd

Reload rockchip-adbd service

  $ sudo systemctl reload rockchip-adbd
  or
  $ sudo systemctl restart rockchip-adbd

If you still have issue with adb, start a new post on the forum. https://forum.radxa.com/c/rock3</rev>
        </revisions>
      </page>
      <page pageid="2" ns="0" title="Rock">
        <revisions>
          <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">{{Rock_header}}

{{Languages|rock}}

&lt;div class=&quot;col-md-8 mwbs-color-darker&quot;&gt;
      &lt;div class=&quot;thumbnail &quot;&gt;http://wiki.radxa.com/mw/images/3/36/Rock.jpg&lt;/div&gt;
      &lt;div class=&quot;caption&quot;&gt;
        &lt;h3&gt;Radxa Rock(Pro/Lite)&lt;/h3&gt;
        &lt;p class=&quot;text-justify&quot;&gt;Radxa Rock is a RK3188 based SBC(Single Board Computer) by [[Special:SpecialContact| Radxa]]. It has a quad core ARM processor, can run android or some Linux distributions. It also features 80 pin 2.54mm headers, which makes it easy to connect other sensors or use the GPIO.&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;
__TOC__
&lt;div class=&quot;col-md-9&quot;&gt;
    &lt;div class=&quot;panel panel-hearts-white&quot;&gt; 
        &lt;div class=&quot;panel-heading&quot;&gt; &lt;h3 class=&quot;panel-title&quot;&gt;&lt;i class=&quot;fa fa-hand-o-up&quot;&gt;&lt;/i&gt; Getting started&lt;/h3&gt; &lt;/div&gt;

&lt;div class=&quot;panel-body&quot;&gt;
The Radxa Rock is shipped with Android 4.2.2 (Jelly Bean) and Ubuntu/Linaro 13.09 dual boot on the NAND flash (on-board storage) and it works out of the box(Rock Pro is shipped with Android 4.4.2(Kitkat) on NAND flash). Let's read '''[[rock/Getting Started|Radxa Rock Getting Started Guide]]''' and hook everything up and start playing with the board.

Once you get started, you can [[Rock/flash_the_image|flash]] latest [[Rock/prebuilt_images|Android image and several Linux images]], or you can try to [[Rock/SD_images|boot Android/Linux from SD card]]. You can also [[Rock/Android_Build|build your own Android]], [[Rock/Booting_Linux|build your own kernel]], [[Rock/ubuntu|build your own Ubuntu root file system]], or whatever you want.

'''FAQs'''

Before you ask any questions about the Radxa Rock check if your question has already been asked and answered [[rock/FAQ|Radxa Rock FAQ]].

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
      &lt;div class=&quot;col-md-3 &quot;&gt;
        &lt;div class=&quot;panel panel-midnight-white&quot;&gt;
          &lt;div class=&quot;panel-heading&quot;&gt;
            &lt;h3 class=&quot;panel-title&quot;&gt;&lt;i class=&quot;fa fa-download&quot;&gt;&lt;/i&gt; Download&lt;/h3&gt;
          &lt;/div&gt;
          &lt;div class=&quot;panel-body&quot;&gt;
Visit the '''[[rock/download| download]]''' page to get the download link and description of the source code, tools, images etc
        &lt;/div&gt;
   &lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;col-md-4 &quot;&gt;
        &lt;div class=&quot;panel panel-cocktail-white&quot;&gt;
          &lt;div class=&quot;panel-heading&quot;&gt;
            &lt;h3 class=&quot;panel-title&quot;&gt;&lt;i class=&quot;fa fa-users&quot;&gt;&lt;/i&gt; Community&lt;/h3&gt;
          &lt;/div&gt;
          &lt;div class=&quot;panel-body&quot;&gt;
'''Users'''

* [http://talk.radxa.com/ Radxa Talk]
* [https://plus.google.com/communities/114007636590240429960 Radxa Google Plus community]
* [https://www.facebook.com/groups/218416868348521/ Facebook Group Page]

'''Developers'''

* [https://groups.google.com/forum/#!forum/radxa radxa google groups], send emails to radxa@googlegroups.com to subscribe 
* &lt;tt&gt;#radxa&lt;/tt&gt; [http://en.wikipedia.org/wiki/Internet_Relay_Chat IRC] channel on [http://freenode.net/ Freenode]. Click to [http://webchat.freenode.net/?channels=radxa join #radxa on Freenode (WebChat mode)], or consult [http://irclog.whitequark.org/radxa/ IRC logs].     
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;panel panel-gunmetal-white&quot;&gt;
          &lt;div class=&quot;panel-heading&quot;&gt;
            &lt;h3 class=&quot;panel-title&quot;&gt;&lt;i class=&quot;fa fa-linux&quot;&gt;&lt;/i&gt; Linux&lt;/h3&gt;
          &lt;/div&gt;
          &lt;div class=&quot;panel-body&quot;&gt;
* [[rock/Booting Linux | Build your own kernel and boot into Linux]]
* [[rock/Linux Mainline | Build Linux Mainline]]
* [[rock/ubuntu| Make Ubuntu rootfs]]
* [[Rock/debian | Make Debian rootfs]]
* [[rock/make_sd_image| Make SD booting images]]
* [[rock/audio | Audio on Rock]]
* [[rock/display | Display on Rock]]
* [[rock/LED| Using LEDs on Rock]]
* [[rock/vnc | Setting up VNC server on Rock]]
* [[rock/sd lubuntu | Boot Lubuntu from SD card]] '''OBSOLETE'''       
          &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;
      &lt;div class=&quot;col-md-4&quot;&gt;
        &lt;div class=&quot;panel panel-mango-white&quot;&gt;
          &lt;div class=&quot;panel-heading&quot;&gt;
            &lt;h3 class=&quot;panel-title&quot;&gt;&lt;i class=&quot;fa fa-cog&quot;&gt;&lt;/i&gt; Common HowTos&lt;/h3&gt;
          &lt;/div&gt;
          &lt;div class=&quot;panel-body&quot;&gt;
* [[rock/flash the image | Flash the image to NAND]]
* [[rock/SD images | Flash the image to SD card]]
* [[rock/SD upgrading | Upgrade NAND from SD card]]
* [[rock/backup| Backing up]]
* [[rock/fsck| Recovery ext4 file system]]
* [[rock/Serial debug tools Setting | Serial console debugging]]
* [[rock/unbrick | Unbrick Rock]]
* [[rock/resize linux rootfs |Resize linux rootfs ]]
* [[rock/ir| Using IR on Rock]]
* [[rock/usb| Using USB on Rock]]
* [[rock/uart| Using UART on Rock]]
* [[rock/Wireless | Using Wireless on Rock]]
* [[rock/Camera | Using Camera on Rock]]
* [[rock/Tp,Lvds,Camera | Using Lvds,Tp,Camera on Rock]]
* [[rock/Rock Lite | Run Rock Lite]]
* [[rock/Hdmi Resolution| Add new hdmi resolution]]
* [[rock/wiringX| wringX:GPIO/I2C/SPI/ISR/UART/PWM]]
* [[rock/Android Gpio| Using gpio In Android apk]]
* [[rock/PM| Config power saving ]]
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;panel panel-berry-white&quot;&gt;
          &lt;div class=&quot;panel-heading&quot;&gt;
            &lt;h3 class=&quot;panel-title&quot;&gt;&lt;i class=&quot;fa fa-check-circle&quot;&gt;&lt;/i&gt; Others&lt;/h3&gt;
          &lt;/div&gt;
          &lt;div class=&quot;panel-body&quot;&gt;
* [[rock/dual boot| Dual boot Android/Linux]]
* [[rock/FreeBSD| Boot FreeBSD]] 
        &lt;/div&gt;
&lt;/div&gt;
        &lt;div class=&quot;panel panel-party-white&quot;&gt;
          &lt;div class=&quot;panel-heading&quot;&gt;
            &lt;h3 class=&quot;panel-title&quot;&gt;&lt;i class=&quot;fa fa-gamepad&quot;&gt;&lt;/i&gt; Addons&lt;/h3&gt;
          &lt;/div&gt;
          &lt;div class=&quot;panel-body&quot;&gt;
* [[rock/cases | Cases]]
* [[rock/cables | Cables]]
* [[rock/shields | Extension boards]]
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;/div&gt;
      &lt;div class=&quot;col-md-4 &quot;&gt;
        &lt;div class=&quot;panel panel-cello-white&quot;&gt;
          &lt;div class=&quot;panel-heading&quot;&gt;
            &lt;h3 class=&quot;panel-title&quot;&gt;&lt;i class=&quot;fa fa-hdd-o&quot;&gt;&lt;/i&gt; Hardware&lt;/h3&gt;
          &lt;/div&gt;
          &lt;div class=&quot;panel-body&quot;&gt;
* [[rock/specifications| Specifications]]
* [[rock/hardware revision | Hardware Revision]]
* [[rock/extension header | Extension Header]]
* [[rock/hardware docs | hardware documents]]
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;panel panel-meadow-white&quot;&gt;
          &lt;div class=&quot;panel-heading&quot;&gt;
            &lt;h3 class=&quot;panel-title&quot;&gt;&lt;i class=&quot;fa fa-android&quot;&gt;&lt;/i&gt; Android&lt;/h3&gt;
          &lt;/div&gt;
          &lt;div class=&quot;panel-body&quot;&gt;
* [[rock/windows adb| ADB under Windows]]
* [[rock/linux adb| ADB under Linux]]
* [[rock/Android Build|Build Android image for RR]]
* [[rock/SD booting | Making bootable SD card]]
* [[rock/AP android |Make radxa as a WIFI_AP]]
* [[rock/Android backup | Backup your apps]]
* [[rock/Android dev tips | Some tips for android development]]
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;panel panel-cyanide-white&quot;&gt;
          &lt;div class=&quot;panel-heading&quot;&gt;
            &lt;h3 class=&quot;panel-title&quot;&gt;&lt;i class=&quot;fa fa-bold&quot;&gt;&lt;/i&gt; Bootloader&lt;/h3&gt;
          &lt;/div&gt;
          &lt;div class=&quot;panel-body&quot;&gt;
* [[rock/bootloader | Boot Loader]]
* [[rock/U-Boot | U-Boot]]
          &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;col-md-6 pull-left&quot;&gt;
        &lt;div class=&quot;panel panel-neutral-white&quot;&gt;
          &lt;div class=&quot;panel-heading&quot;&gt;
            &lt;h3 class=&quot;panel-title&quot;&gt;Projects&lt;/h3&gt;
          &lt;/div&gt;
          &lt;div class=&quot;panel-body&quot;&gt;
* [http://radxa.com/Rock/pilight Run Pilight on Radxa Rock for remote control]
* [http://www.mydbapool.com/install-postgresql-9-4-raspberry-pi-radxa-similarmicrocomputers-running-lubuntu/ How to install PostgreSQL 9.4 on Radxa Rock]
* [http://hwswbits.blogspot.com/2013/10/diy-nas-with-rk3188-device-radxa-rock.html DIY low power NAS (home file server) with Radxa Rock]
* [http://ks20.free.fr/projects/?page=projects Another Radxa-based NAS]
* [http://www.megaleecher.net/Network_Sharing_Radxa_Rock Network sharing on Radxa Rock]
* [http://hwswbits.blogspot.com/2013/10/radxa-rock-communicating-with-i2c.html Hardware hacking: Communicating the Radxa with external I2C devices]
* [http://hwswbits.blogspot.com/2013/10/bitbanging-radxa-rock-gpios.html Hardware hacking: Control Radxa Rock's expansion header GPIOs]
          &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;
      &lt;div class=&quot;col-md-6 pull-right&quot;&gt;
        &lt;div class=&quot;panel panel-concrete-white&quot;&gt;
          &lt;div class=&quot;panel-heading&quot;&gt;
            &lt;h3 class=&quot;panel-title&quot;&gt;References&lt;/h3&gt;
          &lt;/div&gt;
          &lt;div class=&quot;panel-body&quot;&gt;
'''Photos'''

* [http://dl.radxa.com/rock/media/pic/hd/ Some high definition photos of the Radxa Rock engineering samples]

'''External'''

* [http://www.cnx-software.com/2013/09/07/radxa-rock-development-boards-with-rockchip-rk3188-are-available-for-developers-now/ cnx-soft - radxa rock development boards with rockchips rk3188 are available for developers now]
* [http://linuxgizmos.com/open-sbc-runs-android-and-linux-on-quad-core-rockchip/ linuxgizmos - open sbc runs android and linux on quad core rockchip]
* [http://minipute.com/2013/09/12/new-radxa-rock-single-board-computer-runs-rockchip-rk3188-90/3246 minipute - new radxa rock single board computer runs rockchip rk3188]
* [http://omglaptop.com/desktops/radxa-rock-specs-price/ omglaptop - Radxa Rock Specs]
* [http://liliputing.com/2013/10/picuntu-4-5-installer-loads-ubuntu-onto-rockchip-rk3188-devices.html PicUntu 4.5 with a GUI installer for RK3188 based devices]
          &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;




[[Category:Rock]]</rev>
        </revisions>
      </page>
    </pages>
  </query>
</api>