Author Topic: [G5A] Resize internal memory partitions  (Read 7126 times)

tiagao_extremo (OP)

  • Posts: 747
[G5A] Resize internal memory partitions
« on: June 08, 2014, 09:28:24 pm »
Hello friends. My 64gb is arriving tomorrow. Before installing and moving everything to the sdcard i have a question. Is it possible to resize the internal memory partitions? I don't like the idea of using the internal memory and since the 64gb it's plenty of space i would like to resize the internal memory partitions so i would have:

> 6gb for the data partition

> The rest of the space for the internal sdcard, around 500-600mb if i'm correct.

After swapping i would have the 64gb as the internal sd card, 6gb for the data partition, so i won't have to worry about installing anything i want, and then the rest of memory for the external sd, which i won't use by the way. Is there anyway to do it?

skelton

  • Posts: 6894
Re: [G5A] Resize internal memory partitions
« Reply #1 on: June 08, 2014, 09:56:27 pm »
You need to unpack the firmware. The easiest way is using something like RK3XXX by SergioPowerony, if you are a windows guy.


Once extracted look for a fle called parameter, which is the file you need to edit (use something like notepad ++ to edit it) and change the last line for:
Code: [Select]
CMDLINE:console=ttyFIQ0 androidboot.console=ttyFIQ0 init=/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:[email protected](misc),[email protected](kernel),[email protected](boot),[email protected](recovery),[email protected](backup),[email protected](cache),[email protected](userdata),[email protected](metadata),[email protected](kpanic),[email protected](system),[email protected](user)


Then just repack it again with the same RK3XXX tool, and flash again the firmware using RESTORE option in Batch Tool.

Retired

tiagao_extremo (OP)

  • Posts: 747
Re: [G5A] Resize internal memory partitions
« Reply #2 on: June 09, 2014, 12:55:19 am »
Thanks again for always helping Skelton. I'll definitely try this tomorrow and let you know. :)

Grebbin77

  • Posts: 317
Re: [G5A] Resize internal memory partitions
« Reply #3 on: June 10, 2014, 03:09:01 am »
This sounds interesting.  Is it possible to create a pair of patches for use with the Tincore Quickflasher?  One would be the standard partitions, the other would be the ones described above?  Or can this only be done via a full firmware flash?  Sorry if this is a newbie question, but I am not a programmer.  Thanks!
GPD G5a, JXD S5110b, NDS lite w/ Acekard, Kindle Fire, Samsung Galaxy S4, PS Vita, iPad

skelton

  • Posts: 6894
Re: [G5A] Resize internal memory partitions
« Reply #4 on: June 10, 2014, 07:43:06 am »

It requires a full firmware reflash
Retired

tiagao_extremo (OP)

  • Posts: 747
Re: [G5A] Resize internal memory partitions
« Reply #5 on: June 11, 2014, 12:01:06 am »
Good guy Skelton, always helping everyone, a true gentlemen. With his help i unpacked the firmware, changed the file parameter and repacked. My micro sdcard arrived today and then i flashed the firmware again (Legacy Rom KitKat) and this is the result:



This is exactly the setup i wanted. Again, thanks Skelton. All your efforts and kindness are always welcome by everyone.

Enkill77

  • Posts: 13
Re: [G5A] Resize internal memory partitions
« Reply #6 on: June 13, 2014, 12:27:59 pm »
Can you upload the mod rom to mega or other good server?


Grebbin77

  • Posts: 317
Re: [G5A] Resize internal memory partitions
« Reply #7 on: June 13, 2014, 01:02:35 pm »
You need to unpack the firmware. The easiest way is using something like RK3XXX by SergioPowerony, if you are a windows guy.


Once extracted look for a fle called parameter, which is the file you need to edit (use something like notepad ++ to edit it) and change the last line for:
Code: [Select]
CMDLINE:console=ttyFIQ0 androidboot.console=ttyFIQ0 init=/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:[email protected](misc),[email protected](kernel),[email protected](boot),[email protected](recovery),[email protected](backup),[email protected](cache),[email protected](userdata),[email protected](metadata),[email protected](kpanic),[email protected](system),[email protected](user)


