FORUMS
Remove All Ads from XDA

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

338 posts
Thanks Meter: 234
 
By RedScorpioXDA, Senior Member on 5th July 2012, 08:21 PM
Post Reply Email Thread
16th February 2014, 02:17 PM |#221  
cyberangel22k's Avatar
Senior Member
Flag Cauayan CIty
Thanks Meter: 289
 
More
IDK if this question has any relation to this thread. I'm new to modding allwinner platform. I do have a probelem with it.

I flashed a cwm recovery to it and it got boot looped to recovery. So I tried flashing a stock rom from the website of the device. But upon unbricking it, I noticed that the internal memory size was changed. Before, it has two internal memories that have 4 GB each and another extra storage for the extsd. Now it was jas 1.6 GB each. Thas the images from the website have something to do with it. Because the devices have three variants. 4GB, 8GB, and 16GB. I wonder if the image of the stock rom was default as 4GB, that's is why I only got 1.6GBx2 so roughly 3.2GB.

IDK if i'm right but is it possible to mod the image using this tool and set the proper partition sizes. I don't have a clue with this platform so I don;t know if my question is kinda dumb.

Any suggestions with my problem?
17th February 2014, 10:40 AM |#222  
OP Senior Member
Thanks Meter: 234
 
Donate to Me
More
cyberangel22k

It depends on the type of firmware.
Old type: all partition information stored in sys_partition.fex like simple text file and you can edit this file
New one: definition of partitions stored in dlinfo.fex, sunxi_mbr.fex and sys_partition.fex (and may be in u-boot.fex). I haven't researched these firmwares
The Following User Says Thank You to RedScorpioXDA For This Useful Post: [ View ] Gift RedScorpioXDA Ad-Free
18th February 2014, 06:55 AM |#223  
cyberangel22k's Avatar
Senior Member
Flag Cauayan CIty
Thanks Meter: 289
 
More
Quote:
Originally Posted by RedScorpioXDA

cyberangel22k

It depends on the type of firmware.
Old type: all partition information stored in sys_partition.fex like simple text file and you can edit this file
New one: definition of partitions stored in dlinfo.fex, sunxi_mbr.fex and sys_partition.fex (and may be in u-boot.fex). I haven't researched these firmwares

Thanks for the tip. So are these files inside the images that are flashable thru Livesuit? Anyway, I'll try this tool and take a look at the files inside the images.

Cheers!

EDIT:
Ok, so tried to unpack my image using this tools but no luck. So I tried to search other alternative method and came across a10_flash_kitchen_v2. Mine is a13 but I gave it a shot. So it unpacked successfully and found the files. But after some back reading in this thread, I found out that mine is totally different. Maybe because the ones posted here are for A10. So I tried to open dlinfo.fex in my Notepad++ but it's not recognizable. When I open it in HxD, Some are readable.

Anyway, i'll attach the filelist.txt for anyone to see all the files extracted from my image so anyone have knowledge on it can help me. I don't need to modify anything in my firmware. I just need to have my 8GB internal sdcard back.For now I can only use 3.xGB.

Thanks.

Code:
COMMON  _SYS_CONFIG000000.hdr	COMMON  _SYS_CONFIG000000
COMMON  _SYS_CONFIG100000.hdr	COMMON  _SYS_CONFIG100000
COMMON  _SPLIT_0000000000.hdr	COMMON  _SPLIT_0000000000
RFSFAT16_BOOTLOADER_00000.hdr	RFSFAT16_BOOTLOADER_00000
RFSFAT16_ENVIROMENT_00000.hdr	RFSFAT16_ENVIROMENT_00000
RFSFAT16_BOOT_00000000000.hdr	RFSFAT16_BOOT_00000000000
RFSFAT16_SYSTEM_000000000.hdr	RFSFAT16_SYSTEM_000000000
RFSFAT16_RECOVERY_0000000.hdr	RFSFAT16_RECOVERY_0000000
RFSFAT16_DISKFS_000000000.hdr	RFSFAT16_DISKFS_000000000
RFSFAT16_VBOOTLOADER_0000.hdr	RFSFAT16_VBOOTLOADER_0000
RFSFAT16_VENVIROMENT_0000.hdr	RFSFAT16_VENVIROMENT_0000
RFSFAT16_VBOOT_0000000000.hdr	RFSFAT16_VBOOT_0000000000
RFSFAT16_VSYSTEMFS_000000.hdr	RFSFAT16_VSYSTEMFS_000000
RFSFAT16_VRECOVERYFS_0000.hdr	RFSFAT16_VRECOVERYFS_0000
BOOT    _BOOT0_0000000000.hdr	BOOT    _BOOT0_0000000000
BOOT    _BOOT1_0000000000.hdr	BOOT    _BOOT1_0000000000
PXTOOLS _xxxxxxxxxxxxxxxx.hdr	PXTOOLS _xxxxxxxxxxxxxxxx
FES     _FES_1-1000000000.hdr	FES     _FES_1-1000000000
FES     _FES_1-2000000000.hdr	FES     _FES_1-2000000000
FES     _FES_200000000000.hdr	FES     _FES_200000000000
FES     _FES_000000000000.hdr	FES     _FES_000000000000
FET     _HW_SCAN_00000000.hdr	FET     _HW_SCAN_00000000
FET     _UPDATE_BOOT0_000.hdr	FET     _UPDATE_BOOT0_000
FET     _UPDATE_BOOT1_000.hdr	FET     _UPDATE_BOOT1_000
FET     _FET_RESTORE_0000.hdr	FET     _FET_RESTORE_0000
FET     _MAGIC_CRC_START_.hdr	FET     _MAGIC_CRC_START_
FET     _MAGIC_CRC_EN_000.hdr	FET     _MAGIC_CRC_EN_000
FET     _MAGIC_DE_START_0.hdr	FET     _MAGIC_DE_START_0
FET     _MAGIC_DE_END_000.hdr	FET     _MAGIC_DE_END_000
FED     _FED_NAND_0000000.hdr	FED     _FED_NAND_0000000
12345678_1234567890cardtl.hdr	12345678_1234567890cardtl
12345678_1234567890script.hdr	12345678_1234567890script
12345678_1234567890boot_0.hdr	12345678_1234567890boot_0
12345678_1234567890boot_1.hdr	12345678_1234567890boot_1
12345678_1234567890___mbr.hdr	12345678_1234567890___mbr
12345678_1234567890dlinfo.hdr	12345678_1234567890dlinfo
FET     _CARD_UPDATE_BOT0.hdr	FET     _CARD_UPDATE_BOT0
FET     _CARD_UPDATE_BOT1.hdr	FET     _CARD_UPDATE_BOT1
FED     _CARD_FED_0000000.hdr	FED     _CARD_FED_0000000
FET     _CARD_HW_SCAN_000.hdr	FET     _CARD_HW_SCAN_000
Attached Files
File Type: txt Filelist.txt - [Click for QR Code] (2.2 KB, 21 views)
18th February 2014, 08:55 AM |#224  
lolet's Avatar
Member
Thanks Meter: 36
 
