yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ur0:
This is proving a bit hard to reverse engineer. As far as I can tell, the stock kernel attempts to pull the amp's reset GPIO.

[ 6.111634] max98927 reset gpio requse name:max98927L------
[ 6.111645] reset_gpio_l:86------

Looking at the hex-dump, this is where it probably happens.

0xffffffc0013a98e2 7069 6f20 7265 7175 7365 2020 6e61 6d65 pio requse name
0xffffffc0013a98f2 3a25 732d 2d2d 2d2d 2d0a 006d 6178 696d :%s------..maxim
0xffffffc0013a9902 2c39 3839 3237 2d72 6573 6574 2d67 7069 ,98927-reset-gpi
0xffffffc0013a9912 6f00 0136 7265 7365 745f 6770 696f 5f6c o..6reset_gpio_l
0xffffffc0013a9922 3a25 642d 2d2d 2d2d 2d0a 006d 6178 5f39 :%d------..max_9

Since the module is built into the kernel, it's much harder to find out the exact function where it happens. Also note that I can't dump my phone's memory either, since it requires kernel modules to be signed.

IDA completely misses all string XREFS, so that's a dead end too. Currently, our best shot is to analyze why the i2c communication failed.

[ 9.083528] max98927 i2c connection error ret_l: -107 ret_r:-1

The error here is an errno.

#define ENOTCONN 107 /* Transport endpoint is not connected */
#define EPERM 1 /* Operation not permitted */

My guess is that (1) the amp needs to be reset twice (why?), or (2) the stock kernel simply ignores the error.

I'm gonna try to either reverse this driver or try to figure out why did regamp_read error out.

Edit: Got IDA to work. We might get somewhere with this. [IMG="PogChamp"]https://i.imgur.com/8YxI2wJ.png[/IMG]

Edit 2: I've narrowed it down a bit further. Apparently [MENTION=4649424]cute_prince[/MENTION] 's kernel was built with config MESSAGE_LOGLEVEL_DEFAULT == 4, which was hiding the pr_debug messages. I'm rebuilding it with MESSAGE_LOGLEVEL_DEFAULT == 7 which will be helpful in nailing it down. As of now, I'm sure that the issue is in this function.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
[MENTION=4693838]ur0[/MENTION]

You are right on point :) I have found some additional information to share. As you have already found ret_l and ret_r are return codes that check whether the i2c connection for respective channels are ok or not. The problem with ret_r can be solved by just initializing it with 0. This might sound strange but the fact is that I took this driver from LeEco Le Pro 3 where max98927 amp was configured to work in stereo mode (because it had dual speakers) so leeco needs to check whether both left AND RIGHT channels are connected or not. In case of A1 max98927 is configured to work in mono mode (by utilising only the left channel). So checking for ret_r makes no sense for A1 and must be removed from code (or set ret_r to 0 so it always returns success). The actual problem lies in ret_l though, where its returning -107 instead of expected 0 value.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ur0:
[MENTION=793709]cuteprince[/MENTION]

The -107 implies that the transport endpoint isn't connected, which means that something went wrong when the probe was started. I'm trying to figure out what happens after that. The only problem is that I'm unable to get my kernel to boot after changing the dmesg verbosity (it only shows a black screen). This is happening since I updated in the morning (which changed the slot probably).
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
I replaced pr_warnings and pr_debug with pr_info for testing.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
[MENTION=4693838]ur0[/MENTION]

That reset_gpio_l from the stock kernel is another mystery. max98927 is defined as a struct in the driver's header file max98927.h. If you take a look at it you see that there is no property named reset_gpio_l in the struct. Instead you will find only reset_gpio property. I think Xiaomi has messed with driver source by adding additional properties and code.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ur0:
[MENTION=4649424]cute_prince[/MENTION] after flashing the December patches, I'm unable to boot any kernel from fastboot (except recovery). I've made a couple of changes to the driver which removed the 'maxim,max98927L' from the ID table, but I still don't have any way to test the changes. Also, I think that this dmesg warning is the key.

[ 9.097167] i2c-msm-v2 78b6000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x0d1300c8 OPER:0x00000010

The slave address matches the one in the device tree, which means that the amp stopped responding to the i2c messages. If you're able to, try to find out the line after which this happens (it is definitely max98927_probe) by adding print statements (I would try doing that but my phone isn't booting any custom kernel at all).

Also, reset_gpio_l isn't saved in the struct, it is local to the function.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Dude, you are awsome mann :) That i2c error message indeed is the key. I see the name of driver in our max98927.c is "max98927" and in the leeco's dts file it is being referenced by "max98927@3a". Whereas in A1 dts file it is being referenced by "spkamp@3a". Maybe changing "spkamp@3a" to "max98927@3a" will solve the problem :). What do you think ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ur0:
I don't think that renaming the dt entry will have any effect.

Actually, I found a bit of code Xiaomi inserted before the reset pin is written to. I'm still trying to figure out what it does. So far, it's the only thing which is stopping the amp from working.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
[MENTION=4693838]ur0[/MENTION]

Upload your stock kernel and kallsyms.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ur0:
So I've fixed the i2c issue, but there's another problem with the codec device not working (@cute_prince is working on it).
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ur0:
Small update: I've narrowed this down a bit.

The codec device isn't being powered on. In Linux, audio devices' power is controlled by DAPM, which requires pre-defined routes to know when to keep a device on. These routes are specified in the kernel by the machine. Since RN4 doesn't have an amp, the kernel sources don't have any sensible routes for it.

Tomorrow (hopefully), I'll try to RE the stock kernel's audio_map and figure out the labels so that we can fix this.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Yes. We need to add CPU <--> BE DAI links for our codec in sound/soc/msm/msm8952.c. Then DAPM needs to be setup. Probably we need to add new routes in sound/soc/msm/qdspv6/msm-pcm-routing-v2.c too.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] akhil dadhania:
*#*#6484#*#*
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] gregbradley:
Thread cleaned

Development thread sort of gives it away. Please only post development related posts.

There is no need to say thanks, or post that you clicked thanks

There is no need to ask for ETAs

There is no need to ask for current status, that's in the OP

There is no need to reply to these kind of posts

There is no need to argue in a public forum.

Greg
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Eugene729:
This is probably a stupid question. Is it possible to get the double tab to wake phone feature with this custom kernel? Sorry.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ariefabuzaky:
Not because this kernel is under construction, feel free to read
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sachin273:
that question is not stupid at all :D i am missing it too. the kernel is under development for sure but u can always ask if things are possible;)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ur0:
I've managed to fix audio. I'll be sending the pull request on Monday.

I guess the camera's the next challenge.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sarfaraz1989:
Devs,

appreciate all your hardwork! can you please update the op with the the information on what is not working or what you are currently working on.

Request you to do this in your spare time.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Konstantinosj77:
Any news regarding this PR? :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ur0:
Ahh.. I'd been dreading this. While my initial patches worked, something consistently went awry within a few minutes after boot, killing the audio. I've been meaning to get to it since forever, and I'll probably get it done soon after the holiday season (if Xiaomi still doesn't release the kernel sources).
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] FrenzyR:
[MENTION=4649424]cute_prince[/MENTION] [MENTION=4693838]ur0[/MENTION]

Mido kernel source updated

https://github.com/MiCode/Xiaomi_Kernel_OpenSource/commits/mido-m-oss
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] anumpd:
MiA1 , I want miui9, can u help.?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Hellrazoraj:
Stop asking wrong question in the wrong thread..Miui 9 won't be coming on Mi A1 till the kernel sources are out. If any developer wants to port it they would buddy
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] amar2cool99:
Is development stopped?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] zeyaan:
Hope this continues as I don't see Xiaomi interested in the release of kernel sources anytime soon. Hope atleast we have a working and fully functional kernel tree from where the development could kick start.

What a shame a masterclass value for money phone is not supported by the manufacturer itself.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Konstantinosj77:
Are you still on this? I managed to decompile dtb from latest fastboot image (7.12.29 - Android O)

Also extracted stock config.

BTW it would be better if we start with clean 3.18 tree and port the needed drivers there instead of hacking mido kernel

Forked an upstreamed version of 3.18 here https://github.com/kj77/msm-3.18

Will push both dts and config tonight

EDIT:

DTS - https://gist.github.com/kj77/f7c46a04daac45b802268fcc13272eaa

Config - https://github.com/kj77/msm-3.18/blob/tissot_7.12.29/arch/arm64/configs/tissot_defconfig
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] zeyaan:
Looking forward to this development ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] saski4711:
Are the chances that bad that xiaomi will actually release their kernel sources for this device?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] methuselah:
Xiaomi is known to never follow GPL, never release the sources on time. The thing is this device never released in America ... Else we would have sources long ago.... This is a painful truth of Chinese phones. The same goes with honor 5x. except one plus, all are on same page always. Huawei trying to show they are developer friendly but still there are lot of issues with the stuff they provide.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] theandroidguy:
more than 3 months and A1 sources are still not released, itz a great device but lack of sources prevents many tech enthusiastics from buying it.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] zeyaan:
RIP Mi A1 Development.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] saski4711:
just give it a couple of weeks. I'm sure they'll release the source after they weed out the heap of bugs in their last oreo release...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cyang812:
Chinese spring festival is coming soon. maybe developer don't have a ticket to home, so they can't working hard
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] DualBandWiFi:
This thing is being sold locally in Uruguay, we don't count as America? lol
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] methuselah:
well after after america i think only EU has rules that force companies to follow GPL, any other country don't have rules regarding same. So its useless then. This phone then is on the mercy of LineageOs developers and other developers. But is it worth their time?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ivomin:
Bulgaria is part of the EU and the phone is officially sold by xiaomi here... as long as google or any other company or court don't make them forcefully release it I don't think we will have it. On some places in the phone there are traces of the ruling political party there... so I'm really doubtfull of Xiaomi release kernel sources on their own without foreign pressure.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ProchyGaming:
In Slovakia there are multiple shops that sell Mi A1 (we even have an official MiStore), but guys why dont we make a lawsuit? Isnt this against the law?

---------- Post added at 03:08 PM ---------- Previous post was at 03:08 PM ----------

In Slovakia there are multiple shops that sell Mi A1 (we even have an official MiStore), but guys why don't we make a lawsuit? Isn't this against the law?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] saski4711:
Apparently the sources will be released next week as stated in this tweet:

https://twitter.com/franciscof_1990/status/955469528800034816

We'll see.....
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] murtaza1326:
woah!!!?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] JaadiBooti:
Let's take it with a grain of salt
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] methuselah:
So here we go. Franco on fire.. I never knew he would own a God for saken device.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Kernel source officially released by Xiaomi :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] t0per666:
Waiting for your work soon! Thanks.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] saski4711:
YES YES YES YEEEESSSS!!!!! :fingers-crossed:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ur0:
I've started work on porting Linux-Stable to the A1.

I hope I'll get you guys a positive update soon.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] zeyaan:
Indeed they are out. Hope to see some action on this forum now. For everyone wondering where to see the gold, here it is.

https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/tissot-n-oss
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] zurik:
Nougat kernel sources...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ebautista:
Still, devs will make ways. That is how OS community does.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] kur41:
Which stable version? 3.18 or newer?

I'm tempted to try to port it to 4.4 but I'm afraid blobs wouldn't work...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] floridan:
This is what we got from xiaomi, it has some easy to fix build errors (include <> or "" and ../../ relative path), and i couldnt get it to boot yet, but thats my fault i think. I miss something at repacking the boot.img

Linux version 3.18.31-perf-g24ea5ef-dirty (floridan@optiplex-build) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #2 SMP PREEMPT Tue Jan 30 21:26:40 CET 2018
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] bhimsing:
Hii
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] zeyaan:
Just in case anyone what's to see the tree for mi 5x. It already has a working AOSP and many other roms.

Source Code: https://github.com/AOSP-CAF

Kernel Source Code: https://github.com/CyanogenMod/andro...xiaomi_msm8996
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sabirabid:
Mi 1 best
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] RestlessScreams:
Ha. I actually remember you from HTC Desire C times [MENTION=4649424]cute_prince[/MENTION] :D

Hope you can do any good for this device now (:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Kamran47:
just wanted to know if any development is still going on for nougat kernel or not , and will you enable fast charging for this kernel.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] manan001:
Why shoud we go for naught as we have oreo now...;)

Just pray that developer get sufficient time to develop and get this thing working asap
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] zeyaan:
Development is dead. No positive signs. Mostably all developers have lost interest in this phone and no new developers are interested either. Thanks Xiaomi for screwing up.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] saski4711:
Well we've already have seen three LOS-14.1 releases in the last 10 days with most still working. So work on the kernel tree is definately progressing well. I wouldn't call that dead even if this thread is somehow low on traffic.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] faruk asr:
when comming miui 9 for mi a1
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Lupin The Third:
You can ask miui developers. There's no one around here.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] theandroidguy:
It is not going to come to A1
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
Send screenshot of the new kernel
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] justin97530:
How do you send a screenshot of a kernel? There (ideally) shouldn't be any differences compared to the stock kernel...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Hellrazoraj:
Even I was wondering the same...how to take screenshot of the kernel?? ;) ;) ;)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
About phone
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
[MENTION=4460995]sooti[/MENTION] Looks like androidboot.selinux = permissive trick wont work on stock rom because it is compiled as "user" buildvariant. We need aosp roms like Lineage OS compiled with buildvariant "userdebug" in order to make selinux permissive.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
Compile it sir...device tree vendor are there ..nd niw u hve kernel sourves too try..
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Sorry, ROM development takes a lot of time. I don't have that much time to spare. I request other ROM developers to make use of this kernel as starting point and start developing ROMs :)

Meanwhile, I'll try to fix remaining issues within kernel.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deadman96385:
[MENTION=4649424]cute_prince[/MENTION]

Your kernel source works, touchscreen is almost unusable but it boots my lineage build

