Firefly Open Source Community
Title: Menage the Android memory space [Print This Page]
Author: goro Time: 12/1/2014 04:40
Title: Menage the Android memory space
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.
Author: Echoa Time: 12/1/2014 05:23
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.
Author: Sai Time: 12/1/2014 16:52
you can try to fix the?AndroidTool_Release_v2.3.rar ???\rockdev\rk3288-3.10-uboot-data1G.parameter.txt.?
Author: busybee Time: 12/1/2014 17:28
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:
- 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:
- FIRMWARE_VER:4.4.2
- MACHINE_MODEL:rk30sdk
- MACHINE_ID:007
- MANUFACTURER:RK30SDK
- MAGIC: 0x5041524B
- ATAG: 0x60000800
- MACHINE: 3066
- CHECK_MASK: 0x80
- PWR_HLD: 0,0,A,0,1
- #KERNEL_IMG: 0x62008000
- #FDT_NAME: rk-kernel.dtb
- #RECOVER_KEY: 1,1,0,20,0
- 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.
Author: goro Time: 12/2/2014 03:56
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??
Author: busybee Time: 12/2/2014 16:37
I'm afraid that you cannot do that.
Enlarging Android's userdata paritition will destroy Ubuntu's linuxroot partition.
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) |
Powered by Discuz! X3.1 |