FORUMS

[TOOL] imgRePacker (LiveSuit's & PhoenixSuit's firmware images unpacker/packer)

343 posts
Thanks Meter: 237
 
By RedScorpioXDA, Senior Member on 5th July 2012, 08:21 PM
Post Reply Email Thread
6th October 2013, 10:06 PM |#121  
Member
Thanks Meter: 17
 
More
Hi,
I'm unpacking and repacking a31s and a20 images fine. I can flash and it works fine. Just noticed something, if i unpack a image packed with imgrepacker , it creates a home/imgrepacker folder and unpacks the rom into it. Is this a bug?
Regards
7th October 2013, 12:56 PM |#122  
OP Senior Member
Thanks Meter: 237
 
Donate to Me
More
Quote:
Originally Posted by relol

it creates a home/imgrepacker folder and unpacks the rom into it. Is this a bug?

May be (I don't use linux version). Is it uncomfortable for use? I'll check later.
7th October 2013, 02:30 PM |#123  
Member
Thanks Meter: 17
 
More
Quote:
Originally Posted by RedScorpioXDA

May be (I don't use linux version). Is it uncomfortable for use? I'll check later.

Thank you!
Yes, it works fine but it is very uncomfortable. Let's say you unpack the original rom, modify and repack. Ouch! , you forgot something and you need to unpack the modified version, so you unpack, modify again and repack. Ouch! , you forgot something again, then you call the doctor for a bad memory diagnosis and unpack again. Your unpacked, remodified, rom is now in rom.img.dump/home/imgrepacker/home/imgrepacker/
Every time you unpack and repack, you are adding home/imgrepacker/ to the existing path.
I can do testing for you if you want
So many thanks for the tool and for the help.
Regards.
7th October 2013, 04:55 PM |#124  
OP Senior Member
Thanks Meter: 237
 
Donate to Me
More
Quote:
Originally Posted by relol

rom is now in rom.img.dump/home/imgrepacker/home/imgrepacker/

I have understand the problem now and will check (and fix) soon
17th October 2013, 07:32 PM |#125  
Junior Member
Thanks Meter: 2
 
More
What about change the SIZE of system.fex ( system partition )?

In sys_partition.fex I found

Code:
;------------------------------>mmcblk0p7/nandd
[partition]
    name  = system
    size = 1048576
    downloadfile = "system.fex"
    user_type = 0x2
But, in installed system, the system partition have only 512 MB.... ( 1048576 / 1024 = 1024 not 512 )
Change 1048576 to 2097152 ( 2GB ) and repak / flash causes no changes in installed system.

I need more room to install apps ...

By the way, works fine on CUBIEBOARD 2 A20 NAND images ...
20th October 2013, 06:15 PM |#126  
OP Senior Member
Thanks Meter: 237
 
Donate to Me
More
Quote:
Originally Posted by icemagno

What about change the SIZE of system.fex ( system partition )?

I think you have changed only space size for system partition but you need change system.fex (what the file system?) too.
The Following User Says Thank You to RedScorpioXDA For This Useful Post: [ View ] Gift RedScorpioXDA Ad-Free
21st October 2013, 03:12 PM |#127  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by RedScorpioXDA

I think you have changed only space size for system partition but you need change system.fex (what the file system?) too.

Ok. Here is my steps:

1) Download sun7i_android_sugar-cubieboard2-8192cu.img (Android 4.2.2 for Cubieboard NAND Flash)
2) Unpack using imgRePacker_204 /noiso
3) Change sys_partition.fex like above.
4) Repack using imgRePacker_204 /noiso
5) Flash to NAND

Result: Flashing process is Ok. Andoid boots perfectly, but I see no changes in SYSTEM partition size (only 512 MB).

New method:

1) Get system.fex into a Ubuntu machine.
2) Convert from SPARSE using ext4_utils
3) Mount in loop
4) Reconvert from loop to SPARSE using ext4_utils, but changing SIZE.
5) The new system.fex is 1GB large now, same content.
6) Repeat steps 3, 4 and 5 like above.

Result: Flashing process is ok. Android does not boot (cubie monkey smiling to me forever).

1) Boot from SDCARD using Ubuntu.
2) lsblk shows no change in NAND4 partition ( still 512MB ).
3) Try to mount nand4.

Result: Block size differ descriptor blah, blah, something like .... (sorry I can't remember the error exactly ).

I'm already to give up !

PS: The numbers in sys_partition.fex are the sectors amount ( 512 bytes per sector ).

Code:
NAME          SIZE MOUNTPOINT LABEL
nand          3.8G
|-nand1        16M            Volumn
|-nand2        16M
|-nand3        16M
|-nand4       512M
|-nand5       512M
|-nand6        16M
|-nand7        32M
|-nand8       320M
|-nand9        16M            PRIVATE
|-nand10      256M
`-nand11      2.1G
22nd October 2013, 05:35 AM |#128  
pogodancer's Avatar
Senior Member
Thanks Meter: 152
 
More
@ icemagno

Sounds like my unsolved problem: No boot after ext4utils. Maybe there is something wrong with ext4utils.

Sent from my Teclast A10HD / Jelly Bean 4.2.2 using Tapatalk 4
22nd October 2013, 12:18 PM |#129  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by pogodancer

@ icemagno

Sounds like my unsolved problem: No boot after ext4utils. Maybe there is something wrong with ext4utils.

Sent from my Teclast A10HD / Jelly Bean 4.2.2 using Tapatalk 4

I think you don't understand my problem.

Really there is nothing wrong with ext4utils.

Android not boot because the nand4 (system) cannot be resized in NAND device.

Quote:

4) Reconvert from loop to SPARSE using ext4_utils, but changing SIZE.
5) The new system.fex is 1GB large now, same content.

I try to fit a 1GB partition in a 512MB space. PhoenixSuit does not resize the NAND before burn the image to it.

All steps that not involving resize the NAND4 (system) works like a charm.
22nd October 2013, 01:03 PM |#130  
pogodancer's Avatar
Senior Member
Thanks Meter: 152
 
More
@ icemagno

Oh sorry.

Sent from my Q6000 / Jelly Bean 4.2.1 using Tapatalk 4
23rd October 2013, 12:59 PM |#131  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by pogodancer

@ icemagno

Oh sorry.

Sent from my Q6000 / Jelly Bean 4.2.1 using Tapatalk 4

All you need is passing size param when convert from EXT4 to sparse.
I will post here my console history commands to you solve your problem.
The Following User Says Thank You to icemagno For This Useful Post: [ View ] Gift icemagno Ad-Free
Post Reply Subscribe to Thread

Tags
allwinner, imgrepacker, livesuit, phoenixsuit

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes