nyuuzyou/wikis huggingface dataset:
Wiko Lenny 2 (wiko-lenny2)

== Status == 
;screen
: has a working framebuffer, so it's possible to display stuff. No DRM as with a lot of older kernels, that means no phosh or sway, I guess.
;audio
: BADLY BROKEN, alsamixer or mpv seem to make the kernel crash. The phone reboots afterwards
: maybe something non-alsa could work better?
;wifi
: the network interface doesn't appear in ifconfig.
;battery reading
: broken,
:* acpi tells the battery is fully empty.
:* upower --dump generates a segfault: (upower:1682): UPower-WARNING **: 11:58:54.107: Cannot connect to upowerd: Error calling StartServiceByName for org.freedesktop.UPower: Process org.freedesktop.UPower received signal 11
;desktop environment
* Mate seems to work best. Mostly because it doesn't die from segfaults. It is missing the bottom panel though.
* Weston works, but for some reason, it sometimes fails to start: sudo rc-service lightdm restart.
* Plasma Mobile only shows a mouse cursor on a black background, with loads of segfaults.
* Sway and Phosh require DRM support, so that's a no-go.
* XFCE4 fails to start, for some reason.
* i3 could be a possible alternative. Untested since the lack of external keyboard would make it useless.
;games
* chocolate doom works on software rendering
== Contributors ==
* afontain
== Maintainer ==
* afontain
== Users owning this device ==
== How to enter flash mode ==
First, boot phone into recovery mode.
To do that, press the button while powering on the phone.
When the logo appears, you can release any button held.
Once in the recovery mode, navigate to "reboot to bootloader" using the volume keys. 
In my case, I had to validate pressing the button twice, then the power up button.
== Installation ==
The kernel and the initramfs can be flashed using pmbootstrap flasher flash_kernel. Flashing the rootfs requires a workaround. I recommend flashing the rootfs to the userdata partition, as it is larger than system.
== Mainlining ==
=== downstream kernel sources, for reference ===
https://www.wikogeek.com/index.php?telephone=LENNY2®ion=EUROPE&version=%25
== See also ==
* Device package
* Kernel package
* Initial merge request
Wiko Lenny 3 (wiko-lenny3)

== Contributors ==
* drebrez
== Maintainer(s) ==
* drebrez
== Device owners ==
== How to enter flash mode ==
* Start SP Flash Tool
* Select the MT6580 scatter file
* Check the partition to flash
* Specify the location of the file to flash
* Click Download button
* Remove the battery from the device
* Connect the USB cable
* Flash process should start
== How to enter recovery mode ==
* Hold the button, and then press the button
== Links ==
* Full phone specifications
* Official Kernel source
* 
* 
* Initial merge request
* osk-sdl causes reboot
Wiko Lenny 5

== Contributors ==
* TojoRs
== How to enter Recovery mode ==
 Switch off your device.
Press and keep pushed Volume Up and Power for 10 seconds, then release Power button.
While keeping Volume Up pushed, press once Power to switch on the device.
You should now enter recovery mode.
== How to enter fastboot mode ==
Use the above method to enter Recovery mode.
Use Volume up/down to navigate and select "Reboot to bootloader", press Power to validate.
The device should now reboot in Fastboot mode.
Wiko Sunset 2 (wiko-sunset2)

== Contributors ==
* drebrez
== Maintainer(s) ==
* drebrez
== What works ==
* Nothing yet
== What does not work ==
* Everything else
== How to enter flash mode ==
* Start SP Flash Tool
* Select the MT6572 scatter file
* Check the partition to flash
* Specify the location of the file to flash
* Click Download button
* Remove the battery from the device
* Connect the USB cable
* Flash process should start
== How to enter Recovery Mode ==
* Hold the Volume Up and Volume Down button, and then press the Power button
* Press Volume Up when prompted
== How to enter Factory Mode ==
* Hold the Volume Up and Volume Down button, and then press the Power button
* Press Volume Down when prompted
== Links ==
* Full phone specifications
* Official Kernel source
Wiko U FEEL (wiko-ufeel)

