Hi Kai,
After the patch, I get the next error during the build:
===========
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....
===================
What do you think is the problem ?
Thanks in advance
Regards
jvidalsm
2014-03-28 4:26 GMT-05:00 Kai-Zhen Li <[email protected]>:
> Hi Joes,
>
> 1. I patched to branch b2g-4.4.2_r1 of git://
> github.com/mozilla-b2g/platform_build
> 2. Yes, need to make sure ubifs is trigger during build.
>
>
> --
> Kai-Zhen Li (Seinlin)
> Mozilla Taiwan
>
> ----- Original Message -----
> From: "Jose Vidal" <[email protected]>
> To: "Kai-Zhen Li" <[email protected]>
> Cc: "Mozilla" <[email protected]>
> Sent: Friday, March 28, 2014 5:13:18 PM
> Subject: Re: [b2g] How to mount yaffs on NAND
>
> Hi Kai,
>
> I have two questions:
>
> 1. What is the platform_build version which you have patched?
> 2. When you say: add the related flags in device config, you mean to
>
> $ ./build.sh BUILD_TARGET_FS=ubifs
>
> The BUILD_TARGET_FS variable works with the imx6_target_fs.mk file
>
> ------imx6_target_fs.mk------
>
> ifeq ($(BUILD_TARGET_FS),ubifs)
> # build ubifs for nand devices
> TARGET_USERIMAGES_USE_UBIFS := true
> TARGET_USERIMAGES_USE_EXT4 := false
> PRODUCT_COPY_FILES += \
> device/fsl/imx6/etc/fstab_nand.freescale:root/fstab.freescale
> else
> # build for ext4
> TARGET_USERIMAGES_USE_EXT4 := true
> TARGET_USERIMAGES_USE_UBIFS := false
> PRODUCT_COPY_FILES += \
> device/fsl/imx6/etc/fstab.freescale:root/fstab.freescale
> endif # BUILD_TARGET_FS
>
> -----------------------------------------
>
>
> I have out/host/linux-x86/bin/mkfs.ubifs.
>
> Thanks in advance.
>
>
> Best regards.
>
>
> jvidalsm
>
>
> 2014-03-28 3:30 GMT-05:00 Kai-Zhen Li <[email protected]>:
>
> > Hi Jose,
> >
> > I think you will need to build system.img, userdata.img in ubifs format.
> > This is for you reference:
> > 1. patch platform/build and
> > 2. add the related flags in device config
> > 3. mkfs.ubifs (out/host/linux-x86/bin/mkfs.ubifs)
> >
> > How to patch platform/build,
> >
> >
> https://github.com/Seinlin/platform_build/commit/583929fee564268612ebb41b59aee5a3df0b157e
> >
> >
> > --
> > Kai-Zhen Li (Seinlin)
> > Mozilla Taiwan
> >
> > ----- Original Message -----
> > From: "Jose Vidal" <[email protected]>
> > To: [email protected]
> > Sent: Friday, March 28, 2014 3:01:28 PM
> > Subject: [b2g] How to mount yaffs on NAND
> >
> > Hi everyone,
> >
> > I have a iMX6Q processor whit NAND flash.
> > The NAND uses ubifs like file system.
> >
> > According the source code, I have two methods to mount a system.img
> >
> > Used for NAND: device/fsl/imx6/etc/fstab_nand.freescale
> >
> >
> ----------------------------------------------------------------------------------
> > ubi0:system /system ubifs ro
> > wait
> > ubi0:data /data ubifs nosuid,nodev,nodiratime,noatime
> > wait
> > ubi0:cache /cache ubifs nosuid,nodev
> > wait
> > ubi0:device /device ubifs nosuid,nodev
> > wait
> >
> >
> > Used for SD-card: device/fsl/imx6/etc/fstab.freescale
> >
> >
> -------------------------------------------------------------------------------
> > /dev/block/mmcblk0p5 /system ext4 ro
> > wait
> > /dev/block/mmcblk0p4 /data ext4
> >
> nosuid,nodev,nodiratime,noatime,nomblk_io_submit,noauto_da_alloc,errors=panic
> > wait,encryptable=footer
> > /dev/block/mmcblk0p6 /cache ext4 nosuid,nodev,nomblk_io_submit
> > wait
> > /dev/block/mmcblk0p7 /device ext4 ro,nosuid,nodev
> >
> >
> >
> > The build process creates the system.img file with yaffs like file
> system.
> >
> > How I make to mount the system.img file to mount point. I mean, to
> > "/system" ?
> >
> >
> >
> > I hope for your help.
> >
> > Thanks in advance.
> >
> > Best regards.
> >
> >
> > jvidalsm
> > _______________________________________________
> > 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