[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 dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Creating a flashable zip?
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: ojrear...@gmail.com To: dev-b2g@lists.mozilla.org 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 dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Creating a flashable zip?
You have to gather the system *directory* and not the system.img from out/target/product/maguro/. Also, you need the boot.img file. Finally you don't have to generate the [META-INF] folder but just copy it from one other .zip build, for example a cyanogenmod build. Then zip them and sign them. check [1] for more details. About the SYSTEM_LOCATION, I guess it should be the system directory at out/target/product/maguro/. fredy [1] https://groups.google.com/group/mozilla.dev.b2g/browse_thread/thread/ce5498d6d4142cad On 05/16/2013 12:40 AM, ojrear...@gmail.com wrote: 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 dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Creating a flashable zip?
That is definitely better way, thanks for sharing. Do you know if this also includes the boot.img in any way? P.S. So, the system location is the /dev/block/partition of the system on the device. On 05/16/2013 01:07 AM, Dave Hylands wrote: 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: ojrear...@gmail.com To: dev-b2g@lists.mozilla.org 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 dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g