Jump to content

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

From postmarketOS Wiki
m Add link to scatter file
Add partition table
Line 221: Line 221:
c0000000-ffdfffff : System RAM
c0000000-ffdfffff : System RAM
fff00000-1bfffefff : System RAM
fff00000-1bfffefff : System RAM
</source>
</div>
</div>
=== Partition table ===
<div class="toccolours mw-collapsible mw-collapsed">
<code>$ sudo parted<br>
(parted) list</code>
<div class="mw-collapsible-content">
<source lang="shell-session">
Model: SAMSUNG KM2H7001CM-B518 (scsi)
Disk /dev/block/sdc: 64.0GB
Sector size (logical/physical): 4096B/4096B
Partition Table: gpt
Disk Flags:
Number  Start  End    Size    File system  Name      Flags
1      32.8kB  67.1MB  67.1MB              recovery  msftdata
2      67.1MB  71.3MB  4194kB              misc      msftdata
3      71.3MB  71.9MB  524kB                para      msftdata
4      71.9MB  92.8MB  21.0MB              expdb      msftdata
5      92.8MB  93.9MB  1049kB              frp        msftdata
6      93.9MB  102MB  8389kB              vbmeta    msftdata
7      102MB  136MB  33.6MB  ext4        nvcfg      msftdata
8      136MB  203MB  67.1MB  ext4        nvdata    msftdata
9      203MB  236MB  33.6MB  ext4        metadata  msftdata
10      236MB  310MB  73.9MB  ext4        persist    msftdata
11      310MB  319MB  8389kB  ext4        protect1  msftdata
12      319MB  327MB  8389kB  ext4        protect2  msftdata
13      327MB  336MB  8389kB              seccfg    msftdata
14      336MB  386MB  50.3MB              otp        msftdata
15      386MB  388MB  2097kB              sec1      msftdata
16      388MB  391MB  3146kB              proinfo    msftdata
17      391MB  392MB  524kB                efuse      msftdata
18      392MB  459MB  67.1MB              nvram      msftdata
19      459MB  616MB  157MB                md1img    msftdata
20      616MB  643MB  27.3MB              boot_para  msftdata
21      643MB  644MB  1049kB              spmfw      msftdata
22      644MB  649MB  4194kB              audio_dsp  msftdata
23      649MB  655MB  6291kB              scp1      legacy_boot, msftdata
24      655MB  661MB  6291kB              scp2      msftdata
25      661MB  662MB  1049kB              sspm_1    legacy_boot, msftdata
26      662MB  663MB  1049kB              sspm_2    msftdata
27      663MB  679MB  15.7MB              cam_vpu1  msftdata
28      679MB  695MB  15.7MB              cam_vpu2  msftdata
29      695MB  710MB  15.7MB              cam_vpu3  msftdata
30      710MB  744MB  33.6MB              gz1        legacy_boot, msftdata
31      744MB  778MB  33.6MB              gz2        msftdata
32      778MB  780MB  2097kB              lk        legacy_boot, msftdata
33      780MB  782MB  2097kB              lk2        msftdata
34      782MB  849MB  67.1MB              boot      msftdata
35      849MB  916MB  67.1MB              logo      msftdata
36      916MB  949MB  33.6MB              dtbo      msftdata
37      949MB  955MB  5243kB              tee1      legacy_boot, msftdata
38      955MB  965MB  9961kB              tee2      msftdata
39      965MB  2575MB  1611MB  ext2        vendor    msftdata
40      2575MB  6333MB  3758MB  ext4        system    msftdata
41      6333MB  6786MB  453MB  ext4        cache      msftdata
42      6786MB  6803MB  16.8MB              gsort      msftdata
43      6803MB  6820MB  16.8MB              oem_misc1  msftdata
44      6820MB  6954MB  134MB                exaid      msftdata
45      6954MB  7827MB  872MB  ext4        cust      msftdata
46      7827MB  64.0GB  56.1GB  ext4        userdata  msftdata
47      64.0GB  64.0GB  16.8MB              flashinfo  msftdata
</source>
</source>
</div>
</div>

Revision as of 10:44, 25 May 2022

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
Hardware
Chipset Mediatek MT6785 (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
Software
Original software Android 9.0, MIUI 11
postmarketOS
Category testing
Pre-built images no
Mainline no
postmarketOS kernel 4.14.218
Unixbench Whet/Dhry score 5577.1
Features
Flashing
Works
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
No data
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Broken
Audio
Broken
Camera
Broken
Camera Flash
No data
Connectivity
WiFi
Partial
Bluetooth
Broken
GPS
Broken
NFC
No data
Modem
Calls
Broken
SMS
Broken
Mobile data
Broken
Miscellaneous
FDE
No data
USB OTG
Works
HDMI/DP
No data
Sensors
Accelerometer
Broken
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

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

Unbricking

If something went terribly wrong (eg. boot.img doesn't contain valid DTB) your device will hard-brick. Fortunately these days it's pretty easy to unbrick the device.

Requirements (GNU/Linux):

Steps:

  1. Run the exploit
  2. Connect the device via USB and hold Volume Up (+)
  3. When "Protection disabled" message appears, open SP Flash Tool
  4. Select partition images that you want to write and click Download
  5. After green checkmark image appears, restart your phone

Misc

Andoid memory map

$ sudo cat /proc/iomem

Partition table

$ sudo parted
(parted) list

Booting process

More info

1. BROM (Boot ROM)

Boots when power is applied to SoC. Initializes flash storage and starts preloader

2. PL (Preloader)

Initializes basic devices like usb, gpio, timers, etc. If Volume Up (+) is held, PL will hand controll back to BROM wth EDL (Emergency Download Mode).

3. LK (Little Kernel)

Displays logo and verifies some partitions (TODO: which partitions). If it fails to verify partition, it won't continue.
!IMPORTANT! LK WILL USE DTB (Device Tree Blob) FOUND IN BOOT.IMG which means that if DTB is invalid, the device will be hard-bricked

4. Linux

Additional info

See also