More
Quote:
Originally Posted by d33-uk

I spent the last couple of weeks trying to amend one little parameter and finally worked out exactly this u-boot.fex changes need a new CRC.

Is there any tool or guide available that will allow me to recalculate the checksum? Or can a kind soul make the amendment for me if the method is private?

Any help appreciated.

Quote:
Originally Posted by RedScorpioXDA

Please share results of your research

OK, I think its time to share my tool which updates config.fex and uboot.fex CRC.

https://github.com/lolet/update_uboot_crc

I put executable into repo because ASM function won't compile without changes under gcc

Usage is
Code:
update_uboot_crc uboot.fex  - recalculates CRC
update_uboot_crc uboot.fex config.fex - writes config.fex into uboot.fex and recalcs CRC
The Following 3 Users Say Thank You to lolet For This Useful Post: [ View ] Gift lolet Ad-Free
18th February 2014, 10:44 AM |#225  
OP Senior Member
Thanks Meter: 234
 
Donate to Me
More
Quote:
Originally Posted by cyberangel22k

Ok, so tried to unpack my image using this tools but no luck.

Please provide link to your firmware. I'II check
19th February 2014, 12:07 AM |#226  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by lolet

OK, I think its time to share my tool which updates config.fex and uboot.fex CRC.

I put executable into repo because ASM function won't compile without changes under gcc

Usage is

Code:
update_uboot_crc uboot.fex  - recalculates CRC
update_uboot_crc uboot.fex config.fex - writes config.fex into uboot.fex and recalcs CRC

Confirm working

Thank you so much for this!
20th February 2014, 12:54 AM |#227  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by d33-uk

Confirm working

Thank you so much for this!

Actually I spoke too soon.

the update program worked directly on a hex editted u-boot.fex but when I did the following:

config.fex (bin2Fex ->) sysconfig.fex (edit) (fex2bin) config-new.fex

and then

update_uboot_crc u-boot.fex config-new.fex the exe gpfs after reading the input. I've uploaded the files to dropbox if Lolet would like to see what is causing the GPF.

http s 3xw dot dropbox dot com/s/4y59vdw35yyw9ii/update-fex.zip
24th February 2014, 05:05 AM |#228  
cyberangel22k's Avatar
Senior Member
Flag Cauayan CIty
Thanks Meter: 289
 
More
Quote:
Originally Posted by RedScorpioXDA

Please provide link to your firmware. I'II check

Here is a link to the ROM I am Using right now. So far, it is the most stable rom I have tried but the problem is just my storage. Thanks for having some time for me.

http://avhkh9e2vg.l17.yunpan.cn/lk/Q5DXyW2qMXcmT
24th February 2014, 09:08 PM |#229  
OP Senior Member
Thanks Meter: 234
 
Donate to Me
More
cyberangel22k
use the command
imgRePacker_204.exe /skip "86VEBC.20130511-Lв+-.img"
and there will be no problems
25th February 2014, 04:54 AM |#230  
cyberangel22k's Avatar
Senior Member
Flag Cauayan CIty
Thanks Meter: 289
 
More
Quote:
Originally Posted by RedScorpioXDA

cyberangel22k
use the command
imgRePacker_204.exe /skip "86VEBC.20130511-Lв+-.img"
and there will be no problems

Thank you. everything unpacked now but the problem is, I have no idea what those files are. I can open some in hex editor but see some as null in Notepad++. Can you help me out here? Thanks...
25th February 2014, 08:21 PM |#231  
OP Senior Member
Thanks Meter: 234
 
Donate to Me
More
Quote:
Originally Posted by cyberangel22k

I have no idea what those files are. I can open some in hex editor but see some as null in Notepad++. Can you help me out here? Thanks...

What exactly?
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