<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.radxa.com/mw/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.radxa.com/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=SimenZhor</id>
		<title>Radxa Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.radxa.com/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=SimenZhor"/>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Special:Contributions/SimenZhor"/>
		<updated>2026-06-17T10:07:29Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>https://wiki.radxa.com/RockpiS/dev/libmraa</id>
		<title>RockpiS/dev/libmraa</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/RockpiS/dev/libmraa"/>
				<updated>2020-05-12T08:24:01Z</updated>
		
		<summary type="html">&lt;p&gt;SimenZhor: /* Install essential packages */ Added &amp;quot;install compiler&amp;quot; since gcc is not preinstalled in the March 2020 image&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rockpiS_header}}&lt;br /&gt;
&lt;br /&gt;
{{Languages|rockpiS/dev/libmraa}}&lt;br /&gt;
&lt;br /&gt;
    [[rockpiS | ROCK Pi S]] &amp;gt; [[rockpiS/dev | Development]] &amp;gt; [[rockpiS/dev/libmraa  | Install Libmraa ]]&lt;br /&gt;
&lt;br /&gt;
=== Libmraa on ROCK Pi S ===&lt;br /&gt;
&lt;br /&gt;
This guide describes how to use libmraa on ROCK Pi S.&lt;br /&gt;
&lt;br /&gt;
==== Install essential packages ====&lt;br /&gt;
&lt;br /&gt;
Package libmraa is in the Radxa APT bionic-stable and buster-stable repositories.&lt;br /&gt;
&lt;br /&gt;
Execute the following commands to add Radxa APT&lt;br /&gt;
&lt;br /&gt;
 rock@rockpis:~$ export DISTRO=bionic-stable      # for Bionic&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 rock@rockpis:~$ export DISTRO=buster-stable      # for Buster&lt;br /&gt;
 rock@rockpis:~$ echo &amp;quot;deb http://apt.radxa.com/$DISTRO/ ${DISTRO%-*} main&amp;quot; | sudo tee -a /etc/apt/sources.list.d/apt-radxa-com.list&lt;br /&gt;
&lt;br /&gt;
Get the pub key&lt;br /&gt;
&lt;br /&gt;
 rock@rockpis:~$  wget -O -  apt.radxa.com/buster-testing/public.key | sudo apt-key add -&lt;br /&gt;
&lt;br /&gt;
Install essential packages:&lt;br /&gt;
&lt;br /&gt;
 rock@rockpis:~$ sudo apt-get update&lt;br /&gt;
 rock@rockpis:~$ sudo apt-get install -y rockchip-overlay rockpis-dtbo libmraa # libmraa version: &amp;gt;=0.4&lt;br /&gt;
 rock@rockpis:~$ sudo apt-get install -y linux-4.4-rockpis-latest # ROCK Pi S kernel version: &amp;gt;= 4.4.143-47&lt;br /&gt;
&lt;br /&gt;
Install compiler:&lt;br /&gt;
 rock@rockpis:~$ sudo apt install -y build-essential&lt;br /&gt;
&lt;br /&gt;
==== Enable interface ====&lt;br /&gt;
&lt;br /&gt;
See ROCK Pi S [[rockpiS/hardware/gpio | GPIO pintout]]. ROCK Pi S has a 26-pin colorful expansion header. Each pin is distinguished by color. mraa define is shown below:  &lt;br /&gt;
&lt;br /&gt;
===== Hardware V12 =====&lt;br /&gt;
&lt;br /&gt;
16 GPIO:&lt;br /&gt;
    PIN03      GPIO2_A2&lt;br /&gt;
    PIN05      GPIO2_B0&lt;br /&gt;
    PIN07      GPIO2_B3&lt;br /&gt;
    PIN09      GPIO4_C4&lt;br /&gt;
    PIN11      GPIO4_C2&lt;br /&gt;
    PIN12      GPIO4_A3&lt;br /&gt;
    PIN13      GPIO4_C6&lt;br /&gt;
    PIN15      GPIO4_C5&lt;br /&gt;
    PIN16      GPIO4_D2&lt;br /&gt;
    PIN18      GPIO4_D4&lt;br /&gt;
    PIN19      GPIO1_B0&lt;br /&gt;
    PIN21      GPIO1_A7&lt;br /&gt;
    PIN22      GPIO4_D5&lt;br /&gt;
    PIN23      GPIO1_B1&lt;br /&gt;
    PIN24      GPIO1_B2&lt;br /&gt;
    PIN26      GPIO1_B2&lt;br /&gt;
&lt;br /&gt;
3 I2C:&lt;br /&gt;
    PIN23      I2C'''0'''_SDA&lt;br /&gt;
    PIN24      I2C'''0'''_SCL&lt;br /&gt;
    PIN3       I2C'''1'''_SCL&lt;br /&gt;
    PIN5       I2C'''1'''_SDA&lt;br /&gt;
    PIN13      I2C'''3'''_SDA&lt;br /&gt;
    PIN15      I2C'''3'''_SCL&lt;br /&gt;
   &lt;br /&gt;
1 SPI:&lt;br /&gt;
    PIN19      SPI'''2'''TX        //must disable i2c0&lt;br /&gt;
    PIN21      SPI'''2'''RX        //must disable i2c0&lt;br /&gt;
    PIN23      SPI'''2'''CLK&lt;br /&gt;
    PIN24      SPI'''2'''CSN&lt;br /&gt;
&lt;br /&gt;
3 UART:&lt;br /&gt;
    PIN8       UART'''0'''_TX&lt;br /&gt;
    PIN10      UART'''0'''_RX&lt;br /&gt;
    PIN23      UART'''1'''_TX&lt;br /&gt;
    PIN24      UART'''1'''_RX&lt;br /&gt;
    PIN19      UART'''2'''_RX&lt;br /&gt;
    PIN21      UART'''2'''_TX&lt;br /&gt;
&lt;br /&gt;
2 PWM:&lt;br /&gt;
    PIN11      PWM'''2'''&lt;br /&gt;
    PIN13      PWM'''3'''&lt;br /&gt;
&lt;br /&gt;
1 ADC:&lt;br /&gt;
    PIN26      ADC_IN0          //the measure voltage must lower than 1.8v&lt;br /&gt;
&lt;br /&gt;
For those ROCK Pi S system images released after March 1st, 2020, the configuration file is /boot/uEnv.txt. For more details, follow this guide, [https://wiki.radxa.com/Device-tree-overlays Device tree overlays].&lt;br /&gt;
&lt;br /&gt;
For those ROCK Pi S system images released before March 1st, 2020, the configuration file is /boot/hw_intfc.conf.&lt;br /&gt;
&lt;br /&gt;
==== Test ====&lt;br /&gt;
&lt;br /&gt;
Package libmraa provides some examples for testing spi, uart, i2c, gpio, etc. We way use the c files in /usr/local/share/mraa/examples/c.&lt;br /&gt;
&lt;br /&gt;
And we copy them to home directory.&lt;br /&gt;
&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ cp -av /usr/local/share/mraa/examples/c /home/rock/mraa-examples&lt;br /&gt;
&lt;br /&gt;
You should pay more attention to the Black Bold words when modifying configuration file /boot/uEnv.txt.&lt;br /&gt;
&lt;br /&gt;
===== GPIO test =====&lt;br /&gt;
&lt;br /&gt;
Use '''mraa-gpio tool''' to test&lt;br /&gt;
&lt;br /&gt;
 root@rockpis:~# mraa-gpio list&lt;br /&gt;
 01         3V3: &lt;br /&gt;
 02          5V: &lt;br /&gt;
 03     I2C_SDA: GPIO I2C  &lt;br /&gt;
 04          5V: &lt;br /&gt;
 05     I2C_SCL: GPIO I2C  &lt;br /&gt;
 06         GND: &lt;br /&gt;
 07 I2S0_8CH_MC: GPIO &lt;br /&gt;
 08    UART0_TX: GPIO UART &lt;br /&gt;
 09         GND: &lt;br /&gt;
 10    UART0_RX: GPIO UART &lt;br /&gt;
 11 PWM2,I2C3_S: GPIO I2C  PWM  &lt;br /&gt;
 12 I2S0_8CH_SC: GPIO &lt;br /&gt;
 13 PWM3,I2C3_S: GPIO I2C  PWM  &lt;br /&gt;
 14         GND: &lt;br /&gt;
 15    SPDIF_TX: GPIO &lt;br /&gt;
 16 I2S0_8CH_SD: GPIO &lt;br /&gt;
 17         3V3: &lt;br /&gt;
 18 I2S0_8CH_SD: GPIO &lt;br /&gt;
 19 UART1_RTSN,: GPIO SPI  UART &lt;br /&gt;
 20         GND: &lt;br /&gt;
 21 UART1_CTSN,: GPIO SPI  UART &lt;br /&gt;
 22 I2S0_8CH_LR: GPIO &lt;br /&gt;
 23 UART1_RX,I2: GPIO I2C  SPI  UART &lt;br /&gt;
 24 UART1_TX,I2: GPIO I2C  SPI  UART &lt;br /&gt;
 25         GND: &lt;br /&gt;
 26     ADC_IN0: AIO &lt;br /&gt;
 root@rockpis:~# mraa-gpio set 15 1           #pin15 pull high&lt;br /&gt;
 root@rockpis:~# mraa-gpio set 15 0           #pin15 pull high&lt;br /&gt;
&lt;br /&gt;
===== PWM test =====&lt;br /&gt;
&lt;br /&gt;
ROCK Pi S V1.2 provides 2 PWM, PWM2 and PWM3. It is necessary to enable PWM1, PWM2 and PWM3 at the same time if you need PWM function.&lt;br /&gt;
&lt;br /&gt;
Firstly, modify the /boot/uEnv.txt file to add the following&lt;br /&gt;
&lt;br /&gt;
 root@rockpis:~# cat /boot/uEnv.txt&lt;br /&gt;
 verbosity=7&lt;br /&gt;
 overlay_prefix=rockchip&lt;br /&gt;
 rootfstype=ext4&lt;br /&gt;
 fdtfile=rockchip/rk3308-rock-pi-s.dtb&lt;br /&gt;
 overlays=rk3308-console-on-uart0 '''rk3308-pwm1 rk3308-pwm2 rk3308-pwm3'''&lt;br /&gt;
 rootuuid=37055840-4ec4-444f-979b-9e47ee4bd848&lt;br /&gt;
 initrdsize=0x64d1d4&lt;br /&gt;
 kernelversion=4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 initrdimg=initrd.img-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 kernelimg=vmlinuz-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Modify the macro PWM in /home/rock/mraa-examples/pwm.c as follows to test PWM2. To test PWM3, change '''#define PWM 11''' to '''#define PWM 13'''.&lt;br /&gt;
&lt;br /&gt;
 '''/* PWM declaration */'''&lt;br /&gt;
 '''#define PWM 11'''&lt;br /&gt;
&lt;br /&gt;
Save and compile pwm.c&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ gcc -o pwm pwm.c -lmraa&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ sudo ./pwm &lt;br /&gt;
 PWM value is 0.010015&lt;br /&gt;
 PWM value is 0.019985&lt;br /&gt;
 PWM value is 0.030000&lt;br /&gt;
 PWM value is 0.040014&lt;br /&gt;
 PWM value is 0.049984&lt;br /&gt;
 PWM value is 0.059999&lt;br /&gt;
&lt;br /&gt;
===== I2C test =====&lt;br /&gt;
ROCK Pi S V1.2 provides 3 I2C,There are  I2C0 ,I2C1, I2C3. If you need the I2C function, you can turn on one or more of them.&lt;br /&gt;
&lt;br /&gt;
Firstly, modify the /boot/uEnv.txt file to add the following&lt;br /&gt;
&lt;br /&gt;
 root@rockpis:~# cat /boot/uEnv.txt&lt;br /&gt;
 verbosity=7&lt;br /&gt;
 overlay_prefix=rockchip&lt;br /&gt;
 rootfstype=ext4&lt;br /&gt;
 fdtfile=rockchip/rk3308-rock-pi-s.dtb&lt;br /&gt;
 overlays=rk3308-console-on-uart0  '''rk3308-i2c0 rk3308-i2c1 rk3308-i2c3'''&lt;br /&gt;
 rootuuid=37055840-4ec4-444f-979b-9e47ee4bd848&lt;br /&gt;
 initrdsize=0x64d1d4&lt;br /&gt;
 kernelversion=4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 initrdimg=initrd.img-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 kernelimg=vmlinuz-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
&lt;br /&gt;
We use  MPU6050 tets i2c.&lt;br /&gt;
Modify the macro  MPU6050 in '''/home/rock/mraa-examples/i2c_mpu6050.c''' ,as follows to test I2C0. To test I2C1 and I2C3, change '''#define I2C_BUS 0''' to '''#define I2C_BUS 1'''  or'''#define I2C_BUS 3''' .&lt;br /&gt;
 &lt;br /&gt;
   /* mraa header */&lt;br /&gt;
   #include &amp;quot;mraa/i2c.h&amp;quot;&lt;br /&gt;
   '''#define I2C_BUS 0'''&lt;br /&gt;
   &lt;br /&gt;
Save and compile pwm.c&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ gcc -o i2c_mpu6050 i2c_mpu6050.c  -lmraa&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ sudo ./i2c_mpu6050&lt;br /&gt;
 accel: x:0 y:0 z:0&lt;br /&gt;
 gyro: x:-10 y:1 z:7&lt;br /&gt;
   &lt;br /&gt;
 accel: x:0 y:0 z:0&lt;br /&gt;
 gyro: x:107 y:-12 z:69&lt;br /&gt;
    &lt;br /&gt;
 accel: x:0 y:0 z:0&lt;br /&gt;
 gyro: x:6 y:136 z:-50&lt;br /&gt;
    &lt;br /&gt;
 accel: x:0 y:0 z:0&lt;br /&gt;
 gyro: x:-5 y:48 z:-103&lt;br /&gt;
      &lt;br /&gt;
 accel: x:0 y:0 z:0&lt;br /&gt;
 gyro: x:3 y:3 z:5&lt;br /&gt;
&lt;br /&gt;
===== UART test =====&lt;br /&gt;
ROCK Pi S V1.2 provides 3 UART,There are  '''uart0''' ,'''uart1''', '''uart2'''. If you need the uatr function, you can turn on one or more of them.&lt;br /&gt;
&lt;br /&gt;
Firstly, Disable console and enable '''uart0''' for uart test.modify the '''/boot/uEnv.txt''' file to add the following&lt;br /&gt;
&lt;br /&gt;
 root@rockpis:~# cat /boot/uEnv.txt &lt;br /&gt;
 verbosity=7&lt;br /&gt;
 overlay_prefix=rockchip&lt;br /&gt;
 rootfstype=ext4&lt;br /&gt;
 fdtfile=rockchip/rk3308-rock-pi-s.dtb&lt;br /&gt;
 '''overlays=rk3308-uart0 rk3308-uart1 rk3308-uart2'''&lt;br /&gt;
 '''console='''&lt;br /&gt;
 rootuuid=c3800af9-fa58-4fb3-bb56-e52fd04837ba&lt;br /&gt;
 initrdsize=0x5c96c3&lt;br /&gt;
 kernelversion=4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 initrdimg=initrd.img-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 kernelimg=vmlinuz-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
&lt;br /&gt;
Here set console to NULL value.&lt;br /&gt;
&lt;br /&gt;
then reboot . use ssh connect to rockpis,we must have 2 windows,one is for send data,anothor is for receive.&lt;br /&gt;
&lt;br /&gt;
send command follow:&lt;br /&gt;
 rock@rockpis:~$ sudo mraa-uart dev 0 baud 1500000 send  radxa&lt;br /&gt;
&lt;br /&gt;
Another window sets the baud  1500000 and receives the data &lt;br /&gt;
&lt;br /&gt;
 radxa&lt;br /&gt;
&lt;br /&gt;
receive command follow:&lt;br /&gt;
 rock@rockpis:~$ sudo mraa-uart dev 0 baud 1500000 recv  1000&lt;br /&gt;
 radxa&lt;br /&gt;
&lt;br /&gt;
===== SPI test =====&lt;br /&gt;
&lt;br /&gt;
Firstly, modify the '''/boot/uEnv.txt''' file.&lt;br /&gt;
&lt;br /&gt;
 root@rockpis:~# cat /boot/uEnv.txt&lt;br /&gt;
 verbosity=7&lt;br /&gt;
 overlay_prefix=rockchip&lt;br /&gt;
 rootfstype=ext4&lt;br /&gt;
 fdtfile=rockchip/rk3308-rock-pi-s.dtb&lt;br /&gt;
 overlays=rk3308-console-on-uart0 '''rk3308-spi-spidev'''&lt;br /&gt;
 '''param_spidev_spi_bus=2'''&lt;br /&gt;
 rootuuid=37055840-4ec4-444f-979b-9e47ee4bd848&lt;br /&gt;
 initrdsize=0x64d1d4&lt;br /&gt;
 kernelversion=4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 initrdimg=initrd.img-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 kernelimg=vmlinuz-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
&lt;br /&gt;
then execute command, sync, followed by '''reboot'''.&lt;br /&gt;
&lt;br /&gt;
Create file test-spi.c and add the following contents.&lt;br /&gt;
&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ cat test-spi.c &lt;br /&gt;
 #include &amp;lt;signal.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;unistd.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 /* mraa header */&lt;br /&gt;
 #include &amp;quot;mraa/spi.h&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 /* SPI declaration */&lt;br /&gt;
 '''#define SPI_BUS 2'''&lt;br /&gt;
 &lt;br /&gt;
 /* SPI frequency in Hz */&lt;br /&gt;
 #define SPI_FREQ 10000000&lt;br /&gt;
 int&lt;br /&gt;
 main(int argc, char** argv)&lt;br /&gt;
 {&lt;br /&gt;
     mraa_result_t status = MRAA_SUCCESS;&lt;br /&gt;
     mraa_spi_context spi;&lt;br /&gt;
     int i, j;&lt;br /&gt;
 &lt;br /&gt;
     /* initialize mraa for the platform (not needed most of the times) */&lt;br /&gt;
     mraa_init();&lt;br /&gt;
 &lt;br /&gt;
     //! [Interesting]&lt;br /&gt;
     /* initialize SPI bus */&lt;br /&gt;
     spi = mraa_spi_init(SPI_BUS);&lt;br /&gt;
     if (spi == NULL) {&lt;br /&gt;
         fprintf(stderr, &amp;quot;Failed to initialize SPI\n&amp;quot;);&lt;br /&gt;
         mraa_deinit();&lt;br /&gt;
         return EXIT_FAILURE;&lt;br /&gt;
     }&lt;br /&gt;
 &lt;br /&gt;
     /* set SPI frequency */&lt;br /&gt;
     status = mraa_spi_frequency(spi, SPI_FREQ);&lt;br /&gt;
     if (status != MRAA_SUCCESS)&lt;br /&gt;
         goto err_exit;&lt;br /&gt;
 &lt;br /&gt;
     /* set big endian mode */&lt;br /&gt;
     status = mraa_spi_lsbmode(spi, 0);&lt;br /&gt;
     if (status != MRAA_SUCCESS) {&lt;br /&gt;
         goto err_exit;&lt;br /&gt;
     }&lt;br /&gt;
    &lt;br /&gt;
     j = 10;&lt;br /&gt;
     while(j) {&lt;br /&gt;
   	j--;&lt;br /&gt;
         printf(&amp;quot;0x%x\n&amp;quot;,mraa_spi_write(spi, 0xaa));&lt;br /&gt;
     }&lt;br /&gt;
 err_exit:&lt;br /&gt;
     mraa_result_print(status);&lt;br /&gt;
 &lt;br /&gt;
     /* stop spi */&lt;br /&gt;
     mraa_spi_stop(spi);&lt;br /&gt;
 &lt;br /&gt;
     /* deinitialize mraa for the platform (not needed most of the times) */&lt;br /&gt;
     mraa_deinit();&lt;br /&gt;
 &lt;br /&gt;
      return EXIT_FAILURE;&lt;br /&gt;
 }&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ gcc -o test-spi test-spi.c -lmraa&lt;br /&gt;
&lt;br /&gt;
Then short pin19 and pin21 and run  test-spi&lt;br /&gt;
&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ sudo ./test-spi &lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 MRAA: SUCCESS&lt;br /&gt;
&lt;br /&gt;
===== ADC test =====&lt;br /&gt;
&lt;br /&gt;
connect signal you want to measure, and then compile mraa example c file, aio.c, to test.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rock@rockpis:~/mraa-examples$ gcc -o aio aio.c -lmraa&lt;br /&gt;
rock@rockpis:~/mraa-examples$ sudo ./aio&lt;br /&gt;
ADC A0 read 1A5 - 421&lt;br /&gt;
ADC A0 read float - 0.41153&lt;br /&gt;
ADC A0 read 1A5 - 421&lt;br /&gt;
ADC A0 read float - 0.41153&lt;br /&gt;
ADC A0 read 1A5 - 421&lt;br /&gt;
ADC A0 read float - 0.41153&lt;br /&gt;
ADC A0 read 1A5 - 421&lt;br /&gt;
ADC A0 read float - 0.41153&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Development ====&lt;br /&gt;
&lt;br /&gt;
More introduction of libmraa can look at [http://iotdk.intel.com/docs/master/mraa/index.html libmraa official website].&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
&lt;br /&gt;
* Refer [[RockpiS/getting_started/troubleshooting | Troubleshooting page]]&lt;br /&gt;
* Post your issue on the forum: https://forum.radxa.com/c/rockpiS&lt;/div&gt;</summary>
		<author><name>SimenZhor</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/RockpiS/Ubuntu</id>
		<title>RockpiS/Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/RockpiS/Ubuntu"/>
				<updated>2020-05-12T08:04:46Z</updated>
		
		<summary type="html">&lt;p&gt;SimenZhor: /* Update  necessary packages */ Added apt install of  &amp;quot;apt-utils&amp;quot; without this, the adb connection might break during installation of &amp;quot;rockchip-adb&amp;quot; on the newest kernel image (March 2020)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rockpiS_header}}&lt;br /&gt;
&lt;br /&gt;
{{Languages|rockpiS/Ubuntu}}&lt;br /&gt;
&lt;br /&gt;
    [[rockpiS | ROCK Pi S]] &amp;gt; [[rockpiS/Ubuntu | Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Work with ROCK Pi S Ubuntu ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction to ROCK Pi S Ubuntu ===&lt;br /&gt;
&lt;br /&gt;
ROCK Pi S Ubuntu  is an easy to use system. While working with ROCK Pi S Ubuntu, you will find it do well on playing music, Internet, Bluetooth and so on.&lt;br /&gt;
&lt;br /&gt;
ROCK Pi S Ubuntu uses '''systemd''' to manage system.&lt;br /&gt;
&lt;br /&gt;
=== Access from the Host PC/Laptop ===&lt;br /&gt;
&lt;br /&gt;
==== Option 1: USB access(adb) ====&lt;br /&gt;
By default, the ROCK Pi S Linux image enables adbd services, which is a debug bridge from Android now ported on Linux. With one USB A to C cable you can power and access the board, very handy.&lt;br /&gt;
&lt;br /&gt;
To use adb, you need to install adb tool on the PC/Laptop. Check instructions for [[Rock/windows_adb | Windows]] and [[Rock/linux_adb | Linux]].&lt;br /&gt;
&lt;br /&gt;
After you have adb installed successfully, run the following command on console to login the shell of ROCK Pi S:&lt;br /&gt;
&lt;br /&gt;
    adb shell&lt;br /&gt;
&lt;br /&gt;
Check [[rockpiS/dev/adb | Using adb]].&lt;br /&gt;
&lt;br /&gt;
==== Option 2: Serial console ====&lt;br /&gt;
&lt;br /&gt;
Check [[rockpiS/dev/serial-console | Serial Console]]&lt;br /&gt;
&lt;br /&gt;
==== Option 3: SSH ====&lt;br /&gt;
SSH server  is enabled on port 22 of ROCK Pi S default image. &lt;br /&gt;
&lt;br /&gt;
Please use [https://angryip.org/ angryip] to find your board IP address.&lt;br /&gt;
&lt;br /&gt;
To access ROCK Pi S by SSH, try &lt;br /&gt;
  &lt;br /&gt;
    ping rockpis.local&lt;br /&gt;
    ssh rock@rockpis.local&lt;br /&gt;
&lt;br /&gt;
or if your router/network doesn't support Local Domain, you need to check your network/router administrator page and look for the ROCK Pi S ip address.&lt;br /&gt;
&lt;br /&gt;
    ping ip-of-device&lt;br /&gt;
    ssh rock@ip-of-device&lt;br /&gt;
&lt;br /&gt;
Note: You can also get the IP of ROCK Pi S from option 1 or option 2 if you can not access network administrator page.&lt;br /&gt;
&lt;br /&gt;
=== Default User Account ===&lt;br /&gt;
&lt;br /&gt;
Non-root User:&lt;br /&gt;
    User Name : rock&lt;br /&gt;
    Password  : rock&lt;br /&gt;
&lt;br /&gt;
=== Update  necessary packages ===&lt;br /&gt;
&lt;br /&gt;
Add Radxa APT, see [[rockpiS/radxa-apt | Radxa APT]].&lt;br /&gt;
&lt;br /&gt;
Install packages:&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt-get update&lt;br /&gt;
  $ sudo apt-get install -y apt-utils # without this, the adb connection might break during installation of rockchip-adb&lt;br /&gt;
  $ sudo apt-get install -y rockchip-overlay&lt;br /&gt;
  $ sudo apt-get install -y linux-4.4-rockpis-latest rockpis-dtbo&lt;br /&gt;
  $ sudo apt-get install -y rtl8723ds-firmware rockchip-adb resize-assistant&lt;br /&gt;
  $ sudo apt-get install -y rockpis-dtbo # For those ROCK Pi S system images released before March 1st, 2020&lt;br /&gt;
&lt;br /&gt;
=== Network Connection ===&lt;br /&gt;
&lt;br /&gt;
There are two methods for network connection. One is Ethernet and the other is WIFI.&lt;br /&gt;
&lt;br /&gt;
==== Ethernet Connection ====&lt;br /&gt;
You can use a network cable (one end connected to the external network port or route)  to connect your ROCK Pi S to the network. The ROCK Pi S will automatically configure the network for your surfing on the Internet.&lt;br /&gt;
&lt;br /&gt;
===== To test the Ethernet, we need to follow the steps: =====&lt;br /&gt;
* Switch to super user mode by command&lt;br /&gt;
  $ sudo su&lt;br /&gt;
&lt;br /&gt;
* Check whether the Ethernet is normal by command, ifconfig, which would show us a network card, eth0, and the Ethernet IP address. Also, use tool, ping, to connect to a normal domain. &lt;br /&gt;
&lt;br /&gt;
  $ ifconfig&lt;br /&gt;
  $ ping www.baidu.com&lt;br /&gt;
&lt;br /&gt;
* If failed to connect to a normal domain. , try &lt;br /&gt;
&lt;br /&gt;
  $ sudo dhclient eth0&lt;br /&gt;
&lt;br /&gt;
==== WIFI Connection ====&lt;br /&gt;
&lt;br /&gt;
When there is not a network cable for your ROCK Pi S the WIFI connection is another good choice. ROCK Pi S supports 2.4G WIFI wireless network.&lt;br /&gt;
&lt;br /&gt;
=====To test the WIFI performance, we need to follow the steps:=====&lt;br /&gt;
&lt;br /&gt;
* Switch to super user mode&lt;br /&gt;
  $ sudo su&lt;br /&gt;
&lt;br /&gt;
* Open the WIFI&lt;br /&gt;
  $ nmcli r wifi on&lt;br /&gt;
&lt;br /&gt;
* Scan WIFI&lt;br /&gt;
  $ nmcli dev wifi&lt;br /&gt;
&lt;br /&gt;
* Connect to WIFI network&lt;br /&gt;
  $ nmcli dev wifi connect &amp;quot;wifi_name&amp;quot; password &amp;quot;wifi_password&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Test WIFI perpormance by tool iperf.&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth ===&lt;br /&gt;
&lt;br /&gt;
Update necessary packages&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt-get update&lt;br /&gt;
  $ sudp apt-get install -y rockchip-overlay&lt;br /&gt;
  $ sudo apt-get install -y linux-4.4-rockpis-latest # kernel version(&amp;gt;=4.4.143.27)&lt;br /&gt;
  $ sudo apt-get install -y rtl8723ds-firmware bluez&lt;br /&gt;
&lt;br /&gt;
Check Bluetooth service&lt;br /&gt;
&lt;br /&gt;
  $ systemctl status bluetooth&lt;br /&gt;
&lt;br /&gt;
Run Bluetooth service if the Bluetooth service is inactive.&lt;br /&gt;
&lt;br /&gt;
  $ systemctl start bluetooth&lt;br /&gt;
&lt;br /&gt;
Check Bluetooth device&lt;br /&gt;
&lt;br /&gt;
  $ hciconfig&lt;br /&gt;
  hci0:   Type: Primary  Bus: UART&lt;br /&gt;
          BD Address: 22:22:AA:25:49:1E  ACL MTU: 1021:8  SCO MTU: 255:12&lt;br /&gt;
          UP RUNNING &lt;br /&gt;
          RX bytes:4424 acl:0 sco:0 events:81 errors:0&lt;br /&gt;
          TX bytes:3820 acl:0 sco:0 commands:52 errors:0&lt;br /&gt;
&lt;br /&gt;
Example: Connect to Bluetooth Speaker.&lt;br /&gt;
&lt;br /&gt;
Change to root mode.&lt;br /&gt;
&lt;br /&gt;
  $ sudo su&lt;br /&gt;
&lt;br /&gt;
Install pulseaudio packages&lt;br /&gt;
&lt;br /&gt;
  # apt-get install -y pulseaudio-module-bluetooth pulseaudio&lt;br /&gt;
&lt;br /&gt;
Run pulseaudio&lt;br /&gt;
&lt;br /&gt;
  # pulseaudio --start&lt;br /&gt;
&lt;br /&gt;
Connect using bluetoothctl&lt;br /&gt;
&lt;br /&gt;
  # bluetoothctl&lt;br /&gt;
  [bluetooth]# default-agent &lt;br /&gt;
  [bluetooth]# power on&lt;br /&gt;
  [bluetooth]# scan on&lt;br /&gt;
  [bluetooth]# trust 77:EC:79:4F:6B:AC&lt;br /&gt;
  [bluetooth]# pair 77:EC:79:4F:6B:AC&lt;br /&gt;
  [bluetooth]# connect 77:EC:79:4F:6B:AC&lt;br /&gt;
&lt;br /&gt;
Play songs and enjoy it.&lt;br /&gt;
&lt;br /&gt;
=== Common Hardware Interfaces, I2C, UART, SPI, etc ===&lt;br /&gt;
&lt;br /&gt;
The ROCK Pi S system images released before March 1st, 2020 use hw_intfc.conf to configure interfaces while those which released after March 1st, 2020 use uEnv.txt. We suggest that you use the latest system images.&lt;br /&gt;
&lt;br /&gt;
To use common hardware interfaces like I2C, UART, SPI, etc, we provides DTBO and libmraa. See https://wiki.radxa.com/Device-tree-overlays and https://wiki.radxa.com/RockpiS/dev/libmraa.&lt;br /&gt;
&lt;br /&gt;
=== Use USB Camera ===&lt;br /&gt;
&lt;br /&gt;
Check [[RockpiS/hardware/camera/ | ROCK Pi S Camera module]].&lt;br /&gt;
&lt;br /&gt;
=== Use USB Device Network ===&lt;br /&gt;
&lt;br /&gt;
Check [[rockpiS/dev/usbnet | ROCK Pi S USB Device Network]].&lt;br /&gt;
&lt;br /&gt;
=== Display ===&lt;br /&gt;
&lt;br /&gt;
See [[rockpiS/hardware/display | ROCK Pi S Display]].&lt;br /&gt;
&lt;br /&gt;
=== Use Array Microphones with ROCK Pi S PoE ===&lt;br /&gt;
&lt;br /&gt;
=== Storage Device ===&lt;br /&gt;
&lt;br /&gt;
* uSD Card: /dev/mmcblk0&lt;br /&gt;
&lt;br /&gt;
* SD Nand: /dev/mmcblk1&lt;br /&gt;
&lt;br /&gt;
=== Boot Device Order ===&lt;br /&gt;
&lt;br /&gt;
SD Nand -&amp;gt; uSD Card&lt;br /&gt;
&lt;br /&gt;
=== Changelogs ===&lt;br /&gt;
&lt;br /&gt;
==== 2020.03.16 ====&lt;br /&gt;
&lt;br /&gt;
'''rockpis_debian_buster_minimal_arm64_20200315_1123-gpt.img'''&lt;br /&gt;
&lt;br /&gt;
* Available for at least 256 MB DDR SDRAM&lt;br /&gt;
* Kernel version: 4.4.143-39-rockchip-gdaf243b9655a&lt;br /&gt;
* Support uEnv and boot.scr&lt;br /&gt;
* The version of systemd: 237&lt;br /&gt;
* U-boot version: 2017.09-02377-gc3d3bc84be&lt;br /&gt;
&lt;br /&gt;
==== 2019.12.19 ====&lt;br /&gt;
&lt;br /&gt;
'''rockpis_ubuntu_bionic_minimal_arm64_191219_0410-gpt.img'''&lt;br /&gt;
&lt;br /&gt;
* U-boot version: 2017.09-02370-g6d65a50f1e&lt;br /&gt;
* Kernel version: 4.4.143-34-rockchip-g3c9d2019dba7&lt;br /&gt;
* System partitions: boot and rootfs&lt;br /&gt;
* Default serial console: UART0&lt;br /&gt;
* Default non-root user: rock (password: rock)&lt;br /&gt;
* Hostname: rockpis&lt;br /&gt;
* Support adb by default.&lt;br /&gt;
* Support SSH by default.&lt;br /&gt;
* Resize root filesystem to fit available disk space for the first boot&lt;br /&gt;
* Automatically load Bluetooth firmware after system startup.&lt;/div&gt;</summary>
		<author><name>SimenZhor</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/RockpiS/dev/libmraa</id>
		<title>RockpiS/dev/libmraa</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/RockpiS/dev/libmraa"/>
				<updated>2020-05-11T12:42:45Z</updated>
		
		<summary type="html">&lt;p&gt;SimenZhor: /* ADC test */ missing -o in compile call&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rockpiS_header}}&lt;br /&gt;
&lt;br /&gt;
{{Languages|rockpiS/dev/libmraa}}&lt;br /&gt;
&lt;br /&gt;
    [[rockpiS | ROCK Pi S]] &amp;gt; [[rockpiS/dev | Development]] &amp;gt; [[rockpiS/dev/libmraa  | Install Libmraa ]]&lt;br /&gt;
&lt;br /&gt;
=== Libmraa on ROCK Pi S ===&lt;br /&gt;
&lt;br /&gt;
This guide describes how to use libmraa on ROCK Pi S.&lt;br /&gt;
&lt;br /&gt;
==== Install essential packages ====&lt;br /&gt;
&lt;br /&gt;
Package libmraa is in the Radxa APT bionic-stable and buster-stable repositories.&lt;br /&gt;
&lt;br /&gt;
Execute the following commands to add Radxa APT&lt;br /&gt;
&lt;br /&gt;
 rock@rockpis:~$ export DISTRO=bionic-stable      # for Bionic&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 rock@rockpis:~$ export DISTRO=buster-stable      # for Buster&lt;br /&gt;
 rock@rockpis:~$ echo &amp;quot;deb http://apt.radxa.com/$DISTRO/ ${DISTRO%-*} main&amp;quot; | sudo tee -a /etc/apt/sources.list.d/apt-radxa-com.list&lt;br /&gt;
&lt;br /&gt;
Get the pub key&lt;br /&gt;
&lt;br /&gt;
 rock@rockpis:~$  wget -O -  apt.radxa.com/buster-testing/public.key | sudo apt-key add -&lt;br /&gt;
&lt;br /&gt;
Install essential packages:&lt;br /&gt;
&lt;br /&gt;
 rock@rockpis:~$ sudo apt-get update&lt;br /&gt;
 rock@rockpis:~$ sudo apt-get install -y rockchip-overlay rockpis-dtbo libmraa # libmraa version: &amp;gt;=0.4&lt;br /&gt;
 rock@rockpis:~$ sudo apt-get install -y linux-4.4-rockpis-latest # ROCK Pi S kernel version: &amp;gt;= 4.4.143-47&lt;br /&gt;
&lt;br /&gt;
==== Enable interface ====&lt;br /&gt;
&lt;br /&gt;
See ROCK Pi S [[rockpiS/hardware/gpio | GPIO pintout]]. ROCK Pi S has a 26-pin colorful expansion header. Each pin is distinguished by color. mraa define is shown below:  &lt;br /&gt;
&lt;br /&gt;
===== Hardware V12 =====&lt;br /&gt;
&lt;br /&gt;
16 GPIO:&lt;br /&gt;
    PIN03      GPIO2_A2&lt;br /&gt;
    PIN05      GPIO2_B0&lt;br /&gt;
    PIN07      GPIO2_B3&lt;br /&gt;
    PIN09      GPIO4_C4&lt;br /&gt;
    PIN11      GPIO4_C2&lt;br /&gt;
    PIN12      GPIO4_A3&lt;br /&gt;
    PIN13      GPIO4_C6&lt;br /&gt;
    PIN15      GPIO4_C5&lt;br /&gt;
    PIN16      GPIO4_D2&lt;br /&gt;
    PIN18      GPIO4_D4&lt;br /&gt;
    PIN19      GPIO1_B0&lt;br /&gt;
    PIN21      GPIO1_A7&lt;br /&gt;
    PIN22      GPIO4_D5&lt;br /&gt;
    PIN23      GPIO1_B1&lt;br /&gt;
    PIN24      GPIO1_B2&lt;br /&gt;
    PIN26      GPIO1_B2&lt;br /&gt;
&lt;br /&gt;
3 I2C:&lt;br /&gt;
    PIN23      I2C'''0'''_SDA&lt;br /&gt;
    PIN24      I2C'''0'''_SCL&lt;br /&gt;
    PIN3       I2C'''1'''_SCL&lt;br /&gt;
    PIN5       I2C'''1'''_SDA&lt;br /&gt;
    PIN13      I2C'''3'''_SDA&lt;br /&gt;
    PIN15      I2C'''3'''_SCL&lt;br /&gt;
   &lt;br /&gt;
1 SPI:&lt;br /&gt;
    PIN19      SPI'''2'''TX        //must disable i2c0&lt;br /&gt;
    PIN21      SPI'''2'''RX        //must disable i2c0&lt;br /&gt;
    PIN23      SPI'''2'''CLK&lt;br /&gt;
    PIN24      SPI'''2'''CSN&lt;br /&gt;
&lt;br /&gt;
3 UART:&lt;br /&gt;
    PIN8       UART'''0'''_TX&lt;br /&gt;
    PIN10      UART'''0'''_RX&lt;br /&gt;
    PIN23      UART'''1'''_TX&lt;br /&gt;
    PIN24      UART'''1'''_RX&lt;br /&gt;
    PIN19      UART'''2'''_RX&lt;br /&gt;
    PIN21      UART'''2'''_TX&lt;br /&gt;
&lt;br /&gt;
2 PWM:&lt;br /&gt;
    PIN11      PWM'''2'''&lt;br /&gt;
    PIN13      PWM'''3'''&lt;br /&gt;
&lt;br /&gt;
1 ADC:&lt;br /&gt;
    PIN26      ADC_IN0          //the measure voltage must lower than 1.8v&lt;br /&gt;
&lt;br /&gt;
For those ROCK Pi S system images released after March 1st, 2020, the configuration file is /boot/uEnv.txt. For more details, follow this guide, [https://wiki.radxa.com/Device-tree-overlays Device tree overlays].&lt;br /&gt;
&lt;br /&gt;
For those ROCK Pi S system images released before March 1st, 2020, the configuration file is /boot/hw_intfc.conf.&lt;br /&gt;
&lt;br /&gt;
==== Test ====&lt;br /&gt;
&lt;br /&gt;
Package libmraa provides some examples for testing spi, uart, i2c, gpio, etc. We way use the c files in /usr/local/share/mraa/examples/c.&lt;br /&gt;
&lt;br /&gt;
And we copy them to home directory.&lt;br /&gt;
&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ cp -av /usr/local/share/mraa/examples/c /home/rock/mraa-examples&lt;br /&gt;
&lt;br /&gt;
You should pay more attention to the Black Bold words when modifying configuration file /boot/uEnv.txt.&lt;br /&gt;
&lt;br /&gt;
===== GPIO test =====&lt;br /&gt;
&lt;br /&gt;
Use '''mraa-gpio tool''' to test&lt;br /&gt;
&lt;br /&gt;
 root@rockpis:~# mraa-gpio list&lt;br /&gt;
 01         3V3: &lt;br /&gt;
 02          5V: &lt;br /&gt;
 03     I2C_SDA: GPIO I2C  &lt;br /&gt;
 04          5V: &lt;br /&gt;
 05     I2C_SCL: GPIO I2C  &lt;br /&gt;
 06         GND: &lt;br /&gt;
 07 I2S0_8CH_MC: GPIO &lt;br /&gt;
 08    UART0_TX: GPIO UART &lt;br /&gt;
 09         GND: &lt;br /&gt;
 10    UART0_RX: GPIO UART &lt;br /&gt;
 11 PWM2,I2C3_S: GPIO I2C  PWM  &lt;br /&gt;
 12 I2S0_8CH_SC: GPIO &lt;br /&gt;
 13 PWM3,I2C3_S: GPIO I2C  PWM  &lt;br /&gt;
 14         GND: &lt;br /&gt;
 15    SPDIF_TX: GPIO &lt;br /&gt;
 16 I2S0_8CH_SD: GPIO &lt;br /&gt;
 17         3V3: &lt;br /&gt;
 18 I2S0_8CH_SD: GPIO &lt;br /&gt;
 19 UART1_RTSN,: GPIO SPI  UART &lt;br /&gt;
 20         GND: &lt;br /&gt;
 21 UART1_CTSN,: GPIO SPI  UART &lt;br /&gt;
 22 I2S0_8CH_LR: GPIO &lt;br /&gt;
 23 UART1_RX,I2: GPIO I2C  SPI  UART &lt;br /&gt;
 24 UART1_TX,I2: GPIO I2C  SPI  UART &lt;br /&gt;
 25         GND: &lt;br /&gt;
 26     ADC_IN0: AIO &lt;br /&gt;
 root@rockpis:~# mraa-gpio set 15 1           #pin15 pull high&lt;br /&gt;
 root@rockpis:~# mraa-gpio set 15 0           #pin15 pull high&lt;br /&gt;
&lt;br /&gt;
===== PWM test =====&lt;br /&gt;
&lt;br /&gt;
ROCK Pi S V1.2 provides 2 PWM, PWM2 and PWM3. It is necessary to enable PWM1, PWM2 and PWM3 at the same time if you need PWM function.&lt;br /&gt;
&lt;br /&gt;
Firstly, modify the /boot/uEnv.txt file to add the following&lt;br /&gt;
&lt;br /&gt;
 root@rockpis:~# cat /boot/uEnv.txt&lt;br /&gt;
 verbosity=7&lt;br /&gt;
 overlay_prefix=rockchip&lt;br /&gt;
 rootfstype=ext4&lt;br /&gt;
 fdtfile=rockchip/rk3308-rock-pi-s.dtb&lt;br /&gt;
 overlays=rk3308-console-on-uart0 '''rk3308-pwm1 rk3308-pwm2 rk3308-pwm3'''&lt;br /&gt;
 rootuuid=37055840-4ec4-444f-979b-9e47ee4bd848&lt;br /&gt;
 initrdsize=0x64d1d4&lt;br /&gt;
 kernelversion=4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 initrdimg=initrd.img-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 kernelimg=vmlinuz-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Modify the macro PWM in /home/rock/mraa-examples/pwm.c as follows to test PWM2. To test PWM3, change '''#define PWM 11''' to '''#define PWM 13'''.&lt;br /&gt;
&lt;br /&gt;
 '''/* PWM declaration */'''&lt;br /&gt;
 '''#define PWM 11'''&lt;br /&gt;
&lt;br /&gt;
Save and compile pwm.c&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ gcc -o pwm pwm.c -lmraa&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ sudo ./pwm &lt;br /&gt;
 PWM value is 0.010015&lt;br /&gt;
 PWM value is 0.019985&lt;br /&gt;
 PWM value is 0.030000&lt;br /&gt;
 PWM value is 0.040014&lt;br /&gt;
 PWM value is 0.049984&lt;br /&gt;
 PWM value is 0.059999&lt;br /&gt;
&lt;br /&gt;
===== I2C test =====&lt;br /&gt;
ROCK Pi S V1.2 provides 3 I2C,There are  I2C0 ,I2C1, I2C3. If you need the I2C function, you can turn on one or more of them.&lt;br /&gt;
&lt;br /&gt;
Firstly, modify the /boot/uEnv.txt file to add the following&lt;br /&gt;
&lt;br /&gt;
 root@rockpis:~# cat /boot/uEnv.txt&lt;br /&gt;
 verbosity=7&lt;br /&gt;
 overlay_prefix=rockchip&lt;br /&gt;
 rootfstype=ext4&lt;br /&gt;
 fdtfile=rockchip/rk3308-rock-pi-s.dtb&lt;br /&gt;
 overlays=rk3308-console-on-uart0  '''rk3308-i2c0 rk3308-i2c1 rk3308-i2c3'''&lt;br /&gt;
 rootuuid=37055840-4ec4-444f-979b-9e47ee4bd848&lt;br /&gt;
 initrdsize=0x64d1d4&lt;br /&gt;
 kernelversion=4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 initrdimg=initrd.img-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 kernelimg=vmlinuz-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
&lt;br /&gt;
We use  MPU6050 tets i2c.&lt;br /&gt;
Modify the macro  MPU6050 in '''/home/rock/mraa-examples/i2c_mpu6050.c''' ,as follows to test I2C0. To test I2C1 and I2C3, change '''#define I2C_BUS 0''' to '''#define I2C_BUS 1'''  or'''#define I2C_BUS 3''' .&lt;br /&gt;
 &lt;br /&gt;
   /* mraa header */&lt;br /&gt;
   #include &amp;quot;mraa/i2c.h&amp;quot;&lt;br /&gt;
   '''#define I2C_BUS 0'''&lt;br /&gt;
   &lt;br /&gt;
Save and compile pwm.c&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ gcc -o i2c_mpu6050 i2c_mpu6050.c  -lmraa&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ sudo ./i2c_mpu6050&lt;br /&gt;
 accel: x:0 y:0 z:0&lt;br /&gt;
 gyro: x:-10 y:1 z:7&lt;br /&gt;
   &lt;br /&gt;
 accel: x:0 y:0 z:0&lt;br /&gt;
 gyro: x:107 y:-12 z:69&lt;br /&gt;
    &lt;br /&gt;
 accel: x:0 y:0 z:0&lt;br /&gt;
 gyro: x:6 y:136 z:-50&lt;br /&gt;
    &lt;br /&gt;
 accel: x:0 y:0 z:0&lt;br /&gt;
 gyro: x:-5 y:48 z:-103&lt;br /&gt;
      &lt;br /&gt;
 accel: x:0 y:0 z:0&lt;br /&gt;
 gyro: x:3 y:3 z:5&lt;br /&gt;
&lt;br /&gt;
===== UART test =====&lt;br /&gt;
ROCK Pi S V1.2 provides 3 UART,There are  '''uart0''' ,'''uart1''', '''uart2'''. If you need the uatr function, you can turn on one or more of them.&lt;br /&gt;
&lt;br /&gt;
Firstly, Disable console and enable '''uart0''' for uart test.modify the '''/boot/uEnv.txt''' file to add the following&lt;br /&gt;
&lt;br /&gt;
 root@rockpis:~# cat /boot/uEnv.txt &lt;br /&gt;
 verbosity=7&lt;br /&gt;
 overlay_prefix=rockchip&lt;br /&gt;
 rootfstype=ext4&lt;br /&gt;
 fdtfile=rockchip/rk3308-rock-pi-s.dtb&lt;br /&gt;
 '''overlays=rk3308-uart0 rk3308-uart1 rk3308-uart2'''&lt;br /&gt;
 '''console='''&lt;br /&gt;
 rootuuid=c3800af9-fa58-4fb3-bb56-e52fd04837ba&lt;br /&gt;
 initrdsize=0x5c96c3&lt;br /&gt;
 kernelversion=4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 initrdimg=initrd.img-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 kernelimg=vmlinuz-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
&lt;br /&gt;
Here set console to NULL value.&lt;br /&gt;
&lt;br /&gt;
then reboot . use ssh connect to rockpis,we must have 2 windows,one is for send data,anothor is for receive.&lt;br /&gt;
&lt;br /&gt;
send command follow:&lt;br /&gt;
 rock@rockpis:~$ sudo mraa-uart dev 0 baud 1500000 send  radxa&lt;br /&gt;
&lt;br /&gt;
Another window sets the baud  1500000 and receives the data &lt;br /&gt;
&lt;br /&gt;
 radxa&lt;br /&gt;
&lt;br /&gt;
receive command follow:&lt;br /&gt;
 rock@rockpis:~$ sudo mraa-uart dev 0 baud 1500000 recv  1000&lt;br /&gt;
 radxa&lt;br /&gt;
&lt;br /&gt;
===== SPI test =====&lt;br /&gt;
&lt;br /&gt;
Firstly, modify the '''/boot/uEnv.txt''' file.&lt;br /&gt;
&lt;br /&gt;
 root@rockpis:~# cat /boot/uEnv.txt&lt;br /&gt;
 verbosity=7&lt;br /&gt;
 overlay_prefix=rockchip&lt;br /&gt;
 rootfstype=ext4&lt;br /&gt;
 fdtfile=rockchip/rk3308-rock-pi-s.dtb&lt;br /&gt;
 overlays=rk3308-console-on-uart0 '''rk3308-spi-spidev'''&lt;br /&gt;
 '''param_spidev_spi_bus=2'''&lt;br /&gt;
 rootuuid=37055840-4ec4-444f-979b-9e47ee4bd848&lt;br /&gt;
 initrdsize=0x64d1d4&lt;br /&gt;
 kernelversion=4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 initrdimg=initrd.img-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
 kernelimg=vmlinuz-4.4.143-47-rockchip-g495ff574976c&lt;br /&gt;
&lt;br /&gt;
then execute command, sync, followed by '''reboot'''.&lt;br /&gt;
&lt;br /&gt;
Create file test-spi.c and add the following contents.&lt;br /&gt;
&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ cat test-spi.c &lt;br /&gt;
 #include &amp;lt;signal.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;unistd.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 /* mraa header */&lt;br /&gt;
 #include &amp;quot;mraa/spi.h&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 /* SPI declaration */&lt;br /&gt;
 '''#define SPI_BUS 2'''&lt;br /&gt;
 &lt;br /&gt;
 /* SPI frequency in Hz */&lt;br /&gt;
 #define SPI_FREQ 10000000&lt;br /&gt;
 int&lt;br /&gt;
 main(int argc, char** argv)&lt;br /&gt;
 {&lt;br /&gt;
     mraa_result_t status = MRAA_SUCCESS;&lt;br /&gt;
     mraa_spi_context spi;&lt;br /&gt;
     int i, j;&lt;br /&gt;
 &lt;br /&gt;
     /* initialize mraa for the platform (not needed most of the times) */&lt;br /&gt;
     mraa_init();&lt;br /&gt;
 &lt;br /&gt;
     //! [Interesting]&lt;br /&gt;
     /* initialize SPI bus */&lt;br /&gt;
     spi = mraa_spi_init(SPI_BUS);&lt;br /&gt;
     if (spi == NULL) {&lt;br /&gt;
         fprintf(stderr, &amp;quot;Failed to initialize SPI\n&amp;quot;);&lt;br /&gt;
         mraa_deinit();&lt;br /&gt;
         return EXIT_FAILURE;&lt;br /&gt;
     }&lt;br /&gt;
 &lt;br /&gt;
     /* set SPI frequency */&lt;br /&gt;
     status = mraa_spi_frequency(spi, SPI_FREQ);&lt;br /&gt;
     if (status != MRAA_SUCCESS)&lt;br /&gt;
         goto err_exit;&lt;br /&gt;
 &lt;br /&gt;
     /* set big endian mode */&lt;br /&gt;
     status = mraa_spi_lsbmode(spi, 0);&lt;br /&gt;
     if (status != MRAA_SUCCESS) {&lt;br /&gt;
         goto err_exit;&lt;br /&gt;
     }&lt;br /&gt;
    &lt;br /&gt;
     j = 10;&lt;br /&gt;
     while(j) {&lt;br /&gt;
   	j--;&lt;br /&gt;
         printf(&amp;quot;0x%x\n&amp;quot;,mraa_spi_write(spi, 0xaa));&lt;br /&gt;
     }&lt;br /&gt;
 err_exit:&lt;br /&gt;
     mraa_result_print(status);&lt;br /&gt;
 &lt;br /&gt;
     /* stop spi */&lt;br /&gt;
     mraa_spi_stop(spi);&lt;br /&gt;
 &lt;br /&gt;
     /* deinitialize mraa for the platform (not needed most of the times) */&lt;br /&gt;
     mraa_deinit();&lt;br /&gt;
 &lt;br /&gt;
      return EXIT_FAILURE;&lt;br /&gt;
 }&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ gcc -o test-spi test-spi.c -lmraa&lt;br /&gt;
&lt;br /&gt;
Then short pin19 and pin21 and run  test-spi&lt;br /&gt;
&lt;br /&gt;
 rock@rockpis:~/mraa-examples$ sudo ./test-spi &lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 0xaa&lt;br /&gt;
 MRAA: SUCCESS&lt;br /&gt;
&lt;br /&gt;
===== ADC test =====&lt;br /&gt;
&lt;br /&gt;
connect signal you want to measure, and then compile mraa example c file, aio.c, to test.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rock@rockpis:~/mraa-examples$ gcc -o aio aio.c -lmraa&lt;br /&gt;
rock@rockpis:~/mraa-examples$ sudo ./aio&lt;br /&gt;
ADC A0 read 1A5 - 421&lt;br /&gt;
ADC A0 read float - 0.41153&lt;br /&gt;
ADC A0 read 1A5 - 421&lt;br /&gt;
ADC A0 read float - 0.41153&lt;br /&gt;
ADC A0 read 1A5 - 421&lt;br /&gt;
ADC A0 read float - 0.41153&lt;br /&gt;
ADC A0 read 1A5 - 421&lt;br /&gt;
ADC A0 read float - 0.41153&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Development ====&lt;br /&gt;
&lt;br /&gt;
More introduction of libmraa can look at [http://iotdk.intel.com/docs/master/mraa/index.html libmraa official website].&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
&lt;br /&gt;
* Refer [[RockpiS/getting_started/troubleshooting | Troubleshooting page]]&lt;br /&gt;
* Post your issue on the forum: https://forum.radxa.com/c/rockpiS&lt;/div&gt;</summary>
		<author><name>SimenZhor</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Talk:Rockpi4/contribute</id>
		<title>Talk:Rockpi4/contribute</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Talk:Rockpi4/contribute"/>
				<updated>2020-05-11T09:36:13Z</updated>
		
		<summary type="html">&lt;p&gt;SimenZhor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I have just made a copy of this wiki page for the Rock Pi S wiki, but that's probably not the best idea. Can this entire page be moved to https://wiki.radxa.com/contribute as a general introduction to Wiki contributions? If it's moved there I think there needs to be a section describing the syntax for various wikis, for example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
For Rock Pi 4 the template page (and other links) are on the following syntax: &amp;quot;Rockpi4&amp;quot;, but in the wiki itself the syntax is &amp;quot;rockpi4&amp;quot;.&lt;br /&gt;
For Rock Pi S the template page (and other links) are on the following syntax: &amp;quot;RockpiS&amp;quot;, but in the wiki itself the syntax is &amp;quot;rockpiS&amp;quot;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Any thoughts?&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
: I think we only need one contribution page and no need to duplicate the content since most of them are the same. Maybe we should add url/template of difference board in contribution page. Thanks for the contribution to the wiki btw. --[[User:hipboi| Tom Cubie]] @Shenzhen 9:13, 26 March 2020 (UTC)&lt;br /&gt;
----&lt;br /&gt;
:: I totally agree. That does sound like a good way to go. --[[User:SimenZhor| SimenZhor]] @Oslo 09:35, 11 May 2020 (UTC)&lt;/div&gt;</summary>
		<author><name>SimenZhor</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Talk:RockpiS/getting_started</id>
		<title>Talk:RockpiS/getting started</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Talk:RockpiS/getting_started"/>
				<updated>2020-05-11T09:32:52Z</updated>
		
		<summary type="html">&lt;p&gt;SimenZhor: The described problem has been fixed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>SimenZhor</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Talk:RockpiS/getting_started</id>
		<title>Talk:RockpiS/getting started</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Talk:RockpiS/getting_started"/>
				<updated>2020-03-26T09:01:15Z</updated>
		
		<summary type="html">&lt;p&gt;SimenZhor: Created page with &amp;quot;The images at the top do not show the current hardware version of Rock Pi S (V12 / V1.2). Most notably the colored pin header is rotated 180 degrees, which can be confusing. D...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The images at the top do not show the current hardware version of Rock Pi S (V12 / V1.2). Most notably the colored pin header is rotated 180 degrees, which can be confusing. Does anyone have high quality pictures of the V12 board?&lt;/div&gt;</summary>
		<author><name>SimenZhor</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Talk:Rockpi4/contribute</id>
		<title>Talk:Rockpi4/contribute</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Talk:Rockpi4/contribute"/>
				<updated>2020-03-26T08:57:29Z</updated>
		
		<summary type="html">&lt;p&gt;SimenZhor: Created page with &amp;quot;I have just made a copy of this wiki page for the Rock Pi S wiki, but that's probably not the best idea. Can this entire page be moved to https://wiki.radxa.com/contribute as...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I have just made a copy of this wiki page for the Rock Pi S wiki, but that's probably not the best idea. Can this entire page be moved to https://wiki.radxa.com/contribute as a general introduction to Wiki contributions? If it's moved there I think there needs to be a section describing the syntax for various wikis, for example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
For Rock Pi 4 the template page (and other links) are on the following syntax: &amp;quot;Rockpi4&amp;quot;, but in the wiki itself the syntax is &amp;quot;rockpi4&amp;quot;.&lt;br /&gt;
For Rock Pi S the template page (and other links) are on the following syntax: &amp;quot;RockpiS&amp;quot;, but in the wiki itself the syntax is &amp;quot;rockpiS&amp;quot;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Any thoughts?&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>SimenZhor</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/RockpiS</id>
		<title>RockpiS</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/RockpiS"/>
				<updated>2020-03-26T08:48:18Z</updated>
		
		<summary type="html">&lt;p&gt;SimenZhor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rockpiS_header}}&lt;br /&gt;
&lt;br /&gt;
{{Languages|rockpiS}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12 &amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-8&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= ROCK Pi S=&lt;br /&gt;
&lt;br /&gt;
S is for Small Square.&lt;br /&gt;
&lt;br /&gt;
This is the documentation for ROCK Pi S, written by Radxa Team with community contributions.&lt;br /&gt;
&lt;br /&gt;
ROCK Pi S is a Rockchip RK3308 based SBC(Single Board Computer) by Radxa. It equips a 64bits quad core processor, USB, ethernet, wireless connectivity and voice detection engine at the size of 1.7 inch, make it perfect for IoT and voice applications. ROCK Pi S comes in two ram sizes 256MB or 512MB DDR3, and uses uSD card for OS and storage. Optionally, ROCK Pi S can provide on board storage version with 1Gb/2Gb/4Gb/8Gb [[RockpiS/hardware/SDNAND |NAND flash]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-4&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Rockpi_s_yellow_1200px.png | 400px  ]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12 &amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-6&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;panel panel-mango-white&amp;quot;&amp;gt; &lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt; &amp;lt;h3 class=&amp;quot;panel-title&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-star&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;  [[community_updates | What's new]]&amp;lt;/h3&amp;gt; &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;br /&gt;
{{community_updates}}&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-6&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;panel panel-hearts-white&amp;quot;&amp;gt; &lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt; &amp;lt;h3 class=&amp;quot;panel-title&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-hand-o-up&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;  [[RockpiS/getting_started | Setup/Quick start ]]&amp;lt;/h3&amp;gt; &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;br /&gt;
* [[RockpiS/getting_started | Getting started with ROCK Pi S]]&lt;br /&gt;
* [[RockpiS/hardware/rockpiS#gpio | GPIO pinout]]&lt;br /&gt;
* [[RockpiS/ssh | Connected ROCK Pi S via SSH]]&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div class=&amp;quot;clearfix&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12 &amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-6 &amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;panel panel-midnight-white&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt;&amp;lt;h3 class=&amp;quot;panel-title&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-download&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[RockpiS/install | Installation]]&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;br /&gt;
Installing an operating system on your ROCK PI S, including microSD card, USB drive, etc.&lt;br /&gt;
&lt;br /&gt;
* [[RockpiS/install/microSD | Install on microSD card]]&lt;br /&gt;
* [[RockpiS/dev/sdnand-install | Install on SD NAND Flash]]&lt;br /&gt;
* [[RockpiS/radxa-apt | Update from Radxa Apt]]&lt;br /&gt;
* [[RockpiS/partitions | Partition table]]&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-6 &amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;panel panel-mango-white&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt;&amp;lt;h3 class=&amp;quot;panel-title&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-cog&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[RockpiS/dev | Development]]&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;br /&gt;
Information about Linux development&lt;br /&gt;
* [[RockpiS/dev/sdnand-install | Install images to SD NAND flash]]&lt;br /&gt;
* [[RockpiS/dev/Debian | Build Debian]]&lt;br /&gt;
* [[RockpiS/dev/kernel-4.4 | Build vendor kernel(Rockchip 4.4)]]&lt;br /&gt;
* [[RockpiS/dev/serial-console | Serial Console]]&lt;br /&gt;
[[RockpiS/dev| &amp;gt; More...]]&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div class=&amp;quot;clearfix&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12 &amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-6 &amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;panel panel-cello-white&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt;&amp;lt;h3 class=&amp;quot;panel-title&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-hdd-o&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;  [[RockpiS/hardware|Hardware]] &amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;br /&gt;
Technical specifications about the ROCK Pi S hardware, including WI-FI module, LCD module, etc.&lt;br /&gt;
&lt;br /&gt;
* [[RockpiS/hardware/rockpiS | Main board]] - Hardware introduction of the ROCK Pi S&lt;br /&gt;
* [[RockpiS/hardware/gpio | GPIO]] - GPIO pinout&amp;amp;numbers&lt;br /&gt;
* [[rockpiS/hardware/models | Models and SKU]]&lt;br /&gt;
&lt;br /&gt;
* [[RockpiS/hardware/display | Display]]&lt;br /&gt;
&lt;br /&gt;
[[RockpiS/hardware| &amp;gt; More...]]&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-6 &amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;panel panel-gunmetal-white&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt;&amp;lt;h3 class=&amp;quot;panel-title&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-linux&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[RockpiS/Debian Working With Linux | Working With Linux ]]&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;br /&gt;
Fundamental Linux usage for beginners and more advanced information for power users.&lt;br /&gt;
* [[RockpiS/Debian | Debian]]&lt;br /&gt;
* [[RockpiS/Ubuntu | Ubuntu]]&lt;br /&gt;
* [[RockpiS/radxa-apt | Radxa APT]]&lt;br /&gt;
* [[RockpiS/downloads | Images official/3rd party/community]]&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div class=&amp;quot;clearfix&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12 &amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-6 &amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;panel panel-cocktail-white&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt;&amp;lt;h3 class=&amp;quot;panel-title&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-question&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[RockpiS/FAQs | FAQs]]&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;br /&gt;
* Answers to frequently asked technical questions&lt;br /&gt;
* Answers to sale of ROCK Pi S&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-6 &amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;panel panel-cocktail-white&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt;&amp;lt;h3 class=&amp;quot;panel-title&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-users&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; Community&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;br /&gt;
* Forum: http://forum.radxa.com&lt;br /&gt;
* Telegram Group: https://t.me/rockpi4&lt;br /&gt;
* Wiki contributions: [[RockpiS/contribute | How to contribute]]&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div class=&amp;quot;clearfix&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>SimenZhor</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/RockpiS/contribute</id>
		<title>RockpiS/contribute</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/RockpiS/contribute"/>
				<updated>2020-03-26T08:43:33Z</updated>
		
		<summary type="html">&lt;p&gt;SimenZhor: case sensitivity error in /* 3. Breadcrumb */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rockpiS_header}}&lt;br /&gt;
{{Languages|rockpiS/contribute}}&lt;br /&gt;
&lt;br /&gt;
==About this wiki==&lt;br /&gt;
&lt;br /&gt;
Radxa wiki is the place gathering info, guides and tutorial of Radxa products. The wiki is open to register and maintained by the community and Radxa team. Feel free to add/edit radxa product's related info on the wiki page. Most of the pages can be edited without permission, some pages the team think important are protected.&lt;br /&gt;
&lt;br /&gt;
==How to edit==&lt;br /&gt;
# You must create an account to edit, check the top menu '''[https://wiki.radxa.com/mw/index.php?title=Special:UserLogin&amp;amp;returnto=RockpiS%2Fcontribute&amp;amp;type=signup Edit -&amp;gt; Personal -&amp;gt; Create account]'''. The forum account won't work. &lt;br /&gt;
# After logging in, you can edit the wiki page by clicking '''Edit -&amp;gt; Edit''' in the top menu.&lt;br /&gt;
# For the wiki syntax, please refer to [https://www.mediawiki.org/wiki/Help:Formatting wiki formatting]&lt;br /&gt;
# Always '''preview''' your edit before saving&lt;br /&gt;
&lt;br /&gt;
==Special templates==&lt;br /&gt;
&lt;br /&gt;
===1. Nav Bar===&lt;br /&gt;
Each product has its own nav bar for the user to find the content easier. To add that, include the following at the first line of the page:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    {{rockpiS_header}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The content of [[Template:RockpiS_header | rockpiS_header template]] is as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-12&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;ul class=&amp;quot;nav nav-pills nav-tabs-lighter&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpiS| Main]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpiS/getting_started | Getting Started]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpiS/hardware | Hardware]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpiS/downloads | Downloads]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpiS/FAQs | FAQs]]&amp;lt;/li&amp;gt;&lt;br /&gt;
      &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It looks like below:&lt;br /&gt;
