Hi Thomas,

I used this pull request. But, I had some changes. I had problems with the
sentence like:

build_command.append(str(int(prop_dict["partition_size"])/int(253952)))


Finally I had to use something like:


        @echo "Install system fs image: $@"

ifeq ($(TARGET_USERIMAGES_USE_UBIFS),true)

#       $(hide) cp -f $(systemimage_intermediates)/*.img $(PRODUCT_OUT)/

# I need build system with ubifs format

        $(MKUBIRAW) -o $(PRODUCT_OUT)/system.img $(TARGET_UBIRAW_ARGS)

else    

        $(copy-file-to-target)

        $(hide) $(call assert-max-image-size,$@
$(RECOVERY_FROM_BOOT_PATCH),$(BOARD_SYSTEMIMAGE_PARTITION_SIZE),yaffs)

endif


Where:


MKUBIRAW = out/host/linux-x86/bin/ubinize

TARGET_UBIRAW_ARGS = -m 2048 -p 128KiB -s 2048 -O 2048
device/variscite/var_som_mx6q/ubi/ubinize.ini


During build I have:


Running:  mkfs.ubifs -d out/target/product/var_som_mx6q/system -o
out/target/product/var_som_mx6q/obj/PACKAGING/systemimage_intermediates/system.img
-m 2048 -e 126976 -c 3950 -x none
Install system fs image: out/target/product/var_som_mx6q/system.img
out/host/linux-x86/bin/ubinize -o
out/target/product/var_som_mx6q/system.img -m 2048 -p 128KiB -s 2048
-O 2048 device/variscite/var_som_mx6q/ubi/ubinize.ini


Are my changes fine ?


Thanks in advace


Best regards.



jvidalsm



2014-03-31 10:48 GMT-05:00 Thomas Zimmermann <[email protected]>:

