Skip to content

Instantly share code, notes, and snippets.

@jld
Last active December 27, 2015 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jld/7270024 to your computer and use it in GitHub Desktop.
Save jld/7270024 to your computer and use it in GitHub Desktop.
hamachi kernel rebuild notes
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
@jld
Copy link
Author

jld commented Jun 21, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment