Hi,
I've used the following script in the past to create a FOTA update for my unagi:
----- Start of fota-create.sh -----
#!/bin/bash
SCRIPT_NAME=$(basename $0)
. load-config.sh
mkdir -p fota
set -x
tools/update-tools/build-flash-fota.py \
--system-dir out/target/product/${DEVICE}/system \
--system-fs-type ext4 \
--system-location /dev/block/mmcblk0p19 \
--data-fs-type ext4 \
--data-location /dev/block/mmcblk0p22 \
--output fota/update.zip
tools/update-tools/build-fota-mar.py \
--output fota/update.mar fota/update.zip
----- End of fota-create.sh -----
You may need to adjust the system/data location and fs-types as approriate. You
should be able to determine the correct locations/type for the system and data
partitions by doing something like:
adb shell mount | grep /system
adb shell mount | grep /data
Dave Hylands
----- Original Message -----
> From: [email protected]
> To: [email protected]
> Sent: Wednesday, May 15, 2013 2:40:58 PM
> Subject: [b2g] Creating a flashable zip?
>
> Hi all
>
> I'm wanting to distribute my built image of Firefox OS for the Galaxy
> Nexus, but I'm struggling to find the ideal way of creating a
> flashable .zip to be flashed via Recovery. After a quick search on
> Google, I need to grab the system.img and boot.img from
> B2G/out/target/product/maguro/ and generate some sort of [META-INF]
> folder then zip those three into a .zip package and sign it.
> However, I'm not quite sure what I'm needing to include in the
> [META-INF] folder.
>
> Looking at the B2G/tools/update-tools/ folder shows a script call
> "build-flash-fota.py" which might be what I'm looking for to help
> make a flashable .zip of my Firefox OS build. Looking through the
> help indicates that I require several extra commands to get it to
> work. I get to the part where I need to fill out this section:
>
> " --system-location SYSTEM_LOCATION
> device location for /system. required "
>
> Does anyone know what I need to put for the "SYSTEM_LOCATION" part? I
> get the impression it's not documented clearly after doing a quick
> search on Google.
>
> Any help?
>
> Kind Regards
> _______________________________________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-b2g
>
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g