Do not ask for an ETA or testers please in its current state its worthless due to the touchscreen being pretty much broken
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
Ya sure will give a try.

---------- Post added at 03:15 PM ---------- Previous post was at 03:14 PM ----------

Wowwww[emoji7][emoji7][emoji7]
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
[MENTION=4222965]deadman96385[/MENTION],

Our kernel config file says that Mi A1 uses touchscreen controller from five different manufacturers. I guess different production batch uses different controller based on the availability at that time. Now here is the problem, this kernel source has drivers for only three of these manufacturers(Synaptics controller, FT5435 controller and IST3038C controller). Drivers for the other two manufacturers (FocalTouch controller and TD4310 contoller) are missing. Looks like your device comes with either FocalTouch controller or TD4310 contoller.

B/w can you get the manufacturer name of your touchscreen controller ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
Maybe the possible cause
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] rostifaner:
[MENTION=4222965]deadman96385[/MENTION]

Can you share your device/vendor trees?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ddaggebi:
I've heard that A1 black variants use only focal... Is that true? I myself uses black one with focal (sh*t, hope that other drivers are imported or I have to wait for xiaomi to release offical sources...).
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] andreiciu:
how do you see the touch screen controller?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] methuselah:
[MENTION=4222965]deadman96385[/MENTION] you always come with a bang. First with Honor 5x now with This device. Thank you buddy,
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ddaggebi:
Go to dialer and press *#*#6484#*#*, then tap version information, then scroll down to see LCD. Mine says **********(focal) so my touch panel is focal
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] mparmpas122321:
Mine says ilitek. Is it different than those which op states?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] gusbalaa:
My touch screen controller is (Focal) can i use this kernel ?

You are awesome bro.

I will give a try if need tester.

(Sorry out off topics)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] justin97530:
I don't think so, my Black variant (Indian, MDI2) A1 has an Ilitek ili7807.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Ok the screen shots of hardware info from many A1 users shows that IC used for touch panel is indeed FT5435 for everybody. FT5435 combined with Tianma LCD is using firmware version 16 and FT5435 combined with EGGB LCD panel is using firmware version 9.

Eventhough the redmi note 4 kernel source supports FT5435, it comes with firmware version 10 only, which none of the A1 touch panels are using. Maybe this is why touch screenworks erratically for [MENTION=4222965]deadman96385[/MENTION] (incompatble firmware version)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Hellrazoraj:
Even mine is FOCAL :crying: :crying:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Pa94:
Hello. I'm from Russia. so there may be translation problems. The author is a great work. On the screen I have EGGB + ili7807. PS I'm testing.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sachin273:
this is actually great news. we can at least hope to get a custom rom now....

---------- Post added at 11:19 AM ---------- Previous post was at 11:17 AM ----------

great news. u rock!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Hi, looks like you have a different touch screen controller. Did you tested ? Touchscreen works ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] theandroidguy:
Wow very happy to see Mi A1 getting a custom[ported] kernel even without the sources, thankyou very much OP, keep up the good work
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Pa94:
at the moment I'm at work. on arrival home, I try. in the morning only saw your message, and said your kernel. as will be known that accomplish your goal.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] rasik107:
amazing !!!

thanks a lot... :good:

cant wait to flash it :D
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Confirmed touch screen problem is related to unmatched firmware. Take a look at red line marked in the dmesg:

[ 1.121490] upgrade,fts_fw_vendor_id=0xd0
[ 1.540282] FTS_UPGRADE_LOOP ok is i = 0
[ 1.560307] ft5435_fw_Vid_get_from_boot: REG VAL ID1 = 0x0, ID2 = 0xd0
[ 1.560312] ft5435_fw_Vid_get_from_boot: reset the tp
[ 1.870044] get_Vid_from_boot, fw_vendor_id=0xd0
[COLOR="Red"][ 1.870049] [FTS] FW unmatched,stop upgrade[/COLOR]
[ 1.870131] ~~~~~ tp_glove_register enable!!!!!
[ 1.870137] [fts]ft5435_fw_LockDownInfo_get_from_boot, fw_vendor_id=0xd0
[ 2.290278] ft5435_fw_LockDownInfo_get_from_boot, FTS_UPGRADE_LOOP ok is i = 0

RN4 kernel source has support for FW version 10. Mi A1 needs FW version 16 on some panels and FW version 9 on others. Need to get proper firmware files somehow.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ddaggebi:
I have a focal a1. Tested the kernel. Phone booted up normally and yes, touch is strange.... Can't use it :(

P.S. I think MTP is working, too. Please add that in OP.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
Where the files are!?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] theandroidguy:
Until Xiaomi releases the kernel source hope so till then this kernel will get upgraded from alpha to stable atleast