yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] hemantv:
The whole point of this kernel is to get a working build before Xiaomi releases kernel sources, so that custom development can begin.

Please don't post stuff here unless you have something to contribute to, let this be a development thread.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] krishu_s:
Mine is ilitek

Vendor: EBBG
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sooti:
[MENTION=4649424]cute_prince[/MENTION] - can you please set the kernel build so it builds as part of a rom build such as LOS? I think your independent kernel commits messed it up...

EDIT: Just to clarify, i mean things like this: https://github.com/cuteprince/android_kernel_xiaomi_msm8953/commit/e72ac93b164f405af4c39fbdbb139c678959f1e9
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
It should compile fine. Someone has already compiled a rom with my kernel source. What error are you getting ?

Edit:

Comment line no. 230 and 254 in Makefile. Uncomment line 253
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sooti:
Well I tried to use his device tree and he has a mkbootimg.mk file that it looks like is for prebuilt images, so i removed that, and it builds fine but when trying to boot it in fastboot i get 'remote: dtb not found' and the image file is only like 13MB (boot.img)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Comment line no. 230 and 254 in Makefile. Uncomment line 253
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sooti:
No change.... Can you take a look at the device tree? https://github.com/rohantaneja/android_device_xiaomi_tissot.git

That's the one i am using... i removed mkbootimage.mk since it was just used for prebuilt...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ludditefornow:
My Black Global unit states this in version information:

LCD:

GFF,vendor:EBBG,IC:ili7807(ilitek)

TP:

[Vendor]Biel + EGGB,[IC]FT5435[FW]Ver9

Interesting that the front camera is a Samsung unit as is the EMMC and the RAM.

Sorry, I can't test till weekend.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] rostifaner:
take a look at this tree https://github.com/rostifaner/android_device_xiaomi_tissot/commit/8612f971660daa41183ee25906a864bfb0c9820b
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sooti:
I get this:

make[2]: *** No rule to make target 'arch/arm64/boot/dts/msm8953-qrd-sku3-d2.dtb', needed by 'arch/arm64/boot/Image.gz-dtb'. Stop.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deadman96385:
Here is my modified kernel source, its not much different. https://github.com/deadman96385/android_kernel_xiaomi_msm8953

I will release my device tree and vendor once we have a properly working touchscreen driver. Right now there is no point because the build is not usable as i have said in the past.

edit: I should say when the touchscreen works on my device variant.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] rostifaner:
[MENTION=4460995]sooti[/MENTION]

try to disable "build_appended_dtb" in your defconfig
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sooti:
Wait so can we list which ones work? Because when I used OPs kernel on my device touch worked fine ..
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
Actually u must release so that other devs can try
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deadman96385:
Sorry i should have said the touchscreen in my variant, i don't want to release builds that only work on some phones that will cause to much confusion. Development should be done in private until that happens.

I don't have to release anything because i am not distributing builds. I posted the kernel source because its just a couple minor fixes. Like above i don't think making public builds that don't work across all variants is a good thing and should be avoided the best way for now is to keep the working device tree private and develop on it in private until the time its ready. That might be an unpopular opinion but if your unhappy with it make your own device tree it is not a lot of work to get a bare minimum tree up and running.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
Ya agree with you no offense [emoji16]
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Already posted solution here https://xdaforums.com/showpost.php?p=74721914&postcount=19
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sooti:
Ya got it to work, thanks
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Great :) So touch screen is working fine for you right ? You must be lucky becuase your A1 seems to be not using FocalTouch touch screen controller. Can you post the screen shot of hardware information (especially the TP section). I am curious to see which IC is used in your Mi A1.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] :
Man this is fantastic.. I never even thought I could see all the unbuilt devices of a phone.. I wish I had your knowledge and help up with this kernel... Your doing great work.. Despite if in the end this kernel works or not..
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] rostifaner:
[MENTION=4649424]cute_prince[/MENTION]

