Skip to content

Instantly share code, notes, and snippets.

@nka11
Created October 3, 2012 11:35
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nka11/3826507 to your computer and use it in GitHub Desktop.
Save nka11/3826507 to your computer and use it in GitHub Desktop.
Firefox os galaxy s3 porting notes
boot.img http://dl.free.fr/h4GMnkXNR
system.img http://dl.free.fr/fCtptJFxs
main ref http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack%2C_Edit%2C_and_Re-Pack_Boot_Images
Grab boot.img from device (with CWM backup utility for example)
split boot img --> http://zen-droid.googlecode.com/files/split_bootimg.pl
mkdir ramdisk
cd ramdisk
gunzip -c ../boot.img-ramdisk.gz | cpio -i
find . | cpio -o -H newc | gzip > ../newramdisk.cpio.gz
../B2G/out/host/linux-x86/bin/mkbootimg --cmdline 'no_console_suspend=1 console=null' --kernel boot.img-kernel --ramdisk newramdisk.cpio.gz -o mynewimage.img
# attemp to get boot log on lcd (not tested yet) :
../B2G/out/host/linux-x86/bin/mkbootimg --cmdline 'console=tty0' --kernel boot.img-kernel --ramdisk newramdisk.cpio.gz -o mynewimage.img
how to flash :
grab Heimdall 4.1, make sure libpit is patched as described https://github.com/Benjamin-Dobell/Heimdall/issues/55
Build the boot.img
adb reboot download
sudo heimdall flash --system out/target/product/galaxys3/system.img --BOOT ../boot/mynewimage.img --USERDATA out/target/product/galaxys3/userdata.img
bison flex
g++-multilib
lib32z1-dev
lib32ncurses5-dev
ccache
gcc-4.6-multilib-arm-linux-gnueabi ?
g++-4.6-multilib-arm-linux-gnueabi ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment