[PORT] linux kernel source for Xiaomi Redmi 3S (land) (Snapdragon 430 msm8937)

Search This thread

yangyangnau

Senior Member
Sep 25, 2016
54
144
Hanzhong
Hello everyone,
Xiaomi hasn't released Redmi 3s land kernel to us. It's SHAME.(2016.09.28)

I want to run normal GNU/Linux OS on Xiaomi Redmi 3S.
So I am porting Linux kernel base on QAEP kernel and Redmi3 drivers.

My porting kernel version is 3.18.20.
https://github.com/yangyangnau/android_kernel_xiaomi_msm8937

BASE ON:
* QAEP for msm8937:
Code:
lynx -dump -width 120 https://wiki.codeaurora.org/xwiki/bin/QAEP/release | grep msm8937
06.23.2016 LA.UM.5.3.1-01010-89xx.0 msm8937_64 LA.UM.5.3.1-01010-89xx.0.xml 06.00.01
06.10.2016 LA.UM.5.3-04410-89xx.0 msm8937_64 LA.UM.5.3-04410-89xx.0.xml 06.00.01
06.09.2016 LA.UM.5.3.1-00610-89xx.0 msm8937_64 LA.UM.5.3.1-00610-89xx.0.xml 06.00.01
06.07.2016 LA.UM.5.1-04210-8x37.0 msm8937_64 LA.UM.5.1-04210-8x37.0.xml 06.00.01
06.06.2016 LA.UM.5.3.1-00610-89xx.0 msm8937_64 LA.UM.5.3.1-00610-89xx.0.xml 06.00.01
05.31.2016 LA.UM.5.3-03710-89xx.0 msm8937_64 LA.UM.5.3-03710-89xx.0.xml 06.00.01
05.24.2016 LA.UM.5.3.1-00310-89xx.0 msm8937_64 LA.UM.5.3.1-00310-89xx.0.xml 06.00.01
05.15.2016 LA.UM.5.1-04010-8x37.0 msm8937_64 LA.UM.5.1-04010-8x37.0.xml 06.00.01
04.29.2016 LA.UM.5.1-03810-8x37.0 msm8937_64 LA.UM.5.1-03810-8x37.0.xml 06.00.01
04.14.2016 LA.UM.5.1-03610-8x37.0 msm8937_64 LA.UM.5.1-03610-8x37.0.xml 06.00.01
03.30.2016 LA.UM.5.1-03210-8x37.0 msm8937_32 LA.UM.5.1-03210-8x37.0.xml 06.00.01
03.22.2016 LA.UM.5.3-01410-8x37.0 msm8937_64 LA.UM.5.3-01410-8x37.0.xml 06.00.01
03.15.2016 LA.UM.5.1-02910-8x37.0 msm8937_64 LA.UM.5.1-02910-8x37.0.xml 06.00.01
02.28.2016 LA.UM.5.1-02410-8x37.0 msm8937_64 LA.UM.5.1-02410-8x37.0.xml 06.00.01
02.25.2016 LA.UM.5.3-01110-8x37.0 msm8937_64 LA.UM.5.3-01110-8x37.0.xml 06.00.01
02.12.2016 LA.UM.5.1-02110-8x37.0 msm8937_64 LA.UM.5.1-02110-8x37.0.xml 06.00.01
02.12.2016 LA.UM.5.3-00610-8x37.0 msm8937_64 LA.UM.5.3-00610-8x37.0.xml 06.00.01
01.29.2016 LA.UM.5.1-01910-8x37.0 msm8937_64 LA.UM.5.1-01910-8x37.0.xml 06.00.01
01.21.2016 LA.UM.5.1-01610-8x37.0 msm8937_64 LA.UM.5.1-01610-8x37.0.xml 06.00.01
01.11.2016 LA.UM.5.1-01310-8x37.0 msm8937_64 LA.UM.5.1-01310-8x37.0.xml 06.00.01
12.21.2015 LA.UM.5.1-03700-8x37.0 msm8937_64 LA.UM.5.1-03700-8x37.0.xml 06.00.00
12.04.2015 LA.UM.5.1-01400-8x37.0 msm8937_64 LA.UM.5.1-01400-8x37.0.xml 06.00.00
11.21.2015 LA.UM.5.1-01010-8x37.0 msm8937_64 LA.UM.5.1-01010-8x37.0.xml 06.00.00
* QAEP kernel for msm8937:
Code:
mkdir -p android-source/qaep
cd android-source/qaep
repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.UM.5.3-01110-8x37.0.xml --repo-url=git://codeaurora.org/tools/repo.git
grep kernel/msm-3.18 .repo/manifest.xml
<project name="kernel/msm-3.18" path="kernel" revision="985da67f18431ac30e2c2d46b68067b71ebf8688" upstream="LA.UM.5.3_rb1.1"/>
<project name="kernel/msm-3.18" path="kernel" revision="a199af79618518255f6eb6656e1ba6fcb6b1e7ff" upstream="LA.UM.5.1_rb1.4"/>
git://codeaurora.org/kernel/msm-3.18 branchs:
LA.UM.5.1_rb1.3
LA.UM.5.1_rb1.4
LA.UM.5.3.1_rb1
LA.UM.5.3_rb1.1
06.23.2016 LA.UM.5.3.1-01010-89xx.0 msm-3.18 df25fdbbe93e8f1c16268faed04a065bf1cd7d89 LA.UM.5.3.1_rb1
06.10.2016 LA.UM.5.3-04410-89xx.0 msm-3.18 8235259992248adedca456006c027a938cc0f9d3 LA.UM.5.3_rb1.1
06.09.2016 LA.UM.5.3.1-00610-89xx.0 msm-3.18 235372e1f95010f66f4d353ac15402a4c314607f LA.UM.5.3.1_rb1
06.07.2016 LA.UM.5.1-04210-8x37.0 msm-3.18 a199af79618518255f6eb6656e1ba6fcb6b1e7ff LA.UM.5.1_rb1.4
06.06.2016 LA.UM.5.3.1-00610-89xx.0 msm-3.18 235372e1f95010f66f4d353ac15402a4c314607f LA.UM.5.3.1_rb1
05.31.2016 LA.UM.5.3-03710-89xx.0 msm-3.18 e4bd98b39aee92bd6f838c4c14189de51a16a258 LA.UM.5.3_rb1.1
05.24.2016 LA.UM.5.3.1-00310-89xx.0 msm-3.18 289277d0980d8075c20244d8aa8cfde3b4b57737 LA.UM.5.3.1_rb1
05.15.2016 LA.UM.5.1-04010-8x37.0 msm-3.18 67ea3027ee587c3cddc0c51024257816c0972312 LA.UM.5.1_rb1.4
04.29.2016 LA.UM.5.1-03810-8x37.0 msm-3.18 a9e54d65f9005af4075c24063ad2558260254dc5 LA.UM.5.1_rb1.4
04.14.2016 LA.UM.5.1-03610-8x37.0 msm-3.18 5b0c3e43afaa6639f6d41a6379e713382b220c5e LA.UM.5.1_rb1.4
03.30.2016 LA.UM.5.1-03210-8x37.0 msm-3.18 5f11194935c418e32e5308ae397227afc5797fed LA.UM.5.1_rb1.4
03.22.2016 LA.UM.5.3-01410-8x37.0 msm-3.18 261ac07c6a00d352d42fe412595beaa70d55c7ab LA.UM.5.3_rb1.1
03.15.2016 LA.UM.5.1-02910-8x37.0 msm-3.18 38a946316417e48534169a0e8174286f52d78685 LA.UM.5.1_rb1.4
02.28.2016 LA.UM.5.1-02410-8x37.0 msm-3.18 7d15cd5c720f21b63f269539edbec896d7e233f6 LA.UM.5.1_rb1.4
02.25.2016 LA.UM.5.3-01110-8x37.0 msm-3.18 985da67f18431ac30e2c2d46b68067b71ebf8688 LA.UM.5.3_rb1.1
02.12.2016 LA.UM.5.1-02110-8x37.0 msm-3.18 488a89d43651383c957f75a628534a7ad5d7eea0 LA.UM.5.1_rb1.4
02.12.2016 LA.UM.5.3-00610-8x37.0 msm-3.18 eef5da9a9bbc138fc7ee42f804b957a7758f8a78 LA.UM.5.3_rb1.1
01.29.2016 LA.UM.5.1-01910-8x37.0 msm-3.18 fb35f3c795229950ddf63280800b2390eafcb135 LA.UM.5.1_rb1.4
01.21.2016 LA.UM.5.1-01610-8x37.0 msm-3.18 1aa11b594d7ac1dfab73a86119998b4c4e80b506 LA.UM.5.1_rb1.4
01.11.2016 LA.UM.5.1-01310-8x37.0 msm-3.18 39d6e2eee46004ada9e72eb273b028986651d6dc LA.UM.5.1_rb1.4
12.21.2015 LA.UM.5.1-03700-8x37.0 msm-3.18 4e90549c8f8d5feb88e92c24dde4f15e1f94a616 rel/msm-3.18
12.04.2015 LA.UM.5.1-01400-8x37.0 msm-3.18 e70ad0cd5efdd9dc91a77dcdac31d6132e1315c1 rel/msm-3.18
11.21.2015 LA.UM.5.1-01010-8x37.0 msm-3.18 122fe9b172bd14c1c5dffa45fc4389da0c187461 LA.UM.5.1_rb1.3
* redmi 3 kernel:
https://github.com/MiCode/Xiaomi_Kernel_OpenSource branch ido-l-oss

