Jump to content

BQ Aquaris M5 (bq-piccolo)

From Nura Wiki
Note This device is supported as part of a generic port. Refer to Qualcomm MSM8916 (qcom-msm8916) for installation instructions and more information.
BQ Aquaris M5
BQ Aquaris M5 running Phosh
BQ Aquaris M5 running Phosh
Manufacturer BQ
Name Aquaris M5
Codename bq-piccolo
Released 2015
Type handset
Hardware
Chipset Qualcomm Snapdragon 615 (MSM8939)
CPU Octa-core (4x 1.5 GHz Cortex-A53
4x 1.0 GHz Cortex-A53)
GPU Adreno 405
Display 1080x1920 (IPS LCD capacitive touchscreen, 16M colors)
Storage 16/32 GB
Memory 2/3 GB GB
Architecture aarch64
Software
Original software
The software and version the device was shipped with.
Android 5.1.1
Extended version
The most recent supported version from the manufacturer.
Android 7.0
Nura
Category testing
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
yes
Nura kernel
The kernel version that runs on the device's port.
Mainline
Generic port Qualcomm MSM8916 (qcom-msm8916)
Device package device-qcom-msm8916
Kernel package linux-postmarketos-qcom-msm8916
Initial MR
Initial merge request.
pmaports!2523
Features
Flashing
Whether 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).
Works
Battery
Whether charging and battery level reporting work.
Works
Screen
Whether the display works; ideally with sleep mode and brightness control.
Works
Touchscreen
Works
Multimedia
3D Acceleration
Partial
Audio
Audio playback, microphone, headset and buttons.
Untested
Camera
Partial
Connectivity
Wi-Fi
Works
Bluetooth
Works
GPS
Works
Modem
Calls
Partial
SMS
Works
Mobile data
Works
Miscellaneous
FDE
Full disk encryption and unlocking with unl0kr.
Works
USB OTG
USB On-The-Go or USB-C Role switching.
Works
Sensors
Accelerometer
Handles automatic screen rotation in many interfaces.
Works
Magnetometer
Sensor to measure the Earth's magnetism
Works
Proximity
Works
Hall Effect
Measures magnetic fields; usually used as a flip cover sensor
Works

Contributors

Maintainer(s)

Users owning this device

  • AgentSteel (Notes: edge/phosh, originally Android 6.0.1, couldn't find stock rom update 7.x)
  • Manty
  • Minecrell
  • Sergiotarxz (Notes: Running Gentoo, flat battery, waiting for replacement to arrive, otherwise the phone is working fine)

What works

  • Buttons
  • Wi-Fi/Bluetooth
  • SD Card slot
  • Touch (atmel_mxt_ts)
  • Magnetometer (ak09911)
  • Proximity Sensor (ltr559)
  • Vibrator
  • Accelerometer/Gyroscope (bmi160)
  • Camera (rear) (sony,imx214)
  • Flash (front) (ocs,ocp8110)
  • Flash (rear) (silergy,sy7802)
  • Status LED (kinetic,ktd2026)

WIP

  • VCM (dongwoon,dw9761)

What doesn't work

  • Audio (wlf,wm8998)
  • Front camera (s5k5e2)
  • NFC (bcm2079x)

hwtest:

Category Model Path Status
framebuffer msm /sys/class/graphics/fb0 working
drm - /sys/class/drm/card0-DSI-1 working
magnetometer ak09911 /sys/bus/iio/devices/iio:device3 working
accelerometer bmi160 /sys/bus/iio/devices/iio:device2 working
gyroscope bmi160 /sys/bus/iio/devices/iio:device2 working
proximity ltr559 /sys/bus/iio/devices/iio:device1 working
input Atmel maXTouch Touchscreen /dev/input/event5 working
input GPIO Buttons /dev/input/event3 working
input GPIO Hall Effect Sensor /dev/input/event2 working
input pm8941_resin /dev/input/event1 working
input pm8941_pwrkey /dev/input/event0 working

How to enter flash mode

BQ bootloader

  • Recovery: Power on the device with both Power and Volume Up buttons.
  • Fastboot: Power on the device with both Power and Volume Down buttons.
  • EDL: Power off completely the device and press Volume Up and Volume Down at the same time while plugging a USB-C cable.

Installation

Unlock bootloader

To unlock your bootloader boot into Android, enable Developer Options from the settings and enable "Allow OEM unlock". Then boot into Fastboot and use fastboot oem unlock. You might need to use fastboot oem unlock-go. (Note: All your data will be erased!)

Firmware

It is recommended to flash the latest firmware from BQ before using Nura.

Nura

The mainline kernel depends on an alternative bootloader (lk2nd). It does not replace the stock bootloader, but provides its own Fastboot interface. When using the mainline kernel you should always use lk2nd for flashing, not the stock Fastboot mode.

  1. Install lk2nd. (Just needed the first time).
    • Warning: lk2nd is installed to the boot partition.

When you have lk2nd installed and running, follow Qualcomm Snapdragon 410/412 (MSM8916)#Installation.

Audio

See Qualcomm Snapdragon 410 (MSM8916)#Audio.

This device use WM8998 Arizona sound codec driver already in mainline but i failed to get it up ...

Modem

See Qualcomm Snapdragon 410 (MSM8916)#Modem.

Cellular networking requires the package msm-modem-uim-selection, this will automatically detect a SIM card in one of the slots and activate it.