WP770x Yocto - increase filesystem size

Is a procedure available to increase the filesystem size?

This is an example of the yocto output that is failing due to

| ubinize: error!: error in section “sysfs_volume”: size of the image file

"/home/john/FX30/workspace/build_bin/tmp/deploy/images/swi-mdm9x28-wp/mdm9x28-image-minimal-swi-mdm9x28-wp-20190507083900.rootfs.2k.ubifs" is 50790400, which is larger than volume size 39845888
| WARNING: /home/john/FX30/workspace/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/run.prepare_ubi.23520:1 exit 255 from '/home/john/FX30/workspace/build_bin/tmp/sysroots/x86_64-linux/usr/sbin/ubinize -o $ubi_path $ubinize_args $ubinize_cfg'
| ERROR: Function failed: prepare_ubi (log file is located at /home/john/FX30/workspace/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/log.do_image_complete.23520)
ERROR: Task (/home/john/FX30/workspace/meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb:do_image_complete) failed with exit code '1'

./meta-swi/meta-swi-mdm9x28/conf/machine/swi-mdm9x28.conf
change UBI_ROOTFS_SIZE ?= “48MiB”

1 Like

Hi jyijyi

Will this be deployable without having to carry out further work to increase the partition size on the physical device?

Please try if you can compile first

Hi jyijyi

The yocto build works ok - however I programmed a part with the image and it is now just has a DM port - I guess indicating that there is a problem with the image.

Unfortunately I’ve just noticed that I have not used the correct title when I raised the initial post - sorry about that that - it’s a WP7702

what do you mean a part of image?
I remember I tried 48MB, it is OK.

Hi jyijyi

I installed

mcu-rmfw-boot-yocto-legato_wp77xx-generic.cwe

Thanks

John

I installed the yocto_wp77xx.4k.cwe.

Hi jyijyi

Thanks - I guessed all the cwe should work? Did you repartition the device before you used the bigger image?

For info the following are the built images

workspace/build_bin/tmp/deploy/images/swi-mdm9x28-wp$ ls -x *.cwe

appsboot_wp77xx.4k.cwe
appsboot_wp77xx.cwe
boot-yocto-legato_wp77xx.cwe
boot-yocto_wp77xx.cwe
legato-image.wp77xx.cwe
mcu-rmfw-boot-yocto-legato_wp77xx-att.cwe
mcu-rmfw-boot-yocto-legato_wp77xx-generic.cwe
mcu-rmfw-boot-yocto-legato_wp77xx-sierra.cwe
mcu-rmfw-boot-yocto-legato_wp77xx-verizon.cwe
yocto_wp77xx.4k.cwe

Any ideas what the 4K file represents?

Kind regards

John

I just used that one, and I never used other cwe file…

Hi jyijyi

At this point I had a dead WP7602 but it was in boot mode - reflashing with the one-click installer from the source failed. After some experimentation I was able to recover the module as follows

One-click workaround link

In summary

  • Loading the standard .cwe from the SW source web site works on the module.
  • Loading the 48MiB locally built Yocto image doesn’t work.
  • Loading a “38MiB” locally built Yocto image works

For example if I from change from larger “48MiB” back to original setting

UBI_ROOTFS_SIZE ?= "38MiB"

and rebuilding - the image (yocto_wp77xx.4k.cwe) will load onto the WP7702 and it runs ok

You mean change it to 39MiB, it will not work?

Hi jyijyi
I have updated my notes above - hopefully clarified my findings

The bigger image doesn’t work on the module the smaller does work on the module

Some related topic

Hi

Still not clear how is possible to proper repartition those devices. We have plenty of flash and should be some way to prepare to do it. Any update?

I remember I tried 48MB, it is OK.
Did you try that?

Hi my idea is to change lk and mount userapp instead of system as root and move userapp on system partition. THere we have 100mb. Are some tools to change partition scheme?

I saw the release note of wp77 R13, there is tracker about:
“Enlarge RootFS and Legato
partition for larger customer
application”

Probably you need to order new SKU

Hi

I have bumped to Release13.xml manifest and I’m building. I don’t see any change on their configuration about UBIFS size. Maybe I should go to the FAE and asking more information about re-partitioning of the device

Didn’t the release note already says:

Modules on newer SKUs will have a larger
RootFS and Legato partition, providing increased
flexibility for larger custom Linux/Legato builds.
Field upgrade will not modify partitions.