Xiaomi Redmi 2 (xiaomi-wt88047)

Contributors

 * sylvieon
 * User:Minecrell (mainline port)

Users owning this device
luoyan (Notes:wt88047 1+8)

How to enter flash mode

 * Fastboot: Power on the device with both and  buttons.
 * lk2nd Fastboot: Power on the device. After it vibrates, hold.
 * lk2nd Recovery: Power on the device. After it vibrates, hold.

Installation

 * 1) Make sure you have latest firmware flashed. Follow the LineageOS installation guide until (including) Updating firmware.
 * 2) Install lk2nd. Although Xiaomi already provides a Fastboot interface, lk2nd contains various quirks for booting mainline.
 * 3) Follow Qualcomm_Snapdragon_410/412_(MSM8916). (Flash from lk2nd Fastboot, not the stock Fastboot.)

How to check which panel,camera your have in your redmi 2 that running miui 9?
1. Go to

2. Go to

3. Spam by tapping it a lot of time

4. Click

Partition layout
Disk /dev/mmcblk0: 7.28 GiB, 7818182656 bytes, 15269888 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt

Device           Start      End  Sectors  Name /dev/mmcblk0p1  131072   262143   131072  modem /dev/mmcblk0p2  262144   263167     1024  sbl1 /dev/mmcblk0p3  263168   264191     1024  sbl1bak /dev/mmcblk0p4  264192   266239     2048  aboot /dev/mmcblk0p5  266240   268287     2048  abootbak /dev/mmcblk0p6  268288   269311     1024  rpm /dev/mmcblk0p7  269312   270335     1024  rpmbak /dev/mmcblk0p8  270336   271359     1024  tz      /dev/mmcblk0p9   271360   272383     1024  tzbak /dev/mmcblk0p10 272384   273407     1024  hyp /dev/mmcblk0p11 273408   274431     1024  hypbak /dev/mmcblk0p12 274432   276479     2048  pad /dev/mmcblk0p13 276480   279551     3072  modemst1 /dev/mmcblk0p14 279552   282623     3072  modemst2 /dev/mmcblk0p15 282624   284671     2048  misc /dev/mmcblk0p16 284672   284673        2  fsc /dev/mmcblk0p17 284674   284689       16  ssd /dev/mmcblk0p18 284690   305169    20480  splash /dev/mmcblk0p19 393216   393279       64  DDR /dev/mmcblk0p20 393280   396351     3072  fsg /dev/mmcblk0p21 396352   396383       32  sec /dev/mmcblk0p22 396384   461919    65536  boot /dev/mmcblk0p23 461920  2559071  2097152  system /dev/mmcblk0p24 2559072 3214431   655360  cache /dev/mmcblk0p25 3214432 3279967    65536  persist /dev/mmcblk0p26 3279968 3345503    65536  recovery /dev/mmcblk0p27 3407872 3408895     1024  keystore /dev/mmcblk0p28 3408896 3408959       64  config /dev/mmcblk0p29 3408960 3540031   131072  oem /dev/mmcblk0p30 3670016 15269854 11599839 userdata

Ambient Light
Tested only on 2014817.

Color :

UART
Voltage:1.7v,baud rate : 115200

Camera
Last checked in kernel 5.13

Display
see Qualcomm Snapdragon 410/412 (MSM8916)