Starting a new thread as not to polite the one this conversation started in (unrelated)
Skeleton, I couldn't get Lua to work on my desktop xp x64.. which is needed for the tool you suggested. (Rk29 Wendal tools), I'll have to try it on my laptop that runs win7 later.
In the mean time I did find a img tool by RedScorpio
Probably not needed but here's the log, odd it lists firmware as 4.1.1 instead of 1.1.4?
2014.01.12 16:40:25 imgRePackerRK (v. 1.02 windows)
2014.01.12 16:40:25 (c) RedScorpio, Moscow, 2013
2014.01.12 16:40:25
2014.01.12 16:40:25 Command parameters: "J:\jxd7800\S7800 V1.1.4\S7800 V1.1.4\update.img"
2014.01.12 16:40:25
2014.01.12 16:40:25 Run parameters:
2014.01.12 16:40:25 log = 1
2014.01.12 16:40:25 debug = 0
2014.01.12 16:40:25 quiet = 0
2014.01.12 16:40:25 mono = 0
2014.01.12 16:40:25 md5 = 0
2014.01.12 16:40:25 rkcrc = 0
2014.01.12 16:40:25 rkaf = 0
2014.01.12 16:40:25 skip = 0
2014.01.12 16:40:25 2nd = 0
2014.01.12 16:40:25 memsize = 134217728
2014.01.12 16:40:25
2014.01.12 16:40:25 ==========================[ START ]==========================
2014.01.12 16:40:25
2014.01.12 16:40:25 --- Firmware unpacking ---
2014.01.12 16:40:25
2014.01.12 16:40:26 "RKFW" image file detected
2014.01.12 16:40:26
2014.01.12 16:40:26 Image properties:
2014.01.12 16:40:26 Type RockChip batch image (RKFWf)
2014.01.12 16:40:26 Version 4.1.1
2014.01.12 16:40:26 Date 2013.11.08
2014.01.12 16:40:26 Time 16:18:15
2014.01.12 16:40:26 ChipID 0x00000070
2014.01.12 16:40:26 Code(?) 0x01060000
2014.01.12 16:40:26
2014.01.12 16:40:26 -- boot.img processing --
2014.01.12 16:40:26
2014.01.12 16:40:26 -- update.img processing --
2014.01.12 16:40:26 Image properties:
2014.01.12 16:40:26 Type RockChip update image (RKAF)
2014.01.12 16:40:26 Id "007"
2014.01.12 16:40:26 Model "S7800"
2014.01.12 16:40:26 Manufacturer "JXD"
2014.01.12 16:40:26 Version 4.1.1
2014.01.12 16:40:26
2014.01.12 16:40:26 - Files extracting -
2014.01.12 16:40:26 Image files count = 11
2014.01.12 16:40:26
2014.01.12 16:40:26 package-file (package-file) extracted (format: unknown)
2014.01.12 16:40:26 bootloader (RK3188Loader(L)_V1.24.bin) extracted (format: RockChip bootloader image)
2014.01.12 16:40:26 PARM file (parameter) found
2014.01.12 16:40:26 Length checking:
2014.01.12 16:40:26 Stored file length = 0x00000254
2014.01.12 16:40:26 Real file length (in image) = 0x00000254
2014.01.12 16:40:26 rkCRC summ checking:
2014.01.12 16:40:26 Stored rkCRC = 0xd0405832
2014.01.12 16:40:26 Calculated rkCRC = 0xd0405832
2014.01.12 16:40:26 parameter (parameter) extracted (format: RockChip PARM signed file)
2014.01.12 16:40:26 misc (Image/misc.img) extracted (format: unknown)
2014.01.12 16:40:29 KRNL file (Image\kernel.img) found
2014.01.12 16:40:29 Length checking:
2014.01.12 16:40:29 Stored file length = 0x00b10024
2014.01.12 16:40:29 Real file length (in image) = 0x00b10024
2014.01.12 16:40:29 rkCRC summ checking:
2014.01.12 16:40:29 Stored rkCRC = 0x430b063a
2014.01.12 16:40:29 Calculated rkCRC = 0x430b063a
2014.01.12 16:40:29 kernel (Image/kernel.img) extracted (format: RockChip KRNL signed file)
2014.01.12 16:40:29 KRNL file (Image\boot.img) found
2014.01.12 16:40:29 Length checking:
2014.01.12 16:40:29 Stored file length = 0x000fd25a
2014.01.12 16:40:29 Real file length (in image) = 0x000fd25a
2014.01.12 16:40:29 rkCRC summ checking:
2014.01.12 16:40:29 Stored rkCRC = 0xd04e382d
2014.01.12 16:40:29 Calculated rkCRC = 0xd04e382d
2014.01.12 16:40:29 boot (Image/boot.img) extracted (format: RockChip KRNL signed file)
2014.01.12 16:40:30 recovery (Image/recovery.img) extracted (format: Android boot image)
2014.01.12 16:40:53 system (Image/system.img) extracted (format: ext3 image)
2014.01.12 16:40:55 backup (backupimage/backup.img) extracted (format: RockChip update image)
2014.01.12 16:40:55 update-script (update-script) extracted (format: unknown)
2014.01.12 16:40:55 recover-script (recover-script) extracted (format: unknown)
2014.01.12 16:40:55
2014.01.12 16:40:55 - rkCRC summ of update.img checking -
2014.01.12 16:40:55 Stored rkCRC = 0xe7e837e6
2014.01.12 16:40:55 Calculated rkCRC = 0xe7e837e6
2014.01.12 16:40:55
2014.01.12 16:40:55 - md5 summ checking -
2014.01.12 16:40:55 MD5 summ (J:\jxd7800\S7800 V1.1.4\S7800 V1.1.4\update.img.dump\image.md5) saved
2014.01.12 16:40:55 Stored MD5 = "ca11959377fe2d70698456f687edb46c"
2014.01.12 16:40:55 Calculated MD5 = "ca11959377fe2d70698456f687edb46c"
2014.01.12 16:40:55
2014.01.12 16:40:55 - image.cfg creating -
2014.01.12 16:40:55 image.cfg created
2014.01.12 16:40:55
2014.01.12 16:40:55 ==========================[ STOP ]==========================
parameter file
FIRMWARE_VER:4.1.1
MACHINE_MODEL:S7800
MACHINE_ID:007
MANUFACTURER:JXD
MAGIC: 0x5041524B
ATAG: 0x60000800
MACHINE: 3066
CHECK_MASK: 0x80
KERNEL_IMG: 0x60408000
#RECOVER_KEY: 1,1,0,20,0
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)
Ok so im looking at the file and right away "mtdparts" catches my eye.. is this what needs edited?
Is it really that simple to repartition android? or at least Rockchip?
near as I can tell "initrd=0x62000000,0x00800000" is the size of the flash (800000(hex)/8388608(dec-KByte) / 1024 = (8192MB/8GB?) although not sure what 62000000 means?
And Mtdparts is a list of partitions?
Near as I can figure the first part is the size (in KB / Hex) and the second part is the starting point / offset in flash?
[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)
Partition #/Name Size (Dec-KByte?) Offset/Start point in flash? (Hex)
1 / Misc 8192 2000 (If starting point what happen to 0-2000? protected?)
2 / Kernel 40960 4000
3 / Boot 65536 e000
4 / Recovery 65536 1e000
5 / Backup 131072 2e000
6 / Cache 262144 4e000
7 / UserData (apps) 2097152(2gb?) 8e000 (Wait, that can't be right, user part is only 1gb not 2gb WTF?)
8 / Kpanic 8192 28e000
9 / System 1572864 290000
10? ? User? ??? ? 410000
That last one is confusing.. what is that? and it has no size? or maybe it's everything that is left on the flash?
That would be 410000 - 800000 (3735552 KByte?, maybe the external SD partition? But that's over 4GB.. so it doesn't seem large enough for that)
Am I barking up the right tree?
They way I figure it I will have to move kpanic and system down since it comes after userdata and then I can fill the gap by expanding userdata.. Ideally What I'd like to do is take the external SD (actually the flash sd partition) and resize(shrink) it to say 250-500mb.. expand userdata to take up the slack.., flash the device, then use root explorer to go in and swap the mountings making the physical sdcard list as internal..
Let me know how far off base I am, And I appreciate the help.