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

From postmarketOS
Jump to navigation Jump to search
(Suggest reboot after flashing bootloader)
Line 5: Line 5:
 
| image = File:P_20200429_093001.jpg|thumb|133px
 
| image = File:P_20200429_093001.jpg|thumb|133px
 
| imagecaption = BQ Aquaris X5 Cyanogen Edition running Plasma Mobile on postmarketOS mainline
 
| imagecaption = BQ Aquaris X5 Cyanogen Edition running Plasma Mobile on postmarketOS mainline
| releaseyear = 2015
+
| releaseyear = 2016
| category = community
+
| category = testing
| originalsoftware = Android 7.1.2, CM 13.1
+
| originalsoftware = Ubuntu Touch 15.04
| chipset = Qualcomm MSM8916v2 Snapdragon 412
+
| chipset = Mediatek MT8163B
| cpu = Quad-core 1.4 GHz Cortex-A53
+
| cpu = Quad-core 1.3 GHz Cortex-A53
| gpu = Adreno 306
+
| gpu = Mali T720
| storage = 16GB / 32GB
+
| storage = 16GB
| display = 720 x 1280 (IPS LCD capacitive touchscreen, 16M colors)
+
| display = 1280x800
| memory = 2GB / 3GB
+
| memory = 2GB
 
| 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) -->
 
<!-- 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 =  
| status_flashing = Y
+
| status_flashing =  
| status_touch = Y
+
| status_touch =  
| status_screen = Y
+
| status_screen =
| status_wifi = Y
+
| status_wifi =  
| status_xwayland = Y
+
| status_xwayland =  
| status_fde = Y
+
| status_fde =  
| status_mainline = Y
+
| status_mainline =  
 
| status_battery = <!-- Charging the battery with charging-sdl is possible -->
 
| status_battery = <!-- Charging the battery with charging-sdl is possible -->
| status_3d = Y
+
| status_3d =  
| status_accel = Y
+
| status_accel =
| status_audio = Y
+
| status_audio =  
| status_bluetooth = Y
+
| status_bluetooth =  
 
| status_camera = <!-- Taking photos and videos works. -->
 
| status_camera = <!-- Taking photos and videos works. -->
 
| status_gps = <!-- The Global Positioning System sensor works.  -->
 
| status_gps = <!-- The Global Positioning System sensor works.  -->
| status_mobiledata = Y
+
| status_mobiledata =  
| status_sms = Y
+
| status_sms =  
| status_calls = Y
+
| status_calls =  
 
| status = <!-- Text displayed in the "not booting" table on the Devices page , e.g "kernel compiles, doesn't boot" -->
 
| status = <!-- Text displayed in the "not booting" table on the Devices page , e.g "kernel compiles, doesn't boot" -->
| booting = yes
+
| booting = no
| pmoskernel = Mainline (for bq-paella)
+
| pmoskernel =  
 
<!-- 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
 
if the device haven't originally ran Android OS, e.g. Nokia N900
Line 43: Line 43:
 
| pmoskernel = 3.x.x
 
| pmoskernel = 3.x.x
 
see Unixbench page on wiki
 
see Unixbench page on wiki
| whet_dhry = 0.0
+
| whet_dhry =  
 
Is OTG available, not used in wiki
 
Is OTG available, not used in wiki
| status_otg = -
+
| status_otg =  
 
-->
 
-->
 
}}
 
}}
  
 
== Contributors ==
 
== Contributors ==
* [[User:Lazzardo]]
+
 
  
 
== Maintainer(s) ==
 
== Maintainer(s) ==
<!-- Only if this device doesn't run on linux-postmarketos yet! -->
+
 
<!-- This person needs to be willing to answer questions from users of this device -->
 
* [[User:Lazzardo]]
 
  
 
== Users owning this device ==
 
== Users owning this device ==
Line 63: Line 61:
 
<!-- you may need to purge page cache to see changes (more->purge cache)-->
 
<!-- you may need to purge page cache to see changes (more->purge cache)-->
 
<!-- you can use {{My devices}} on your profile page to show table with all your devices -->
 
<!-- you can use {{My devices}} on your profile page to show table with all your devices -->
 
== 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 <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.
 
* '''Stock fastboot''': Power on the device with both <code>Power</code> and <code>Volume Up</code> buttons.
 
* '''lk2nd Fastboot''': Power on the device. After it vibrates, hold <code>Volume Down</code>.
 
 
== Installation ==
 
=== 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!)
 
 
=== 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/black background (likely depending on the color of your device).
 
 
==== 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
 
 
The bootloader has a splash screen with black background.
 
 
{{note|'''Note:''' After flashing a new bootloader you should reboot the device to make sure the new bootloader is running.}}
 
 
=== postmarketOS ===
 
==== Downstream ====
 
Choose <code>bq-picmt</code> and follow the [[Installation guide]].
 
 
==== Mainline ====
 
The mainline kernel depends on an alternative bootloader ([https://github.com/msm8916-mainline/lk2nd 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.
 
 
# Install [https://github.com/msm8916-mainline/lk2nd#installation lk2nd]. (Just needed the first time).
 
#* '''Warning:''' lk2nd is installed to the <code>boot</code> partition, '''not''' the <code>aboot</code> partition you flashed earlier!
 
# Choose <code>bq-paella</code> and follow the [[Installation guide]] (flash from lk2nd, not the Cyanogen fastboot).
 
 
== Audio ==
 
See [[Qualcomm_Snapdragon_410_(MSM8916)#Audio]].
 
 
== Modem ==
 
See [[Qualcomm_Snapdragon_410_(MSM8916)#Modem]].
 
 
== 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,
 
Modem (somewhat)
 
 
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
 
 
'''bq-paella:''' runs on mainline kernel
 
 
Works:
 
USB Network,
 
WiFi,
 
Bluetooth,
 
Display,
 
Touchscreen,
 
Volume buttons,
 
Accelerometer,
 
Gyroscope,
 
Magnetometer,
 
Touchkeys backlight,
 
Audio (Headphones, Earpiece, Speaker, MIC),
 
Voice calls,
 
SMS,
 
Mobile Internet
 
 
== Pictures ==
 
 
<gallery>
 
File:P 20200521 144800.jpg|thumb|left|xeyes running on Weston on bq-paella
 
File:P 20200521 144422.jpg|thumb|left|FDE, osk-sdl running on bq-paella
 
</gallery>
 
 
== See also ==
 
* {{MR|1134|pmaports}} Initial merge request
 
* {{MR|1319|pmaports}} Moving to community
 
<!--
 
Link to related GitLab issues or merge requests like the following (replace CHANGEME with the ID, e.g. 1234):
 
* {{MR|CHANGEME|pmaports}} Initial merge request
 
* {{issue|CHANGEME|pmaports}} Some related issue
 
You can also add normal web links:
 
* [https://redmine.replicant.us/projects/replicant/wiki/GalaxyS2I9100 Replicant wiki page]
 
-->
 
<!--
 
If you manage to get your device packages merged, uncomment links below and change DEVICE_CODENAME with the actual one.
 
* [https://gitlab.com/postmarketOS/pmaports/tree/master/device/testing/device-DEVICE_CODENAME Device package]
 
* [https://gitlab.com/postmarketOS/pmaports/tree/master/device/testing/linux-DEVICE_CODENAME Kernel package]
 
-->
 

Revision as of 13:53, 14 November 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 2016
Category testing
Original software Ubuntu Touch 15.04
Hardware
Chipset Mediatek MT8163B
CPU Quad-core 1.3 GHz Cortex-A53
GPU Mali T720
Display 1280x800
Storage 16GB
Memory 2GB
Architecture aarch64
Features
USB Networking
Flashing
Touchscreen
Display
WiFi
Xwayland
FDE
Mainline
Battery
3D Acceleration
Accelerometer
Audio
Bluetooth
Camera
GPS
Mobile data
SMS
Calls
USB OTG


Contributors

Maintainer(s)

Users owning this device