== Architecture ==
== Contributors ==
* UnDevDeCatOS
* cerdini
== Maintainer(s) ==
* UnDevDeCatOS
== Users owning this device ==
== Board ==
Wiko U Feel has two different board revisions: one using the Tinno p6601 board (like BLU R1 HD, Lanix Ilium L910, QMobile Noir A6, Evertek EverSolo, Smart Art P6601) and the other using the p6609 board. It appears that the current packaged kernel is compatible between these two boards.
=== UART (p6609) ===
1.8V UART pins are exposed on the motherboard. Removing the back cover and unscrewing a plastic frame gives you access to them. According to the board, the RX pin is at the top and the TX pin at the bottom. Baud rate is 921500 for preloader/lk, and 112500 for BootROM.
== WiFi ==
As described in the WiFi troubleshooting guide, you need a firmware loader, named 6620_launcher, but it panics the kernel.
If you want to debug wifi, then check out the mediatek section on the WiFi page.
== Audio ==
Sound card is detected in alsamixer, but dosen't work
== Device Tree ==
I couldn't find the official dtsi source code, so i decompiled the dtb blob from the stock rom with dtc command line tool. Unfortunately with this method we don't have the comments.
== How to enter flash mode ==
Fastboot is broken. It gives Unknown Chunk type, but it is possible to install pmOS with TWRP. Refer to Android_Recovery_Zip_Installation for installing. 
Flashing with proprietary program SP Flash Tool also work fine. Tested with flashed emmc boot partition and system partition stored on external sdcard.
== Installation ==
== Links ==
* Full phone specifications
* Official Kernel source
* Unofficial TWRP Image
* Initial merge request
* 
* 
Category:Devices with known UART pinout
Wiko View (wiko-v12bnlite)

Can play smoothly YouTube 720p videos in Firefox but without sound and in portrait mode.
== Contributors ==
* Firstbober
== Users owning this device ==
== How to enter flash mode ==
In any state, hold and until you see a prompt with recovery and fastboot option. Press .
Download mode can be accessed by holding , and until backlight lights up.
== Installation ==
General installation guide should do just fine.
== Firmware ==
Firmware is located on modem partition in the device, but some files which are required to tinker with Wi-Fi are on android system partition in /etc/ directory.
After adding audio firmware, aplay detects a sound card. I've done some work to convert mixer_paths.xml to Alsa UCM but without success.
== See also ==
* Initial merge request
* Kernel source
Wileyfox Swift 2X (wileyfox-marmite)

== Contributors ==
VitoMinheere
== Maintainer(s) ==
VitoMinheere
== Users owning this device ==
== How to enter flash mode ==
Power + Volume up during boot will launch into fastboot mode. Don't forget to unlock oem bootloader in Android settings and via Fastboot.
== Installation ==
== See also ==
*Android Kernel
*Android Device
*msm8937 kernel
Wireguard

== Overview ==
Wireguard is modern, low-latency VPN, available in upstream Alpine repo. Not only it is fast and secure, but also very simple and straightforward in configuration. Among all VPN techlologies, it is the simplest (from user's viewpoint) and the least wayward one.
=== Setup and usage ===
As of pmOS 23.06, the default kernel is already built with Wireguard support. To use Wireguard tunnels, you only need to install the wireguard-tools-wg-quick package. There is no separate wireguard package in Alpine and pmOS. There are other Wireguard tools to be considered as well.
Standard location for configuration of Wireguard tunnels is /etc/wireguard/interface.conf. The directory should be readable for root only (chmod 700, and chmod 600 for files in it) as it contains private keys of the host. Once wg-quick is installed, tunnels may be started/stopped as follows:
$ sudo wg-quick up INTERFACE
$ sudo wg-quick down INTERFACE
with INTERFACE being a name of one of the .conf files.
== Integration with other applications ==
=== GUI applications ===
As of now, there is no dedicated GUI application for Wireguard management in Linux. (Unlike the other OSes.) Use terminal instead. Probably someone will write it one day, or adopt the existing Android/IOS app for pmOS phones (apart from desktops/notebooks). In some desktop environments, there are (or may appear in the future) Wireguard plugins for their regular network management tools.
=== NetworkManger integration ===
In mobian there is easy way to manage Wireguard with automatically filled pre and post hooks.
$ nmcli connection import type Wireguard file /path/to/wg.conf
However, because of (probably) some lack in packaging, pre and post hooks interfaces are not set properly. So you are connected to your rely but DNS doesn't work.
In other cases, Wireguard support may vary depending upon distribution, its particular NM version and plugin availabilty for it.
=== DNS dependence ===
In certain use cases, you may need to use a particular DNS server at the other side of the tunnel instead the default one. To that purpose, there is the DNS= setting in config file for wg-quick. (But not for wireguard itself !)
To perform the task, wg-quick and probably other tools running on top of Wireguard itself need addtitional tools to set up DNS for wireguard interface. In most distributions and packages, openresolv|resolvconf are listed as recommended - but not mandatory - dependencies.
In Alpine and pmOS, wireguard-tools-wg-quick does install openresolv unconditionally, thus DNS setting works out of the box.
In other distributions and setups (including Network Manager as described above?) you may need to install this dependence manually.
Category:Guide
Writing apkbuilds for upstream software

=== Meson based ===
makedepends="meson"
build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}
check() {
	meson test --no-rebuild -v -C output
}
package() {
	DESTDIR="$pkgdir" meson install -C output
}
Xiaomi 11 Lite 5G NE / 11 LE (xiaomi-lisa)

