1. 路径
a.mcp的配置表的路径
./mediatek/build/tools/emigen/MT6572/MemoryDeviceList_MT6572.xls
b. 更换mcp步骤
./mediatek/custom/hqunited72_we_72_kk/preloader/inc/custom_MemoryDevice.h
//#define CS_PART_NUMBER[0] H9TP32A8JDACPR_KGM
#define CS_PART_NUMBER[0] 04EMCP04_NL2AS100
c.编译
c.1 重新生成时序
./mk emigen
c.2 重新编译 preloader uboot kernel 三个模块
./mk c,r pl lk k // ./mk c,r pl ub k ;ub是其它版本
d. emigen
./out/target/product/hqunited72_we_72_kk/obj/CUSTGEN/custom/preloader
2.还剩一个问题
preloader编译时如何用的out目录下的custom_emi.c ?
-
看一下preloader的编译脚本
-
./mediatek/preloader/build/common.mak
-
# add for custom_emi.c/cust_part.c
$(OBJS_FROM_C_PLUS) : $(MOD_OBJ)/%.o : $(MTK_ROOT_OUT)/PRELOADER_OBJ/%.c
$(COMPILE_C)
echo "cong: aaaaaaa $(COMPILE_C)" //这行是添加的打印
echo打印出来就是:
-
arm-linux-androideabi-gcc -o /work/mtk/6572/out/target/product/hqunited72_we_72_kk/obj/PRELOADER_OBJ/obj/custom_emi.o /work/mtk/6572/out/target/product/hqunited72_we_72_kk/obj/PRELOADER_OBJ/custom_emi.c
-
-
arm-linux-androideabi-gcc -o /work/mtk/6572/out/target/product/hqunited72_we_72_kk/obj/PRELOADER_OBJ/obj/cust_part.o /work/mtk/6572/out/target/product/hqunited72_we_72_kk/obj/PRELOADER_OBJ/cust_part.c
这说明preloader在编译时就己经固定用了out目录下的custom_emi.c和custom_part.c了
阅读(1914) | 评论(0) | 转发(0) |