MTK Scatter 结构

//------------------------------------------------------------------------------
// DL_HANDLE: Exported Functions                                                
//------------------------------------------------------------------------------
typedef enum {
    ABSOLUTE_ADDR = 0,
    OFFSET_VALUE
} REGION_ADDR_TYPE;
typedef enum {
    NORMAL_ROM      = 0x01,         //kghost:SV5 it is 
/*
    RESOURCE_BIN    = 0x02,
    JUMPTABLE_BIN   = 0x03,
    ENFB_BIN        = 0x04,
    UA_BIN          = 0x05,
BL_BIN          = 0x06,
*/
      // kghost ---------------------------
    SV5_BL_BIN      = 0x07,
    //---------------------------------
    /* Koshi, 2011.03.21,  { */
    YAFFS_IMG       = 0x08,
    /* Koshi, 2011.03.21,  } */
    MBR_BIN         = 0x09,
    /* Add UBIFS image support, 2012/12/18 {*/
    UBI_IMG         = 0x10,
    /* Add UBIFS image support, 2012/12/18 }*/
    /* Add EXT4 image support for eMMC, 2013/05/13 {*/
    EXT4_IMG        = 0x11,
    /* Add EXT4 image support for eMMC, 2013/05/13 }*/
    /* SD Card on EMMC {*/
    FAT_IMG         = 0x12,
    /* SD Card on EMMC }*/
    /* Add F2FS image {*/
    F2FS_IMG      = 0x13,
    /* Add F2FS image {*/
    
    UNKNOWN_BIN     = 0xFF
} ROM_TYPE;
typedef struct ROM_INFO {
    char                    name[64];
    U64                     region_addr;
    // ABSOLUTE_ADDR -> region_addr is absolute address
    // OFFSET_VALUE  -> region_addr is offset value
    REGION_ADDR_TYPE        addr_type;
    U64                     begin_addr;
    U64                     end_addr;
    char                    filepath[256];
    U64                     filesize;
    unsigned short          index;
    ROM_TYPE                rom_type;
    // Indicate whether rom to be written to target
    _BOOL                   enable; // _FALSE -> disbale
    /* Koshi, enable the item list in flashtool listview */
    // is_download in scatter file
    _BOOL                   item_is_visable;    // _FALSE -> disbale
    //Is ROM partition reserved for MTK
    _BOOL                   is_reserved;
    //Operation type for ROM partition
    Partition_Operation_E   operation_type;
    unsigned int            part_id;
    U64                     partition_size;
} ROM_INFO;
typedef struct {
    char name[64];
    char version[64];
    char platform[64];
    char project[128];
    char storage[64];
    char bootChannel[64];
    U32  blockSize;
}SCATTER_Head_Info;


文章标签:

本文链接: http://lmroot.com/blog/?id=7,尊重共享,欢迎转载,请自觉添加本文链接,谢谢!

版权声明: 本文除特别说明外均由原创

分享本文:
呃 本文暂时没人评论 来添加一个吧

分享:

支付宝

微信

歌曲 - 歌手
0:00