The Xiaomi 11 Lite 5G NE (global name) / Xiaomi 11 LE (chinese variant) is a mid-range smartphone from Xiaomi released in 2021. It is very closely related to its SM7350 counterpart and predecessor, the Xiaomi Mi 11 Lite 5G (xiaomi-renoir), and likely succeeded it due to the global chip shortage during the Covid-19 pandemic, being based on an older manufacturing process node.
== Contributors ==
== Maintainer(s) ==
== Users owning this device ==
== How to enter flash mode ==
* Bootloader: Power on the device with both and buttons
* Recovery : Power on the device with both and buttons
== External links ==
Xiaomi 12 (xiaomi-cupid)

The Xiaomi 12 is the most recent Xiaomi flagship device that can boot a source-built downstream kernel.
== Contributors ==
== Maintainer(s) ==
== Users owning this device ==
== Flashing ==
Flashing requires wiping some partitions to make sure the bootloader does not mess up the mainline kernel devicetree.
fastboot set_active b
fastboot erase vendor_boot
fastboot erase dtbo
Afterwards, you can flash the device as usual using pmbootstrap's flasher utilities. If your rootfs is under 2GB in size, you can flash to the cust partition which is only used by MIUI, otherwise super is recommended (make sure you have a backup or a super_empty.img to restore Android if you intend to go back).
== External links ==
* Close-to-mainline kernel sources
* Community-maintained GKI2 kernel sources with minimal modifications over CLO
* XDA thread with explanation about the kernel source situation
* Community-maintained LineageOS sources
Xiaomi Amazfit

A popular series of low-cost smartwatches by Xiaomi/Huami. Specifications are quite competitive for the price, but most watches, especially older generations, are based on the Ingenic M200s platform, which is 32-bit MIPS and therefore currently (and probably forever) unsupported by postmarketOS. AsteroidOS is, however, seemingly considering adding support to the platform.
More recent models (Nexo etc.) use the Qualcomm Snapdragon Wear 2500 platform, which is much more common and potentially supported.
== Useful Links ==
* SoC: http://www.ingenic.com.cn/en/?product/id/2.html (datasheets: ftp://ftp.ingenic.com/SOC/M200/)
* Kernel (3.10.14): https://github.com/amazfitDev/platform_kernel-3.10.14
* AsteroidOS issue: https://github.com/AsteroidOS/asteroid/issues/71
Xiaomi Mi 10 Lite 5G (xiaomi-monet)

== Contributors ==
* Augis154
== Users owning this device ==
== How to enter flash mode ==
* Fastboot: Power on the device with both and buttons
* Recovery: Power on the device with both and buttons
== Installation ==
$ pmbootstrap install
$ pmbootstrap flasher flash_dtbo
$ pmbootstrap flasher flash_rootfs
$ pmbootstrap flasher flash_kernel
== See also ==
* WIP repo
* 
*
Xiaomi Mi 10i / Mi 10T Lite / Redmi Note 9 Pro 5G (xiaomi-gauguin)