For me touchscreen doesnt work
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] rostifaner:
del
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sooti:
Here's mine
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] t0per666:
So this kernel only works properly for LCD ILITEK EGGB TP (Global/China) the once have LCD FOCAL TM TP (India) does not. just assuming the country made. Im lucky i have EGGB TP testing when i get home. Nice job!

So guys before you try this kernel make sure you have Vendor: EGGB to check type *#*#6484#*#* in version information.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sooti:
In any case the kernel will need a bit more work.. I built using the userdebug and permissive selinux and still no luck... I think the solution would be to address these and then the rest of the stuff should work... From there I can add some cool commits like OC maybe and more governors.. later we might be able to add Oreo commits and then use CAF or aosp to build Oreo,. But... By then Oreo might come out so for now I'm gonna focus on getting the kernel running and building a CAF nougat which includes sd625 optimizations from qcom... No ETA... So don't ask... I'll post my work when it's ready.. also, it will only work on global/China LCD as others said
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Yes, that seems to be the case. B/w [MENTION=4460995]sooti[/MENTION] please post dmesg from the kernel during boot. I need to see logs generated from A1 with working touch panel.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Hellrazoraj:
Apologies earlier I rechecked & these are the results.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sednafx:
Here is mine:

Thank you all for the hard work on this device. Much appreciated. Good luck!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] FrenzyR:
how to fix this error

hardware/qcom/bootctrl/boot_control.cpp:49:10: fatal error: 'gpt-utils.h' file not found

#include <gpt-utils.h>
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] hemantv:
Make sure the gpt-utils.h file is present and try including it from the same directory - #include "gpt-utils.h"

Source: https://github.com/khadas/android_hardware_qcom_bootctrl/blob/Nougat/boot_control.cpp#L49
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Ok, I have modified the focaltech touch screen driver to load firmware. I am at office so can't compile the kernel for testing. Can someone replace drivers/input/touchscreen/ft5435/ft5435_ts.c file with https://drive.google.com/open?id=1CPT4-iFqhasKNXe-Pj7qxt95XsiMcyVa , compile and test the kernel ? [MENTION=4460995]sooti[/MENTION], [MENTION=4222965]deadman96385[/MENTION]
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Roykooiman:
How can I check my hardware info? Which code to dial?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] manan001:
By December end we should be able to reeive the source code. Same stated in Xiaomi policy.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] FrenzyR:
tried getting this error

LD drivers/usb/gadget/function/usb_f_audio_source.o

LD drivers/usb/gadget/function/built-in.o

LD drivers/usb/gadget/legacy/built-in.o

CC drivers/usb/gadget/udc/udc-core.o

CC drivers/video/fbdev/msm/../../msm/msm_dba/msm_dba_helpers.o

CC drivers/video/fbdev/msm/../../msm/msm_dba/msm_dba_debug.o

CC [M] drivers/staging/prima/CORE/MAC/src/pe/lim/limProcessLmmMessages.o

CC drivers/video/fbdev/msm/../../msm/mdss/mdss_mdp_cdm.o

LD drivers/usb/gadget/udc/built-in.o

CC drivers/usb/gadget/android.o

CC drivers/video/fbdev/msm/../../msm/msm_dba/adv7533.o

In file included from drivers/usb/gadget/android.c:47:0:

./drivers/usb/gadget/function/f_midi.c:35:17: fatal error: u_f.h: No such file or directory

#include "u_f.h"

^

compilation terminated.

scripts/Makefile.build:257: recipe for target 'drivers/usb/gadget/android.o' failed

make[3]: *** [drivers/usb/gadget/android.o] Error 1

scripts/Makefile.build:402: recipe for target 'drivers/usb/gadget' failed

make[2]: *** [drivers/usb/gadget] Error 2

scripts/Makefile.build:402: recipe for target 'drivers/usb' failed

