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

RockpiS/dev/libmraa

< RockpiS‎ | dev
Revision as of 06:31, 4 July 2019 by Stephen (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
       ROCK Pi S >  Development >  Install Libmraa 


Libmraa on ROCK Pi S

Package libmraa-rockpis is in Radxa APT bionic-testing and stretch-testing repositories.

Below is the instructions of how to install libmraa and use it.

Install essential packages

Edit file /etc/apt/sources.list.d/apt-radxa-com.list and add the following:

For Debian Stretch

   deb http://apt.radxa.com/stretch-testing/ stretch main

For Ubuntu bionic

   deb http://apt.radxa.com/bionic-testing/ bionic main

Get the pub key

   wget -O -  apt.radxa.com/stretch-testing/public.key | sudo apt-key add -

Update

   sudo apt-get update && sudo apt-get upgrade

Install essential packages:

   sudo apt-get install -y rockchip-fstab && sudo apt-get install -y rockchip-overlay && sudo apt-get install -y rockpis-dtbo

Install the latest u-boot and kernel:

   apt-get install rockpis-rk-u-boot-latest

Manually run the u-boot flash script

   /usr/local/sbin/rockpis_upgrade_bootloader.sh

Type YES to perform the uboot.img flashing.

Install kernel

   apt-get install linux-base
   apt-get install linux-4.4-rockpis-latest

After installation, check file /boot/extlinux/extlinux.conf. It lists all kernel version installed in ROCK Pi S. The kernel corresponding to the first label is the newest version and the first boot option.

Install libmraa-rockpis

   apt-get install libmraa-rockpis

Enable interface

See ROCK Pi S GPIO pintout.


Test

test gpio

test pwm

test uart

test spi

test adc