Skip to content

Instantly share code, notes, and snippets.

@ungeskriptet
ungeskriptet / firmware.md
Created February 28, 2022 14:37
Firmware for Ubuntu Touch on surya/karna

Ubuntu Touch for surya/karna is based on Halium 10 and Android 10 Ubuntu Touch rootfs so it requires an Android 10 base firmware before it can be flashed on your phone. While custom ROMs like LineageOS 17.1 might work, they are untested and not recommended. Instead, use one of the MIUI Android 10 based firmware from below.

Pay attention to your device name before downloading the firmware below. Make sure you download the right firmware for your device, the correct region, the firmware type is fastboot, and the Android version is 10.0!

Poco X3 NFC (surya): LINK Note: For Poco X3 (karna) use the link above and download firmware for POCO X3 India

@ungeskriptet
ungeskriptet / lenovo-tbj716f.dts
Created June 9, 2022 12:12
Lenovo Xiaoxin Pad Pro 2021 downstream DTS
This file has been truncated, but you can view the full file.
/dts-v1/;
/ {
#address-cells = <0x02>;
model = "Qualcomm Technologies, Inc. kona standalone MTP";
qcom,board-id = <0x2010008 0x00>;
#size-cells = <0x02>;
interrupt-parent = <0x01>;
compatible = "qcom,kona-mtp\0qcom,kona\0qcom,mtp";
qcom,msm-id = <0x164 0x20001>;
@ungeskriptet
ungeskriptet / ulefone-note7.dts
Last active July 11, 2022 19:08
Ulefone Note 7 device tree source (Downstream Linux 3.18.79)
/dts-v1/;
/ {
model = "MT6580";
compatible = "mediatek,MT6580";
#address-cells = <0x02>;
#size-cells = <0x02>;
interrupt-parent = <0x01>;
fp {
@ungeskriptet
ungeskriptet / tcl-beyondtv4.dts
Created July 21, 2022 07:47
TCL 55C725 "BeyondTV4" downstream DTS
/dts-v1/;
/ {
#address-cells = <0x02>;
#size-cells = <0x02>;
model = "realtek,rtd288o";
compatible = "rtk,rtd288o";
interrupt-parent = <0x01>;
chosen {
@ungeskriptet
ungeskriptet / samsung-zerolte.dts
Created July 23, 2022 10:23
Samsung Galaxy S6 "zerolte" downstream DTS
/dts-v1/;
/ {
model_info-hw_rev_end = <0x0b>;
model_info-hw_rev = <0x0a>;
model_info-subtype = "samsung";
model_info-platform = "android";
model_info-chip = <0x1cfc>;
model = "Samsung ZERO-F LTE EUR rev06 board based on Exynos7420(EVT1), mPOP";
#size-cells = <0x01>;
@ungeskriptet
ungeskriptet / motorola-falcon.dts
Created July 25, 2022 08:06
Motorola Moto G 2013 "falcon" downstream DTS
/dts-v1/;
/ {
interrupt-parent = <0x01>;
#address-cells = <0x01>;
#size-cells = <0x01>;
qcom,msm-id = <0x91 0x42 0x283c0>;
channel-id-map = "acg\0amxbr\0amxpr\0amxmx\0amxcl\0amxar\0amxla\0amxpe\0amxco\0tefbr\0tefmx\0tefar\0tefcl\0tefpe\0tefco\0perar\0entcl\0iusmx\0niibr\0niicl\0niimx\0niipe\0oibr\0timbr\0tigco\0retbr\0retar\0retla\0retcl\0tefla\0retla1st\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0reteu\0retgb\0retfr\0retes\0retie\0retde\0vfgb\0vfde\0vffr\0o2gb\0o2de\0orafr\0bouyfr\0eegb\0tescogb\0yoigo\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0u
@ungeskriptet
ungeskriptet / motorola-falcon_lk2nd.dts
Created July 25, 2022 16:56
Motorola Moto G 2013 "falcon" lk2nd DTS
/dts-v1/;
/memreserve/ 0x000000003eae0000 0x0000000000020000;
/memreserve/ 0x000000003eb00000 0x0000000000000800;
/ {
#address-cells = <0x01>;
#size-cells = <0x01>;
model = "Motorola QC-MSM8226 Falcon";
compatible = "qcom,msm8226-falcon\0qcom,msm8226-moto\0qcom,msm8226";
interrupt-parent = <0x01>;
@ungeskriptet
ungeskriptet / motorola-cedric.dts
Created July 26, 2022 16:43
Motorola Moto G5 "cedric" downstream DTS
/dts-v1/;
/ {
#address-cells = <0x02>;
#size-cells = <0x02>;
model = "cedric";
compatible = "qcom,msm8937-cedric\0qcom,msm8937-moto\0qcom,msm8937";
qcom,msm-id = <0x126 0x00>;
interrupt-parent = <0x01>;
channel-id-map = "acg\0amxbr\0amxpr\0amxmx\0amxcl\0amxar\0amxla\0amxpe\0amxco\0tefbr\0tefmx\0tefar\0tefcl\0tefpe\0tefco\0perar\0entcl\0iusmx\0niibr\0niicl\0niimx\0niipe\0oibr\0timbr\0tigco\0retbr\0retar\0retla\0retcl\0tefla\0retla1st\0tefunl\0tigca\0tigca1st\0retmx\0attmx\0womcl\0avaco\0retpe\0openla\0opencl\0openmx\0altmx\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0reteu\0retgb\0retfr\0retes\0retie\0retde\0vfgb\0vfde\0vffr\0o2gb\0o2de\0orafr\0bouyfr\0eegb\0tescogb\0yoigo\0oraes\0retapac\0retmea\0vfit\0vfes\0vfeu\03gb\0tescoie\0altfr\03ie\0altpt\0timit\0retma\0windit\0vfhu\0vfro\0telhu\0playpl\0oraeu\0dteu\0teleu\0plu
@ungeskriptet
ungeskriptet / check-address.py
Last active August 21, 2022 12:54
Very stupid tool to check if one hex value is higher or lower than another. Useful for checking the placement of a node in a device tree.
#!/usr/bin/env python
import sys
def main():
while True:
str1 = input("First address: ")
str2 = input("Second address: ")
if not str1.startswith("0x"):
str1 = "0x" + str1
@ungeskriptet
ungeskriptet / id.txt
Last active August 19, 2022 18:29
Another very stupid tool to generate a pdc map for pinctrl from downstream.
0
3
4
5
6
9
10
11
22
24