15
Development - (experimental) boot.img for SM-A127F with the touch and MTP fixed...
source link: https://forum.xda-developers.com/t/experimental-boot-img-for-sm-a127f-with-the-touch-and-mtp-fixed.4536735/#post-87966359
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.
Development (experimental) boot.img for SM-A127F with the touch and MTP fixed
uluruman
Senior Member
Here is the boot.img (tarred for Odin) intended to be used together with GSI systems (e.g. LineageOS). It contains the recompiled stock U4 kernel taken from Samsung Open Source with only a couple of the most necessary fixes, namely the freezing touchscreen and the non-functional MTP. 99.9% unaltered, 100% open-source.
If the fixed boot.img does not work for you for some reason, I've also attached the original U4 boot (taken from the SM-A127F_NPB_A127FXXU4AUK1 firmware) so you could revert the changes.
All credits for the touchscreen fix go to manteiga25, he's done an amazing job on figuring this all out, still from his solution which includes additional performance tweaks I've taken the absolute bare minimum so that the problem is no longer present. Also huge thanks to Osvaldo Costa for the wonderful bootimgtool.
If you don't trust me or if you're in desperate need of a more recent kernel, here are the steps how to rebuild it all yourself (on Debian 11):
If the fixed boot.img does not work for you for some reason, I've also attached the original U4 boot (taken from the SM-A127F_NPB_A127FXXU4AUK1 firmware) so you could revert the changes.
All credits for the touchscreen fix go to manteiga25, he's done an amazing job on figuring this all out, still from his solution which includes additional performance tweaks I've taken the absolute bare minimum so that the problem is no longer present. Also huge thanks to Osvaldo Costa for the wonderful bootimgtool.
If you don't trust me or if you're in desperate need of a more recent kernel, here are the steps how to rebuild it all yourself (on Debian 11):
- Download the kernel source from Samsung Open Source (A127FXXU3AUJ5)
- Unpack SM-A127F_RR_Opensource.zip and Kernel.tar.gz inside
- Unpack SM-A127F_RR_Opensource_A127FXXU4AUK1.zip into the same dir (overwriting the files)
- Unpack the attached source.tar.gz, it contains only the changed files and build.sh facilitating compilation
- From root: apt install clang-9 gcc-9-aarch64-linux-gnu
- Remove any other versions of clang. Then cd /usr/bin; ln -s clang clang-9; ln -s clang++ clang++-9; ln -s clang-cpp clang-cpp-9
- Back in the Kernel dir, run build.sh and wait for the kernel to compile
- Download bootimgtool and compile it (just "make")
- Download the stock firmware
- Extract boot.img from AP_A127FXX[...].tar.md5 (unpack using tar, ignore the .md5) to the root dir of your Kernel
- bootimgtool disassemble boot.img
- cp Kernel/arch/arm64/boot/Image kernel
- bootimgtool create -o boot.img
- Flash boot.img as is using Heimdall or pack into .tar and flash using Odin
Attachments
-
source.tar.gz19.1 KB · Views: 4
-
boot_sm-a127f_u4_fixed.zip17 MB · Views: 10
-
boot_sm-a127f_u4_orig.zip17 MB · Views: 0
Last edited: Yesterday at 8:39 AM
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK