Jump to content

BQ Aquaris X5 (bq-paella): Difference between revisions

From postmarketOS Wiki
Minecrell (talk | contribs)
m Change arch to the one used for mainline
Minecrell (talk | contribs)
Clarify flashing a bit
Line 64: Line 64:


== How to enter flash mode ==
== How to enter flash mode ==
'''bq-paella:'''
=== BQ bootloader ===
* '''Recovery''': Power on the device with both <code>Power</code> and <code>Volume Up</code> buttons.
* '''Fastboot''': Power on the device with both <code>Power</code> and <code>Volume Down</code> buttons.
 
=== Cyanogen bootloader ===
* '''Recovery''': Power on the device with both <code>Power</code> and <code>Volume Down</code> buttons.
* '''Recovery''': Power on the device with both <code>Power</code> and <code>Volume Down</code> buttons.
* '''Stock fastboot''': Power on the device with both <code>Power</code> and <code>Volume Up</code> buttons.
* '''Stock fastboot''': Power on the device with both <code>Power</code> and <code>Volume Up</code> buttons.
Line 70: Line 74:


== Installation ==
== Installation ==
'''bq-picmt:'''
=== Firmware ===
It is recommended to flash to latest firmware from BQ before using postmarketOS. You can download it here: [https://storage.googleapis.com/otas/2015/Smartphones/X5/Android_N/5.2.0_20180228-1305-picmt-user-637-Fastboot-FW.zip 5.2.0_20180228-1305-picmt-user-637-Fastboot-FW.zip].
 
First flash the early boot firmware:
 
$ fastboot flash sbl1 sbl1.mbn
$ fastboot flash sbl1bak sbl1.mbn
$ fastboot flash tz tz.mbn
$ fastboot flash tzbak tz.mbn
$ fastboot flash hyp hyp.mbn
$ fastboot flash hypbak hyp.mbn
$ fastboot flash rpm rpm.mbn
$ fastboot flash rpmbak rpm.mbn
$ fastboot flash modem NON-HLOS.bin
 
As a next step you also need to flash a Linux/Android bootloader (<code>aboot</code>). This depends if you want to run downstream (<code>bq-picmt</code> in postmarketOS) or mainline (<code>bq-paella</code> in postmarketOS).
 
==== Downstream ====
You can use the bootloader from the BQ firmware you downloaded before:
 
$ fastboot flash aboot emmc_appsboot.mbn
$ fastboot flash splash splash.img
 
The bootloader has a splash screen with white background.
 
==== Mainline/Downstream ====
The BQ bootloader is unable to boot [https://github.com/msm8916-mainline/lk2nd lk2nd], therefore you need to flash the bootloader from the Cyanogen firmware. You can download it here: [https://storage.googleapis.com/support-files.bq.com/Bootloader/Cyanogen%20OS/cm-13.1.4-ZNH2KAS5FE-paella-signed-fastboot-a6851b4fbe.zip cm-13.1.4-ZNH2KAS5FE-paella-signed-fastboot-a6851b4fbe.zip]
 
$ fastboot flash aboot emmc_appsboot.mbn
$ fastboot flash splash splash.img


By now the way I flashed the device and having it working was following [[Installation from recovery mode]] guide and using the adb sideload method
The bootloader has a splash screen with black background.


'''bq-paella:'''
=== postmarketOS ===
==== Downstream ====
Choose <code>bq-picmt</code> and follow the [[Installation guide]].


# Install [https://github.com/msm8916-mainline/lk2nd lk2nd] following the [https://github.com/msm8916-mainline/lk2nd#building Building] section (just needed the first time)
==== Mainline ====
# boot to lk2nd and follow the [[Installation_guide]] (tested <code>pmbootstrap flasher ..</code> and <code>fastboot</code> methods)
# Install [https://github.com/msm8916-mainline/lk2nd lk2nd] following the [https://github.com/msm8916-mainline/lk2nd#building Building] section (just needed the first time).
# Choose <code>bq-paella</code> and follow the [[Installation guide]] (flash from lk2nd, not the Cyanogen fastboot).


== Status ==
== Status ==

Revision as of 10:09, 24 May 2020

BQ Aquaris X5
BQ Aquaris X5 Cyanogen Edition running Plasma Mobile on postmarketOS mainline
BQ Aquaris X5 Cyanogen Edition running Plasma Mobile on postmarketOS mainline
Manufacturer BQ
Name Aquaris X5
Codename bq-picmt, bq-paella
Released 2015
Hardware
Chipset Qualcomm MSM8916v2 Snapdragon 412
CPU Quad-core 1.4 GHz Cortex-A53
GPU Adreno 306
Display 720 x 1280 (IPS LCD capacitive touchscreen, 16M colors)
Storage 16GB / 32GB
Memory 2GB / 3GB
Architecture aarch64
Software
Original software Android 7.1.2, CM 13.1
postmarketOS
Category testing
Pre-built images no
Mainline yes
postmarketOS kernel Mainline (for bq-paella)
Features
Flashing
Works
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
No data
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
No data
Camera
No data
Camera Flash
No data
Connectivity
WiFi
Works
Bluetooth
No data
GPS
No data
NFC
No data
Modem
Calls
No data
SMS
No data
Mobile data
No data
Miscellaneous
FDE
Works
USB OTG
No data
HDMI/DP
No data
Sensors
Accelerometer
No data
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data


Contributors

Maintainer(s)

Users owning this device


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.

Cyanogen bootloader

  • Recovery: Power on the device with both Power and Volume Down buttons.
  • Stock fastboot: Power on the device with both Power and Volume Up buttons.
  • lk2nd Fastboot: Power on the device. After it vibrates, hold Volume Down.

Installation

Firmware

It is recommended to flash to latest firmware from BQ before using postmarketOS. You can download it here: 5.2.0_20180228-1305-picmt-user-637-Fastboot-FW.zip.

First flash the early boot firmware:

$ fastboot flash sbl1 sbl1.mbn
$ fastboot flash sbl1bak sbl1.mbn
$ fastboot flash tz tz.mbn
$ fastboot flash tzbak tz.mbn
$ fastboot flash hyp hyp.mbn
$ fastboot flash hypbak hyp.mbn
$ fastboot flash rpm rpm.mbn
$ fastboot flash rpmbak rpm.mbn
$ fastboot flash modem NON-HLOS.bin

As a next step you also need to flash a Linux/Android bootloader (aboot). This depends if you want to run downstream (bq-picmt in postmarketOS) or mainline (bq-paella in postmarketOS).

Downstream

You can use the bootloader from the BQ firmware you downloaded before:

$ fastboot flash aboot emmc_appsboot.mbn
$ fastboot flash splash splash.img

The bootloader has a splash screen with white background.

Mainline/Downstream

The BQ bootloader is unable to boot lk2nd, therefore you need to flash the bootloader from the Cyanogen firmware. You can download it here: cm-13.1.4-ZNH2KAS5FE-paella-signed-fastboot-a6851b4fbe.zip

$ fastboot flash aboot emmc_appsboot.mbn
$ fastboot flash splash splash.img

The bootloader has a splash screen with black background.

postmarketOS

Downstream

Choose bq-picmt and follow the Installation guide.

Mainline

  1. Install lk2nd following the Building section (just needed the first time).
  2. Choose bq-paella and follow the Installation guide (flash from lk2nd, not the Cyanogen fastboot).

Status

Currently work is separated based on firmware installed, if you installed the Cyanogen Edition firmware will be referred as bq-paella, if you installed the BQ Android firmware it will be referred as bq-picmt. So here is a summary for both:

bq-picmt: runs on downstream kernel

Works: USB Network, WiFi, Display, weston, weston-calibrator

Buggy: ts_calibrate: to make screen get touches I incrementally have to touch screen with one finger and then with that finger on screen touch the crosshair, then for the second two fingers and crosshair, for the third three fingers and crosshair...don't know why but it started happening when I replaced my broken screen with a new one, if someone has this device with original screen can check if the same issue is present or not

Modem doesn't work, in dmesg I get DATA5_CNTL error relative to no such device

bq-paella: runs on mainline kernel

Works: USB Network, WiFi, Bluetooth, Display, Touchscreen, Volume buttons

Pictures

See also