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.
git clone https://github.com/e59e4835/pineroot.git
cd pineroot/buildroot-2021.02.2/
make pinephone_defconfig
make
glmark2-es2-drm
iwd based wifi
iwctl --passphrase [psk] station wlan0 connect [ssid]
echo 1 > /sys/class/modem-power/modem-power/device/powered
echo 0 > /sys/class/modem-power/modem-power/device/powered
cat /sys/class/modem-power/modem-power/device/powered
# 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
/usr/bin/weston -i0 --tty=3 &
weston-flower
literm -platform wayland-egl -fullscreen -mobile
qml-launcher -platform wayland-egl