How to increase size of Android Internal Storage by resizing rootfs partition of the Wi-i.MX53 Android JSK .

By default the internal storage memory of the CCWi-i.MX53 Android JSK kit (Memory variant: 512/152) that comes with  the  Android 2.3.7 image has the 107 MB. The problem is we cannot install android applications more than 107 MB on the device. In this procedure we can increase the internal memory nearly upto 450 MB, so we can able to install more android applications on the JSK.

Solution:

  1. Connect the power supply and serial cable (UART1) to the CCWi-i.MX53  board,  open the serial console  window on the host machine with the baud rate 115200, power on the board.
  2. After booting properly ,check the Internal storage size of the module from the  Settings-->Applications-->Manage Applications-->All. You can see the total internal storage memory size around 107 MB.
  3. Now reset the device, stop the booting process by pressing enter key.
  4. Use the “flpart” command and follow the below procedure 
                    CCWMX53 # flpart 
                    Nr | Name       |  Start              | Size              | Type                              | FS       | Flags
                    ------------------------------------------------------------------------------- ---------------------
                    0 | U-Boot      |          0            |      1 MiB      | U-Boot                          |             | fixed 
                    1 | NVRAM   |   1  MiB          |    512 KiB     | NVRAM                       |             | fixed 
                    2 | Splash       |   1536 KiB      |     1 MiB       | Splash-Screen               |             | 
                    3 | Kernel       |   2560 KiB      |     3 MiB       | Linux/Android-Kernel  |      
                    4 | RootFS      |   5632 KiB      |     120 MiB   | Filesystem                    | UBIFS | rootfs 
                    5 | UserFS      |  128512 KiB   | 395776 KiB  | Filesystem                    | UBIFS |

                    Commands: 
                    a) Append partition
                    d) Delete partition
                    m) Modify partition
                    p) Print partition table
                    r) Reset partition table
                    q) Quit
                    Cmd (? for help)> d
                    Delete Which Partition? 5

                    Nr | Name     |  Start           | Size           | Type                            | FS        | Flags
                    -------------------------------------------------------------------------------------
                    0 | U-Boot     |          0        |      1 MiB   | U-Boot                         |             | fixed 
                    1 | NVRAM  |      1 MiB    |    512 KiB  | NVRAM                      |             | fixed 
                    2 | Splash       |   1536 KiB  |      1 MiB   | Splash-Screen              |             | 
                    3 | Kernel       |   2560 KiB  |      3 MiB   | Linux/Android-Kernel  |             | 
                    4 | RootFS     |   5632 KiB  |    120 MiB | Filesystem                  | UBIFS | rootfs 

                    Partition 5 deleted, start addresses not adjusted
                    Cmd (? for help)> m
                    Modify Which Partition? 4

                    Name  (RootFS): RootFS
                    Chip  (0): 0
                    Start (in MiB, 0 for auto) (5632 KiB): 5632 KiB
                    Size  (in MiB, 0 for auto, 518656 KiB max) (120 MiB): 0
                    --> Set to 518656 KiB
                    Partition Types
                    Partition Type (Filesystem, ? for help)> 
                    Fixed  (n): n
                    
Readonly  (n): n
                    Filesystem Types
                    Filesystem (UBIFS, ? for help)> 
                    Root-FS  (y): y
                    Mount Readonly  (n): n
                    Nr | Name    |  Start            | Size              | Type                             | FS       | Flags
                    --------------------------------------------------------------------------------------------------
                    0 | U-Boot    |          0         |      1 MiB      | U-Boot                          |             | fixed 
                    1 | NVRAM |      1 MiB     |    512 KiB     | NVRAM                       |             | fixed 
                    2 | Splash     |   1536 KiB   |      1 MiB      | Splash-Screen               |             | 
                    3 | Kernel     |   2560 KiB   |      3 MiB      | Linux/Android-Kernel  |             | 
                    4 | RootFS    |   5632 KiB   | 518656 KiB | Filesystem                     | UBIFS | rootfs 
                    Cmd (? for help)> q
                    Partition table has been modified. Save? (y): y

                    Writing Parameters to NVRAM
                    Warning: The following UBI partitions were modified:
                    - RootFS
                    A firmware update of the listed partitions is needed to recreate their UBI volumes


                    Then update the file system image onto the module by using the below command 

                    #update rootfs tftp android-ccwmx53js-128.ubifs                         (For this step you need to set some basic tftpserver settings, follow the steps based on the link http://ftp1.digi.com/support/documentation/90001280_B.pdf  )      
                           After successfully updated, reset the module. Once  android image booted properly, again check  the internal storage of the module based on step 2. It will be around 450MB.
Last updated: Jun 21, 2019

Recently Viewed

No recently viewed articles

Did you find this article helpful?