Last active
December 27, 2015 04:49
-
-
Save jld/7270024 to your computer and use it in GitHub Desktop.
hamachi kernel rebuild notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GITREPO=https://github.com/jld/b2g-manifest BRANCH=hamachi-kernel-maybe-broken ./config.sh hamachi | |
rm -rf out | |
./build.sh | |
adb pull /dev/mtd/mtd0 orig-boot.img | |
./flash.sh boot | |
# At this point, if the device stays in the Alcatel boot screen, | |
# it has an incompatible bootloader and this can't work. | |
# Unbrick the phone thusly: | |
fastboot flash boot orig-boot.img | |
fastboot reboot | |
# It should reboot into the battery-charging screen; reboot again | |
# with the power button. | |
# Otherwise, it worked, but WiFi will be broken. To fix: | |
adb remount | |
for mod in ath6kl cfg80211; do | |
adb push out/target/product/hamachi/obj/external/compat-wireless/${mod}.ko /system/lib/modules/ath6kl/${mod}.ko | |
done | |
adb reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is likely bit-rotted by now (note changed manifest branch name), but if the phone was flashed with a 1.0/1.1 base image (with the TCL flasher), it might be salvageable. There will be graphics bugs if the Gecko isn't also sufficiently old. Use at own risk, etc.