nyuuzyou/wikis huggingface dataset:
Sony Xperia M5 (sony-hollyss)

== Contributors ==
* empyreal96
== Maintainer(s) ==
* empyreal96
== Users owning this device ==
== How to enter flash mode ==
You will need to be in TWRP. From powered off, hold Vol Down + Power.
== Notes ==
- I doubt it will be able to be mainlined by myself as I (empyreal96) am not developer level but I am learning!
- YOU WILL NEED TO ADD 'msm-fb-refresher' when using 'pmbootstrap init' (I forgot to add to depends, will update with next MR)
== Installation ==
I only had success with the Flashable Zip method using 'pmbootstrap flasher --method=adb sideload' or 'adb sideload PATH_TO_ZIP'
You may recieve errors that it is unable to format partitions, make sure they are NOT mounted in TWRP before sideloading.
If you need to flash back to android, go to (Wipe - Advanced Wipe - Tick System - Repair or Change.. - Change Filesystem - ext4) because TWRP will fail to see the partition
== See also ==
* Initial merge request
* 
*
Sony Xperia M (sony-nicki)

== Contributors ==
* Konrad Dybcio (@konradybcio)
== Device owners ==
== How to enter flash mode ==
With device powered off, hold [VOLUME +] and plug USB cable in. Device's LED will turn blue, meaning it has entered fastboot mode.
== Installation ==
Works with both pmbootstrap flasher and TWRP zip. No errors were found in that process.
If using a large rootfs (like with plasma-mobile) fastboot with throw a "no space left on device" error. Flashing as a .zip with TWRP solves the problem.
== Parts table ==
It's worth noting that this phone was made by FIH Mobile, a subsidiary of Foxconn. The downstream kernel refers to a "Project S3A", which may be another codename for the device.
Element type 	Element 	Works?	Notes
Chipset 	MSM8227 	 	Similar to MSM8960. Some patches exist in Konrad's tree, based on earlier work by flto. Would need to be merged into MSM8960 repos.
Graphics 	Adreno 305 	 	
Display 	"Orise" FWVGA ??? 	 	Can't tell the panel model from the driver. Might be one of the "Orise Technology" panels in mainline?
Touchscreen 	Cypress CYTTSP, Synaptics RMI4 	 	CYTTSP panel might be supported - CYTTSP4 and 5 are, but not sure which part this one is. RMI4 is supported in mainline.
Accelerometer 	Bosch BMA250 	 	Supported in mainline.
Proximity and ambient light sensor	Capella Micro CM36283 	 	Not supported in mainline, though may be similar to CM36651?
Magnetometer 	Bosch BMM050 	 	Supported in mainline.
NFC 	PN544 	 	Supported in mainline.
Back camera 	Samsung S5K4E1/ON Semiconductor AR0543	 	Not supported in mainline. S5K4E1 seems to be present on my device. AR0543 datasheet
Camera flash 	TI LM3642 	 	Supported in mainline.
Selfie camera 	Himax HM03D5 	 	Not supported in mainline.
RGB LED 	PWM-based ??? 	 	
PMIC 	PM8038/PM8921? 	 	
Audio codec 	WCD9304/WCD9310? 	 	
== Additional info ==
=== Partition list ===
Device 	Label 	Size in blocks
mmcblk0p1 	TA 	2048
mmcblk0p2 	sbl1 	128
mmcblk0p3 	sbl2 	256
mmcblk0p4 	s1sbl2 	256
mmcblk0p5 	sbl3 	512
mmcblk0p6 	aboot 	512
mmcblk0p7 	tz 	512
mmcblk0p8 	alt_sbl1 	128
mmcblk0p9 	alt_sbl2 	256
mmcblk0p10	alt_s1sbl2	256
mmcblk0p11	alt_sbl3 	512
mmcblk0p12	alt_aboot 	512
mmcblk0p13	alt_tz 	512
mmcblk0p14	rpm 	512
mmcblk0p15	alt_rpm 	512
mmcblk0p16	LTALabel 	16384
mmcblk0p17	boot 	20480
mmcblk0p18	modem 	65536
mmcblk0p19	modemst1 	3072
mmcblk0p20	modemst2 	3072
mmcblk0p21	fsg 	3072
mmcblk0p22	ramdump 	5120
mmcblk0p23	FOTAKernel	16384
mmcblk0p24	persist 	4096
mmcblk0p25	system 	1228800
mmcblk0p26	cache 	256000
mmcblk0p27	data 	2183151
== See also ==
* Initial merge request
* display hack (needs to be reworked in the future to make it compatible with a display manager)
* Mainline kernel notes
* 
*
Sony Xperia P (sony-nypon)