> Hi Jose
>
> On 31.03.2014 17:13, Jose Vidal wrote:
> > Hi Dave,
> >
> > This was fixed.
> >
> > I'm using
> >
> > ubi0:system/systemubifs rwwait
>
> There is a pull request on Github for supporting ubifs in the build
> system. Might be helpful for you. See
>
>   https://github.com/mozilla-b2g/platform_build/pull/43
>
> Best regards
> Thomas
>
> >
> > instead
> >
> > ubi0:system/systemubifs rowait
> >
> > Thanks so much.
> >
> > Best regards
> >
> > jvidalsm
> >
> >
> > 2014-03-29 12:34 GMT-05:00 Jose Vidal <[email protected]
> > <mailto:[email protected]>>:
> >
> >     Hi Dave,
> >
> >     Ok.
> >     Let me try.
> >
> >     Best regards.
> >
> >     jvidalsm
> >
> >     El mar 29, 2014 12:32 p.m., "Dave Hylands" <[email protected]
> >     <mailto:[email protected]>> escribió:
> >
> >         Hi Jose,
> >
> >         Check the mount command?
> >
> >         When you do a mount you have the option to do it ro or rw.
> >
> >         I suspect it's being mounted ro
> >
> >         Dave Hylands
> >
> >         ----- Original Message -----
> >         > From: "Jose Vidal" <[email protected]
> >         <mailto:[email protected]>>
> >         > To: "Dave Hylands" <[email protected]
> >         <mailto:[email protected]>>
> >         > Cc: [email protected]
> >         <mailto:[email protected]>
> >         > Sent: Saturday, March 29, 2014 10:25:17 AM
> >         > Subject: Re: [b2g] I have chmod 0755 /system/b2g/b2g error =
> -30
> >         >
> >         > Hi Dave,
> >         >
> >         > Thanks for your response.
> >         >
> >         > Do you have any idea how I can to solve that?
> >         >
> >         > When I mount using Ubifs format, I get:
> >         >
> >         > > UBIFS: mounted read-only
> >         >
> >         > Thanks in advance.
> >         >
> >         > Best regards.
> >         >
> >         > jvidalsm
> >         > El mar 28, 2014 2:57 p.m., "Dave Hylands"
> >         <[email protected] <mailto:[email protected]>> escribió:
> >         >
> >         > > errno 30 = EROFS  - Read-only file system
> >         > > errno  2 = ENOENT - No such file or directory
> >         > >
> >         > > ----- Original Message -----
> >         > > > From: "Jose Vidal" <[email protected]
> >         <mailto:[email protected]>>
> >         > > > To: [email protected]
> >         <mailto:[email protected]>
> >         > > > Sent: Friday, March 28, 2014 11:28:38 AM
> >         > > > Subject: [b2g] I have chmod 0755 /system/b2g/b2g error =
> -30
> >         > > >
> >         > > > Hi everyone,
> >         > > >
> >         > > > I have the loglevel 8 in init.rc and I have the next error
> >         messages:
> >         > > >
> >         > > > ============
> >         > > >
> >         > > > init: processing action 0x351f0 (fs)
> >         > > > ehci_fsl_bus_suspend begins, Host 1
> >         > > > ehci_fsl_bus_suspend ends, Host 1
> >         > > > UBIFS: mounted UBI device 0, volume 0, name "system"
> >         > > > UBIFS: mounted read-only
> >         > > > UBIFS: file system size:   229318656 bytes (223944 KiB,
> >         218 MiB, 1806
> >         > > LEBs)
> >         > > > UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB,
> >         72 LEBs)
> >         > > > UBIFS: media format:       w4/r0 (latest is w4/r0)
> >         > > > UBIFS: default compressor: none
> >         > > > UBIFS: reserved for root:  0 bytes (0 KiB)
> >         > > > UBIFS: start fixing up free space
> >         > > > UBIFS: free space fixup complete
> >         > > > UBIFS: mounted UBI device 0, volume 3, name "data"
> >         > > > UBIFS: file system size:   143990784 bytes (140616 KiB,
> >         137 MiB, 1134
> >         > > LEBs)
> >         > > > UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB,
> >         72 LEBs)
> >         > > > UBIFS: media format:       w4/r0 (latest is w4/r0)
> >         > > > UBIFS: default compressor: none
> >         > > > UBIFS: reserved for root:  0 bytes (0 KiB)
> >         > > > UBIFS: default file-system created
> >         > > > UBIFS: mounted UBI device 0, volume 1, name "cache"
> >         > > > UBIFS: file system size:   61837312 bytes (60388 KiB, 58
> >         MiB, 487 LEBs)
> >         > > > UBIFS: journal size:       3047424 bytes (2976 KiB, 2 MiB,
> >         24 LEBs)
> >         > > > UBIFS: media format:       w4/r0 (latest is w4/r0)
> >         > > > UBIFS: default compressor: lzo
> >         > > > UBIFS: reserved for root:  2920728 bytes (2852 KiB)
> >         > > > UBIFS: default file-system created
> >         > > > UBIFS: mounted UBI device 0, volume 2, name "device"
> >         > > > UBIFS: file system size:   9396224 bytes (9176 KiB, 8 MiB,
> >         74 LEBs)
> >         > > > UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB,
> >         6 LEBs)
> >         > > > UBIFS: media format:       w4/r0 (latest is w4/r0)
> >         > > > UBIFS: default compressor: lzo
> >         > > > UBIFS: reserved for root:  443806 bytes (433 KiB)
> >         > > > init: command 'mount_all' r=0
> >         > > > init: command 'chmod' r=-30
> >         > > > init: command 'chmod' r=-2
> >         > > > init: command 'chmod' r=-30
> >         > > >
> >         > > > ============
> >         > > >
> >         > > > Mainly, my question is about
> >         > > >
> >         > > > ===========
> >         > > >
> >         > > > init: command 'chmod' r=-30
> >         > > > init: command 'chmod' r=-2
> >         > > > init: command 'chmod' r=-30
> >         > > >
> >         > > > ===========
> >         > > >
> >         > > > This is caused by
> >         > > >
> >         > > >
> >         > > > on fs
> >         > > > # mount ubifs partitions
> >         > > >     mount_all /fstab.freescale
> >         > > >     chmod 0755 /system/b2g/b2g
> >         > > >     chmod 0755 /system/b2g/updater
> >         > > >     chmod 0755 /system/b2g/plugin-container
> >         > > >
> >         > > >
> >         > > >
> >         > > > Why I have these error messages?
> >         > > >
> >         > > >
> >         > > > I hope for your help.
> >         > > >
> >         > > >
> >         > > > Thanks in advance
> >         > > >
> >         > > >
> >         > > > Best regards.
> >         > > >
> >         > > > jvidalsm
> >         > > > _______________________________________________
> >         > > > dev-b2g mailing list
> >         > > > [email protected] <mailto:
> [email protected]>
> >         > > > https://lists.mozilla.org/listinfo/dev-b2g
> >         > > >
> >         > >
> >         >
> >
> >
> >
> >
> > _______________________________________________
> > 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

Reply via email to