Then just repack it again with the same RK3XXX tool, and flash again the firmware using RESTORE option in Batch Tool.

Is the process/coding exactly the same whether using the Jellybean vs. KitKat rom?  When I get a larger microSD card, I think I'll try this! 
GPD G5a, JXD S5110b, NDS lite w/ Acekard, Kindle Fire, Samsung Galaxy S4, PS Vita, iPad

tiagao_extremo (OP)

  • Posts: 747
Re: [G5A] Resize internal memory partitions
« Reply #8 on: June 13, 2014, 01:53:18 pm »
Can you upload the mod rom to mega or other good server?

It's more easy and fast just to modify these files, than downloading the firmware again. Surely i could upload the modified rom, but only if Skelton gives his permission since i'm modifying his work.
« Last Edit: June 13, 2014, 06:30:35 pm by tiagao_extremo »

skelton

  • Posts: 6894
Re: [G5A] Resize internal memory partitions
« Reply #9 on: June 13, 2014, 02:33:18 pm »
Can you upload the mod rom to mega or other good server?

It's more easy and fast just to modify these files, then downloading the firmware again. Surely i could upload the modified rom, but only if Skelton gives his permission since i'm modifying his work.

No problem for me if you want to upload it.
Retired

tiagao_extremo (OP)

  • Posts: 747
Re: [G5A] Resize internal memory partitions
« Reply #10 on: June 13, 2014, 07:36:06 pm »
Can you upload the mod rom to mega or other good server?

It's more easy and fast just to modify these files, then downloading the firmware again. Surely i could upload the modified rom, but only if Skelton gives his permission since i'm modifying his work.

No problem for me if you want to upload it.

Ok, since Skelton gave his approval, this is the legacy kitkat rom with the partition's size modified. The only difference is that instead of 2gb for the data partition and around 4.5gb for the user partition, you will have around 6.3gb for the data partition and only 512mb for the user partition. This means that you won't have to worry ever about installing new apps. On the other hand it's mandatory to have a microsd card. This is just the image file for the rom. You will still need the tools that Skelton provided to flash the firmware. All the credits goes to Skelton because he obviously created this rom and also helped me to resize the partitions:

https://mega.co.nz/#!8AUnTCoa!JvDB_h8VmANXIRE5Rd_sxAKrErP-OSshIwOgD3kXGsM
« Last Edit: August 02, 2014, 11:16:58 pm by tiagao_extremo »

skelton

  • Posts: 6894
Re: [G5A] Resize internal memory partitions
« Reply #11 on: June 13, 2014, 09:07:56 pm »
You need to unpack the firmware. The easiest way is using something like RK3XXX by SergioPowerony, if you are a windows guy.


Once extracted look for a fle called parameter, which is the file you need to edit (use something like notepad ++ to edit it) and change the last line for:
Code: [Select]
CMDLINE:console=ttyFIQ0 androidboot.console=ttyFIQ0 init=/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:[email protected](misc),[email protected](kernel),[email protected](boot),[email protected](recovery),[email protected](backup),[email protected](cache),[email protected](userdata),[email protected](metadata),[email protected](kpanic),[email protected](system),[email protected](user)


Then just repack it again with the same RK3XXX tool, and flash again the firmware using RESTORE option in Batch Tool.

Is the process/coding exactly the same whether using the Jellybean vs. KitKat rom?  When I get a larger microSD card, I think I'll try this!

Jellybean does not have a metadata partition, so for JB you can try this.
Code: [Select]
CMDLINE:console=ttyFIQ0 androidboot.console=ttyFIQ0 init=/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:[email protected](misc),[email protected](kernel),[email protected](boot),[email protected](recovery),[email protected](backup),[email protected](cache),[email protected](userdata),[email protected](kpanic),[email protected](system),[email protected](user)
Retired

Enkill77

  • Posts: 13
Re: [G5A] Resize internal memory partitions
« Reply #12 on: June 19, 2014, 01:52:12 pm »
Thanks for the uploaded rom!


 

Post a new topic
Post a new topic