== Contributors ==
* DarkNeutrino
== Maintainer(s) ==
* DarkNeutrino
== Users owning this device ==
== How to enter flash mode ==
Volume Up + Plug in USB cable
== Installation ==
* pmbootstrap flasher flash_kernel
* pmbootstrap flasher flash_rootfs
== Mainline ==
DarkNeutrino is working on kind of a port of mainline kernel for the device.
The UART is not functional and im not sure if its loading the kernel even but it should but may be crashing very very early.
Also to avoid data fault the kernel needs to be uncompressed as having it compressed data aborts the device.
== Issues ==
The device seems to be having issue with unpacking ramdisk when CONFIG_VT is enabled for some reason.
When being connected via UART i can see the kernel trying to do something with the ramdisk but it fails. Disabling CONFIG_VT it goes to crazy mode as /dev/tty isnt there and spams the log with that.
Sony Xperia SP (sony-huashan)

== Contributors ==
* Cafehaine
* DarkNeutrino
== Maintainer(s) ==
* Cafehaine
* DarkNeutrino
== Users owning this device ==
== How to enter flash mode ==
=== From adb ===
Enter the command `adb reboot bootloader`
=== From Android with custom rom ===
The power menu might have a "Reboot to bootloader option"
=== With the device off ===
Press the button, then plug in the USB cable. The LED bar should light up blue
== What works ==
* Compiles
* Boots up
* Weston
== What does not work ==
* Wifi
* Bt
* Audio
== Boot image format ==
I used Android boot bridge's release zip to "skip" the bootimg_analyze step, as the releases include a "template boot.img".
This device uses ELF image but also adds RPM file to the mix which at the end builds into dt file in boot image. The ELF image support Merge Request does still not support it but i will work on it to get it supported.
For now boot image has to be generated manually with mkelf.
== Serial UART ==
To obtain bootloader logs, follow the test points shown in the image below. Note that the UART operates at 1.8V. The kernel logs for downstream kernel is available at ttyHSL0.
For more information about serial debugging, please read Serial debugging.
== See also ==
* Kernel Source LineageOS
Sony Xperia T3 (sony-seagull)

== Contributors ==
* MayeulC
== Maintainer(s) ==
* MayeulC
== Device owners ==
== What works ==
* Flash Rootfs
* Flash kernel
* USB Network
* Screen
* Touch (/dev/input/event0)
* Flashlight (/sys/devices/qcom,camera-led-flash.74/leds/torch-light/brightness)
== What does not work ==
* no Wifi/GSM
* unknown UART pinout
* Audio
== What has not been tested ==
* Compass, accelerometer, gyroscope, GPS, light sensor
* Bluetooth, NFC
* Camera
== Unlock flash mode ==
You may need to unlock the phone with official sony procedure
== How to enter flash mode ==
* Power off the phone
* Press volume up
* Keep volume up pressed, and connect the phone to the computer
* wait until the LED turns blue, then release volume up (this can take a few seconds)
== How to turn off the phone ==
Since you can't remove the battery without opening the phone, you can do the following instead:
* Long press volume up + power button
* press the "off" button behind the SIM/SD card cover with a pin. This breaks the battery connection, so USB needs to be unplugged as well.
== Misc ==
The device shares the yukon platform with other Xperia devices, such as the Xperia E3 (Flamingo), M2 (Eagle) and T2 Ultra (Tianchi). As such, the kernel likely works on all of these.
=== Boot command line ===
* When in charging mode: 
 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 androidboot.emmc=true androidboot.bootloader=s1 oemandroidboot.s1boot=1274-7024_S1_Boot_MSM8x26_LA1.0_1021 androidboot.serialno=YT91XXXXXX ta_info=1,16,256 startup=0x00010004 warmboot=0x77665501 oemandroidboot.imei=3548XXXXXXXXXXXX oemandroidboot.phoneid=0000:35480506XXXXXXXX oemandroidboot.security=0 oemandroidboot.babe1234=00000200 display_status=on androidboot.baseband=msm
* When starting up normally:
 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 androidboot.emmc=true androidboot.bootloader=s1 oemandroidboot.s1boot=1274-7024_S1_Boot_MSM8x26_LA1.0_1021 androidboot.serialno=YT91XXXXXX ta_info=1,16,256 startup=0x00000001 warmboot=0x00000000 oemandroidboot.imei=3548XXXXXXXXXXXX oemandroidboot.phoneid=0000:35480506XXXXXXXX oemandroidboot.security=0 oemandroidboot.babe1234=00000200 display_status=on androidboot.baseband=msm
== Links ==
* Kernel source Mirror with releases history
* Initial PR
* 
*
Sony Xperia T (sony-mint)

Sony Xperia T (renamed Sony Xperia TL in the United States) is an Android smartphone manufactured by Sony Mobile. Introduced on 29 August 2012, this is the last Sony Mobile's device ever introduced to feature the Sony Ericsson's liquid energy logo.
The Xperia T was released in three models; the LT30P is the main HSPA+ version. Two LTE models were released, the LT30A, and the Sony Xperia TL—an AT&T-branded model
== Mainline ==
Not tested yet, but has some basic support in https://github.com/apq8064-mainline/linux .
See more on Qualcomm Snapdragon S4 Plus (MSM8960)
Sony Xperia Tama Device (sony-tama)

==Basic info==
XZ2/XZ2 Compact/XZ3 has smailer situation (see Samsung Galaxy S III (samsung-m0)#Basic info) as Samsung Galaxy S III (samsung-m0) , Samsung Galaxy S III LTE (samsung-m3) but unlike samsung-m* there are a unify name and unify code name for XZ2/XZ2 Compact/XZ3: Tama device (sony-tama).Currently XZ2/XZ2 Compact/XZ3 are packaged into three subpackages of sony-tama.
Sony Xperia XA2 (sony-pioneer)

== Contributors ==
* Konrad Dybcio (@konradybcio)
* Maxnet
== Users owning this device ==
== How to enter flash mode ==
Enter Developer options on Android and enable OEM Unlock
Unlock your bootloader by following instructions here: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
Hold and until the LED becomes blue. Congratulations, you've entered fastboot.
== Installation ==
Make sure to flash the latest stock ROM (via Androxyde's Flashtool or SONY Flash Tool (notice the space in the tool from SONY))
Then, flash the latest ODM binaries for Nile platform via (fastboot flash oem IMAGE_NAME.img)
Follow the Installation guide
== See also ==
* Platform-common device page
* Konrad Dybcio's patchwork profile, new features will likely appear here.*
* Closed Merge Request including different devices
* Open Merge Request
Sony Xperia XA2 Plus (sony-voyager)

== Contributors ==
* Konrad Dybcio (@konradybcio)
== Users owning this device ==
== How to enter flash mode ==
Enter Developer options on Android and enable OEM Unlock
Unlock your bootloader by following instructions here: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
Hold PWR and Vol+ until the LED becomes blue. Congratulations, you've entered fastboot.
== Installation ==
Make sure to flash the latest stock ROM (via Androxyde's Flashtool or SONY Flash Tool (notice the space in the tool from SONY))
Then, flash the latest ODM binaries for Nile platform via (fastboot flash oem IMAGE_NAME.img)
Follow the Installation guide 
== See also ==
* Platform-common device page
* Konrad Dybcio's patchwork profile, new features will likely appear here.
* Open Merge Request
Sony Xperia XA2 Ultra (sony-discovery)

== Contributors ==
* Konrad Dybcio (@konradybcio)
== Users owning this device ==
== How to enter flash mode ==
Enter Developer options on Android and enable OEM Unlock
Unlock your bootloader by following instructions here: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
Hold PWR and Vol+ until the LED becomes blue. Congratulations, you've entered fastboot.
== Installation ==
Make sure to flash the latest stock ROM (via Androxyde's Flashtool or SONY Flash Tool (notice the space in the tool from SONY))
Then, flash the latest ODM binaries for Nile platform via (fastboot flash oem IMAGE_NAME.img)
Follow the Installation guide 
== See also ==
* Platform-common device page
* Konrad Dybcio's patchwork profile, new features will likely appear here.
* Open Merge Request
Sony Xperia XA (sony-tuba)

== Contributors ==
* Oturpe
== Maintainer(s) ==
* Oturpe
== Users owning this device ==
== How to enter flash mode ==
# Power off: + until device vibrates three times
# Connect usb cable to computer
# Press and hold 
# Connect usb cable to phone
# Hold until led turns blue
# Fastboot mode is now active
== Installation ==
# pmbootstrap init, select sony-tuba, answer questions
# pmbootstrap install
# pmbootstrap flash_rootfs
# pmbootstrap flash_kernel
== Kernel ==
As of 2020-10-01, vendor kernel SonyCustoms/kernel_sony_tuba_stock is used. The original should be available from Sony Developer World, but for some reason the 33.3.A series used by Xperia XA does not seem to be available in their kernel repository at all and Xperia open source archives only have a outdated build 33.3.A.115 while .126 is the latest.
== Touchscreen ==
Touchscreen is apparently some ELAN model. The driver is included in the vendor kernel at drivers/input/touchscreen/mediatek/ektf3249_VY36. It seems to work correctly with postmarketOS userspace.
== Display ==
Without including msm-fb-refresher package, weston gui booted successfully and the desktop environment and postmarketOS demos menu were shows correctly. However, the screen was not updating at all, resulting in apparent nonresposiveness to touch and frozen datetime. Adding msm-fb-refresher solved the issue.
== Problems ==
* Horizontal boot splash image is shown, even though screen in vertically aligned, resulting to part of splash screen being hidden and bottom of screen being left blank.
* When usb power is connected and battery is not completely empty, device boots.
== See also ==
* 
*
Sony Xperia XA Ultra (sony-ukulele)

== Contributors ==
== Maintainer(s) ==
== Users owning this device ==
== How to enter flash mode ==
# Power off: + until device vibrates three times
# Connect usb cable to computer
# Press and hold 
# Connect usb cable to phone
# Hold until led turns blue
# Fastboot mode is now active
== Installation ==
# pmbootstrap init, select sony-ukulele, answer questions
# pmbootstrap install
# pmbootstrap flash_rootfs
# pmbootstrap flash_kernel
== Kernel ==
== Touchscreen ==
Touchscreen is apparently some ELAN model. The driver is included in the vendor kernel at drivers/input/touchscreen/mediatek/ektf3249_VY36. It seems to work correctly with postmarketOS userspace.
== Display ==
Without including msm-fb-refresher package, weston gui booted successfully and the desktop environment and postmarketOS demos menu were shows correctly. However, the screen was not updating at all, resulting in apparent nonresposiveness to touch and frozen datetime. Adding msm-fb-refresher solved the issue.
== See also ==
Sony Xperia XZ1 (sony-poplar)

== Users owning this device ==
== How to enter flash mode ==
Enter Developer options on Android and enable OEM Unlock
Unlock your bootloader by following instructions here: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
Hold PWR and Vol+ until the LED becomes blue. Congratulations, you've entered fastboot.
== Installation ==
Just your standard "pmbootstrap flasher" procedure
Sony Xperia XZ1 Compact (sony-lilac)

== Contributors ==
* orson
== Maintainer(s) ==
== Users owning this device ==
== How to enter flash mode ==
Enter Developer options on Android and enable OEM Unlock
Unlock your bootloader by following instructions here: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
Hold PWR and Vol+ until the LED becomes blue. Congratulations, you've entered fastboot.
== Force power off ==
Hold [VOLUME +] and power button for several seconds.
== Installation ==
== Notes ==
Kernel boots up to the point where the phone displays "CHARGING MODE: error starting charging-sdl". It has been tested with firmware 47.2.A.10.107.
Unfortunately USB networking does not work at the moment, so further investigation is difficult.
The simplest method to see dmesg messages after a freeze during boot up:
* boot a postmarketOS image (pmbootstrap flasher boot)
* disconnect the USB cable as soon as the boot process starts (e.g. when Sony logo appears)
* keep holding [VOLUME -] to start the recovery
* in recovery, start terminal and run 'cat /sys/fs/pstore/console-ramoops'
(based on boot process troubleshooting wiki)
== See also ==
* Device package (WIP)
* Kernel package (WIP)
Sony Xperia XZ (sony-kagura)

== Contributors ==
* Konrad Dybcio (@konradybcio)
== Users owning this device ==
== How to enter flash mode ==
Enter Developer options on Android and enable OEM Unlock
Unlock your bootloader by following instructions here: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
Hold and until the LED becomes blue. Congratulations, you've entered fastboot.
== Installation ==
Just your standard "pmbootstrap flasher" procedure
Sony Xperia XZ Premium (sony-maple)

== Users owning this device ==
== How to enter flash mode ==
Enter Developer options on Android and enable OEM Unlock
Unlock your bootloader by following instructions here: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
Hold PWR and Vol+ until the LED becomes blue. Congratulations, you've entered fastboot.
== Installation ==
Just your standard "pmbootstrap flasher" procedure
Sony Xperia X (sony-suzu)

== Contributors ==
* Konrad Dybcio (@konradybcio)
== Maintainer(s) ==
* Konrad Dybcio (@konradybcio)
== Users owning this device ==
== Additional notes ==
* This device has *some* out-of-tree mainline kernel support (some by @bartcubbins) (and some by @kholk)
* There are many different display panels used by suzu
* Xperia X has been supported by Sony Open Devices Project on CAF kernels 3.10, 3.18, 4.4 and now still is on 4.9 with a chance to board the 4.14 hype train
* There's a good chance one could get graphics, modem etc. working with libhybris on kernel 4.4. There's also a mer-hybris port by Jolla for the official "Sailfish X" SFOS release.
* Second codename (loire_suzu) comes from Sony's platform naming scheme, where Loire is a family of MSM8956/APQ8956-based devices along with Xperia X Compact (kugo), Xperia Touch [the projector tablet.. thingy] (blanc) and an unannounced, probably prototype device (oak)
 
== How to enter flash mode ==
With device powered off, hold [VOLUME +] and plug USB cable in. Device's LED will turn blue, meaning it has entered fastboot mode.
== Installation ==
Works fine with the typical pmbootstrap install & pmbootstrap flasher procedure.
== See also ==
* Initial MR
* 
*
Sony Xperia X Compact (sony-kugo)

== Information ==
This device uses the same SoC as the Sony Xperia X (sony-suzu)
== Contributors ==
* Unrznbl
* StandaSK
== Maintainer(s) ==
== Users owning this device ==
== How to enter flash mode ==
== Installation ==
== See also ==
* Initial (closed, not merged) merge request
Sony Xperia Z1 Compact (sony-amami)

== Contributors ==
* ata2001 (porting and testing)
* ollieparanoid (help on IRC)
* MartijnBraam (help on IRC)
* robb4 (help on IRC)
* lawl (help on IRC)
* bshah (help on IRC)
* mmaret (help on IRC)
== Users owning this device ==
== Special keycombo's ==
* Boot to recovery: hold volume down and power button till the phone shakes
* Boot to bootloader: unplug device, hold volume up and plug usb into device
* Reset if stuck: hold volume up and power button till the phone shakes
== Issues ==
* No splash in initramfs.
* When USB charger plugged in when device is off, PostmarketOS "Loading..." screen is displayed continuously.
== Building and Flashing ==
Follow Sony's instructions to unlock the bootloader.
./pmbootstrap.py init
User interface support (with current downstream kernel; might change when replaced with mainline kernel):
* Works: Xfce4, MATE (might need programs installed), Matchbox, Weston
* Believed NOT to work: Hildon (yellow trees on square area of display), Plasma Mobile (needs acceleration?)
Build with FDE disabled (because, with FDE enabled, it looks like the device will just hang on boot at "Loading..." screen).
./pmbootstrap.py zap
./pmbootstrap.py install
Before unlocking the bootloader, you might want to back up your TA partition, so that you could restore the device to more of a factory state (including DRM keys for a lot of proprietary enchantments to display and camera)
Before flashing, you must make sure that the bootloader is unlocked (or `flash_rootfs` will fail with "writing 'system'... FAILED"), which seems to require an IMEI-specific unlock code from Sony, which is sent to the device using `fastboot`: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/how-to-unlock-bootloader/
To get the device into fastboot mode: power it off, remove USB cable, hold down Volume-Up while plugging in USB cable. The notification light bar at the top of the phone will very briefly flash red, and then turn blue. Then you can stop holding down Volume-Up, and the device should in fastboot mode.
./pmbootstrap.py flasher flash_rootfs
./pmbootstrap.py flasher flash_kernel
The `flash_rootfs` took about 1 minute, and `flash_kernel` took 5-10 seconds.
After flashing, you can unplug the USB cable, and the device will be off. Then hold down the power button for a second or few, to turn it on, like normally.
== UI Usability ==
If you select `xfce4` UI when building, after you boot it, you can make it more usable on the small display by doing to menu item "Applications -> Settings -> Appearance", then selecting the "Fonts" tab, then adjusting the DPI up. If you can't press the tiny GUI buttons to adjust the DPI, you can first adjust the font size up (and if the scrollbar for the font size is too small, you can adjust it up in small increments).
== Links ==
* CM wiki archive
* 
*
Sony Xperia Z2 (sony-sirius)

== Contributors ==
* flto
* opendata26
* bamse
* bshah
== Device owners ==
== What works ==
* Compiling the kernel
* Fastboot flash
* SSH
* Setting Brightness
* Freedreno
* WiFi
* Battery Capacity
* Temperature Sensors
* Display
* Touch Screen
* Venus
* Probably more
=== Current status ===
Uses mainline and works very well, uses shared kernel.
== Links ==
* Kernel Source
* 
* Qualcomm mainline porting