----&lt;br /&gt;
{{rockpiS_header}}&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
You can also add the nav bar for other language by adding a new template, [[Template:RockpiS_header_es]] and [[Template:RockpiS_header_zh_cn]] is an example.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 2. Multiple Language ===&lt;br /&gt;
The wiki supports multiple language by using the [[Template:Languages | language template]]. If you want to add your language, edit [[Template:Languages | language template]] first. It's content as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|{{#language:en}}]]&amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/zh_cn|{{#language:zh-cn}}]]&amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/es_es|{{#language:es}}]]&amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/de_DE|{{#language:de}}]]&amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/pt_BR|{{#language:pt-br}}]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;box-Title&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add your language code as above and save the template.&lt;br /&gt;
&lt;br /&gt;
Each page with multiple language support must include the template at the second line, next to the Nav Bar. The page name must be passed to the template after the | sign, example of the getting started page of ROCK Pi S:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Languages|rockpi4/getting_started}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will looks like this:&lt;br /&gt;
----&lt;br /&gt;
{{Languages|rockpi4/getting_started}}&lt;br /&gt;
----&lt;br /&gt;
Then click the language button to create/goto the ROCK Pi S getting started page of corresponding language. &lt;br /&gt;
&lt;br /&gt;
'''Note:'''&lt;br /&gt;
&lt;br /&gt;
When you translate a page, which has link to other page on the same wiki, you should add the country code in the url, so that the user will always jump to the destination page of the same language.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;In English version, link to getting started page is [[RockpiS/getting_started]]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;For the Simplified Chinese version, the link should be changed to  [[RockpiS/getting_started/zh_cn]].&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Remember:'''&lt;br /&gt;
&lt;br /&gt;
* Germany content page url always ends with de_DE&lt;br /&gt;
* Simplified Chinese content page url always ends with zh_cn&lt;br /&gt;
* Spanish content page url always ends with es_es&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
===3. Breadcrumb===&lt;br /&gt;
If the page depth is deeper than 2, a breadcrumb should be added to the beginning of the page for the user to go back to the upper level page.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    [[rockpiS | ROCK Pi S]] &amp;gt; [[rockpiS/install | Install]] &amp;gt; [[rockpiS/install/microSD | Install on MicroSD]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
It looks like this:&lt;br /&gt;
&lt;br /&gt;
    [[rockpiS | ROCK Pi S]] &amp;gt; [[rockpiS/install | Install]] &amp;gt; [[rockpiS/install/microSD | Install on MicroSD]]&lt;br /&gt;
&lt;br /&gt;
==Community Contributions==&lt;br /&gt;
* HANLLEL translated the Spanish page.&lt;br /&gt;
* Beachtier  translated the Germany page.&lt;/div&gt;</summary>
		<author><name>SimenZhor</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/RockpiS/contribute</id>
		<title>RockpiS/contribute</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/RockpiS/contribute"/>
				<updated>2020-03-26T08:41:36Z</updated>
		
		<summary type="html">&lt;p&gt;SimenZhor: Copy of the contribution page of Rock Pi 4 - with changes necessary to make it relevant for Rock Pi S. It doesn't seem to me like the Rock Pi S wiki has any Template headers for other languages than English at the moment, so there are two links not workin&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rockpiS_header}}&lt;br /&gt;
{{Languages|rockpiS/contribute}}&lt;br /&gt;
&lt;br /&gt;
==About this wiki==&lt;br /&gt;
&lt;br /&gt;
Radxa wiki is the place gathering info, guides and tutorial of Radxa products. The wiki is open to register and maintained by the community and Radxa team. Feel free to add/edit radxa product's related info on the wiki page. Most of the pages can be edited without permission, some pages the team think important are protected.&lt;br /&gt;
&lt;br /&gt;
==How to edit==&lt;br /&gt;
# You must create an account to edit, check the top menu '''[https://wiki.radxa.com/mw/index.php?title=Special:UserLogin&amp;amp;returnto=RockpiS%2Fcontribute&amp;amp;type=signup Edit -&amp;gt; Personal -&amp;gt; Create account]'''. The forum account won't work. &lt;br /&gt;
# After logging in, you can edit the wiki page by clicking '''Edit -&amp;gt; Edit''' in the top menu.&lt;br /&gt;
# For the wiki syntax, please refer to [https://www.mediawiki.org/wiki/Help:Formatting wiki formatting]&lt;br /&gt;
# Always '''preview''' your edit before saving&lt;br /&gt;
&lt;br /&gt;
==Special templates==&lt;br /&gt;
&lt;br /&gt;
===1. Nav Bar===&lt;br /&gt;
Each product has its own nav bar for the user to find the content easier. To add that, include the following at the first line of the page:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    {{rockpiS_header}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The content of [[Template:RockpiS_header | rockpiS_header template]] is as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-12&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;ul class=&amp;quot;nav nav-pills nav-tabs-lighter&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpiS| Main]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpiS/getting_started | Getting Started]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpiS/hardware | Hardware]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpiS/downloads | Downloads]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpiS/FAQs | FAQs]]&amp;lt;/li&amp;gt;&lt;br /&gt;
      &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It looks like below:&lt;br /&gt;
----&lt;br /&gt;
{{rockpiS_header}}&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
You can also add the nav bar for other language by adding a new template, [[Template:RockpiS_header_es]] and [[Template:RockpiS_header_zh_cn]] is an example.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 2. Multiple Language ===&lt;br /&gt;
The wiki supports multiple language by using the [[Template:Languages | language template]]. If you want to add your language, edit [[Template:Languages | language template]] first. It's content as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|{{#language:en}}]]&amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/zh_cn|{{#language:zh-cn}}]]&amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/es_es|{{#language:es}}]]&amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/de_DE|{{#language:de}}]]&amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/pt_BR|{{#language:pt-br}}]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;box-Title&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add your language code as above and save the template.&lt;br /&gt;
&lt;br /&gt;
Each page with multiple language support must include the template at the second line, next to the Nav Bar. The page name must be passed to the template after the | sign, example of the getting started page of ROCK Pi S:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Languages|rockpi4/getting_started}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will looks like this:&lt;br /&gt;
----&lt;br /&gt;
{{Languages|rockpi4/getting_started}}&lt;br /&gt;
----&lt;br /&gt;
Then click the language button to create/goto the ROCK Pi S getting started page of corresponding language. &lt;br /&gt;
&lt;br /&gt;
'''Note:'''&lt;br /&gt;
&lt;br /&gt;
When you translate a page, which has link to other page on the same wiki, you should add the country code in the url, so that the user will always jump to the destination page of the same language.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;In English version, link to getting started page is [[RockpiS/getting_started]]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;For the Simplified Chinese version, the link should be changed to  [[RockpiS/getting_started/zh_cn]].&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Remember:'''&lt;br /&gt;
&lt;br /&gt;
* Germany content page url always ends with de_DE&lt;br /&gt;
* Simplified Chinese content page url always ends with zh_cn&lt;br /&gt;
* Spanish content page url always ends with es_es&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
===3. Breadcrumb===&lt;br /&gt;
If the page depth is deeper than 2, a breadcrumb should be added to the beginning of the page for the user to go back to the upper level page.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    [[rockpiS | ROCK Pi S]] &amp;gt; [[rockpiS/install | Install]] &amp;gt; [[rockpiS/install/MicroSD | Install on MicroSD]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
It looks like this:&lt;br /&gt;
&lt;br /&gt;
    [[rockpiS | ROCK Pi S]] &amp;gt; [[rockpiS/install | Install]] &amp;gt; [[rockpiS/install/MicroSD | Install on MicroSD]]&lt;br /&gt;
&lt;br /&gt;
==Community Contributions==&lt;br /&gt;
* HANLLEL translated the Spanish page.&lt;br /&gt;
* Beachtier  translated the Germany page.&lt;/div&gt;</summary>
		<author><name>SimenZhor</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rockpi4/contribute</id>
		<title>Rockpi4/contribute</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rockpi4/contribute"/>
				<updated>2020-03-26T08:26:59Z</updated>
		
		<summary type="html">&lt;p&gt;SimenZhor: Added a bit more information to /* How to edit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rockpi4_header}}&lt;br /&gt;
{{Languages|rockpi4/contribute}}&lt;br /&gt;
&lt;br /&gt;
==About this wiki==&lt;br /&gt;
&lt;br /&gt;
Radxa wiki is the place gathering info, guides and tutorial of Radxa products. The wiki is open to register and maintained by the community and Radxa team. Feel free to add/edit radxa product's related info on the wiki page. Most of the pages can be edited without permission, some pages the team think important are protected.&lt;br /&gt;
&lt;br /&gt;
==How to edit==&lt;br /&gt;
# You must create an account to edit, check the top menu '''[https://wiki.radxa.com/mw/index.php?title=Special:UserLogin&amp;amp;returnto=Rockpi4%2Fcontribute&amp;amp;type=signup Edit -&amp;gt; Personal -&amp;gt; Create account]'''. The forum account won't work. &lt;br /&gt;
# After logging in, you can edit the wiki page by clicking '''Edit -&amp;gt; Edit''' in the top menu.&lt;br /&gt;
# For the wiki syntax, please refer [https://www.mediawiki.org/wiki/Help:Formatting wiki fomatting]&lt;br /&gt;
# Always '''preview''' your edit bebfore save&lt;br /&gt;
&lt;br /&gt;
==Special templates==&lt;br /&gt;
&lt;br /&gt;
===1. Nav Bar===&lt;br /&gt;
Each product has its own nav bar for the user to find the content easier. To add that, include the following at the first line of the page:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    {{rockpi4_header}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The content of [[Template:Rockpi4_header | rockpi4_header template]] is as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-12&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;ul class=&amp;quot;nav nav-pills nav-tabs-lighter&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpi4| Main]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpi4/getting_started | Getting Started]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpi4/hardware | Hardware]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpi4/downloads | Downloads]]&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;[[rockpi4/FAQs | FAQs]]&amp;lt;/li&amp;gt;&lt;br /&gt;
      &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It looks like below:&lt;br /&gt;
