Hi Kai,

This is my build_image.py

--
  elif fs_type.startswith("ubifs"):
    build_command = ["mkfs.ubifs"]
    build_command.append("-a")
    build_command.append(prop_dict["mount_point"])
    build_command.append("-r")
    build_command.append(in_dir)
    build_command.extend(prop_dict["ubifs_sparse_flag"].split())
    build_command.append("-m 4096")
    build_command.append("-e 253952")
    build_command.append("-c")
    build_command.append(str(int(prop_dict["partition_size"])/int(253952)))
    build_command.append("-o")
    build_command.append(out_file)
  else:


...

  d["mount_point"] = mount_point
  if mount_point == "system":
    copy_prop("fs_type", "fs_type")
    copy_prop("system_size", "partition_size")
  elif mount_point == "data":
    copy_prop("fs_type", "fs_type")
    copy_prop("userdata_size", "partition_size")
  elif mount_point == "cache":
    copy_prop("cache_fs_type", "fs_type")
    copy_prop("cache_size", "partition_size")
  elif mount_point == "vendor":
    copy_prop("vendor_fs_type", "fs_type")
    copy_prop("vendor_size", "partition_size")

  return d

...
--

I have the same error:

mkdir -p out/target/product/var_som_mx6q/system/b2g
cp /home/jvidal/Projects/imx_fos102_v4/B2G/gaia/profile/user.js
out/target/product/var_som_mx6q/system/b2g/user.js
Target userdata fs image: out/target/product/var_som_mx6q/userdata.img
Traceback (most recent call last):
  File "./build/tools/releasetools/build_image.py", line 194, in <module>
    main(sys.argv[1:])
  File "./build/tools/releasetools/build_image.py", line 188, in main
    if not BuildImage(in_dir, image_properties, out_file):
  File "./build/tools/releasetools/build_image.py", line 76, in BuildImage
    build_command.append(str(int(prop_dict["partition_size"])/int(253952)))
KeyError: 'partition_size'
make: *** [out/target/product/var_som_mx6q/userdata.img] Error 1
make: *** Waiting for unfinished jobs....



-----

What's the problem?

Regards

Jose





2014-04-29 5:48 GMT-05:00 Jose Vidal <jvida...@gmail.com>:

> Hi Kai,
>
> Thanks for your response.
>
> Ok. Let me try.
>
> Regards.
>
> Jose
> On Apr 29, 2014 12:46 AM, "Kai-Zhen Li" <k...@mozilla.com> wrote:
>
>> Hi Jose,
>>
>> Can you check your build_image.py?
>> Suppose "partition_size" should be set before it is used.
>> For example:
>>
>> https://github.com/Seinlin/platform_build/blob/583929fee564268612ebb41b59aee5a3df0b157e/tools/releasetools/build_image.py#L138
>>
>> --
>> Kai-Zhen Li (Seinlin)
>> Mozilla Taiwan
>>
>> ----- Original Message -----
>> From: "Jose Vidal" <jvida...@gmail.com>
>> To: mozilla-dev-...@lists.mozilla.org
>> Sent: Monday, April 28, 2014 10:27:02 PM
>> Subject: [b2g] The UBIFS format on NAND flash memory
>>
>> Hi everyone,
>>
>> I'm porting B2G on freescale device with the next features:
>>
>> 1. Android JB 4.2.2 r1
>> 2. CPU iMX6
>> 3. GPU Vivante.
>>
>> The NAND flash have Ubifs format, so, I needed create the images using
>> Ubifs format.
>>
>> I'm using the next patch to platform/build
>>
>>
>> https://github.com/Seinlin/platform_build/commit/583929fee564268612ebb41b59aee5a3df0b157e
>>
>> After the patch, I have a error message during build process:
>>
>> ===========
>>
>> Target userdata fs image: out/target/product/var_som_mx6q/userdata.img
>> Traceback (most recent call last):
>>   File "./build/tools/releasetools/build_image.py", line 193, in <module>
>>     main(sys.argv[1:])
>>   File "./build/tools/releasetools/build_image.py", line 187, in main
>>     if not BuildImage(in_dir, image_properties, out_file):
>>   File "./build/tools/releasetools/build_image.py", line 78, in BuildImage
>>
>> build_command.append(str(int(prop_dict["partition_size"])/int(253952)))
>> KeyError: 'partition_size'
>> make: *** [out/target/product/var_som_mx6q/userdata.img] Error 1
>> make: *** Waiting for unfinished jobs....
>>
>> ===================
>>
>> Any idea how I can solve this error ?
>>
>>
>> Thanks in advance,
>>
>>
>> Regards,
>>
>>
>> Jose
>> _______________________________________________
>> 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

Reply via email to