Difference between revisions of "Xiaomi Redmi Note 8 Pro (xiaomi-begonia)"

From postmarketOS
Jump to navigation Jump to search
(→‎Installation: Sxmo and mate are working)
Tags: Mobile edit Mobile web edit
m (Corrected OTG support)
 
(19 intermediate revisions by 3 users not shown)
Line 13: Line 13:
 
| display = 1080 x 2340
 
| display = 1080 x 2340
 
| memory = 6/8 GB
 
| memory = 6/8 GB
| architecture = aach64
+
| 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 = Y
Line 19: Line 19:
 
| status_touch = Y
 
| status_touch = Y
 
| status_screen = Y
 
| status_screen = Y
| status_wifi = <!-- Wireless network works? -->
+
| status_wifi = P
 
| status_xwayland = Y
 
| status_xwayland = Y
| status_fde = <!-- When installing with full disk encryption, can you type in the password with the on screen keyboard? -->
+
| status_fde =  
| status_mainline = <!-- Instead of a Linux kernel fork, it is possible to run mainline. -->
+
| status_mainline = N
| status_battery = <!-- Charging the battery with charging-sdl is possible -->
+
| status_battery =  
| status_3d = <!-- Hardware accelerated 3D graphics (e.g. with freedreno) -->
+
| status_3d = N
| status_accel = <!-- The sensor that measures proper acceleration works -->
+
| status_accel = N
| status_audio = <!-- Using the device's speakers/headphone jack works -->
+
| status_audio = N
| status_bluetooth = <!-- It's possible to pair and use other devices via the bluetooth protocol -->
+
| status_bluetooth = N
| status_camera = <!-- Taking photos and videos works. -->
+
| status_camera = N
| status_gps = <!-- The Global Positioning System sensor works.  -->
+
| status_gps = N
| status_mobiledata = <!-- Connecting to the Internet via cellular network. -->
+
| status_mobiledata = N
| status_sms = <!-- Sending and receiving short messages works as intended. -->
+
| status_sms = N
| status_calls = <!-- Talking to other people over the cellular network. -->
+
| status_calls = N
| status = Weston is working
+
| status_otg = Y
 +
| status = Boots
 
| booting = Y
 
| booting = Y
 
+
| pmoskernel = 4.14.218
<!-- you can also use these lines if you need to:
+
| whet_dhry = 5577.1
if the device haven't originally ran Android OS, e.g. Nokia N900
 
| n-android =  ✔
 
Version of the kernel that pmos is running
 
| pmoskernel = 4.14.213
 
see Unixbench page on wiki
 
| whet_dhry = 0.0
 
Is OTG available, not used in wiki
 
| status_otg = -
 
-->
 
 
}}
 
}}
  
 
== Contributors ==
 
== Contributors ==
 
* [[User:Michaelskyf|Michaelskyf]]
 
* [[User:Michaelskyf|Michaelskyf]]
 +
* [[User:KittyLe|kittyle]]
  
 
== Maintainer(s) ==
 
== Maintainer(s) ==
Line 56: Line 49:
 
== Users owning this device ==
 
== Users owning this device ==
 
{{Device owners}}
 
{{Device owners}}
<!-- autogenerated, use {{Owns device|devicepage|notes}} on your profile page -->
+
 
<!-- use _ instead of spaces in device page name, e.g. {{Owns device|HTC_Desire_(htc-bravo)|custom notes}}-->
+
== LED/Torch/Screen brightness/Vibrator ==
<!-- 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 -->
+
(all files below are in <code>/sys/class/leds</code>)
 +
* Notification LED: <code>white/</code>
 +
* Torch: <code>torch-light0/</code> and <code>torch-light1/</code>
 +
* Screen brightness: <code>lcd-backlight/</code>
 +
* Vibrator: <code>vibrator/</code>
  
 
== How to enter flash mode ==
 
== How to enter flash mode ==
Line 71: Line 68:
  
 
=== Entering recovery ===
 
=== Entering recovery ===
 
+
{{button|Volume Up}} + {{button|Power}}
Hold {{button|Volume Up}} + {{button|Power}}
 
 
=== Entering fastboot ===
 
=== Entering fastboot ===
 +
{{button|Volume Down}} + {{button|Power}}
  
Hold {{button|Volume Down}} + {{button|Power}}
 
 
=== Note ===
 
*if you're on factory firmware just hold {{button|Volume Up}} + {{button|Power}}
 
 
== Installation ==
 
