Hello all!
I need to expand the flash partition size to fit my rootfs. I know I have to pass the command AT!APPPARTCHG, but I have no idea about the command syntax. Can anyone give the command details - its syntax, usage and examples if possible ?
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 …
Thank you very much! But I may have some problems…
Can’t these partitions (such as USERDATA and USERAPP) be unified in a single one (rootfs + userdata + userapp)? For my application requires Java machine, my ROOTFS got a little bigger (something around 130MB), plus my data space.
I don’t know if these partitions make part of the android system scheme (maybe I’m talking trash, please correct me if I’m wrong) or it’s just an convenient partitioning, but comparing with the majors embedded linux solutions, the rootfs+data partition are always in same place.
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)
You could take space from USERDATA and USERAPP to add to your SYSTEM partition. If you want to be able to leave the option oppen to write the Legato app framework into its own partition then you should leave at least 10MB of space in USERDATA. For example, if you need 150MB in SYSTEM then you could run:
You were right! Although my original partition had a block with 0 size (which I took as a base), I couldn’t set it again after typing the original numbers… Who knows why?
Anyway, I set my partitions as follow and it worked fine! Now I have plenty of room for my Java machine and other stuff!
[code]
AT!UNLOCK=“A710”
OK
AT!APPPARTCHG=768,50,19000,384,160000,300,10000,383,71000,1
OK [/code]