Weston Rockchip Demo¶
The purpose of this demo is show current support in mainline for different Rockchip boards. The demo runs a Debian based image with Weston and accelerated graphics using Panfrost.
The Debian images are assembled using the debos utility, which uses the Debian package feed beneath. Stuff not available in official Debian packages will be built from sources or downloaded into the final image.
Supported and tested hardware¶
Samsung Chromebook Plus (kevin)¶
Samsung Chromebook Plus (kevin)¶
The Samsung Chromebook Plus is a convertible touchscreen laptop powered by an ARMv8 Rockchip RK3399 hexa-core processor and 4GB RAM, measuring 11.04” x 8.72” x 0.55” and weighing 2.38 lbs.
Features:
- Rockchip RK3399 (OP1) dual-core 2.0GHz Cortex-A72 and quad-core 1.4GHz Cortex-A53 processor
- 4GB LPDDR3 RAM
- 12.3” 2400x1600 LED display
- Mali T860MP4 GPU
- 32GB eMMC
- 5140 mAh battery
- 2x USB 3.0 Type-C ports
- Built-in stylus
ASUS Chromebook Flip C100P (veyron_minnie)¶
ASUS Chromebook Flip C100P (veyron_minnie)¶
The ASUS Chromebook Flip C100P is a convertible touchscreen laptop powered by an ARMv7 Rockchip RK3288 processor and 4GB RAM, measuring 262.8 x 182.4 x 15.6 mm (WxDxH) and weighing 0.89 kg.
Features:
- Rockchip RK3288 1.8GHz
- 2GB/4GB LPDDR3 RAM
- 10,1” - 25,65 cm 16:10 WXGA (1280x800) LED display
- Mali T764 GPU
- 16GB/32GB eMMC
- 2Cells 31 Whrs nattery
- 2x USB 2.0 ports
The Debian way to build the demo rootfs¶
To install debos you can do the following steps:
$ sudo apt install golang git libglib2.0-dev libostree-dev qemu-system-x86 qemu-user-static debootstrap systemd-container xz-utils bmap-tools
$ export GOPATH=`pwd`/gocode
$ go get -u github.com/go-debos/debos/cmd/debos
First, make sure you have KVM installed:
$ sudo apt install qemu-kvm ovmf
And then run:
$ $GOPATH/bin/debos -m 4G <debos-image.yaml>
Now that debos is installed, let’s create the demos images, run:
Export the architecture of your device:
$ export architecture=arm64
or
$ export architecture=armhf
And then run:
$ $GOPATH/bin/debos -m 4G -t architecture:$architecture tools/debos/images/weston-desktop/weston-desktop.yaml
Will create the following output:
- debian-weston-desktop-sid-$architecture.tar.gz, a tarball with the debian weston based filesystem.
Quick steps to create a SD-card¶
$ ./chromebook-setup.sh do_everything --architecture=<arm64|arm> --storage=/dev/mmcblkX
Connect the Wiimote¶
First you need to make sure to load the uinput module:
$ modprobe uinput
Thanks to cwiid you can scan for your Wiimote now:
(press the 1 and 2 buttons on your Wiimote)
$ bluetoothctl scan on
Scanning ...
<MAC address> Nintendo RVL-CNT-01
The Wiimote can act as a regular input device like a mouse using wminput, simply run:
$ wminput -w
Known issues¶
1. Ethernet is down by default¶
For some reason the ethernet interface (through a docking USB-C) is down, to enable it run:
$ ip link set enx0050b6213e94 up
Appendix¶
The Docker way to build the demo rootfs¶
NOT TESTED YET
This is really simple as an official container is provided for it:
$ docker pull godebos/debos
To build the image run:
$ docker run --rm --interactive --tty --device /dev/kvm --user $(id -u) --workdir /recipes --mount "type=bind,source=$(pwd),destination=/recipes" --security-opt label=disable godebos/debos <debos-image.yaml>