/pineroot

Buildroot environment for Pinephone with QT.

Primary LanguageMakefile

pineroot

Buildroot environment for PinePhone.

Single 'make' command produces your own image, which you can copy to MicroSD card and boot on PinePhone. Our default image boots to wayland and starts literm for you. We even included pine-ui qt-quick skeleton application as embedded QT5 demo for kick starting your own developments. You can also utilize buildroot toolchain with QT Creator for rapid 'in device' development.

Our approach is simple, manageable and embedded friendly, thanks to buildroot.

buildroot process

Build your image

git clone https://github.com/e59e4835/pineroot.git
cd pineroot/buildroot-2021.02.2/
make pinephone_defconfig
make

Graphic test

glmark2-es2-drm

Wifi configuration

iwd based wifi

iwctl --passphrase [psk] station wlan0 connect [ssid]

Modem start/stop

request powerup

echo 1 > /sys/class/modem-power/modem-power/device/powered

request powerdown

echo 0 > /sys/class/modem-power/modem-power/device/powered

read power status (changes only after power state transition is complete)

cat /sys/class/modem-power/modem-power/device/powered

Mobile data activation

# Power modem up (and wait ~20 seconds)
echo 1 > /sys/class/modem-power/modem-power/device/powered
# Check link layer protocol format
qmicli --device=/dev/cdc-wdm0 --device-open-proxy --wda-get-data-format
# Interface down
ip link set dev wwan0 down
# If interface suports raw_ip, change it
cat /sys/class/net/wwan0/qmi/raw_ip
echo Y > /sys/class/net/wwan0/qmi/raw_ip
# Interface up
ip link set dev wwan0 up
# Activate connection with 'internet' APN
qmicli --device=/dev/cdc-wdm0 --device-open-proxy --wds-start-network="ip-type=4,apn=internet" --client-no-release-cid
# Get IP with dhcp
udhcpc -q -f -n -i wwan0

Weston

/usr/bin/weston -i0 --tty=3 &
weston-flower

literm

literm -platform wayland-egl -fullscreen -mobile

qml-launcher

qml-launcher -platform wayland-egl