make[1]: *** [drivers/usb] Error 2

make[1]: *** Waiting for unfinished jobs....

CC [M] drivers/staging/prima/CORE/MAC/src/pe/lim/limProcessMessageQueue.o

CC drivers/video/fbdev/msm/../../msm/mdss/mdss_smmu.o

CC drivers/video/fbdev/msm/../../msm/mdss/mdss_mdp_wfd.o

LD drivers/video/fbdev/msm/../../msm/msm_dba/built-in.o

CC [M] drivers/staging/prima/CORE/MAC/src/pe/lim/limProcessMlmReqMessages.o

CC [M] drivers/staging/prima/CORE/MAC/src/pe/lim/limProcessMlmRspMessages.o

CC drivers/video/fbdev/msm/../../msm/mdss/mdss_mdp_pp_v1_7.o
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
Don't mess the thread...paste log in hastebin.com & also post with a screenshot
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] FrenzyR:
ok bro can you release your device and vendor tree to build roms
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
Currently using rohan tree but stucked with exams
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] justin97530:
I don't think the LCD is dependent on the model, my MDI2 Indian version has an Ilitek display.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] UltimateBlade:
Lol , can u give me link to ur github profile.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] FrenzyR:
i m getting two error with rohan error

https://hastebin.com/eyozehozen.cs

hardware/qcom/bootctrl/boot_control.cpp:49:10: fatal error: 'gpt-utils.h' file not found

#include <gpt-utils.h>
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
Add tht missing in cpp
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] FrenzyR:
missing file gpt-utils.h already available at device tree recovery/oem-recovery/gpt-utils.h
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Broken symlink. Create symlinks for drivers/usb/gadget/configfs.h, drivers/usb/gadget/debug.h, drivers/usb/gadget/u_f.h in drivers/usb/gadget/function folder and compile.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ddaggebi:
[MENTION=4649424]cute_prince[/MENTION]

Does it mean that if the kernel is compiled with that file, a1 that uses focaltouch with FW ver.9 & FW ver.16 can use touchscreen normally?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] gusbalaa:
*#*#6484#*#*
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
If the fix works, then yes those touch panels should work normally. What I did was make the driver load FW ver.10 (which is the only version available in RN4 kernel source). Early the driver loaded FW only if the exact versions matched. i.e., no FW where loaded for A1 phones.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] rostifaner:
[MENTION=4649424]cute_prince[/MENTION]

I'm compile with your touchscreen driver and booting but touch not fixed

View attachment dmesg.txt
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Is it reacting exactly the same way as before or any change, atleast subtle ? Also pls post the screen shot of hardware information after booting with new kernel.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] rostifaner:
As for me, the touch reacts with slightly changes
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Finally, after spending countless hours reverse engineering stock kernel with hex editing tools I successfully extracted the firmware required for our touch panels to work properly. It was a really daunting task but got all the needed firmware files :). Will publish a new boot image for testing tomorrow :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
U goona rockkkk[emoji16][emoji16]
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] theandroidguy:
Congoooo??
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] xactor:
Amazing
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Dicky Pratama:
thanks for your hardwork, greeting from indonesia..

you ROCK !!:good:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] rasik107:
Great !!!

Thanks a lot buddy :good:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] gusbalaa:
Awesome
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] FrenzyR:
Great news

also push commit to github
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
Gpt.error is there hoq to fix it?m
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] FrenzyR:
me too not fixed that error its killing

---------- Post added at 10:25 AM ---------- Previous post was at 10:22 AM ----------

can you upload your device tree and vendor tree to github

