Fundamental issues within kernel source code… | Redmi K20 / Xiaomi Mi...
source link: https://forum.xda-developers.com/mi-9t/how-to/fundamental-issues-kernel-source-code-t3951597
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Fundamental issues within kernel source code: need to address problem to Xiaomi
-
If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
-
Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3
Fundamental issues within kernel source code: need to address problem to Xiaomi
-
Thread starter Zenkrey
-
Start date Jul 25, 2019
I'm the developer of the 75Hz display overclock for Mi 9T. I'm working on a better / cleaner way to enable this mod, however, with sadness, I discovered that the kernel source code for Davinci (K20 / Mi 9T) is fundamentally broken. The section I'm talking about is the device tree, an important component which is used to control peripherals on boot. The source code provided by Xiaomi, once compiled, produces a binary that doesn't contain the information necessary to manage the Samsung display. This results in a boot with black screen. If you really desire a future for the custom development of this device, it's important to raise the matter to Xiaomi itself, in a public manner.
Let me know what you think of this and if you had a similar experience after compilation of the kernel source.
Thanks
# Edit: update
https://forum.xda-developers.com/showpost.php?p=79961451&postcount=6
HelpMeruth
Senior Member
Thanks for bringing this up
dencel007
Senior Member
Unpacked dtbo.img from global firmware 10.3.6. Decoded the .dtb into .dts. Taken the 13 .dts relevant to the device (check Makefile). Re-encoded and repacked in a new, smaller dtbo.img.
I flashed this new dtbo.img through fastboot, booting successfully the device.
By taking the .dts provided by Xiaomi in the Mi 9T / K20 repo and compiling them, then packing them into a dtbo.img, and then flashing said .img through fastboot causes an unsuccessfull boot and a black screen.
So, I took the first .dts (from the source) and compared it to the correspondent .dts (from the decoded global firmware) and got this interesting diff (green one is the one working, red one is from the source that doesn't work):
https://pastebin.com/wNu0mVy0
So, there is obviously something wrong going on.
Have you tried taking the decoded .dts files and placing them in the kernel source tree to see if it builds a working kernel? (Or is that irrelevant, is it only used for building the dtbo.img?)Made a breakthrough:
Unpacked dtbo.img from global firmware 10.3.6. Decoded the .dtb into .dts. Taken the 13 .dts relevant to the device (check Makefile). Re-encoded and repacked in a new, smaller dtbo.img.
I flashed this new dtbo.img through fastboot, booting successfully the device.
So, there is obviously something wrong going on.
They would compile, of course, but that is not the best way to fix the issue. The problem, here, are the wrong commands used to control the display.Have you tried taking the decoded .dts files and placing them in the kernel source tree to see if it builds a working kernel? (Or is that irrelevant, is it only used for building the dtbo.img?)
How this can be reported to mi team. i tried to post on mi community using mi community app. But other should also bring this forward.
Dev Dezigns
Senior Member
give me a link to your tweet to retweet it.I tweeted looping mi team how they fix it soon.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK