Hi,
Here is the procedure I followed to build a small system image from
the FFOS_FR_ZTE system.img:
1. Extract the update.zip
2. Create a small-system/ directory with the following:
- build.prop
- bin/
- lib/
3. Run the following command to build the corresponding system
image:
: make_ext4fs -l 53M small-system.img small-system/
4. And flash it:
: $ fastboot flash system small-system.img
: target reported max download size of 1073741824 bytes
: erasing 'system'...
: OKAY [ 0.443s]
: sending 'system' (54272 KB)...
: OKAY [ 1.705s]
: writing 'system'...
: OKAY [ 4.041s]
: finished. total time: 6.190s
Note that the "-l 53M" given to make_ext4fs comes from a trial/error
approach, e.g., -l 50M was failing (due to some block allocation
IIRC).
Sheda
On Tue, Feb 24, 2015 at 2:22 PM, <[email protected]> wrote:
> Hi all,
>
> after an unfortunate update-try of my ZTE Open C I was just trying to follow
> this guide to unbrick the cellphone:
>
> https://support.mozilla.org/en-US/questions/1003136
>
> I need a clarification regarding these steps:
>
> 2. extract the file 'file_contexts' from boot.img or recovery.img
>
> 3. create or use existing system/ directory from update.zip, if there's an
> issue with sending large files to the device (like in my case), you can keep
> only lib/, bin/, and build.prop file - this makes for mere ~50Mb; or maybe
> even just build.prop, I didn't try that
>
> 4. create system.img from the directory, using the command line 'make_ext4fs
> -l <size in Mb>M -a system -S file_contexts system.img <directory with
> system/ files>'.
>
> First of all ...
>
> 1) Once I've extracted the file_contexts file from the boot.img, do I have to
> put it in the "system" folder, isn't it?
>
> 2) Assuming point 1 is correct, could you please give me an example of a
> correct make-ext4fs command? I don't have any idea of the correct syze, while
> I should be able to add on my own the system folder path xD
>
> Thank you for your precious time,
>
> Luca
> _______________________________________________
> 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