__TOC__
== Contributors ==
* Zephyr1112 (UsrBinLuna)
== Maintainer(s) ==
== Users owning this device ==
== How to enter flash mode ==
=== Bootloader Unlocking ===
To unlock the device, you'll need Xiaomi's Mi Unlock Tool
* First, go into Settings -> Additional Settings -> Developer Options
* Enable OEM Unlocking
* Insert a SIM card in the device, and log into a Mi Account
* Disable WiFi and enable cellular connectivity
* Open Mi Unlock status page, and begin unlock
* Run the MiUnlock program once (phone must be in fastboot mode with and ). The program will say to wait 168 hours.
* Wait 168 hours (7 days) and rerun it. The device is now unlocked
=== Recovery mode ===
* Turn the device off (or restart also works)
* Hold and button
* Once you feel vibration and phone turns on, release button
* Keep holding until you get to recovery.
== Flashing TWRP ==
For this you'll need tuxafgmur's TWRP build and Android Platform-Tools. TWRP 3.7.0.4G is for MIUI, while TWRP 3.7.0.3F is for Custom ROMs.
* First, boot the device into Fastboot mode with and .
* Extract the zip file containing TWRP, and flash it with fastboot flash recovery <recovery.img>
* Either run fastboot reboot recovery or press and hold and until you feel a vibration. This will boot the device into Recovery.
MIUI ONLY: If you want to stop MIUI from overwriting custom recoveries, you must flash Magisk to your device.
== Device Hardware ==
NOT VERIFIED: sourced from deviceinfohw
Hardware Type 	Chip 	Mainline Status	Notes
WiFi & BT chip 	Qualcomm WCN3990 (ath10k) 	P 	Driver available
Charging IC 	Texas Instruments BQ25970 [i2c 2-0066] (bq2597x) 	N 	No driver
Wireless Charging Controller	Qualcomm SMB1396 [i2c 2-0034] 	N 	No driver
Fuel gauge 	Unknown 	N 	
GNSS 	Unknown 	N 	
NFC 	? [i2c 1-0028] (nq-nci driver on Android) 	N 	
Audio 	Cirrus CS35L41 [i2c 0-0040, 0-0041] (litolagoonqrdsn driver on Android)	P 	Driver available
Accelerometer 	TDK icm4x6xx 	N 	No driver
Display panel 	Novatek NT36672C (IPS LCD, j17_36_02_0a_dsc_video) 	P 	Driver available
Touchscreen 	Focaltech ?? [i2c 1-0038] 	P 	Driver available (fts_ts)
Ambient Light Sensor 	rohm_bu27030 	N 	Driver available for Rohm BU27034
Gyroscope 	TDK icm4x6xx 	N 	No driver
Magnetometer 	ak0991x 	N 	No driver
Video 	Adreno 619 	P 	Freedreno available, untested
UFS 	? (128 GB) / ? (256 GB) 	N 	
Memory 	? (Hynix) 	Y 	
Haptics 	Awinic AW8624 [i2c 2-005A] 	N 	No driver
SD Card Slot 	? 	N 	
USB 	? 	N 	
Flash 	? 	N 	
Fingerprint Sensor 	? (Goodix GF3626 / GF3956 ??) 	N 	No driver
 	Cameras 	 	
Camera 	Sensor 	Mainline Status	Notes
Main 	Sony IMX682 (64MP) / Samsung HM2 (108MP) 	N 	No driver
Front 	Omnivision OV16A1Q 	N 	No driver
Wide-angle 	Omnivision OV8856 	N 	Driver available
Macro 	Omnivision OV02B10 	N 	Driver available for OV02A10
Depth Sensor 	Hynix HI-259 	N 	No driver
== External Links ==
* Mainline kernel fork: https://github.com/UsrBinLuna/linux-gauguin/tree/gauguin-wip
* Aports fork: https://github.com/UsrBinLuna/pmaports
* UEFI port (Mu-Qcom, very WIP): https://github.com/UsrBinLuna/Mu-Qcom
Xiaomi Mi 11 (xiaomi-venus)

