I’m not sure if this is the right section since my board in this case is Qualcomm MSM8996 Snapdragon 820 (14 nm) : OnePlus3 smartphone. I’m also not by definition a programmer so, please keep that in mind if I ask something stupid.
I’m interested in recompiling the firmware files (below those included in Oneplus3 official OTA update)
However, after I flash them in, I’d like to have my bootloader unlocked. Since my phone fails to boot even after reflashing everything (original) in EDL mode, I’d like to try the same with the unlocked bootloader, then if that doesn’t work, load a custom kernel from fastboot and see what’s going on with the logs.
What I find / and what step I’m in at the moment.
As far as I understood, aboot, or the bootloader I see when starting the phone on “fastboot” is handled by emmc_appsboot.mbn , the files are as well signed so I can’t simply hex-edit and flash.
I as well found this:
git clone git://codeaurora.org/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8.git -b LA.BR.1.1.3.c4-01000-8x16.0 git clone http://git.linaro.org/landing-teams/working/qualcomm/lk.git -b dragonboard410c-LA.BR.1.2.7-03810-8x16.0-linaro1 git clone --depth 1 https://git.linaro.org/landing-teams/working/qualcomm/signlk.git cd lk make -j4 msm8916 EMMC_BOOT=1 TOOLCHAIN_PREFIX=../arm-eabi-4.8/bin/arm-eabi- mv build-msm8916/emmc_appsboot.mbn build-msm8916/emmc_appsboot_unsigned.mbn ../signlk/signlk.sh -i=./build-msm8916/emmc_appsboot_unsigned.mbn -o=./build-msm8916/emmc_appsboot.mbn -d sudo fastboot flash aboot ./build-msm8916/emmc_appsboot.mbn
however, the arm-eabi link doesn’t download correctly, and I don’t know what framework should I use to actually build the files (I’m on arch linux).
where does https://source.codeaurora.org/quic/la/kernel/lk/tree/?h=lk.lnx.1.0.r5-rel fit in this?
- How , and what should I do to correctly build an unlocked aboot / emmc_appsboot.mbn?
- What are the other files for , and how can I build those?
- Or rather, it’s enough to compile the emmc_appsboot.mbn and I use the same files from the official firmware for the resto of the mbn/elf/bin’s?
- There’s a md5 checksum at boot up, should I be concerned with the “unlocked” bootloader that this won’t happen and actually the phone will boot?