Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Menage the Android memory space

14

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
14

Menage the Android memory space

Posted at 12/1/2014 04:40:30      View:5678 | Replies:5        Print      Only Author   [Copy Link] 1#
Hi, I would ask how I can increase memory for installed apps in my dev board? It is set only 1 GB and it is too small for me.

Reply

Use props Report

15

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
15
Posted at 12/1/2014 05:23:48        Only Author  2#
You'll have to edit the image to adjust the partition sizes I think. You can make a custom image with the partition sizes youre looking for. Check the wiki, I'd love to have help more but don't have the device yet unfortunately. I'm not positive if you can adjust the partition sizes after install without risking corruption/borking your install.
Reply

Use props Report

5

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
5
Posted at 12/1/2014 16:52:33        Only Author  3#

you can try to fix the?AndroidTool_Release_v2.3.rar ???\rockdev\rk3288-3.10-uboot-data1G.parameter.txt.?




Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

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

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

14

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
14
Posted at 12/2/2014 03:56:35        Only Author  5#




Thanks for reply guys! Unfortunately, I use factory dual boot image: ubuntu + android. Can I use busybee method for my dev board with dual boot??


Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

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

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