Build an USERAPP cwe for FX30 4G

Hi,
Our company build a custom FW for the FX30 4G with several components (not legato for the most parts), but we don’t have enough space to fit all our apps on the base partition.
Is any way/docs to fill the USERAPP partition with our files at the fw cwe build?

Best regards,
Guillaume

Hi g.amaudric

You can use AT!APPPARTCHG to configure or list the sizes of the partitions.

at!apppartchg?

Total APP partition size:
261886 kB APPSBL,PAD,APPS,PAD,SYSTEM,PAD,USERDATA,PAD,USERAPP,PAD =
768,50,20000,384,50000,300,38000,2560,149440,384

You can’t collapse them into the same space, but you can steal as much space as you want from the others. The partitions are used as follows:

APPSBL - the bootloader. Leave this one alone
APPS - kernel
SYSTEM - rootfs
USERDATA - We put the Legato framework here in some instances, but you don’t have to. You can reclaim all of this space if you like. As of 15.01 it is mounted as /mnt/legato.
USERAPP - The big writable area for your use (mounted as /mnt/flash)

If you run the command as a query you should see something like:

at!apppartchg? Total APP partition size: 261886 kB APPSBL,PAD,APPS,PAD,SYSTEM,PAD,USERDATA,PAD,USERAPP,PAD = 768,50,20000,384,50000,300,38000,2560,149440,384

That will list the sizes of the partitions. The one you care about for your rootfs is “SYSTEM”. Depending on how large it is you can steal some space from the subsequent partitions without too many consequences. e.g. increase size by 10MB …

AT!APPPARTCHG=768,50,20000,384,60000,300,38000,2560,139440,384

Please refer to Flash partitions for more details.

Hi Donald,
Thanks you for your answer, unfortunately this command is unavailable/unsupported on the wp7702 (fx30 4g cat-m) which we use.

Best regards,
Guillaume

Hi g.amaudric

Can you unlock password-protected command on FX30?

AT!UNLOCK=“A710”
AT!RESET
AT!APPPARTCHG?

Please help to mark “Solution” if your question is answered.

Hi,
Here are my command return:
AT!ENTERCND=“A710” => OK
AT!RESET => OK
AT!APPPARTCHG? => ERROR

The last command seem to has been removed from the platform since it doesn’t appear on the at command reference (4118047 WPx5xx-76xx-77xx AT Command Reference_r7.1.pdf).

Hi g.amaudric

It is not supported currently on the wp7702 (fx30 4g cat-m).

By exploring the Sierra Yocto recipes of th 4g and compare them to the 3g version it appear that Sierra had remove all code which generated the overlay (mdm9x28-image-cwe.inc vs mdm9x15-image-cwe.inc).

I will try to had the overlay specific code to the new environment.