Last active
December 22, 2015 18:29
-
-
Save vuldin/6513333 to your computer and use it in GitHub Desktop.
Install latest dev build of FxOS on ZTE Open
This file contains hidden or 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
ro.secure=0 | |
ro.allow.mock.location=1 | |
ro.debuggable=1 | |
persist.usb.serialno=full_inari | |
persist.sys.usb.config=adb |
This file contains hidden or 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
cd ~/downloads/fxos/boot # create a folder where you can work with the boot image | |
adb shell | |
su | |
cat /dev/mtd/mtd1 > /sdcard/boot.img # create copy of boot image on sdcard | |
exit;exit # exit from su and adb | |
adb pull /sdcard/boot.img # copy boot image to desktop | |
abootimg -x boot.img # extract boot image contents | |
mkdir initrd;cd initrd # create initrd folder where you can work with initrd image | |
mv ../initrd.img initrd.gz # change extension to gz (for gunzip tool) | |
gunzip initrd.gz; cpio -id < initrd # extract initrd contents | |
vi build.prop # change default.prop to the same as the attached default.prop file | |
cd .. | |
# mkbootfs and mkbootimg tools are found in your B2G directory | |
export B2G_HOME=/path/to/b2g | |
export PATH=$PATH:$B2G_HOME/out/host/linux-x86/bin | |
cd initrd; mkbootfs . | gzip > ../newinitramfs.cpio.gz | |
cd .. | |
mkbootimg --kernel zImage --ramdisk newinitramfs.cpio.gz --base 0x200000 --cmdline 'androidboot.hardware=roamer2' -o newboot.img # create new boot image | |
adb push ./newboot.img /sdcard/newboot.img # copy new boot image to sdcard | |
adb reboot recovery # boot into clockwork mod recovery | |
#mount /sdcard from settings | |
adb shell # connect to phone | |
flash_image boot /sdcard/newboot.img # install new boot image | |
exit | |
# restart phone using clockwork mod settings | |
# now your phone should be ready to install dev builds of FxOS: | |
cd ~/git/b2g # change directory to where you have downloaded and built B2G | |
./flash.sh gaia # phone automatically restarts into unusable state | |
./flash.sh gecko # automatically restarts and works |
Hi,
My current system is not powerful enough to compile FirfefoxOS, do you know how i could get a pre-compiled version and flash gaia and gecko?
thanks in advance (and sorry if it is a dumb question),
@rvaliant were you able to flash the new image? I am experiencing the same issue you are.
same here as with @rvaliant and @jimdoescode. No boot, stuck at fox image with no tail animation.
I can open an adb shell, though am a noob.
In the 2nd last step, as written in Installing Firefox OS on a mobile device - Mozilla | MDN, if you are not interested on test apps and/or require optimization, you can update gaia using:
VARIANT=user ./flash.sh gaia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After ./flash.sh gecko I always get:
Attempting to set the time on the device
time 1381424366 -> 1381424366.0
settimeofday failed Bad file number
And the phone hangs with a static fox image (no fire tail animation)