|
发表于 2015-7-23 10:51:51
只看该作者
10#
我重新解包和合包,没有问题哈:
操作日志:
$ ./img_unpack ../Firefly-RK3288_Ubuntu14.04_201411111636.img img
rom version: 4.4.2
build time: 2014-11-11 16:36:17
chip: 80
checking md5sum....OK
$ ls -l
total 128
-rwxr-xr-x 1 1033 1033 52512 Jul 23 10:20 afptool
drwxr-xr-x 1 1033 1033 4096 Jul 23 10:24 img
-rwxr-xr-x 1 1033 1033 24256 Jul 23 10:20 img_maker
-rwxr-xr-x 1 1033 1033 20520 Jul 23 10:20 img_unpack
-rwxr-xr-x 1 1033 1033 18056 Jul 23 10:20 mkkrnlimg
drwxr-xr-x 1 1033 1033 4096 Jul 23 10:20 rk2918_tools
$ cd img
$ ls -l
total 959864
-rw-r--r-- 1 1033 1033 368974 Jul 23 10:24 loader.img
-rw-r--r-- 1 1033 1033 982523908 Jul 23 10:25 update.img
$ ../afptool -unpack update.img update
Check file...OK
------- UNPACK -------
package-file 0x00000800 0x00000101
RKLoader.bin 0x00001000 0x0005A14E
parameter 0x0005B800 0x0000022C
misc-zero.img 0x0005C000 0x0000C000
resource.img 0x00068000 0x0001CA00
linux-boot.img 0x00085000 0x0087C000
linux-rootfs.img 0x00901000 0x3A000000
RESERVED 0x00000000 0x00000000
update-script 0x3A901000 0x00000416
recover-script 0x3A901800 0x0000010A
UnPack OK!
$ ls -l
total 959868
-rw-r--r-- 1 1033 1033 368974 Jul 23 10:24 loader.img
drwxr-xr-x 1 1033 1033 4096 Jul 23 10:26 update
-rw-r--r-- 1 1033 1033 982523908 Jul 23 10:25 update.img
$ cd update/
$ ls
linux-boot.img linux-rootfs.img misc-zero.img package-file parameter recover-script RESERVED resource.img RKLoader.bin update-script
$ cat package-file
package-file package-file
bootloader RKLoader.bin
parameter parameter
misc misc-zero.img
resource resource.img
boot linux-boot.img
linuxroot linux-rootfs.img
backup RESERVED
update-script update-script
recover-script recover-script
$ ls -l
total 959504
-rw-r--r-- 1 1033 1033 8896512 Jul 23 10:25 linux-boot.img
-rw-r--r-- 1 1033 1033 973078528 Jul 23 10:26 linux-rootfs.img
-rw-r--r-- 1 1033 1033 49152 Jul 23 10:25 misc-zero.img
-rw-r--r-- 1 1033 1033 257 Jul 23 10:25 package-file
-rw-r--r-- 1 1033 1033 544 Jul 23 10:25 parameter
-rw-r--r-- 1 1033 1033 266 Jul 23 10:26 recover-script
-rw-r--r-- 1 1033 1033 0 Jul 23 10:26 RESERVED
-rw-r--r-- 1 1033 1033 117248 Jul 23 10:25 resource.img
-rw-r--r-- 1 1033 1033 368974 Jul 23 10:25 RKLoader.bin
-rw-r--r-- 1 1033 1033 1046 Jul 23 10:26 update-script
$ cat package-file
package-file package-file
bootloader RKLoader.bin
parameter parameter
misc misc-zero.img
resource resource.img
boot linux-boot.img
linuxroot linux-rootfs.img
backup RESERVED
update-script update-script
recover-script recover-script
$ ../../afptool -pack . ../update-new.img
------ PACKAGE ------
Add file: ./package-file
Add file: ./RKLoader.bin
Add file: ./parameter
Add file: ./misc-zero.img
Add file: ./resource.img
Add file: ./linux-boot.img
Add file: ./linux-rootfs.img
Add file: ./RESERVED
Add file: ./update-script
Add file: ./recover-script
Add CRC...
------ OK ------
Pack OK!
$ cd ..
$ ../img_maker -rk32 loader.img update-new.img release_update_new.img
generate image...
append md5sum...
success!
$ ls -lh
total 2.8G
-rw-r--r-- 1 1033 1033 361K Jul 23 10:24 loader.img
-rw-r--r-- 1 1033 1033 938M Jul 23 10:29 release_update_new.img
drwxr-xr-x 1 1033 1033 4.0K Jul 23 10:26 update
-rw-r--r-- 1 1033 1033 938M Jul 23 10:25 update.img
-rw-r--r-- 1 1033 1033 938M Jul 23 10:28 update-new.img
|
|