Jump to content

Xiaomi-capricorn: Difference between revisions

From postmarketOS Wiki
Sepkov (talk | contribs)
Created page with "{{Infobox device | manufacturer = Xiaomi | name = Mi 5S | codename = capricorn | image = File:xiaomi-capricorn-cracked.jpg | imagecaption = Xiaomi Mi 5S Running PMOS | release..."
 
SoySoy (talk | contribs)
m redirect
Tag: New redirect
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Infobox device
#REDIRECT [[Xiaomi Mi 5s (xiaomi-capricorn)]]
| manufacturer = Xiaomi
| name = Mi 5S
| codename = capricorn
| image = File:xiaomi-capricorn-cracked.jpg
| imagecaption = Xiaomi Mi 5S Running PMOS
| releaseyear = 2016
| category = testing
| originalsoftware = Android
| originalversion = 6.0 Upgradable to 7.0
| pmoskernel = 6.3.1-r1
| chipset = Qualcomm Snapgragon 821 (MSM8996PRO)
| cpu = Quad-core (2x2.15 GHz Kryo & 2x1.6 GHz Kryo)
| gpu = Adreno 530
| display = 5.15 inch 1080p
| storage = 64GB and 128GB variants
| memory = 3GB and 4GB variants
| architecture = aarch64
| type = handset
| whet_dhry = 0.0 <!-- see Unixbench page on wiki -->
<!-- Features -->
<!-- the following status_* questions should be answered with Y for yes, P for partial, N for no, - for N/A or unavailable, or left blank for untested or unknown -->
| status_usbnet = P
| status_flashing = Y
| status_touch = Y
| status_screen = Y
| status_wifi = Y
| status_xwayland = Y
| status_fde =
| status_mainline = Y
| status_battery = Y
| status_3d =
| status_audio =
| status_bluetooth = Y
| status_camera =
| status_gps =
| status_mobiledata =
| status_sms =
| status_calls =
| status_otg =
| status_nfc =
<!-- Sensors -->
| status_accel =
| status_magnet =
| status_light =
| status_proximity =
| status_hall =
| status_barometer =
| status_powersensor =
<!-- Misc -->
| status_cameraflash =
| status_keyboard = -
| status_touchpad = -
| status_usba =
| status_hdmidp =
| status_irtx = <!-- Infrared (IR) transmit works -->
| status_irrx = <!-- Infrared (IR) receive works -->
| status_stylus = <!--  -->
| status_haptics = <!--  -->
| status_ethernet = <!--  -->
| status_fossbootloader = <!-- Device has a free and open source bootloader -->
 
 
| booting = yes <!-- The device is booting at all, can be yes/no *IMPORTANT* -->
| status = <!-- Text displayed in the "not booting" table on the Devices page , e.g "kernel compiles, doesn't boot" -->
}}
 
== Contributors ==
* Sepkov (put your username here!)
 
== Users owning this device ==
{{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}}-->
<!-- 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 -->
 
== How to enter flash mode ==
Hold Power + Volume Down while the phone is turned off. This will make the phone boot into fastboot mode
Hold Power + Volume Up while the phone is turned off. This will make the phone boot into reboot mode 
 
== Installation ==
You will need to [https://en.miui.com/unlock/download_en.html unlock the bootloader] in order to be able to flash anything onto the phone.
 
[https://forum.xda-developers.com/t/recovery-capricorn-twrp-touch-recovery-official.3610987/ Installing TWRP] before doing anything else is recommended, as it makes dealing with the phone easier later on, and allows for quick restoration by taking backups of <code>/system</code> and <code>/boot</code>, then flashing them back in order to restore the device to its original state. Note that this method has only been tested with LineageOS, and running its installation ZIP in TWRP after restoring the backup was necessary to get it to boot, otherwise it would just keep loading forever.
 
{{note|<b>NOTE:</b> Flashing to the system and boot partitions will wipe the Android core but will leave all apps and user files. If you want to be able to easily restore Android, it is recommended to backup both partitions using the method above.}}
{{warning|Flashing to the data partition will erase all user data! Make sure all important files are backed up before flashing.}}
 
<!-- Expand this with the commands needed for flashing, add --sdcard to install if it makes sense etc. -->
<source lang="shell-session">
$ pmbootstrap init
$ pmbootstrap install
</source>
 
<!-- add more sections below as necessary, e.g. WiFi, photos, ... -->
 
=== Manual Build ===
To build your own image, follow the [[pmbootstrap]] article.
 
Once you reach the flashing step:
* Flash the rootfs:
$ pmbootstrap flasher flash_rootfs
{{note|<b>NOTE:</b> If you need more space in the rootfs, you can also flash to the data partition by appending  <code>--partition data</code> to this command. More information about the partitions can be found in the prebuilt images section above.}}
* Flash the kernel and initramfs to the boot partition:
$ pmbootstrap flasher flash_kernel
You can also avoid flashing them and instead, boot the kernel directly:
$ pmbootstrap flasher boot
 
== Mainline ==
[https://gitlab.com/msm8996-mainline/linux MSM8996 common mainline kernel fork]
 
==== Known issues: ====
* The display comes up black after initialization, works correctly after a reboot.
 
== See also ==
<!--
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.
* {{Device package|DEVICE_CODENAME}}
* {{Kernel package|DEVICE_CODENAME}}
-->

Latest revision as of 05:44, 15 September 2023