commit | c738b815bac6d966d2ebf60aa0003c91e7f1b3b3 | [log] [tgz] |
---|---|---|
author | Amit Pundir <pundiramit@gmail.com> | Wed Jun 19 16:13:49 2019 +0530 |
committer | Amit Pundir <amit.pundir@linaro.org> | Mon Jul 01 00:19:57 2019 +0530 |
tree | 92a13e4ad5002d84a29ab84a61d143faae1fc9e5 | |
parent | e871bcd0668e2b66d1c9753ca2e1b9e41414c33c [diff] |
aosp_beryllium: Add initial support for AOSP on Xiaomi Poco F1 Boots Xiaomi Poco F1 device to console. ADB is working. Display is broken due to missing drm and panel drivers and firmware files. Signed-off-by: Amit Pundir <pundiramit@gmail.com>
IMPORTANT NOTICE --> UNLOCKING AND ROOTING MAY VOID YOUR PHONE WARRANTY AND MAY BRICK YOUR DEVICE AS WELL. I'M NOT RESPONSIBLE FOR EITHER OF THAT.
Here is a reasonable guide to get you started on unlocking and rooting Poco F1 --> https://forum.xda-developers.com/poco-f1/how-to/xiaomi-poco-f1-unlock-bootloader-custom-t3839405
Just for the records I downloaded and installed following external packages to unlock and root my device-->
Also Dont forget to take a backup of your images from TWRP and copy them to your Host machine. It will come very handy. Believe me :)
repo init -u https://android.googlesource.com/platform/manifest -b master git clone git@github.com:pundiramit/android-local-manifests.git .repo/local_manifests repo sync -j$nproc source build/envsetup.sh lunch aosp_beryllium-userdebug make -j$nproc
Avoid a known smmu crash by turning OFF the display -->
fastboot oem select-display-panel none fastboot reboot bootloader
Flash AOSP images and reboot -->
fastboot flash system system.img fastboot flash vendor vendor.img fastboot flash userdata userdata.img fastboot flash boot boot.img fastboot reboot
adb shell
adb reboot bootloader fastboot oem select-display-panel fastboot reboot bootloader
Use standard abootimg commands to update kernel (Image.gz-dtb) in boot.img and fastboot flash the updated boot.img.
My mainline tracking kernel is hosted at -->
https://github.com/pundiramit/linux/tree/master (beryllium_defconfig).
Prepare bootable kernel image (Image.gz-dtb) by running -->
$ cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/sdm845-beryllium.dtb > arch/arm64/boot/Image.gz-dtb