Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Menage the Android memory space

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 12/1/2014 17:28:15      1#

Are you using the pure Android firmware without Ubuntu ?

If that's the case, you can try the following steps.


(WARNING: Please backup all of your important data first!!!)


1. Go to http://wiki.t-firefly.com/index.php/Fir ... h_image/en to get ready for the flashing evironment,

  such as installing rockusb driver, connecting device and configuring AndroidTool.


2. In the extracted directory of AndroidTool_Release_v2.3.rar, use a text editor to open

   "rockdev\rk3288-3.10-uboot-data1G.parameter.txt".


The line prefixed with "CMDLINE:" contains the partition info:

  1. CMDLINE:console=ttyFIQ0 androidboot.hardware=rk30board androidboot.console=ttyFIQ0 board.ap_has_alsa=0 init=/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),0x00002000@0x00004000(misc),0x00008000@0x00006000(resource),0x00008000@0x0000e000(kernel),0x00010000@0x00016000(boot),0x00010000@0x00026000(recovery),0x0001a000@0x00036000(backup),0x00040000@0x00050000(cache),0x00002000@0x00090000(kpanic),0x00180000@0x00092000(system),0x00002000@0x00212000(metadata),0x00200000@0x00214000(userdata),0x00020000@0x00414000(radical_update),-@0x00434000(user)
Copy the code



The Android data partition is "0x00200000@0x00214000(userdata)", which is in format of "SIZE@OFFSET(PARITION)" with 512 bytes (a traditional disk sector size) as unit.

Therefore, the userdata partition as a size of 0x00200000 * 512 = 1G bytes.


If you want to expand it to 2G bytes. Just change the size to 0x00400000, and adjust all offsets of partitions afterwards.

Here is the full example of 2G userdata partition:

  1. FIRMWARE_VER:4.4.2
  2. MACHINE_MODEL:rk30sdk
  3. MACHINE_ID:007
  4. MANUFACTURER:RK30SDK
  5. MAGIC: 0x5041524B
  6. ATAG: 0x60000800
  7. MACHINE: 3066
  8. CHECK_MASK: 0x80
  9. PWR_HLD: 0,0,A,0,1
  10. #KERNEL_IMG: 0x62008000
  11. #FDT_NAME: rk-kernel.dtb
  12. #RECOVER_KEY: 1,1,0,20,0
  13. CMDLINE:console=ttyFIQ0 androidboot.hardware=rk30board androidboot.console=ttyFIQ0 board.ap_has_alsa=0 init=/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),0x00002000@0x00004000(misc),0x00008000@0x00006000(resource),0x00008000@0x0000e000(kernel),0x00010000@0x00016000(boot),0x00010000@0x00026000(recovery),0x0001a000@0x00036000(backup),0x00040000@0x00050000(cache),0x00002000@0x00090000(kpanic),0x00180000@0x00092000(system),0x00002000@0x00212000(metadata),0x00400000@0x00214000(userdata),0x00020000@0x00614000(radical_update),-@0x00634000(user)
Copy the code

Save it as new file "rk3288-3.10-uboot-data2G.parameter.txt" in the same directory of the 1G variant.


3. Run AndroidTool.exe (with administrator right if neccessary), follow the steps as shown in the follow image:



4. The device will reboot into Android again. Please do a factory reset and wipe alll the data.

Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 12/2/2014 16:37:05      2#

I'm afraid that you cannot do that.




Enlarging Android's userdata paritition will destroy Ubuntu's linuxroot partition.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list