Jump to content

Purism Librem5 Devkit (purism-librem5dev)

From postmarketOS Wiki
(Redirected from Purism Librem5 Devkit)
Purism Librem 5 Devkit
Manufacturer Purism
Name Librem 5 Devkit
Codename purism-librem5dev
Released 2018
Type development board
Hardware
Chipset Emcraft NXP i.MX8M
CPU 4x 1.5 GHz Cortex-A53
GPU Vivante GC7000Lite
Display 1440x720
Storage 32 GB eMMC
Memory 3 GB
Architecture aarch64
Software
Original software
The software and version the device was shipped with.
PureOS
postmarketOS
Category testing
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
yes
Unixbench score
Unixbench Whetstone/Dhrystone score. See Unixbench.
869.5
Device package device-purism-librem5dev
Kernel package linux-purism-librem5dev
Features
Flashing
It is possible to flash the device with pmbootstrap flasher.
Works
USB Networking
After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system).
Untested
Battery
Charging and battery level reporting works
Untested
Screen
Display works. Ideally with sleep mode and brightness control.
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
Audio playback, microphone, headset and buttons.
Partial
Camera
Untested
Connectivity
WiFi
Works
Bluetooth
Partial
GPS
Works
Modem
Calls
Untested
SMS
Untested
Mobile data
Untested
Miscellaneous
FDE
Full disk encryption and unlocking with unl0kr.
Untested
USB OTG
USB On-The-Go or USB-C Role switching
Partial
Sensors
Accelerometer
Auto screen rotation works in desktops e.g. Phosh or Plasma Mobile
Untested

Contributors

How to enter flash mode

The devkit has a switch on the same side as the reboot button, wifi switch, camera switch, and modem switch. Move it to the "USB Mode" position and hit the reboot button next to it in order to put the device into 'flash' mode.

Installation

Flashing

pmbootstrap now has support for flashing the devkit with the flasher command. After running pmbootstrap install to generate a rootfs, the devkit can be flashed by putting it into 'USB mode' and executing pmbootstrap flasher flash_rootfs

Once the image has been flashed, place the device into emmc mode and hit the reboot button to start booting postmarketOS. The first boot can take a few minutes as it resizes the rootfs to fill all available space on the emmc disk.

Graphics

The Vivante GPU in the devkit is fully supported upstream in Mesa and support for it should be installed by the device-purism-librem5dev package.

Todo

  • Bring up cellular modem
  • Resolve issues with Bluetooth
    • Bluetooth can be started by loading the rsi_91x module with dev_oper_mode=14 but this disables Wifi station/client mode and enables Wifi AP mode. It doesn't seem to work with dev_oper_mode=13, which enables Wifi client mode.
  • Test/enable camera
  • Test/enable ambient light sensor

Ofono

As of 11/2019, ofono seems to "just work" when it is installed using "apk add ofono". Reasonable-looking signal information is reported, and calls seem to do something. I could not figure out how to route in-call audio, and it is possible that separate daemon is needed for that. https://source.puri.sm/Librem5/wys/blob/master/src/wys-audio.c

See also