Model configuration:
1.CUSTOM_MEMORY_HDR (need to confirm whether it is a MTK certified flash IC)
mediatek\custom\$ (PROJECT) \preloader\inc\custom_memorydevice.h
#defineBOARD_ID Mt6577_evb
#defineCS_PART_NUMBER [0] H9tp32a4gdmcpr_kdm
#defineCS_PART_NUMBER [1] kmkus000vm_b410
Note: Add Flash IC added here, Flash can be compatible, not compatible with the same IC ID memeory IC.
2. Specific project different types of partition definition information (whether defined, sequential):
Mediatek\custom\prj\kernel\core\src\partition.c
Structpart_name_map G_part_name_map[part_max_count] = {
{"Preloader", Part_preloader, "RawData", 0, 0, 0},
{"Dsp_bl", Part_dsp_dl, "RawData", 1, 0, 0},
{"MBR", PART_MBR, "raw data", 2, 1, 1},
{"EBR1", PART_EBR1, "raw Data", 3, 1, 1},
{"PMT", PART_PMT, "raw Data", 4, 0, 0},
{"Nvram", Part_nvram, "RawData", 5, 0, 0},
{"Seccfg", Part_secure, "raw data", 6, 0, 0},
{"Uboot", Part_uboot, "raw data", 7, 1, 1},
{"Boot", part_bootimg, "raw data", 8, 1, 1},
{"Recovery", Part_recovery, "RawData", 9, 1, 1},
{"Sec_ro", Part_secstatic, "Ext4", 10, 0, 0},
{"Misc", Part_misc, "raw data", 11, 0, 0},
{"Logo", Part_logo, "raw data", 12, 1, 1},
{"Expdb", Part_apanic, "raw data", 13, 0, 0},
{"System", Part_andsysimg, "Ext4", 14, 1, 1},
{"Cache", Part_cache, "Ext4", 15, 1, 1},
{"UserData", Part_user, "Ext4", 16, 1, 1},
{"Fat", Part_fat, "fat", 17, 0, 0},
};
3.EMMC scat partition size setting (EMMC):
You can partition the EMMC, modify each partition such as Preloader\systemimage\userdata\fat.
\alps\mediatek\build\tools\ptgen\mt6577\partition_table_mt6577.xls
Note: The cache partition needs to remain around 512MB or the system will be slow and unresponsive.
4.FLASH parameter configuration file location (Memorydevicelist_mt6577.xls):
Memory_device_xls =
mediatek\build\tools\emigen\$ (Mtk_platform) \memorydevicelist_$ (mtk_platform). xls
. xls files contain three pages:
MT6577 (Page one): Configure the hardware parameters for the Flash Vendor Id.
NAND (page):
Emmc_region (Pagethree)
5.Flash drive voltage modification, read-write speed mode modification:
Mediatek\custom\konka73_gb\kernel\core\src\board.c
struct MSDC_HW MSDC0_HW = {
. clk_src = 1,
. Cmd_edge =msdc_smpl_falling,
. Data_edge =msdc_smpl_falling,
. Clk_drv = 5,//: 0//memory Drive Voltage
. Cmd_drv = 5,//: 0
. Dat_drv = 5,//: 0
#ifdefMTK_EMMC_SUPPORT
. Data_pins = 8,
#else
. Data_pins = 4,
#endif
. Data_offset = 0,
#ifdefMTK_EMMC_SUPPORT
. Flags = Msdc_sys_suspend | Msdc_highspeed,//memory read/write speed
. Flags = Msdc_sys_suspend,
#else
. Flags =msdc_sdcard_flag,
#endif
6.EMMC Fat Partitioning:
The size of the FAT partition is affected by the EMMC model and the EMMC software partition.
Verify that the FAT size requires the corresponding EMMC model machine to download the corresponding EMMC software partition software, cannot pre-download Fat section (affect the actual FAT partition size):
ADB shell
Cat/proc/emmc
Cat/proc/partition gets the size.
MTK Android Driver:memory