修改忽略文件;
添加升级文件头模式文件;
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@
|
||||
|
||||
# 生成结果
|
||||
result/*.bin
|
||||
result/*.html
|
||||
|
||||
36
resource/File_Upgrade1.hexpat
Normal file
36
resource/File_Upgrade1.hexpat
Normal file
@@ -0,0 +1,36 @@
|
||||
struct time
|
||||
{
|
||||
u16 year;
|
||||
u8 month;
|
||||
u8 day;
|
||||
u8 hour;
|
||||
u8 min;
|
||||
|
||||
};
|
||||
|
||||
struct block_cpu
|
||||
{
|
||||
u32 prog_size;
|
||||
u8 byte_verify[16];
|
||||
};
|
||||
|
||||
|
||||
char file_mark[0x08] @ 0x00;
|
||||
u16 prod_type @ 0x08;
|
||||
char prog_id[0x0C] @ 0x0A;
|
||||
|
||||
u8 mark_compress @ 0x16;
|
||||
u8 mark_verify @ 0x17;
|
||||
u8 byte_verify[0x10] @ 0x18;
|
||||
|
||||
time file_time @ 0x28;
|
||||
u32 data_size @ 0x2E;
|
||||
block_cpu cpu1 @ 0x32;
|
||||
block_cpu cpu2 @ 0x46;
|
||||
u16 prog_type @ 0x5A;
|
||||
|
||||
u16 area @ 0x5C;
|
||||
|
||||
char prog_name[64] @ 0x5E;
|
||||
u8 Unused[24] @ 0x9E;
|
||||
u16 Header_verify @ 0xB6;
|
||||
Reference in New Issue
Block a user