== Installation ==
* Notes:
+
=== !!! Install CFW 2.0 ===
** Weston, sxmo and mate are working
+
Redmi Note 8 Pro doesn't quite like custom ROMs normally, so you have to flash a few blank files to get different custom ROMs to work.
** USB keyboard and mouse are WIP
+
* Download [https://drive.google.com/file/d/1ot4PWR-cPSPPau5gGkVrS49Ofto1yiSf/view CFW2.0] and unzip it.
 
+
* Go to a folder with your device's codename in it.
 +
* Run <code>!_FLASH_IT_L.sh</code> on Linux/macOS or <code>!_FLASH_IT_W.bat</code> on Windows.
 +
* After this, follow the next steps.
 
=== Via fastboot ===
 
=== Via fastboot ===
 
* <code>pmbootstrap init</code>
 
* <code>pmbootstrap init</code>
Line 94: Line 89:
 
* <code>pmbootstrap install --android-recovery-zip</code>
 
* <code>pmbootstrap install --android-recovery-zip</code>
 
* <code>pmbootstrap export</code>
 
* <code>pmbootstrap export</code>
** Note: Zip is located in /tmp/postmarketOS-export
+
* Transfer the zip to the device
* Transfer the zip to the device (eg. <code>adb push (zip) /sdcard</code>)
+
** <code>adb push /tmp/postmarketOS-export/pmos-xiaomi-begonia.zip /sdcard</code>
* Flash the zip in TWRP
+
* Flash the zip
 
* Reboot
 
* Reboot
  
 
== Additional info ==
 
== Additional info ==
 
+
* For now WIFI works only with proprietary tools found in /vendor partition.
* [https://wiki.postmarketos.org/wiki/Xiaomi_Redmi_Note_7_(xiaomi-lavender)#Bootloader_cmdline Xiaomi_Redmi_Note_7_(xiaomi-lavender)#Bootloader_cmdline]
+
** These tools can be run using android runtime's linker64 and its libraries
** without a [https://gitlab.com/opendata26/linux/commit/40095e9a8b1eb32ad7ccd705c8990792e692ba1d patch] I would get: "failed to recognize fat type" and "Cannot open root device "PARTUUID=..." or unknown-block(259,24): error -5"
+
* [https://wiki.postmarketos.org/wiki/Xiaomi_Redmi_Note_7_(xiaomi-lavender) Xiaomi_Redmi_Note_7_(xiaomi-lavender)]
 +
* [https://wiki.postmarketos.org/wiki/Xiaomi_Redmi_Note_8T_(xiaomi-willow) Xiaomi_Redmi_Note_8T_(xiaomi-willow)]
  
 
== See also ==
 
== See also ==

Latest revision as of 16:45, 24 August 2021

Xiaomi Redmi Note 8 Pro
Redmi Note 8 Pro running Weston
Redmi Note 8 Pro running Weston
Manufacturer Xiaomi
Name Redmi Note 8 Pro
Codename xiaomi-begonia
Released 2019
Category testing
Original software Android 9.0, MIUI 11
postmarketOS kernel 4.14.218
Hardware
Chipset Mediatek Helio G90T
CPU Octa-core (2x2.05 GHz Cortex-A76 & 6x2.0 GHz Cortex-A55)
GPU Mali-G76 MC4
Display 1080 x 2340
Storage 64/128/256 GB
Memory 6/8 GB
Architecture aarch64
Unixbench Whet/Dhry score 5577.1
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Partial
Xwayland
Works
FDE
Mainline
Broken
Battery
3D Acceleration
Broken
Accelerometer
Broken
Audio
Broken
Bluetooth
Broken
Camera
Broken
GPS
Broken
Mobile data
Broken
SMS
Broken
Calls
Broken
USB OTG
Works
NFC



Contributors

Maintainer(s)

Users owning this device


LED/Torch/Screen brightness/Vibrator

(all files below are in /sys/class/leds)

  • Notification LED: white/
  • Torch: torch-light0/ and torch-light1/
  • Screen brightness: lcd-backlight/
  • Vibrator: vibrator/

How to enter flash mode

Unlocking the bootloader

Sign up for a Mi Account, register your device in the settings, and wait for a week. More info

Before you go any further

Please read Redmi Note 8 Pro XDA Megathread

Entering recovery

Volume Up + Power

Entering fastboot

Volume Down + Power

Installation

!!! Install CFW 2.0

Redmi Note 8 Pro doesn't quite like custom ROMs normally, so you have to flash a few blank files to get different custom ROMs to work.

  • Download CFW2.0 and unzip it.
  • Go to a folder with your device's codename in it.
  • Run !_FLASH_IT_L.sh on Linux/macOS or !_FLASH_IT_W.bat on Windows.
  • After this, follow the next steps.

Via fastboot

  • pmbootstrap init
  • pmbootstrap install
  • pmbootstrap flasher flash_rootfs
  • pmbootstrap flasher flash_kernel
  • fastboot reboot

Via zip

  • pmbootstrap init
  • pmbootstrap install --android-recovery-zip
  • pmbootstrap export
  • Transfer the zip to the device
    • adb push /tmp/postmarketOS-export/pmos-xiaomi-begonia.zip /sdcard
  • Flash the zip
  • Reboot

Additional info

See also