The standard Xiaomi Mi 11 (M2011K2G, not Lite, not Pro, not Ultra) from 2021. Based on Snapdragon 888, usually sold in its 8/256GB variant, and overall quite close to other SM8350 flagships in terms of internal hardware.
== Contributors ==
* R
== Users owning this device ==
== How to enter flash mode ==
The Volume down + Power combination is enough to enter Fastboot mode
== Installation ==
Use pmbootstrap to build your own installation image.
$ pmbootstrap init
$ pmbootstrap install --fde
== Mainline status ==
The device is relatively similar to the OnePlus Lemonade family, as both are close to the Qualcomm MTP platform. USB works, regulators are in, but the panel driver is a mess, since it uses a 1440p DSC panel whose actual code is unknown (aside from "dsi-panel-k2b-38-08-0a-dsc-cmd"). 
Although this MR adds support for some DSC panels in the MDSS panel generator, this specific panel has bpp = 30 so its mode appears not to be supported yet.
This is *hopefully* the same panel as Xiaomi Poco F3 seen here at k11a-38-08-0a-dsc-cmd.dtsi, which uses normal bpp = 18. 
Some discussion on this device exists in the #sm8350-mainlining room on Matrix
== Cameras == 
This phone uses an array of Samsung sensors with no mainline support, and an Omnivision wide-angle camera with some degree of support.
* Omnivision OV13B10 wide angle camera (13 Mpx). This has a driver in mainline
* Samsung S5KHMX main camera (108 Mpx)
* Samsung S5K5E9 macro camera (5 Mpx)
* Samsung S5K3T2 front camera (20 Mpx)
== See also ==
* Xiaomi Mi 11 Ultra (xiaomi-star)
* Initial Mi 11 (xiaomi-venus) mainline port
* OnePlus 9 (oneplus-lemonade) mainline port
* Xiaomi Mi11 Ultra (xiaomi-star) mainline port
* android_kernel_xiaomi_sm8350
* Downstream venus kernel
* Downstream OLED panel tree
* Support DSC (Display Stream Compression) panels in MDSS panel generator
* M2011K2G - deviceinfohw.ru
Xiaomi Mi 11 Ultra (xiaomi-star)

The Xiaomi Mi 11 Ultra smartphone from 2021, based on Snapdragon 888. This device is overall quite close to other SM8350 flagships in terms of internal hardware, and similar to the Xiaomi Mi 11 (xiaomi-venus).
== Contributors ==
* R
== Users owning this device ==
== How to enter flash mode ==
The Volume down + Power combination is enough to enter Fastboot mode
== Installation ==
Use pmbootstrap to build your own installation image.
$ pmbootstrap init
$ pmbootstrap install --fde
== Mainline status ==
Similar to venus. A work-in-progress mainline port seems to exist
== See also ==
* Xiaomi Mi 11 (xiaomi-venus)
Xiaomi Mi 2 (xiaomi-aries)

== Contributors ==
* Lwrless
== Maintainer(s) ==
* Lwrless
== How to enter flash mode ==
 + , it will look like this:
== Progress ==
In I used outdated cm11 kernel from LineageOS, it boots fine but I wasn't able to get the display working.
Then I switched to the kernel which is still maintained by GuaiYiHu from MoKee. By following the steps on Troubleshooting:display and Tuning_sysfs, the display was enabled.
== Installation ==
== See also ==
* Initial merge request
* 
*
Xiaomi Mi 4c (xiaomi-libra)

== Contributors ==
* aostanin
== Maintainer(s) ==
== Users owning this device ==
== Issues ==
* (Gnome) Password request dialog covers OnBoard input 
== How to enter flash mode ==
=== Recovery mode ===
* Turn the device off (or restart also works)
* Hold and button
* Once you feel vibration and phone turns on, release button
* Keep holding until you get to recovery.
=== Flashing (Download, Fastboot) mode ===
* Same as recovery, but this time hold the and keys.
== Installation ==
* Install pmbootstrap first on your PC
* zap & reinit pmbootstrap (pmbootstrap -y zap ; pmbootstrap init), choose xiaomi-ferrari as a device
* proceed with installation as usual: reboot device to fastboot mode, then:
 pmbootstrap install
 pmbootstrap flasher flash_kernel
 pmbootstrap flasher flash_rootfs
== Mainline kernel ==
There is a close-to-mainline kernel fork featuring USB, screen via simplefb and basic core bringup. Find it here.
== See also ==
* Initial merge request
Xiaomi Mi 4i (xiaomi-ferrari)

