Difference between revisions of "BQ Aquaris X5 (bq-paella)"

From postmarketOS
Jump to navigation Jump to search
(Link to shared installation instructions)
 
(12 intermediate revisions by 5 users not shown)
Line 15: Line 15:
 
| memory = 2GB / 3GB
 
| memory = 2GB / 3GB
 
| architecture = aarch64
 
| architecture = aarch64
<!-- the following status_* questions should be answered with Y - yes, P - partial, N - no, or left blank (for untested or unknown) -->
 
 
| status_usbnet = Y
 
| status_usbnet = Y
 
| status_flashing = Y
 
| status_flashing = Y
Line 24: Line 23:
 
| status_fde = Y
 
| status_fde = Y
 
| status_mainline = Y
 
| status_mainline = Y
| status_battery = <!-- Charging the battery with charging-sdl is possible -->
+
| status_battery = Y
 
| status_3d = Y
 
| status_3d = Y
 
| status_accel = Y
 
| status_accel = Y
 
| status_audio = Y
 
| status_audio = Y
 
| status_bluetooth = Y
 
| status_bluetooth = Y
| status_camera = <!-- Taking photos and videos works. -->
+
| status_camera =
| status_gps = <!-- The Global Positioning System sensor works.  -->
+
| status_gps = Y
 
| status_mobiledata = Y
 
| status_mobiledata = Y
 
| status_sms = Y
 
| status_sms = Y
 
| status_calls = Y
 
| status_calls = Y
| status = <!-- Text displayed in the "not booting" table on the Devices page , e.g "kernel compiles, doesn't boot" -->
+
| status_nfc = -
 +
| status =
 
| booting = yes
 
| booting = yes
 
| pmoskernel = Mainline
 
| pmoskernel = Mainline
 
<!-- you can also use these lines if you need to:
 
<!-- you can also use these lines if you need to:
if the device haven't originally ran Android OS, e.g. Nokia N900
 
| n-android =  ✔
 
Version of the kernel that pmos is running
 
 
| pmoskernel = 3.x.x
 
| pmoskernel = 3.x.x
see Unixbench page on wiki
 
 
| whet_dhry = 0.0
 
| whet_dhry = 0.0
Is OTG available, not used in wiki
 
| status_otg = -
 
 
-->
 
-->
 +
| status_otg = Y
 
}}
 
}}
  
Line 71: Line 66:
  
 
== Installation ==
 
== Installation ==
 +
 +
[[User:pojntfx|pojntfx]] made a video tutorial which follows the steps below:
 +
 +
