FORUMS
Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

[PROJECT][EXPERIMENTAL] Linux kernel 3.18.31 for Xiaomi Mi A1 (tissot)

751 posts
Thanks Meter: 4,287
 
By cute_prince, Inactive Recognized Developer on 2nd December 2017, 05:57 PM
Post Reply Email Thread
Since Xiaomi has not released the kernel sources yet, I'm currently trying to port Redmi Note 4 (mido) kernel sources for Mi A1. The porting process may succeed because both these devices are based on same architecture and comes from the same manufacturer. I have shared my kernel sources and those who wanna contribute may send pull request to the same. I'm currently looking for testers and those who wants to volunteer please reply in this thread.

You can test with stock rom or TWRP recovery.
Steps for testing:
1. Download TWRP recovery / boot image of stock rom.
2. Unpack it and replace the prebuilt kernel with our testing kernel.
3. Repack it and reboot phone to fastboot mode.
4. Type fastboot boot <repacked_image_name.img>
5. If it boots, post here the dmesg and other helpful logs

Status [Working]
Boots
Display
WiFi
Touchscreen
RIL
Vibration
IR
Bluetooth
Sensors
SD card
MTP
Charging

XDA:DevDB Information
Linux kernel 3.18.31 for Xiaomi Mi A1 (tissot), Kernel for the Xiaomi Mi A1

Contributors
cute_prince
Source Code: https://github.com/cuteprince/androi...xiaomi_msm8953

Version Information
Status: Testing

Created 2017-12-02
Last Updated 2017-12-02
The Following 46 Users Say Thank You to cute_prince For This Useful Post: [ View ] Gift cute_prince Ad-Free
 
 
2nd December 2017, 07:03 PM |#2  
Senior Member
Flag Herzliya
Thanks Meter: 4,134
 
Donate to Me
More
Nah... doesn't boot.. while it's true that we share the same SD625 with many other xiaomi devices, there are other things to consider here... different display, camera, etc... not a kernel expert but just what i think...
anyway thanks for the attempt... i'm sure Xiaomi will release the sources soon, they might be waiting for Oreo since there are some specific commits that only apply to oreo, if so, they are actually kinda doing us a favor, since they always release the kernel once and never bother updating the sources since...
The Following 4 Users Say Thank You to sooti For This Useful Post: [ View ] Gift sooti Ad-Free
2nd December 2017, 07:15 PM |#3  
Senior Member
Thanks Meter: 53
 
More
Yes I think it works. I've done it and boot on system, in system I have different kernel.
The stock is from 17/11/2017 and yours is 02/12/2017.
edit: fingerprint doesnt work
camera doesnt work (it opens but see only black screen)
led doesn't work

edit2: link dmesg https://mega.nz/#!JcBjjCSA!_xzviwYuy..._uRu0Usx-w8Y1g
I dont know how to put it here so I've used my mega account, if have problem I can use google driver or dropbox
The Following 2 Users Say Thank You to SevenSlevin For This Useful Post: [ View ] Gift SevenSlevin Ad-Free
2nd December 2017, 07:31 PM |#4  
Senior Member
Flag Herzliya
Thanks Meter: 4,134
 
Donate to Me
More
Quote:
Originally Posted by SevenSlevin

Yes I think it works. I've done it and boot on system, in system I have different kernel.
The stock is from 17/11/2017 and yours is 02/12/2017.
edit: fingerprint doesnt work

Odd... Didn't boot for me.. maybe I missed something

I see why the FP failed... the selinux is denied it, OP needs to set it to permissive
The Following 2 Users Say Thank You to sooti For This Useful Post: [ View ] Gift sooti Ad-Free
2nd December 2017, 07:40 PM |#5  
Senior Member
Thanks Meter: 53
 
More
Normally with this kernel Can I boot in Miui rom from redmi note 4??
The Following 2 Users Say Thank You to SevenSlevin For This Useful Post: [ View ] Gift SevenSlevin Ad-Free
2nd December 2017, 08:02 PM |#6  
Senior Member
Flag Herzliya
Thanks Meter: 4,134
 
Donate to Me
More
OK, got it to boot, great work OP! this could give us some lead until Xiaomi releases kernel source.

EDIT: so as I said earlier, selinux needs to be disabled for now... otherwise wifi, fingerprint, audio and LED don't work...
The Following 3 Users Say Thank You to sooti For This Useful Post: [ View ] Gift sooti Ad-Free
2nd December 2017, 11:50 PM |#7  
Junior Member
Thanks Meter: 2
 
More
Wouldn't it make more sense to Port from Mi5X?
3rd December 2017, 02:35 AM |#8  
Yash98's Avatar
Senior Member
Flag XDA-Developers
Thanks Meter: 1,449
 
More
Quote:
Originally Posted by Gtxinsane

Wouldn't it make more sense to Port from Mi5X?

They are porting kernel source, Mi 5X kernel source isn't available either.
3rd December 2017, 03:18 AM |#9  
cute_prince's Avatar
OP Inactive Recognized Developer
Flag Trivandrum
Thanks Meter: 4,287
 
More
Quote:
Originally Posted by SevenSlevin

Yes I think it works. I've done it and boot on system, in system I have different kernel.
The stock is from 17/11/2017 and yours is 02/12/2017.
edit: fingerprint doesnt work
camera doesnt work (it opens but see only black screen)
led doesn't work

edit2: link dmesg https://mega.nz/#!JcBjjCSA!_xzviwYuy..._uRu0Usx-w8Y1g
I dont know how to put it here so I've used my mega account, if have problem I can use google driver or dropbox

Great . So it booted the stock rom. Did you tried disabling Selinux ? What about wifi, vibration, audio, bt, ir etc ? Are they working ?
3rd December 2017, 03:20 AM |#10  
cute_prince's Avatar
OP Inactive Recognized Developer
Flag Trivandrum
Thanks Meter: 4,287
 
More
Quote:
Originally Posted by sooti

OK, got it to boot, great work OP! this could give us some lead until Xiaomi releases kernel source.

EDIT: so as I said earlier, selinux needs to be disabled for now... otherwise wifi, fingerprint, audio and LED don't work...

Thanks for testing. Are they working (wifi, bt, ir, led etc) after disabling selinux ?
The Following User Says Thank You to cute_prince For This Useful Post: [ View ] Gift cute_prince Ad-Free
3rd December 2017, 04:36 AM |#11  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by Yash98

They are porting kernel source, Mi 5X kernel source isn't available either.

Oh wow Xioami is really slacking huh.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes