From Khadas forum...
" ROM Infos:
- ROM version: Vim_Ubuntu-mate-16.04_Linux-4.9_V170605.7z
- MD5SUM: d52a6f2c5df4cf353381e2fee716b42d
- The ROM is for eMMC installation
- Account info:
- User: khadas
- Password: khadas
- LED state:
- Booting: heartbeat
- Boot up: breathe
- Linux kernel update to linux-4.9.26, commit ID4
- better 32-bit display(Before was 24-bit)
- Add standard Linux GPIO Lib support, and setup PIN33/37 as generic IO
- Enable UART bus (PIN15/16) as default
- Add bluetooth support
- Upgrade to the latest ubuntu-16.04.2 packages
Setup
1) Using GPIO
GPIO list:
- PIN33 / GPIOAO6: 6
- PIN37 / GPIOH5: 31
To use a GPIO, shoud export first, example:
# echo 31 > /sys/class/gpio/export
Output mode:
# echo out > /sys/class/gpio/gpio31/direction # echo 0 > /sys/class/gpio/gpio31/value # echo 1 > /sys/class/gpio/gpio31/value
Input mode:
# echo in > /sys/class/gpio/gpio31/direction # cat /sys/class/gpio/gpio31/value
Have fun!"