STATUS REPORT:
Tested with my kernel #5d5fa78 + stock ROM MIUI V7.5.9.0. Stable enough.
boot: OK
panel: OK
vol+ vol- power key: OK
touchscreen: OK
eMMC: OK
mic: OK
phone: OK
external speaker: OK
sensors: OK
vibrator: OK
cameras: could be OK (QR code scan work, but can't get a photo)
fingerprint: need more work
wifi: OK
dial: OK

PREBUILT KERNEL:
https://github.com/yangyangnau/android_kernel_xiaomi_msm8937/releases/download/v0.9-beta/kernel
https://github.com/yangyangnau/android_kernel_xiaomi_msm8937/releases/download/v0.9-beta/wlan.ko
 
Last edited:

yangyangnau

Senior Member
Sep 25, 2016
54
144
Hanzhong
touchscreen firmware issue:
Perhaps we can just ignore this issue. The touchscreen works fine.
dmesg from my kernel #39aa441. striped non opensorce bin form lib*.a files from the redmi 3 ft5x06 driver.
Code:
[    0.969584] input: ft5x06_720p as /devices/soc/78b7000.i2c/i2c-3/3-003e/input/input1
[    1.210325] i2c-msm-v2 78b7000.i2c: msm_bus_scale_register_client(mstr-id:86):0xd (ok)
[    1.210825] ft5x06_720p 3-003e: Device ID = 0x14
[    1.211455] ft5x06_720p 3-003e: report rate = 90Hz
[    1.213175] ft5x06_720p 3-003e: Firmware version = 8.0.0
[    1.213624] FT5X06-TP-TAG INFO:boardid_info_tp:S88537AA1:bo
[    1.213624] 
[    1.670057] ft5x06_720p 3-003e: Lockdown info: 34 35 32 31 00 A9 00 00
[    1.731395] FT5X06-TP-TAG ERROR:Error Board ID.
[    1.732698] FT5X06-TP-TAG ERROR:Error Board ID.
[    1.733998] FT5X06-TP-TAG ERROR:Error Board ID.
[    1.734068] [ TSP ] ist30xx_init()
dmesg from stock kernel MIUI V7.9.5.0.
Code:
[    0.970901] input: ft5x06_720p as /devices/soc/78b7000.i2c/i2c-3/3-003e/input/input1
[    1.210327] i2c-msm-v2 78b7000.i2c: msm_bus_scale_register_client(mstr-id:86):0xd (ok)
[    1.210827] ft5x06_720p 3-003e: Device ID = 0x14
[    1.211459] ft5x06_720p 3-003e: report rate = 90Hz
[    1.213186] ft5x06_720p 3-003e: Firmware version = 8.0.0
[    1.670059] ft5x06_720p 3-003e: Lockdown info: 34 35 32 31 00 A9 00 00
[    1.670127] ft5x06_720p 3-003e: has no androidboot.mode 
[    1.670136] ft5x06_720p 3-003e: upgrade
[    1.670144] FT5X06-TP-TAG DEBUG:[3148]********************Enter CTP Auto Upgrade********************
[    1.670144] 
[    1.731401] FT5X06-TP-TAG DEBUG:[1342]Vendor ID:0xF3, TP FW:0x08, IC TYPE:20
[    1.731409] FT5X06-TP-TAG DEBUG:[1370]OUFEI+BOE
[    1.731417] FT5X06-TP-TAG DEBUG:[1396]update firmware size:28883
[    1.731425] FT5X06-TP-TAG DEBUG:[1416][FTS] uc_tp_fm_ver = 8.
[    1.731425] 
[    1.731433] FT5X06-TP-TAG DEBUG:[1417][FTS] uc_host_fm_ver = 8.
[    1.731433] 
[    1.731516] [ TSP ] ist30xx_init()
[    1.731912] [ TSP ] ### IMAGIS probe(ver:2.3.0.0, protocol:B, addr:0x50) ###
[    1.732238] IST30XX 3-0050: irq gpio request failed
[    1.732262] [ TSP ] Error, ist30xx init driver
FT5X06-TP-TAG DEBUG:[1342]Vendor ID:0xF3, TP FW:0x08, IC TYPE:20
FT5X06-TP-TAG DEBUG:[1370]OUFEI+BOE
FT5X06-TP-TAG DEBUG:[1396]update firmware size:28883
 
Last edited:

yangyangnau

Senior Member
Sep 25, 2016
54
144
Hanzhong
external speaker PA BUG: fixed. #5d5fa78
dmesg from my kernel #39aa441.
Code:
[    3.179313] input: gpio-keys as /devices/soc/soc:gpio_keys/input/input2
[    3.179650] qcom,qpnp-rtc qpnp-rtc-ffffffc079767000: setting system clock to 1970-01-03 02:20:00 UTC (181200)
[    3.190542] qcom,qpnp-flash-led qpnp-flash-led-ffffffc079793400: Unable to acquire pinctrl
[    3.195190] qcom,cc-debug-8952 1874000.qcom,cc-debug: Registered Debug Mux successfully
[    3.201419] msm8952-asoc-wcd c051000.sound: default codec configured
[    3.201790] msm8952_populate_dai_link_component_of_node: codec dai msm-stub-codec.1 failed
[    3.201867] msm8952_populate_dai_link_component_of_node: codec dai msm-stub-codec.1 failed
dmesg from stock kernel (MIUI V7.5.9.0)
Code:
[    3.277300] input: gpio-keys as /devices/soc/soc:gpio_keys/input/input4
[    3.277650] qcom,qpnp-rtc qpnp-rtc-ffffffc079776c00: setting system clock to 1970-01-03 02:09:35 UTC (180575)
[    3.288617] qcom,qpnp-flash-led qpnp-flash-led-ffffffc0797aac00: Unable to acquire pinctrl
[    3.293341] qcom,cc-debug-8952 1874000.qcom,cc-debug: Registered Debug Mux successfully
[    3.297473] msm8952_asoc_machine_probe: [hjf] request spk_pa_gpio is 124!
[    3.297490] msm8952_asoc_machine_probe: [hjf] request headset_gpio is 129!
[    3.299584] msm8952-asoc-wcd c051000.sound: default codec configured
[    3.299947] msm8952_populate_dai_link_component_of_node: codec dai msm-stub-codec.1 failed
[    3.300053] msm8952_populate_dai_link_component_of_node: codec dai msm-stub-codec.1 failed
spk_pa_gpio is 124 = 0x7c
headset_gpio is 129 = 0x7f
Just debug info? Or Xiaomi did some nasty work in function msm8952_asoc_machine_probe.
Code:
grep msm8952_asoc_machine_probe sound/ -ir
sound/soc/msm/msm8952-slimbus.c:static int msm8952_asoc_machine_probe(struct platform_device *pdev)
sound/soc/msm/msm8952-slimbus.c:        .probe = msm8952_asoc_machine_probe,
sound/soc/msm/msm8952.c:static int msm8952_asoc_machine_probe(struct platform_device *pdev)
sound/soc/msm/msm8952.c:        .probe = msm8952_asoc_machine_probe,
Redmi3s main dts file is arch/arm64/boot/dts/qcom/redmi3s-msm8937-38.dts.
Code:
 9604                 sound {
 9605                         status = "okay";
 9607                         qcom,model = "msm8952-sku1-snd-card";
 9610                         qcom,msm-ext-pa = "primary";
 9615                         ext-spk-amp-gpio = <0x97 0x7c 0x0>;
 9616                         headset-gpio = <0x97 0x81 0x0>;
ext-spk-amp-gpio = <0x97 0x7c 0x0>
headset-gpio = <0x97 0x81 0x0>
 
Last edited:

ercea

Senior Member
Dec 12, 2012
153
76
Cádiz
Amazing work bro, I'm following the thread to see your progress :)

I always want to try make custom ROMs (I'm developer but no experience about ROM development) but I don't know where to start xD.

Regards!
 
  • Like
Reactions: ZETROzky

yangyangnau

Senior Member
Sep 25, 2016
54
144
Hanzhong
Hi, why did you choose "LA.UM.5.3-01110-8x37.0" ?
i did the same as you, but i'm getting a Too many open files when I boot CM :(
If you have any ideas : https://github.com/supercairos/android_kernel_xiaomi_msm8937

About LA.UM.5.3-01110-8x37.0:
I just try to find a QAEP release which match the release date of Redmi 3S as much as possible. Nothing more.

About "too many open files":
My repo #deccaf5 (9.21.2016) can boot cm, but it need force reboot several times.
After that commit, the error same as yours. Sorry for my bad.
https://github.com/yangyangnau/android_device_xiaomi_land

A few of days ago, I'm try using my kernel and proprietary-files.txt with the repo below.
https://github.com/Silentlys/android_device_xiaomi_land
Clean the fake kernel header tree. Clean the malware (2345 stuff). Clean TWRP stuffs.
No luck. Just get black screen. Can't remember the error messages. Could be "too many open files".
I guess the proprietary-files.txt is a problem.

Please post CM issue at my thread below.
http://forum.xda-developers.com/redmi-3/development/port-cm-13-0-xiaomi-redmi3s-land-t3469996
 
Last edited:

yangyangnau

Senior Member
Sep 25, 2016
54
144
Hanzhong
QAEP for msm8937

Code:
lynx -dump -width 120 https://wiki.codeaurora.org/xwiki/bin/QAEP/release | grep msm8937

June 23, 2016 LA.UM.5.3.1-01010-89xx.0 msm8937_64 LA.UM.5.3.1-01010-89xx.0.xml 06.00.01
June 10, 2016 LA.UM.5.3-04410-89xx.0 msm8937_64 LA.UM.5.3-04410-89xx.0.xml 06.00.01
June 09, 2016 LA.UM.5.3.1-00610-89xx.0 msm8937_64 LA.UM.5.3.1-00610-89xx.0.xml 06.00.01
June 07, 2016 LA.UM.5.1-04210-8x37.0 msm8937_64 LA.UM.5.1-04210-8x37.0.xml 06.00.01
June 06, 2016 LA.UM.5.3.1-00610-89xx.0 msm8937_64 LA.UM.5.3.1-00610-89xx.0.xml 06.00.01
May 31, 2016 LA.UM.5.3-03710-89xx.0 msm8937_64 LA.UM.5.3-03710-89xx.0.xml 06.00.01
May 24, 2016 LA.UM.5.3.1-00310-89xx.0 msm8937_64 LA.UM.5.3.1-00310-89xx.0.xml 06.00.01
May 15, 2016 LA.UM.5.1-04010-8x37.0 msm8937_64 LA.UM.5.1-04010-8x37.0.xml 06.00.01
April 29, 2016 LA.UM.5.1-03810-8x37.0 msm8937_64 LA.UM.5.1-03810-8x37.0.xml 06.00.01
April 14, 2016 LA.UM.5.1-03610-8x37.0 msm8937_64 LA.UM.5.1-03610-8x37.0.xml 06.00.01
March 30, 2016 LA.UM.5.1-03210-8x37.0 msm8937_32 LA.UM.5.1-03210-8x37.0.xml 06.00.01
March 22, 2016 LA.UM.5.3-01410-8x37.0 msm8937_64 LA.UM.5.3-01410-8x37.0.xml 06.00.01
March 15, 2016 LA.UM.5.1-02910-8x37.0 msm8937_64 LA.UM.5.1-02910-8x37.0.xml 06.00.01
February 28, 2016 LA.UM.5.1-02410-8x37.0 msm8937_64 LA.UM.5.1-02410-8x37.0.xml 06.00.01
February 25, 2016 LA.UM.5.3-01110-8x37.0 msm8937_64 LA.UM.5.3-01110-8x37.0.xml 06.00.01
February 12, 2016 LA.UM.5.1-02110-8x37.0 msm8937_64 LA.UM.5.1-02110-8x37.0.xml 06.00.01
February 12, 2016 LA.UM.5.3-00610-8x37.0 msm8937_64 LA.UM.5.3-00610-8x37.0.xml 06.00.01
January 29, 2016 LA.UM.5.1-01910-8x37.0 msm8937_64 LA.UM.5.1-01910-8x37.0.xml 06.00.01
January 21, 2016 LA.UM.5.1-01610-8x37.0 msm8937_64 LA.UM.5.1-01610-8x37.0.xml 06.00.01
January 11, 2016 LA.UM.5.1-01310-8x37.0 msm8937_64 LA.UM.5.1-01310-8x37.0.xml 06.00.01
December 21, 2015 LA.UM.5.1-03700-8x37.0 msm8937_64 LA.UM.5.1-03700-8x37.0.xml 06.00.00
December 04, 2015 LA.UM.5.1-01400-8x37.0 msm8937_64 LA.UM.5.1-01400-8x37.0.xml 06.00.00
November 21, 2015 LA.UM.5.1-01010-8x37.0 msm8937_64 LA.UM.5.1-01010-8x37.0.xml 06.00.00
 
  • Like
Reactions: VanoSM and Aronuser

yangyangnau

Senior Member
Sep 25, 2016
54
144
Hanzhong
fingerprint:
stock kernel
Code:
ls -l /dev/goodix_fp /dev/input/event5
crw-r--r-- system   system   225,   0 /dev/goodix_fp
crw-rw---- root     input     13,  69 /dev/input/event5

The above dev nodes are missing with my kernel #5d5fa78.
Code:
cat /sys/devices/soc/soc:fpc1020/uevent                                                                    
OF_NAME=fpc1020
OF_FULLNAME=/soc/fpc1020
OF_COMPATIBLE_0=soc:fpc1020
OF_COMPATIBLE_N=1
MODALIAS=of:Nfpc1020T<NULL>Csoc:fpc1020
Code:
cat /sys/devices/soc/soc:goodix_fp/uevent                                                                  
OF_NAME=goodix_fp
OF_FULLNAME=/soc/goodix_fp
OF_COMPATIBLE_0=goodix,fingerprint
OF_COMPATIBLE_N=1
MODALIAS=of:Ngoodix_fpT<NULL>Cgoodix,fingerprint
 

yangyangnau

Senior Member
Sep 25, 2016
54
144
Hanzhong
fingerprint:
logcat from CM-13 with my kernel #5d5fa78.
01-12 02:44:46.021 456 456 E QSEECOMAPI: Error::Cannot open the file /system/etc/firmware/goodixfp.mdt errno = 2
01-12 02:44:46.021 456 456 E QSEECOMAPI: Error::Loading image failed with ret = -1

Code:
ls -l /firmware/image/goodixfp*                                                                            
-r--r--r-- 1 root root    276 2016-08-16 21:18 /firmware/image/goodixfp.b00
-r--r--r-- 1 root root   6664 2016-08-16 21:18 /firmware/image/goodixfp.b01
-r--r--r-- 1 root root 397050 2016-08-16 21:18 /firmware/image/goodixfp.b02
-r--r--r-- 1 root root 397604 2016-08-16 21:18 /firmware/image/goodixfp.b03
-r--r--r-- 1 root root    392 2016-08-16 21:18 /firmware/image/goodixfp.b04
-r--r--r-- 1 root root     88 2016-08-16 21:18 /firmware/image/goodixfp.b05
-r--r--r-- 1 root root    832 2016-08-16 21:18 /firmware/image/goodixfp.b06
-r--r--r-- 1 root root   6940 2016-08-16 21:18 /firmware/image/goodixfp.mdt
 

ZETROzky

Senior Member
Jul 30, 2015
335
94
20
Mannheim
Moto Z Play
Apple iPhone 12
Hopefully someone can build CyanogenMod 14 unofficial based on this kernel...

Edit: So I heard the dev is working on a cm13 bootable... If this is true, please work on cm14 as well!;) Thank you for your work.
 
Last edited:

ZETROzky

Senior Member
Jul 30, 2015
335
94
20
Mannheim
Moto Z Play
Apple iPhone 12
Keep up the good work dev :)
You seem to be the only hope as Xiaomi is too lazy to release kernel sources.
Not lazy, rather caught up on releasing phones... Redmi 3S Plus, Mi 5s, Mi 5c... I just wish they'd stop and focus on the main thing here.

Speaking of which, almost everyone in India is buying a Lenovo lol... If I had the chance I'd kill all these weirdo Chinese companies because of their stupid skins...
 
  • Like
Reactions: Akash_raj

d3s4nn

Senior Member
Jul 24, 2013
119
23
Bramsche
I just wanted to say, that your work is very very impressive and we can be very thankful for guys like you, who make things possible on their own!!!


THANKS



My GF and I staying tuned...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 36
    Hello everyone,
    Xiaomi hasn't released Redmi 3s land kernel to us. It's SHAME.(2016.09.28)

    I want to run normal GNU/Linux OS on Xiaomi Redmi 3S.
    So I am porting Linux kernel base on QAEP kernel and Redmi3 drivers.

    My porting kernel version is 3.18.20.
    https://github.com/yangyangnau/android_kernel_xiaomi_msm8937

    BASE ON:
    * QAEP for msm8937:
    Code:
    lynx -dump -width 120 https://wiki.codeaurora.org/xwiki/bin/QAEP/release | grep msm8937
    06.23.2016 LA.UM.5.3.1-01010-89xx.0 msm8937_64 LA.UM.5.3.1-01010-89xx.0.xml 06.00.01
    06.10.2016 LA.UM.5.3-04410-89xx.0 msm8937_64 LA.UM.5.3-04410-89xx.0.xml 06.00.01
    06.09.2016 LA.UM.5.3.1-00610-89xx.0 msm8937_64 LA.UM.5.3.1-00610-89xx.0.xml 06.00.01
    06.07.2016 LA.UM.5.1-04210-8x37.0 msm8937_64 LA.UM.5.1-04210-8x37.0.xml 06.00.01
    06.06.2016 LA.UM.5.3.1-00610-89xx.0 msm8937_64 LA.UM.5.3.1-00610-89xx.0.xml 06.00.01
    05.31.2016 LA.UM.5.3-03710-89xx.0 msm8937_64 LA.UM.5.3-03710-89xx.0.xml 06.00.01
    05.24.2016 LA.UM.5.3.1-00310-89xx.0 msm8937_64 LA.UM.5.3.1-00310-89xx.0.xml 06.00.01
    05.15.2016 LA.UM.5.1-04010-8x37.0 msm8937_64 LA.UM.5.1-04010-8x37.0.xml 06.00.01
    04.29.2016 LA.UM.5.1-03810-8x37.0 msm8937_64 LA.UM.5.1-03810-8x37.0.xml 06.00.01
    04.14.2016 LA.UM.5.1-03610-8x37.0 msm8937_64 LA.UM.5.1-03610-8x37.0.xml 06.00.01
    03.30.2016 LA.UM.5.1-03210-8x37.0 msm8937_32 LA.UM.5.1-03210-8x37.0.xml 06.00.01
    03.22.2016 LA.UM.5.3-01410-8x37.0 msm8937_64 LA.UM.5.3-01410-8x37.0.xml 06.00.01
    03.15.2016 LA.UM.5.1-02910-8x37.0 msm8937_64 LA.UM.5.1-02910-8x37.0.xml 06.00.01
    02.28.2016 LA.UM.5.1-02410-8x37.0 msm8937_64 LA.UM.5.1-02410-8x37.0.xml 06.00.01
    02.25.2016 LA.UM.5.3-01110-8x37.0 msm8937_64 LA.UM.5.3-01110-8x37.0.xml 06.00.01
    02.12.2016 LA.UM.5.1-02110-8x37.0 msm8937_64 LA.UM.5.1-02110-8x37.0.xml 06.00.01
    02.12.2016 LA.UM.5.3-00610-8x37.0 msm8937_64 LA.UM.5.3-00610-8x37.0.xml 06.00.01
    01.29.2016 LA.UM.5.1-01910-8x37.0 msm8937_64 LA.UM.5.1-01910-8x37.0.xml 06.00.01
    01.21.2016 LA.UM.5.1-01610-8x37.0 msm8937_64 LA.UM.5.1-01610-8x37.0.xml 06.00.01
    01.11.2016 LA.UM.5.1-01310-8x37.0 msm8937_64 LA.UM.5.1-01310-8x37.0.xml 06.00.01
    12.21.2015 LA.UM.5.1-03700-8x37.0 msm8937_64 LA.UM.5.1-03700-8x37.0.xml 06.00.00
    12.04.2015 LA.UM.5.1-01400-8x37.0 msm8937_64 LA.UM.5.1-01400-8x37.0.xml 06.00.00
    11.21.2015 LA.UM.5.1-01010-8x37.0 msm8937_64 LA.UM.5.1-01010-8x37.0.xml 06.00.00
    * QAEP kernel for msm8937:
    Code:
    mkdir -p android-source/qaep
    cd android-source/qaep
    repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.UM.5.3-01110-8x37.0.xml --repo-url=git://codeaurora.org/tools/repo.git
    grep kernel/msm-3.18 .repo/manifest.xml
    <project name="kernel/msm-3.18" path="kernel" revision="985da67f18431ac30e2c2d46b68067b71ebf8688" upstream="LA.UM.5.3_rb1.1"/>
    <project name="kernel/msm-3.18" path="kernel" revision="a199af79618518255f6eb6656e1ba6fcb6b1e7ff" upstream="LA.UM.5.1_rb1.4"/>
    git://codeaurora.org/kernel/msm-3.18 branchs:
    LA.UM.5.1_rb1.3
    LA.UM.5.1_rb1.4
    LA.UM.5.3.1_rb1
    LA.UM.5.3_rb1.1
    06.23.2016 LA.UM.5.3.1-01010-89xx.0 msm-3.18 df25fdbbe93e8f1c16268faed04a065bf1cd7d89 LA.UM.5.3.1_rb1
    06.10.2016 LA.UM.5.3-04410-89xx.0 msm-3.18 8235259992248adedca456006c027a938cc0f9d3 LA.UM.5.3_rb1.1
    06.09.2016 LA.UM.5.3.1-00610-89xx.0 msm-3.18 235372e1f95010f66f4d353ac15402a4c314607f LA.UM.5.3.1_rb1
    06.07.2016 LA.UM.5.1-04210-8x37.0 msm-3.18 a199af79618518255f6eb6656e1ba6fcb6b1e7ff LA.UM.5.1_rb1.4
    06.06.2016 LA.UM.5.3.1-00610-89xx.0 msm-3.18 235372e1f95010f66f4d353ac15402a4c314607f LA.UM.5.3.1_rb1
    05.31.2016 LA.UM.5.3-03710-89xx.0 msm-3.18 e4bd98b39aee92bd6f838c4c14189de51a16a258 LA.UM.5.3_rb1.1
    05.24.2016 LA.UM.5.3.1-00310-89xx.0 msm-3.18 289277d0980d8075c20244d8aa8cfde3b4b57737 LA.UM.5.3.1_rb1
    05.15.2016 LA.UM.5.1-04010-8x37.0 msm-3.18 67ea3027ee587c3cddc0c51024257816c0972312 LA.UM.5.1_rb1.4
    04.29.2016 LA.UM.5.1-03810-8x37.0 msm-3.18 a9e54d65f9005af4075c24063ad2558260254dc5 LA.UM.5.1_rb1.4
    04.14.2016 LA.UM.5.1-03610-8x37.0 msm-3.18 5b0c3e43afaa6639f6d41a6379e713382b220c5e LA.UM.5.1_rb1.4
    03.30.2016 LA.UM.5.1-03210-8x37.0 msm-3.18 5f11194935c418e32e5308ae397227afc5797fed LA.UM.5.1_rb1.4
    03.22.2016 LA.UM.5.3-01410-8x37.0 msm-3.18 261ac07c6a00d352d42fe412595beaa70d55c7ab LA.UM.5.3_rb1.1
    03.15.2016 LA.UM.5.1-02910-8x37.0 msm-3.18 38a946316417e48534169a0e8174286f52d78685 LA.UM.5.1_rb1.4
    02.28.2016 LA.UM.5.1-02410-8x37.0 msm-3.18 7d15cd5c720f21b63f269539edbec896d7e233f6 LA.UM.5.1_rb1.4
    02.25.2016 LA.UM.5.3-01110-8x37.0 msm-3.18 985da67f18431ac30e2c2d46b68067b71ebf8688 LA.UM.5.3_rb1.1
    02.12.2016 LA.UM.5.1-02110-8x37.0 msm-3.18 488a89d43651383c957f75a628534a7ad5d7eea0 LA.UM.5.1_rb1.4
    02.12.2016 LA.UM.5.3-00610-8x37.0 msm-3.18 eef5da9a9bbc138fc7ee42f804b957a7758f8a78 LA.UM.5.3_rb1.1
    01.29.2016 LA.UM.5.1-01910-8x37.0 msm-3.18 fb35f3c795229950ddf63280800b2390eafcb135 LA.UM.5.1_rb1.4
    01.21.2016 LA.UM.5.1-01610-8x37.0 msm-3.18 1aa11b594d7ac1dfab73a86119998b4c4e80b506 LA.UM.5.1_rb1.4
    01.11.2016 LA.UM.5.1-01310-8x37.0 msm-3.18 39d6e2eee46004ada9e72eb273b028986651d6dc LA.UM.5.1_rb1.4
    12.21.2015 LA.UM.5.1-03700-8x37.0 msm-3.18 4e90549c8f8d5feb88e92c24dde4f15e1f94a616 rel/msm-3.18
    12.04.2015 LA.UM.5.1-01400-8x37.0 msm-3.18 e70ad0cd5efdd9dc91a77dcdac31d6132e1315c1 rel/msm-3.18
    11.21.2015 LA.UM.5.1-01010-8x37.0 msm-3.18 122fe9b172bd14c1c5dffa45fc4389da0c187461 LA.UM.5.1_rb1.3
    * redmi 3 kernel:
    https://github.com/MiCode/Xiaomi_Kernel_OpenSource branch ido-l-oss

    STATUS REPORT:
    Tested with my kernel #5d5fa78 + stock ROM MIUI V7.5.9.0. Stable enough.
    boot: OK
    panel: OK
    vol+ vol- power key: OK
    touchscreen: OK
    eMMC: OK
    mic: OK
    phone: OK
    external speaker: OK
    sensors: OK
    vibrator: OK
    cameras: could be OK (QR code scan work, but can't get a photo)
    fingerprint: need more work
    wifi: OK
    dial: OK

    PREBUILT KERNEL:
    https://github.com/yangyangnau/android_kernel_xiaomi_msm8937/releases/download/v0.9-beta/kernel
    https://github.com/yangyangnau/android_kernel_xiaomi_msm8937/releases/download/v0.9-beta/wlan.ko
    11
    touchscreen firmware issue:
    Perhaps we can just ignore this issue. The touchscreen works fine.
    dmesg from my kernel #39aa441. striped non opensorce bin form lib*.a files from the redmi 3 ft5x06 driver.
    Code:
    [    0.969584] input: ft5x06_720p as /devices/soc/78b7000.i2c/i2c-3/3-003e/input/input1
    [    1.210325] i2c-msm-v2 78b7000.i2c: msm_bus_scale_register_client(mstr-id:86):0xd (ok)
    [    1.210825] ft5x06_720p 3-003e: Device ID = 0x14
    [    1.211455] ft5x06_720p 3-003e: report rate = 90Hz
    [    1.213175] ft5x06_720p 3-003e: Firmware version = 8.0.0
    [    1.213624] FT5X06-TP-TAG INFO:boardid_info_tp:S88537AA1:bo
    [    1.213624] 
    [    1.670057] ft5x06_720p 3-003e: Lockdown info: 34 35 32 31 00 A9 00 00
    [    1.731395] FT5X06-TP-TAG ERROR:Error Board ID.
    [    1.732698] FT5X06-TP-TAG ERROR:Error Board ID.
    [    1.733998] FT5X06-TP-TAG ERROR:Error Board ID.
    [    1.734068] [ TSP ] ist30xx_init()
    dmesg from stock kernel MIUI V7.9.5.0.
    Code:
    [    0.970901] input: ft5x06_720p as /devices/soc/78b7000.i2c/i2c-3/3-003e/input/input1
    [    1.210327] i2c-msm-v2 78b7000.i2c: msm_bus_scale_register_client(mstr-id:86):0xd (ok)
    [    1.210827] ft5x06_720p 3-003e: Device ID = 0x14
    [    1.211459] ft5x06_720p 3-003e: report rate = 90Hz
    [    1.213186] ft5x06_720p 3-003e: Firmware version = 8.0.0
    [    1.670059] ft5x06_720p 3-003e: Lockdown info: 34 35 32 31 00 A9 00 00
    [    1.670127] ft5x06_720p 3-003e: has no androidboot.mode 
    [    1.670136] ft5x06_720p 3-003e: upgrade
    [    1.670144] FT5X06-TP-TAG DEBUG:[3148]********************Enter CTP Auto Upgrade********************
    [    1.670144] 
    [    1.731401] FT5X06-TP-TAG DEBUG:[1342]Vendor ID:0xF3, TP FW:0x08, IC TYPE:20
    [    1.731409] FT5X06-TP-TAG DEBUG:[1370]OUFEI+BOE
    [    1.731417] FT5X06-TP-TAG DEBUG:[1396]update firmware size:28883
    [    1.731425] FT5X06-TP-TAG DEBUG:[1416][FTS] uc_tp_fm_ver = 8.
    [    1.731425] 
    [    1.731433] FT5X06-TP-TAG DEBUG:[1417][FTS] uc_host_fm_ver = 8.
    [    1.731433] 
    [    1.731516] [ TSP ] ist30xx_init()
    [    1.731912] [ TSP ] ### IMAGIS probe(ver:2.3.0.0, protocol:B, addr:0x50) ###
    [    1.732238] IST30XX 3-0050: irq gpio request failed
    [    1.732262] [ TSP ] Error, ist30xx init driver
    FT5X06-TP-TAG DEBUG:[1342]Vendor ID:0xF3, TP FW:0x08, IC TYPE:20
    FT5X06-TP-TAG DEBUG:[1370]OUFEI+BOE
    FT5X06-TP-TAG DEBUG:[1396]update firmware size:28883
    9
    What's with the other guy already building CyanogenMod builds?
    I'm building CM-13 now with @zwliew's device tree.
    https://github.com/zwliew/android_device_xiaomi_land/issues/1
    8
    external speaker PA BUG: fixed. #5d5fa78
    dmesg from my kernel #39aa441.
    Code:
    [    3.179313] input: gpio-keys as /devices/soc/soc:gpio_keys/input/input2
    [    3.179650] qcom,qpnp-rtc qpnp-rtc-ffffffc079767000: setting system clock to 1970-01-03 02:20:00 UTC (181200)
    [    3.190542] qcom,qpnp-flash-led qpnp-flash-led-ffffffc079793400: Unable to acquire pinctrl
    [    3.195190] qcom,cc-debug-8952 1874000.qcom,cc-debug: Registered Debug Mux successfully
    [    3.201419] msm8952-asoc-wcd c051000.sound: default codec configured
    [    3.201790] msm8952_populate_dai_link_component_of_node: codec dai msm-stub-codec.1 failed
    [    3.201867] msm8952_populate_dai_link_component_of_node: codec dai msm-stub-codec.1 failed
    dmesg from stock kernel (MIUI V7.5.9.0)
    Code:
    [    3.277300] input: gpio-keys as /devices/soc/soc:gpio_keys/input/input4
    [    3.277650] qcom,qpnp-rtc qpnp-rtc-ffffffc079776c00: setting system clock to 1970-01-03 02:09:35 UTC (180575)
    [    3.288617] qcom,qpnp-flash-led qpnp-flash-led-ffffffc0797aac00: Unable to acquire pinctrl
    [    3.293341] qcom,cc-debug-8952 1874000.qcom,cc-debug: Registered Debug Mux successfully
    [    3.297473] msm8952_asoc_machine_probe: [hjf] request spk_pa_gpio is 124!
    [    3.297490] msm8952_asoc_machine_probe: [hjf] request headset_gpio is 129!
    [    3.299584] msm8952-asoc-wcd c051000.sound: default codec configured
    [    3.299947] msm8952_populate_dai_link_component_of_node: codec dai msm-stub-codec.1 failed
    [    3.300053] msm8952_populate_dai_link_component_of_node: codec dai msm-stub-codec.1 failed
    spk_pa_gpio is 124 = 0x7c
    headset_gpio is 129 = 0x7f
    Just debug info? Or Xiaomi did some nasty work in function msm8952_asoc_machine_probe.
    Code:
    grep msm8952_asoc_machine_probe sound/ -ir
    sound/soc/msm/msm8952-slimbus.c:static int msm8952_asoc_machine_probe(struct platform_device *pdev)
    sound/soc/msm/msm8952-slimbus.c:        .probe = msm8952_asoc_machine_probe,
    sound/soc/msm/msm8952.c:static int msm8952_asoc_machine_probe(struct platform_device *pdev)
    sound/soc/msm/msm8952.c:        .probe = msm8952_asoc_machine_probe,
    Redmi3s main dts file is arch/arm64/boot/dts/qcom/redmi3s-msm8937-38.dts.
    Code:
     9604                 sound {
     9605                         status = "okay";
     9607                         qcom,model = "msm8952-sku1-snd-card";
     9610                         qcom,msm-ext-pa = "primary";
     9615                         ext-spk-amp-gpio = <0x97 0x7c 0x0>;
     9616                         headset-gpio = <0x97 0x81 0x0>;
    ext-spk-amp-gpio = <0x97 0x7c 0x0>
    headset-gpio = <0x97 0x81 0x0>
    6
    For cameras: @assusdan Suslov Danila is working on it.
    https://github.com/yangyangnau/android_kernel_xiaomi_msm8937/issues/2
    https://github.com/assusdan/android_kernel_xiaomi_msm8937
    75% of camera works in Footej. Preview - work. Front can take photos (not sure about saving them). Rear can't take photos.
    Also we can take photo in Footej when we are using low resolution (2.1 MP)
    While testers test camera, successfully start builded cm13!