SHX和SMG文件资料和修改

来源:互联网 发布:毁灭战士4神优化 编辑:程序博客网 时间:2024/05/18 03:13

CG32.SMG   内核
CG33.SMG /dev/roflash       / cramfs格式
CG34.SMG /dev/mtdblock2   /ezxlocale         vfm格式
CG35.SMG /dev/tffsa       /usr/language cramfs格式 08000000-08B5682F
CG36.SMG /dev/roflash2 /usr/setup         cramfs格式
CG37.SMG   logon   gzip -9 压缩的内容为 BMHX 格式,也就是 frame buffer的 320x240x16 raw data。
CG38.SMG /dev/tffsb1 /diska/.preload     VFAT 08C00000-0BFFFFFF

E680手机芯片地址
1st chip:
0x00000000 - 0x00020000 (128K) - blob
0x00020000 - 0x00120000 (1M) - zImage
0x00120000 - 0x019E0000 (24.75M) - rootfs
0x019E0000 - 0x01A00000 (128K) - reserved
0x01A00000 - 0x01FA0000 (5.5M) - userfs
0x01FA0000 - 0x01FC0000 (128K) - setup
0x01FC0000 - 0x01FE0000 (128K) - logo
0x01FE0000 - 0x02000000 (128K) - reserved

2nd chip:
0x08000000 - 0x08C00000 (12M) - language
0x08C00000 - 0x0C000000 (52M) - diska

同时附送修改CG35.SMG的程序,修改CG35.SMG的头,因为实际上CG35.SMG也是个crmafs格式的包,只是MOTO自己加了一段头文件,修改程序在副件里

1、smg2cramfs CG35.SMG 是把CG35.SMG 转成标准的cramfs格式的包,这样就可以和CG32.SMG一样在linux下mount了。

2、cramfs2smg 是把自己做好的cramfs格式的CG35加上特定的头,形成真正的CG35.SMG文件,可以直接刷机的。