[[File:Bq-paella-installation-tutorial.jpg|256px|link=https://www.youtube.com/watch?v=4NpS1uqTjlQ]]
 +
 
=== Unlock bootloader ===
 
=== Unlock bootloader ===
 
To unlock your bootloader boot into Android, [https://developer.android.com/studio/debug/dev-options#enable enable Developer Options from the settings] and enable "Allow OEM unlock". Then boot into Fastboot and use <code>fastboot oem unlock</code>. You might need to use <code>fastboot oem unlock-go</code>. ('''Note:''' All your data will be erased!)
 
To unlock your bootloader boot into Android, [https://developer.android.com/studio/debug/dev-options#enable enable Developer Options from the settings] and enable "Allow OEM unlock". Then boot into Fastboot and use <code>fastboot oem unlock</code>. You might need to use <code>fastboot oem unlock-go</code>. ('''Note:''' All your data will be erased!)
  
 
=== Firmware ===
 
=== 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].
+
It is recommended to flash to latest firmware from BQ before using postmarketOS. You can download it here: [https://github.com/JonnyMe/aquaris-x5-firmware/releases/download/v1.0/5.2.0_20180228-1305-picmt-user-637-Fastboot-FW.zip 5.2.0_20180228-1305-picmt-user-637-Fastboot-FW.zip] <del>[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]</del>.
  
 
First flash the early boot firmware:
 
First flash the early boot firmware:
Line 121: Line 121:
 
== Modem ==
 
== Modem ==
 
See [[Qualcomm_Snapdragon_410_(MSM8916)#Modem]].
 
See [[Qualcomm_Snapdragon_410_(MSM8916)#Modem]].
 +
 +
There might be sim detection problem, see how to fix {{issue|1107|pmaports}}
 +
 +
You should also know how dual sim devices behave: [[User:TravMurav/Dual-Sim_QMI_draft]]
 +
 +
== Wireguard ==
 +
See {{issue|1109|pmaports}}
  
 
== Pictures ==
 
== Pictures ==
Line 134: Line 141:
 
File:EsBNMMqVEAA3LBg.jpeg|thumb|left|Bluetooth on bq-paella
 
File:EsBNMMqVEAA3LBg.jpeg|thumb|left|Bluetooth on bq-paella
 
File:EsBNMMRVcAAn9i3.jpeg|thumb|left|Firefox with WebGL on bq-paella
 
File:EsBNMMRVcAAn9i3.jpeg|thumb|left|Firefox with WebGL on bq-paella
 +
File:Bq-paella-gtk-spotify-spot.jpg|thumb|left|Spot, a GTK Spotify client, running on bq-paella
 +
File:Bq-paella-fractal.jpg|thumb|left|Fractal, a GTK Matrix client, running on bq-paella
 +
File:Sxmo-bq-paella.jpg|thumb|left|Sxmo running on bq-paella
 +
File:Bq-paella-appgrid.jpg|thumb|left|Custom app grid on bq-paella
 +
File:Lollypop.jpg|thumb|left|Lollypop playing music on bq-paella
 +
File:Bq-paella-lockscreen-lollypop.jpg|thumb|left|Custom lockscreen with Lollypop player on bq-paella
 +
File:Bq-paella-retroarch.jpg|thumb|left|RetroArch on bq-paella
 
</gallery>
 
</gallery>
  
Line 139: Line 153:
 
* {{MR|1134|pmaports}} Initial merge request
 
* {{MR|1134|pmaports}} Initial merge request
 
* {{MR|1319|pmaports}} Moving to community
 
* {{MR|1319|pmaports}} Moving to community
 +
* [https://twitter.com/pojntfx/status/1355851049798688769] Chromium running with full hardware acceleration

Latest revision as of 14:01, 7 June 2021

BQ Aquaris X5
BQ Aquaris X5 running Plasma Mobile on postmarketOS mainline
BQ Aquaris X5 running Plasma Mobile on postmarketOS mainline
Manufacturer BQ
Name Aquaris X5
Codename bq-paella
Released 2015
Category community
Original software Android 7.1.2, CyanogenOS 12.1
postmarketOS kernel Mainline
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
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Works
Xwayland
Works
FDE
Works
Mainline
Works
Battery
Works
3D Acceleration
Works
Accelerometer
Works
Audio
Works
Bluetooth
Works
Camera
GPS
Works
Mobile data
Works
SMS
Works
Calls
Works
USB OTG
Works
NFC
Unavailable



Contributors

Maintainer(s)

Users owning this device


How to enter flash mode

The device is available in two variants: The normal edition from BQ and a special Cyanogen Edition that runs CyanogenOS. The hardware seems to be identical, but the firmware is different. How to enter Fastboot/Recovery mode depends on the firmware that is currently installed.

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

pojntfx made a video tutorial which follows the steps below:

Bq-paella-installation-tutorial.jpg

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 to latest firmware from BQ before using postmarketOS. You can download it here: 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 (aboot). There are two different versions available:

  • BQ bootloader: Can only boot downstream kernel
  • Cyanogen bootloader: Can boot both downstream and mainline kernel

Therefore, you should flash the Cyanogen bootloader for postmarketOS. You can download it here: 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

The bootloader has a splash screen with black background.

Note: After flashing a new bootloader you should reboot the device to make sure the new bootloader is running.

postmarketOS

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, not the aboot partition you flashed earlier!

When you have lk2nd installed and running, follow Qualcomm_Snapdragon_410/412_(MSM8916)#Installation.

Downstream

There is an alternative device port using the downstream kernel, bq-paella-downstream. It can be selected by entering the name in pmbootstrap init.

WARNING: The downstream kernel is entirely unmaintained and only intended for testing features for the mainline kernel. DO NOT USE IT UNLESS YOU KNOW WHAT YOU ARE DOING!

Audio

See Qualcomm_Snapdragon_410_(MSM8916)#Audio.

Modem

See Qualcomm_Snapdragon_410_(MSM8916)#Modem.

There might be sim detection problem, see how to fix pmaports#1107

You should also know how dual sim devices behave: User:TravMurav/Dual-Sim_QMI_draft

Wireguard

See pmaports#1109

Pictures

See also