== Contributors ==
* Sungold
== Maintainer(s) ==
== Users owning this device ==
== How to enter flash mode ==
=== Recovery mode ===
* Turn the device off (or restart also works)
* Hold and button
* Once you feel vibration and phone turns on, release button
* Keep holding until you get to recovery.
=== Flashing (Download, Fastboot) mode ===
* Same as recovery, but this time hold the and keys.
== Installation ==
* Install pmbootstrap first on your PC
* zap & reinit pmbootstrap (pmbootstrap -y zap ; pmbootstrap init), choose xiaomi-libra as device
* proceed with installation as usual: reboot device to fastboot mode, then:
 pmbootstrap install
 pmbootstrap flasher flash_kernel
 pmbootstrap flasher flash_rootfs
== See also ==
* Initial merge request
* 
* 
* Mainline Repo
Xiaomi Mi 5X (xiaomi-tiffany)

== Contributors ==
== Users owning this device ==
== OEM unlock ==
== How to enter flash mode ==
* Stock Fastboot: Power on the device with both and buttons
* lk2nd Fastboot: Power on the device. After it vibrates, hold 
* Recovery: Power on the device with both and buttons
== Installation ==
Xiaomi Mi 5X can have 4 codenames: (Primary codename), (A device created at the Xiaomi factory in Beijing "Exclusively" for the Chinese market), (Although it is Mi A1, but also Mi 5X are found with the same codename. Most likely it is Mi A1, but the a/b structure was changed to a only, and miui from Mi 5X was also installed. But it could also be Mi 5X (tiffany), but with a flashed bootloader from Mi A1), (A device with firmware from the seller (more often from Vietnam) with an unlocked bootloader and a "surprise" in the form of a bootloader from Xiaomi Mi Max2 under the nickname Oxygen).
== What works ==
== What works partially ==
== What does not work ==
== Mainline ==
Look at Xiaomi Mi A1 (xiaomi-tissot) status
See also: MSM8953 mainlining status
== Serial debugging (UART) ==
File:Xiaomi-tissot-uart.png
See also: Serial debugging
== See also ==
* twrp-3.2.3-1-tiffany.img
* lk2nd
* lk2nd releases
* Schematic Mi 5X
Xiaomi Mi 5 (xiaomi-gemini)

A nice and thin Xiaomi ex-flagship from 2016. Originally with Android 6, it was updated up to Android 8. It is one of the official LineageOS supported devices, making it a nice choice for developers, and performs very well in spite of its 3GB of RAM.
== Contributors ==
* R
== Maintainer(s) ==
* R
* Tooniis
== Device owners ==
== How to enter flash mode ==
Either run `adb reboot bootloader` while the phone is booted in Android,
or turn the device off and hold the power button and the volume down button.
Your device should now be in "fastboot" mode.
== Installation ==
Standard procedure, boot to Fastboot and then flash boot.img and the rootfs
== What's missing ==
In general, the device works very nicely. But some relevant things are to be noticed:
* Battery does not charge (i.e., needs reboot to recovery mode), and status (%) is not shown yet.
* Wi-Fi works, but is unstable and reception is bad
* Audio works only through the headphone jack, and only if SLPI is disabled. The speaker needs a codec which isn't mainlined yet
* Clearly, no fingerprint sensor or support for capacitive keys (those around the home button)
* Sensors, including the accelerometers, are not enabled yet. This is due to the odd Qualcomm SLPI subsystem
* Modem and GPS can be get to work only by using significant hacks and patchwork around ModemManager and ofono. This will take a while to be solved
* Camera. This device uses a Sony IMX298 (the same as the Oneplus 3/3T) as back camera and an OmniVision OV4688 as front camera.
== Mainline ==
Works and pending upstreaming. Essentially we are in the same state as Xiaomi Mi Note 2 (xiaomi-scorpio).
== Charging ==
As there is no charger driver yet, you need to boot into recovery mode (TWRP or similar) to charge the phone. This is a known limitation of all MSM8996 devices, which will be hopefully fixed soon.
== See also ==
* Latest kernel version for msm8996 MIGHT BE FOUND AT git.codelinaro.org
* Mainline kernel tree
* Device Mi 5 - deviceinfohw.ru