others device error giving error
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
[MENTION=4649424]cute_prince[/MENTION] help us for this error https://hastebin.com/ozukumalab.nginx
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deadman96385:
Guys this is a kernel development thread, make a new one for your device tree issues.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
K bro pm u check it
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Alright testing time. Download https://drive.google.com/open?id=1wYLPL1rtRkNoVXQ52dCCu24fscA-uf7M and extract it. Paste the two files (ft5435_ts.c and fw_vendor_0xd0.i) at drivers/input/touchscreen/ft5435/ folder (replace file when asked). Compile and test kernel for touch screen :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ddaggebi:
Okay... I'm not experienced in compiling kernel. Can anyone please make a boot.img (from November security patch) that includes [MENTION=4649424]cute_prince[/MENTION] 's touch drivers for me to flash by fastboot?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] FrenzyR:
is this ok bro
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Yes, perfect :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] FrenzyR:
Error while compiling

https://hastebin.com/xoxegofabo.coffeescript
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
See https://xdaforums.com/showpost.php?p=74741973&postcount=95
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] abhinavgupta371:
[MENTION=4649424]cute_prince[/MENTION]

Help.for this error https://hastebin.com/sapamedida.vbs
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] mohitkaushal05:
thanks bro ..good to see some development in mi a1
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] rostifaner:
compiled and booted with your files but touch still does not work, maybe i'm doing something wrong

View attachment dmesg.txt
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] FrenzyR:
can u advise me on this

https://xdaforums.com/showpost.php?p=74753935&postcount=122
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] rostifaner:
what exactly do you not understand, just create a symlinks as said in the post
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Looks like you are using the old ft5435_ts.c file. Replace that with the one in zip file and compile.

Also post the screen shot of your hardware infomation (especially the LCD and TP values)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deadman96385:
I have pushed [MENTION=4649424]cute_prince[/MENTION]'s changes to my kernel source

https://github.com/deadman96385/and...mmit/6261ebf9e8965f796a212aa863b7c09f24bcf2b0

FYI for the future you should change your text editor to use unix line endings not windows [MENTION=4649424]cute_prince[/MENTION]
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] rostifaner:
replace but nothing changes

here is my commit

https://github.com/rostifaner/android_kernel_xiaomi_msm8953/commit/af70f95bf9570329066ec2618099d351f924ac5a
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Sorry, there was mistake in the driver file. I just saw it now. Change line no 4119 of ft5435_ts.c to:

ft5435_fw_upgrade_by_array_data(&client->dev, firmware_data_vendor3, sizeof(firmware_data_vendor3), !data->pdata->no_force_update);

Now compile :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] rostifaner:
still not fixed

commit https://github.com/rostifaner/android_kernel_xiaomi_msm8953/commit/610dfd80880f789801241630f83a978343971cb2

log

View attachment dmesg_log.txt
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
There is something strange in your dmesg. The firmware I extracted from stock kernel expects touch panels with vendor id 0x51 and 0xd0. But your A1 is reporting a touch panel with vendor id 0x3b :eek:

Edit

Holy ****! there was one more firmware file hidden in the stock kernel, and that is for your touch panel type (0x3b) :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
I have compiled a boot.img file. Can you guys check whether touch panel works with this ? https://drive.google.com/open?id=1qGeqtbUqLlRzbjtluLEzwYICVeo9n3-W
[MENTION=4460995]sooti[/MENTION]
[MENTION=7665161]SevenSlevin[/MENTION]
[MENTION=4222965]deadman96385[/MENTION]
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SevenSlevin:
Nothing new to me. Touchpad worked fine also with the other kernel. I have same issues also here (no audio, fingerprint, camera, wifi,led...)

First 2 images are from stock, other 2 from your kernel. As you can see tp works also there isnt recognized the vendor. All sensors work fine, only fingeprint isnt working...

edit. waiting from some1 who has focal tp
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
[MENTION=5592454]rostifaner[/MENTION]

Test this boot.img https://drive.google.com/open?id=161C0boW2Q7aWkaffIiL4K3GbYMFJVHNO

This one has FW for your touch panel :) [MENTION=4222965]deadman96385[/MENTION]

I'll update my git tomorrow
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] gulatilakshay:
Just tested the latest kernel... Touch works perfect
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] theandroidguy:
what are the current bugs with the kernel???
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] gulatilakshay:
no WiFi... No cam... No fingerprint... Every thing else works
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] UltimateBlade:
Is ur touch panel focal?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] squallbayu:
My device is black A! with focal touchscreen. Touchscreen works perfect, but still no wifi, cam, fingerprrint works.

I thing dev needs another effort to extract the firmwares.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sooti:
I can't figure out how to disable selinux... that's why fp and other stuff isn't working... I even tried to address the denials but it still ignores it...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] rostifaner:
yaa its works, touchscreen working fine for me

View attachment dmesg.txt
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sooti:
OK, i got selinux to boot in permissive... sadly that must not be the issue... still the same things don't work... need to dig deeper

[MENTION=4649424]cute_prince[/MENTION] - looks like we are missing more drivers from stock kernel, audio, goodix etc... if you can extract those as well we probably can get this show on the road...

thanks!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ddaggebi:
I have a focaltouch panel with FW Ver.16. This boot.img touch works perfectly! Big thanks for the development!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] gusbalaa:
Deleted
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cute_prince:
Git updated! :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Hellrazoraj:
Noob question..how should I flash it?? I don't have twrp installed..still confused on how to flash it..I do have the image file of the recent 7.11.18 version..should I replace the boot IMG to this one??? :confused: :confused:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] amar2cool99:
If you are so much noob then wait untill kernel become stable , there are no point flashing this kernel, as it is for test purpose only
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Hellrazoraj:
I think helping the developers matters the most...being a noob is not a wrong thing.. Everyone was a NOOB once upon time which includes you so pls keep off & thanks for the link. It's my phone & my choice of what I wanna do with it :D

If something goes bad I know what needs to be done...only this time the twrp flashing is different from the other phones that I have used.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] amar2cool99:
Nice to see if you want to help developer

Download TWRP from official site

Download minimun fastboot tools for windows or linux witchever you using

Place TWRP.img and extract fastboot tools in same folder

Hold down shift and right click and select open command promote here

Give following commands

fastboot oem unlock

fastboot flash recovery TWRP.img

fastboot boot TWRP.img

And after that wait your phone will boot in TWRP mode

Select backup and backup your current boot partition

Select flash and then select img , download and flash boot.img

Thanks
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] theandroidguy:
[MENTION=5577784]amar2cool99[/MENTION] didn't say anything wrong, the kernel is in its beta stage and you might brick your device while flashing and then u will run for the solution, as you are a noob nd not familiar much with custom recoveries u might be facing a lot of trouble while restoring and you guyz fill the thread with "How do I unbrick my phone????????" thats why its suggested to noobs to keep a little patience and wait for the kernel to get stable, yeah itz ur phone do what you want, but do read the instructions carefully, bst of luck
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Hellrazoraj:
Ufff...didn't mean to offend anyone but thanks to [MENTION=5577784]amar2cool99[/MENTION] for giving me the commands on installing...will wait n watch for the beta to become a official version also
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Roykooiman:
deleted
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Hellrazoraj:
Ok guys..I got the TWRP up & running on my device... Do I need to just flash the kernel via twrp?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] theandroidguy:
yep you can flash the image via TWRP or you can use fastboot also, use command
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ddaggebi:
Wow... amar2cool99 just wrote a post about how to boot the boot.img only a page ago... Didn't you cared to go back for just a page???

(edit) It seems that YOU are the one who asked for how to flash the .img. Couldn't you just read the whole instructions?(I'm not being sarcastic, just curious.) Amar wrote every procedure step by step.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] hemantv:
The thing is people think of the forums as a chat room. They come, post what's going on their mind and expect people to spoonfeed them. If you don't know how to flash a kernel, there are tons of tutorials out there you could follow. But you won't, and that's why you're a noobie who spams the development thread.