----&lt;br /&gt;
{{rockpi4_header}}&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
You can also add the nav bar for other language by adding a new template, [[Template:Rockpi4_header_es]] and [[Template:Rockpi4_header_zh_cn]] is an example.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 2. Multiple Language ===&lt;br /&gt;
The wiki supports multiple language by using the [[Template:Languages | language template]]. If you want to add your language, edit [[Template:Languages | language template]] first. It's content as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|{{#language:en}}]]&amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/zh_cn|{{#language:zh-cn}}]]&amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/es_es|{{#language:es}}]]&amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/de_DE|{{#language:de}}]]&amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;btn btn-primary pull-right&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-language&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/pt_BR|{{#language:pt-br}}]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;box-Title&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add your language code as above and save the template.&lt;br /&gt;
&lt;br /&gt;
Each page with multiple language support must include the template at the second line, next to the Nav Bar. The page name must be passed to the template after the | sign, example of the getting started page of ROCK Pi 4:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Languages|rockpi4/getting_started}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will looks like this:&lt;br /&gt;
----&lt;br /&gt;
{{Languages|rockpi4/getting_started}}&lt;br /&gt;
----&lt;br /&gt;
Then click the language button to create/goto the ROCK Pi 4 getting started page of corresponding language. &lt;br /&gt;
&lt;br /&gt;
'''Note:'''&lt;br /&gt;
&lt;br /&gt;
When you translate a page, which has link to other page on the same wiki, you should add the country code in the url, so that the user will always jump to the destination page of the same language.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;In English version, link to getting started page is [[Rockpi4/getting_started]]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;For the Simplified Chinese version, the link should be changed to  [[Rockpi4/getting_started/zh_cn]].&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Remember:'''&lt;br /&gt;
&lt;br /&gt;
* Germany content page url always ends with de_DE&lt;br /&gt;
* Simplified Chinese content page url always ends with zh_cn&lt;br /&gt;
* Spanish content page url always ends with es_es&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
===3. Breadcrumb===&lt;br /&gt;
If the page depth is deeper than 2, a breadcrumb should be added to the beginning of the page for the user to go back to the upper level page.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    [[rockpi4 | ROCK Pi 4]] &amp;gt; [[rockpi4/install | Install]] &amp;gt; [[rockpi4/install/eMMC | Install on eMMC module]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
It looks like this:&lt;br /&gt;
&lt;br /&gt;
    [[rockpi4 | ROCK Pi 4]] &amp;gt; [[rockpi4/install | Install]] &amp;gt; [[rockpi4/install/eMMC | Install on eMMC module]]&lt;br /&gt;
&lt;br /&gt;
==Community Contributions==&lt;br /&gt;
* HANLLEL translated the Spanish page.&lt;br /&gt;
* Beachtier  translated the Germany page.&lt;/div&gt;</summary>
		<author><name>SimenZhor</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/RockpiS/hardware/gpio</id>
		<title>RockpiS/hardware/gpio</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/RockpiS/hardware/gpio"/>
				<updated>2020-03-26T08:15:15Z</updated>
		
		<summary type="html">&lt;p&gt;SimenZhor: I added a note in the IO Voltage section about ADC input voltage&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rockpiS_header}}&lt;br /&gt;
{{Languages|rockpi4/hardware/gpio}}&lt;br /&gt;
&lt;br /&gt;
    [[rockpiS | ROCK Pi S]] &amp;gt; [[rockpiS/hardware | Hardware]] &amp;gt; [[rockpiS/hardware/gpio | GPIO]]&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;span id=&amp;quot;gpio&amp;quot;&amp;gt;General purpose input-output (GPIO) connector&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
ROCK Pi S has two 26-pin expansion header. Each pin is distinguished by color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12 &amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;panel panel-midnight-white&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt;&amp;lt;h3&amp;gt;Hardware V10&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 26-pin Header 1 ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;mw-collapsible mw-collapsed wikitable&amp;quot;&lt;br /&gt;
! GPIO number || Func4 || Func3 || Func2 ||  Func1 ||  Pin# || || Pin# || Func1 || Func2 || Func3 || Func4 || GPIO number&lt;br /&gt;
|- &lt;br /&gt;
| || || || || +3.3V || style=&amp;quot;background:yellow&amp;quot;| 1 ||  ||style=&amp;quot;background:red&amp;quot;| 2 || +5.0V || || ||| ||&lt;br /&gt;
|-&lt;br /&gt;
| 12 || || || I2C1_SCL || GPIO0_B4 || style=&amp;quot;background:green; color:white&amp;quot;| 3 || || style=&amp;quot;background:red&amp;quot;| 4 || +5.0V || || || ||&lt;br /&gt;
|-&lt;br /&gt;
| 11 || || || I2C1_SDA || GPIO0_B3 || style=&amp;quot;background:green; color:white&amp;quot;| 5 || || style=&amp;quot;background:black; color:white&amp;quot;| 6 || GND || || || ||&lt;br /&gt;
|-&lt;br /&gt;
| 69 || ||  || I2S0_SCLK_TX || GPIO2_A5 || style=&amp;quot;background:green; color:white&amp;quot;| 7 || || style=&amp;quot;background:green; color:white&amp;quot;| 8 || GPIO4_D3 || SDMMC_D3 || UART2_TX_M1 || PMU_ST3 || 155&lt;br /&gt;
|-&lt;br /&gt;
| 64 || || SPI0_MISO || style=&amp;quot;background:orange&amp;quot;| UART0_RX || GPIO2_A0 || style=&amp;quot;background:green; color:white&amp;quot;| 9 || || style=&amp;quot;background:green; color:white&amp;quot;|10 || GPIO4_D2 || SDMMC_D2 || UART2_RX_M1 || PMU_ST2 || 154&lt;br /&gt;
|-&lt;br /&gt;
| 65 || ||  SPI0_MOSI || style=&amp;quot;background:orange&amp;quot;|UART0_TX || GPIO2_A1 || style=&amp;quot;background:green; color:white&amp;quot;|11 || || style=&amp;quot;background:green; color:white&amp;quot;|12 || GPIO0_C0 || PWM3 || I2C3_SCL_M0 ||  || 16&lt;br /&gt;
|-&lt;br /&gt;
| 66 || I2C2_SDA || SPI0_CLK || UART0_CTSN || GPIO2_A2 || style=&amp;quot;background:green; color:white&amp;quot;|13 ||  || style=&amp;quot;background:black; color:white&amp;quot;|14 || GND || || || ||&lt;br /&gt;
|-&lt;br /&gt;
| 67 || I2C2_SCL || SPI0_CSN0 || UART0_RTSN || GPIO2_A3 || style=&amp;quot;background:green; color:white&amp;quot;|15 || || style=&amp;quot;background:green; color:white&amp;quot;|16 || GPIO2_A7 || I2S0_8CH_LRCK_TX || || || 71&lt;br /&gt;
|-&lt;br /&gt;
| || || || || +3.3V || style=&amp;quot;background:yellow&amp;quot;|17 || || style=&amp;quot;background:green; color:white&amp;quot;|18 || GPIO2_B1 || I2S0_8CH_SDO0 || || || 73&lt;br /&gt;
|-&lt;br /&gt;
| 55 || SPI2_MOSI || UART2_TX_M0 || UART1_RTSN || GPIO1_C7 || style=&amp;quot;background:green; color:white&amp;quot;|19 ||  ||style=&amp;quot;background:black; color:white&amp;quot;|20 || GND || || || ||&lt;br /&gt;
|-&lt;br /&gt;
| 54 || SPI2_MISO || UART2_RX_M0 || UART1_CTSN || GPIO1_C6 || style=&amp;quot;background:green; color:white&amp;quot;|21 ||  || style=&amp;quot;background:green; color:white&amp;quot;|22  || GPIO0_B6 || PWM1 || || || 14&lt;br /&gt;
|-&lt;br /&gt;
| 56 || SPI2_CLK || I2C0_SDA || UART1_RX || GPIO1_D0 || style=&amp;quot;background:green; color:white&amp;quot;|23 ||  || style=&amp;quot;background:green; color:white&amp;quot;|24 || GPIO1_D1 || UART1_TX  || I2C0_SCL || SPI2_CSN0 || 57&lt;br /&gt;
|-&lt;br /&gt;
| || ||  || ||  GND || style=&amp;quot;background:black; color:white&amp;quot;|25  ||   || style=&amp;quot;background:green; color:white&amp;quot;|26 || GPIO0_B7 || PWM2 || I2C3_SDA_M0 || || 15&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Warning''' &lt;br /&gt;
* Pin#8 and Pin#10 cannot be used as GPIO, UART function pins since they are the data pins of SDMMC.&lt;br /&gt;
&lt;br /&gt;
==== 26-pin Header 2 ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;mw-collapsible mw-collapsed wikitable&amp;quot;&lt;br /&gt;
! GPIO number || Func3 || Func2 ||  Func1 ||  Pin# || || Pin# || Func1 || Func2 || Func3 || GPIO number&lt;br /&gt;
|- &lt;br /&gt;
| || || || GND || style=&amp;quot;background:black; color:white&amp;quot;| 1 ||  ||style=&amp;quot;background:black; color:white&amp;quot;| 2 || GPIO2_A6 || I2S0_8CH_SCLK_RX || PDM_CLK_S_M2 ||| 70&lt;br /&gt;
|-&lt;br /&gt;
| || || || ADC_KEY_IN1 || style=&amp;quot;background:black; color:white&amp;quot;| 3 || || style=&amp;quot;background:black; color:white&amp;quot;| 4 || GPIO2_B5 || I2S0_8CH_SDI0 || PDM_SDI0_M2 || 77&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICBIAS2 || style=&amp;quot;background:black; color:white&amp;quot;| 5 || || style=&amp;quot;background:black; color:white&amp;quot;| 6 || GPIO2_B6 || I2S0_8CH_SDI1 || PDM_SDI1_M2 || 78&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICBIAS1 || style=&amp;quot;background:black; color:white&amp;quot;| 7 || || style=&amp;quot;background:black; color:white&amp;quot;| 8 || GPIO2_B7 || I2S0_8CH_SDI2 || PDM_SDI2_M2 || 79&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN8 || style=&amp;quot;background:black; color:white&amp;quot;| 9 || || style=&amp;quot;background:black; color:white&amp;quot;|10 || MCIP8 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN7 || style=&amp;quot;background:black; color:white&amp;quot;|11 || || style=&amp;quot;background:black; color:white&amp;quot;|12 || MCIP7 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN6 || style=&amp;quot;background:black; color:white&amp;quot;|13 ||  || style=&amp;quot;background:black; color:white&amp;quot;|14 || MCIP6 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN5 || style=&amp;quot;background:black; color:white&amp;quot;|15 || || style=&amp;quot;background:black; color:white&amp;quot;|16 || MCIP5 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN4 || style=&amp;quot;background:black; color:white&amp;quot;|17 || || style=&amp;quot;background:black; color:white&amp;quot;|18 || MCIP4 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN3 || style=&amp;quot;background:black; color:white&amp;quot;|19 ||  ||style=&amp;quot;background:black; color:white&amp;quot;|20 || MCIP3 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN2 || style=&amp;quot;background:black; color:white&amp;quot;|21 ||  || style=&amp;quot;background:black; color:white&amp;quot;|22  || MCIP2 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN1 || style=&amp;quot;background:black; color:white&amp;quot;|23 ||  || style=&amp;quot;background:black; color:white&amp;quot;|24 || MCIP1 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || LINEOUT_R || style=&amp;quot;background:black; color:white&amp;quot;|25  ||   || style=&amp;quot;background:black; color:white&amp;quot;|26 || LINEOUT_L || || ||&lt;br /&gt;
|}&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;clearfix&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== More details about V10 Headers ====&lt;br /&gt;
&lt;br /&gt;
* Pins marked with color orange are designed for default debug console.&lt;br /&gt;
* PWM: x3, PWM1/PWM2/PWM3&lt;br /&gt;
* SPI: x2, SPI0/SPI2&lt;br /&gt;
* I2C: x4, I2C0/I2C1/I2C2/I2C3&lt;br /&gt;
* UART: x3, UART0/UART1/UART2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12 &amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;panel panel-midnight-white&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt;&amp;lt;h3&amp;gt;Hardware V11&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 26-pin Header 1 ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;mw-collapsible mw-collapsed wikitable&amp;quot;&lt;br /&gt;
! GPIO number || Func4 || Func3 || Func2 ||  Func1 ||  Pin# || || Pin# || Func1 || Func2 || Func3 || Func4 || GPIO number&lt;br /&gt;
|- &lt;br /&gt;
| || || || || +3.3V || style=&amp;quot;background:yellow&amp;quot;| 1 ||  ||style=&amp;quot;background:red&amp;quot;| 2 || +5.0V || || ||| ||&lt;br /&gt;
|-&lt;br /&gt;
| 11 || || || I2C1_SDA || GPIO0_B3 || style=&amp;quot;background:green; color:white&amp;quot;| 3 || || style=&amp;quot;background:red&amp;quot;| 4 || +5.0V || || || ||&lt;br /&gt;
|-&lt;br /&gt;
| 12 || || || I2C1_SCL || GPIO0_B4 || style=&amp;quot;background:green; color:white&amp;quot;| 5 || || style=&amp;quot;background:black; color:white&amp;quot;| 6 || GND || || || ||&lt;br /&gt;
|-&lt;br /&gt;
| 69 || || || I2S0_SCLK_TX || GPIO2_A5 || style=&amp;quot;background:green; color:white&amp;quot;| 7 || || style=&amp;quot;background:green; color:white&amp;quot;| 8 || GPIO2_A1 || style=&amp;quot;background:orange&amp;quot;|UART0_TX || SPI0_MOSI || || 65&lt;br /&gt;
|-&lt;br /&gt;
| || || || || GND || style=&amp;quot;background:black; color:white&amp;quot;| 9 || || style=&amp;quot;background:green; color:white&amp;quot;|10 || GPIO2_A0 || style=&amp;quot;background:orange&amp;quot;|UART0_RX || SPI0_MISO || || 64&lt;br /&gt;
|-&lt;br /&gt;
| 15 || ||  I2C3_SDA_M0 || PWM2 || GPIO0_B7 || style=&amp;quot;background:green; color:white&amp;quot;|11 || || style=&amp;quot;background:green; color:white&amp;quot;|12 || GPIO2_A2 || UART0_CTSN || SPI0_CLK || I2C2_SDA || 66&lt;br /&gt;
|-&lt;br /&gt;
| 16 || || I2C3_SCL_M0 || PWM3 || GPIO0_C0 || style=&amp;quot;background:green; color:white&amp;quot;|13 ||  || style=&amp;quot;background:black; color:white&amp;quot;|14 || GND || || || ||&lt;br /&gt;
|-&lt;br /&gt;
| 17 || || || SPDIF_TX || GPIO0_C1 || style=&amp;quot;background:green; color:white&amp;quot;|15 || || style=&amp;quot;background:green; color:white&amp;quot;|16 || GPIO2_A3 || UART0_RTSN || SPI0_CSN0 || I2C2_SCL || 67&lt;br /&gt;
|-&lt;br /&gt;
| || || || || +3.3V || style=&amp;quot;background:yellow&amp;quot;|17 || || style=&amp;quot;background:green; color:white&amp;quot;|18 || GPIO2_B1 || I2S0_8CH_SDO0 || || || 73&lt;br /&gt;
|-&lt;br /&gt;
| 55 || SPI2_MOSI || UART2_TX_M0 || UART1_RTSN || GPIO1_C7 || style=&amp;quot;background:green; color:white&amp;quot;|19 ||  ||style=&amp;quot;background:black; color:white&amp;quot;|20 || GND || || || ||&lt;br /&gt;
|-&lt;br /&gt;
| 54 || SPI2_MISO || UART2_RX_M0 || UART1_CTSN || GPIO1_C6 || style=&amp;quot;background:green; color:white&amp;quot;|21 ||  || style=&amp;quot;background:green; color:white&amp;quot;|22  || GPIO0_B6 || PWM1 || || || 14&lt;br /&gt;
|-&lt;br /&gt;
| 56 || SPI2_CLK || I2C0_SDA || UART1_RX || GPIO1_D0 || style=&amp;quot;background:green; color:white&amp;quot;|23 ||  || style=&amp;quot;background:green; color:white&amp;quot;|24 || GPIO1_D1 || UART1_TX  || I2C0_SCL || SPI2_CSN0 || 57&lt;br /&gt;
|-&lt;br /&gt;
| || ||  || ||  GND || style=&amp;quot;background:black; color:white&amp;quot;|25  ||   || style=&amp;quot;background:green; color:white&amp;quot;|26 || ADC_IN0 ||   ||   || || &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== 26-pin Header 2 ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;mw-collapsible mw-collapsed wikitable&amp;quot;&lt;br /&gt;
! GPIO number || Func3 || Func2 ||  Func1 ||  Pin# || || Pin# || Func1 || Func2 || Func3 || GPIO number&lt;br /&gt;
|- &lt;br /&gt;
| || || || GND || style=&amp;quot;background:black; color:white&amp;quot;| 1 ||  ||style=&amp;quot;background:black; color:white&amp;quot;| 2 || GPIO2_A6 || I2S0_8CH_SCLK_RX || PDM_CLK_S_M2 ||| 70&lt;br /&gt;
|-&lt;br /&gt;
| || || || ADC_KEY_IN1 || style=&amp;quot;background:black; color:white&amp;quot;| 3 || || style=&amp;quot;background:black; color:white&amp;quot;| 4 || GPIO2_B5 || I2S0_8CH_SDI0 || PDM_SDI0_M2 || 77&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICBIAS2 || style=&amp;quot;background:black; color:white&amp;quot;| 5 || || style=&amp;quot;background:black; color:white&amp;quot;| 6 || GPIO2_B6 || I2S0_8CH_SDI1 || PDM_SDI1_M2 || 78&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICBIAS1 || style=&amp;quot;background:black; color:white&amp;quot;| 7 || || style=&amp;quot;background:black; color:white&amp;quot;| 8 || GPIO2_B7 || I2S0_8CH_SDI2 || PDM_SDI2_M2 || 79&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN8 || style=&amp;quot;background:black; color:white&amp;quot;| 9 || || style=&amp;quot;background:black; color:white&amp;quot;|10 || MCIP8 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN7 || style=&amp;quot;background:black; color:white&amp;quot;|11 || || style=&amp;quot;background:black; color:white&amp;quot;|12 || MCIP7 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN6 || style=&amp;quot;background:black; color:white&amp;quot;|13 ||  || style=&amp;quot;background:black; color:white&amp;quot;|14 || MCIP6 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN5 || style=&amp;quot;background:black; color:white&amp;quot;|15 || || style=&amp;quot;background:black; color:white&amp;quot;|16 || MCIP5 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN4 || style=&amp;quot;background:black; color:white&amp;quot;|17 || || style=&amp;quot;background:black; color:white&amp;quot;|18 || MCIP4 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN3 || style=&amp;quot;background:black; color:white&amp;quot;|19 ||  ||style=&amp;quot;background:black; color:white&amp;quot;|20 || MCIP3 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN2 || style=&amp;quot;background:black; color:white&amp;quot;|21 ||  || style=&amp;quot;background:black; color:white&amp;quot;|22  || MCIP2 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN1 || style=&amp;quot;background:black; color:white&amp;quot;|23 ||  || style=&amp;quot;background:black; color:white&amp;quot;|24 || MCIP1 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || LINEOUT_R || style=&amp;quot;background:black; color:white&amp;quot;|25  ||   || style=&amp;quot;background:black; color:white&amp;quot;|26 || LINEOUT_L || || ||&lt;br /&gt;
|}&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;clearfix&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== More details about V11 Headers ====&lt;br /&gt;
&lt;br /&gt;
* Pins marked with color orange are designed for default debug console.&lt;br /&gt;
* PWM: x3, PWM1/PWM2/PWM3&lt;br /&gt;
* SPI: x2, SPI0/SPI2&lt;br /&gt;
* I2C: x4, I2C0/I2C1/I2C2/I2C3&lt;br /&gt;
* UART: x3, UART0/UART1/UART2&lt;br /&gt;
* ADC: x1, ADC_IN0. The max input voltage is 1.8V.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12 &amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;panel panel-midnight-white&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt;&amp;lt;h3&amp;gt;Hardware V12&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 26-pin Header 1 ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;mw-collapsible wikitable&amp;quot;&lt;br /&gt;
! GPIO number || Func4 || Func3 || Func2 ||  Func1 ||  Pin# || || Pin# || Func1 || Func2 || Func3 || Func4 || GPIO number&lt;br /&gt;
|- &lt;br /&gt;
| || || || || +3.3V || style=&amp;quot;background:yellow&amp;quot;| 1 ||  ||style=&amp;quot;background:red&amp;quot;| 2 || +5.0V || || ||| ||&lt;br /&gt;
|-&lt;br /&gt;
| 11 || || || I2C1_SDA || GPIO0_B3 || style=&amp;quot;background:green; color:white&amp;quot;| 3 || || style=&amp;quot;background:red&amp;quot;| 4 || +5.0V || || || ||&lt;br /&gt;
|-&lt;br /&gt;
| 12 || || || I2C1_SCL || GPIO0_B4 || style=&amp;quot;background:green; color:white&amp;quot;| 5 || || style=&amp;quot;background:black; color:white&amp;quot;| 6 || GND || || || ||&lt;br /&gt;
|-&lt;br /&gt;
| 68 || || PDM_CLK_M_M2 || I2S0_8CH_MCLK || GPIO2_A4 || style=&amp;quot;background:green; color:white&amp;quot;| 7 || || style=&amp;quot;background:green; color:white&amp;quot;| 8 || GPIO2_A1 || style=&amp;quot;background:orange&amp;quot;|UART0_TX || SPI0_MOSI  || || 65&lt;br /&gt;
|-&lt;br /&gt;
| || || || || GND || style=&amp;quot;background:black; color:white&amp;quot;| 9 || || style=&amp;quot;background:green; color:white&amp;quot;|10 || GPIO2_A0 || style=&amp;quot;background:orange&amp;quot;|UART0_RX || SPI0_MISO  || || 64&lt;br /&gt;
|-&lt;br /&gt;
| 15 || ||  I2C3_SDA_M0 || PWM2 || GPIO0_B7 || style=&amp;quot;background:green; color:white&amp;quot;|11 || || style=&amp;quot;background:green; color:white&amp;quot;|12 || GPIO2_A5 || I2S0_8CH_SCLK_TX ||   ||   || 69&lt;br /&gt;
|-&lt;br /&gt;
| 16 || || I2C3_SCL_M0 || PWM3 || GPIO0_C0 || style=&amp;quot;background:green; color:white&amp;quot;|13 ||  || style=&amp;quot;background:black; color:white&amp;quot;|14 || GND || || || ||&lt;br /&gt;
|-&lt;br /&gt;
| 17 || || || SPDIF_TX || GPIO0_C1 || style=&amp;quot;background:green; color:white&amp;quot;|15 || || style=&amp;quot;background:green; color:white&amp;quot;|16 || GPIO2_B2 || I2S0_8CH_SDO1 ||   ||   || 74&lt;br /&gt;
|-&lt;br /&gt;
| || || || || +3.3V || style=&amp;quot;background:yellow&amp;quot;|17 || || style=&amp;quot;background:green; color:white&amp;quot;|18 || GPIO2_B1 || I2S0_8CH_SDO0 || || || 73&lt;br /&gt;
|-&lt;br /&gt;
| 55 || SPI2_MOSI || UART2_TX_M0 || UART1_RTSN || GPIO1_C7 || style=&amp;quot;background:green; color:white&amp;quot;|19 ||  ||style=&amp;quot;background:black; color:white&amp;quot;|20 || GND || || || ||&lt;br /&gt;
|-&lt;br /&gt;
| 54 || SPI2_MISO || UART2_RX_M0 || UART1_CTSN || GPIO1_C6 || style=&amp;quot;background:green; color:white&amp;quot;|21 ||  || style=&amp;quot;background:green; color:white&amp;quot;|22  || GPIO2_A7 || I2S0_8CH_LRCK_TX || || || 71&lt;br /&gt;
|-&lt;br /&gt;
| 56 || SPI2_CLK || I2C0_SDA || UART1_RX || GPIO1_D0 || style=&amp;quot;background:green; color:white&amp;quot;|23 ||  || style=&amp;quot;background:green; color:white&amp;quot;|24 || GPIO1_D1 || UART1_TX  || I2C0_SCL || SPI2_CSN0 || 57&lt;br /&gt;
|-&lt;br /&gt;
| || ||  || ||  GND || style=&amp;quot;background:black; color:white&amp;quot;|25  ||   || style=&amp;quot;background:green; color:white&amp;quot;|26 || ADC_IN0 ||   ||   || || &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== 26-pin Header 2 ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;mw-collapsible wikitable&amp;quot;&lt;br /&gt;
! GPIO number || Func3 || Func2 ||  Func1 ||  Pin# || || Pin# || Func1 || Func2 || Func3 || GPIO number&lt;br /&gt;
|- &lt;br /&gt;
| || || || GND || style=&amp;quot;background:black; color:white&amp;quot;| 1 ||  ||style=&amp;quot;background:black; color:white&amp;quot;|2 || GPIO2_B5 || I2S0_8CH_SDI0 || PDM_SDI0_M2 ||| 77&lt;br /&gt;
|-&lt;br /&gt;
| || || || ADC_KEY_IN1 || style=&amp;quot;background:black; color:white&amp;quot;| 3 || || style=&amp;quot;background:black; color:white&amp;quot;|4 || GPIO2_B6 || I2S0_8CH_SDI1 || PDM_SDI1_M2 || 78&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICBIAS2 || style=&amp;quot;background:black; color:white&amp;quot;| 5 || || style=&amp;quot;background:black; color:white&amp;quot;|6 || GPIO2_B7 || I2S0_8CH_SDI2 || PDM_SDI2_M2 || 79&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICBIAS1 || style=&amp;quot;background:black; color:white&amp;quot;| 7 || || style=&amp;quot;background:black; color:white&amp;quot;|8 || GPIO2_C0 || I2S0_8CH_SDI3 || PDM_SDI3_M2 || 80&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN8 || style=&amp;quot;background:black; color:white&amp;quot;| 9 || || style=&amp;quot;background:black; color:white&amp;quot;|10 || MCIP8 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN7 || style=&amp;quot;background:black; color:white&amp;quot;|11 || || style=&amp;quot;background:black; color:white&amp;quot;|12 || MCIP7 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN6 || style=&amp;quot;background:black; color:white&amp;quot;|13 ||  || style=&amp;quot;background:black; color:white&amp;quot;|14 || MCIP6 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN5 || style=&amp;quot;background:black; color:white&amp;quot;|15 || || style=&amp;quot;background:black; color:white&amp;quot;|16 || MCIP5 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| 76 || || I2S0_8CH_SDO3 || GPIO2_B4 || style=&amp;quot;background:black; color:white&amp;quot;|17 || || style=&amp;quot;background:black; color:white&amp;quot;|18 || GPIO2_B3 || I2S0_8CH_SDO2 || || 75&lt;br /&gt;
|-&lt;br /&gt;
| 72  || || I2S0_8CH_LRCK_RX || GPIO2_B0 || style=&amp;quot;background:black; color:white&amp;quot;|19 ||  ||style=&amp;quot;background:black; color:white&amp;quot;|20 || GPIO2_A6 || I2S0_8CH_SCLK_RX || PDM_CLK_S_M2 || 70&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN2 || style=&amp;quot;background:black; color:white&amp;quot;|21 ||  || style=&amp;quot;background:black; color:white&amp;quot;|22  || MCIP2 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || MICN1 || style=&amp;quot;background:black; color:white&amp;quot;|23 ||  || style=&amp;quot;background:black; color:white&amp;quot;|24 || MCIP1 || || ||&lt;br /&gt;
|-&lt;br /&gt;
| || || || LINEOUT_R || style=&amp;quot;background:black; color:white&amp;quot;|25  ||   || style=&amp;quot;background:black; color:white&amp;quot;|26 || LINEOUT_L || || ||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== More details about V12 Headers ====&lt;br /&gt;
&lt;br /&gt;
* Pins marked with color orange are designed for default debug console.&lt;br /&gt;
* PWM: x2, PWM2/PWM3&lt;br /&gt;
* SPI: x1, SPI2&lt;br /&gt;
* I2C: x3, I2C0/I2C1/I2C3&lt;br /&gt;
* UART: x3, UART0/UART1/UART2&lt;br /&gt;
* ADC: x1, ADC_IN0. The max input voltage is 1.8V.&lt;br /&gt;
&lt;br /&gt;
== IO Voltage ==&lt;br /&gt;
RK3308 have two IO voltages, '''1.8V/3.3V'''. For ROCK Pi S, the voltage level of GPIOs showed in the tables above are '''3.3V''' and tolerance of those  are '''3.63V'''. For hardware V11 and V12, an ADC input is included (ADC_IN0). This ADC has an input voltage range of '''0-1.8V'''.&lt;br /&gt;
&lt;br /&gt;
== GPIO number ==&lt;br /&gt;
Rockchip RK3308 GPIO has 5 banks, GPIO0 to GPIO4, each bank has 32pins, naming as below:&lt;br /&gt;
&lt;br /&gt;
    GPIO0_A0 ~ A7 &lt;br /&gt;
    GPIO0_B0 ~ B7&lt;br /&gt;
    GPIO0_C0 ~ C7&lt;br /&gt;
    GPIO0_D0 ~ D7&lt;br /&gt;
    &lt;br /&gt;
    GPIO1_A0 ~ A7&lt;br /&gt;
    ....&lt;br /&gt;
    GPIO1_D0 ~ D7&lt;br /&gt;
&lt;br /&gt;
For Rockchip 4.4 kernel, the GPIO number can be calculated as below, take GPIO4_D3(PIN8 on 26PIN GPIO) as an example:&lt;br /&gt;
&lt;br /&gt;
    GPIO4_D3 = 32*4 + 8*3 + 3 = 155&lt;br /&gt;
&lt;br /&gt;
To set GPIO4_D3 output&lt;br /&gt;
&lt;br /&gt;
    cd /sys/class/gpio&lt;br /&gt;
    echo 155 &amp;gt; export&lt;br /&gt;
    cd gpio155&lt;br /&gt;
    echo out &amp;gt; direction&lt;br /&gt;
    echo 1 &amp;gt; value     # output high&lt;br /&gt;
    echo 0 &amp;gt; value     # output low&lt;/div&gt;</summary>
		<author><name>SimenZhor</name></author>	</entry>

	</feed>