> From: "Alfredos (fredy) Damkalis" <[email protected]>
> 
> I will describe what have I done on samsung galaxy s2. Probably
> building
> it the same way will give you a working rom package.
> 
> 1. You have to gather to a folder these:
> system directory from /out/target/product/<your device name>/
> boot.img from /out/target/product/<your device name>/
> META-INF extracted from a rom package for your device.
> 
> 2. Go to the folder and zip the objects with the command |zip -r9
> b2g.zip *
> |This will create a b2g.zip file.
> 
> 3. Download http://lazydroid.com/files/SignApk.zip and extract it.
> This will give you a signapk.jar and some other files
> 
> 4. Run this command |java -jar signapk.jar testkey.x509.pem
> testkey.pk8
> b2g.zip ./signedB2G.zip|
> where b2g.zip is the file that you have created and the rest are the
> files that you have extracted.
> This will give you a signedB2G.zip package that you can flash it for
> example through CWM
> More on signing roms can be found at
> http://lazydroid.com/2011/03/howto-repack-and-sign-rom-image-update-zip-files/
> 
> 5. After a successful flash procedure you will end up with a black
> screen and you will have access with adb on your device. Then you
> have
> to install Gaia:
> git clone https://github.com/mozilla-b2g/gaia.git
> cd gaia
> make install-gaia (before this maybe you want to change the branch of
> the gaia repository)
> 
> Disclaimer:
> The above steps can brick your device, follow them at your own
> risk!!!

I just thought that I'd mention that some of these steps are already available 
in the form of the tools/update-tools/build-flash-fota.py script.
I don't know the full details, but I've used that script to create a FOTA based 
update (albeit the one I created only had /system/b2g files in it).
You should be able to create a full /system fota by using similar techniques.

> On 03/19/2013 04:02 PM, lap wrote:
> > Hey guys
> >
> > hm..because i can't flash the system.img to my device,so i am
> > thinking
> > about to make a rom package
> >
> > so i want to ask what do i need to put in the rom package? Is it
> > the
> > same to the android's rom?
> >
> > Also, i want to know how can i unpack these "img" files   etc.
> > system.img , usrdata.img,  because i can't unpack these files by
> > the
> > "unyaffs" or to mount it. can you guys give me some advices , i
> > want
> > more details.

The actual format of the system.img file may use yaffs or it may use ext4, or 
it may use something else. That's really phone specific.

We build the system.img by packing up all of the files in 
out/target/product/PHONE/system directory, so there really isn't a need to 
unpack it. out/target/product/PHONE/system already contains everything 
completely unpacked.

Dave Hylands
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to