mtk驱动移植相关路径
一、Flash兼容
bootable/bootloader/preloader/tools/emigen/MT6735/MemoryDeviceList_MT6735.xls
bootable/bootloader/preloader/tools/emigen/MT6735/MemoryDeviceList_MT6735M.xls
bootable/bootloader/preloader/custom/T39D_T60/inc/custom_MemoryDevice.h
二、背光及指示灯
/vendor/mediatek/proprietary/bootable/bootloader/lk/target/k31v1_bsp_512/cust_leds.c
bootable/bootloader/lk/target/T39D_T60/cust_leds.c
kernel-3.10/drivers/misc/mediatek/mach/mt6735/T39D_T60/leds/mt65xx/cust_leds.c
三、LCM
alps/vendor/mediatek/proprietary/bootable/bootloader/lk/dev/lcm/mt65xx_lcm_list.c
alps/vendor/mediatek/proprietary/bootable/bootloader/lk/dev/lcm/st7701_fwvga_dsi_vdo_t60b
alps/vendor/mediatek/proprietary/bootable/bootloader/lk/project/T39D_T60.mk
kernel-3.10/drivers/misc/mediatek/lcm/mt65xx_lcm_list.c
kernel-3.10/drivers/misc/mediatek/lcm/st7701_fwvga_dsi_vdo_t60b
boot用的哪个lcm和boot_logo.bmp
Y:\alps\vendor\mediatek\proprietary\bootable\bootloader\lk\project\k31v1_bsp_512.mk
LCD-bootlogo.bmp
android/vendor/mediatek/proprietary/bootable/bootloader/lk/dev/logo/
kernel-3.10/arch/arm/configs/T39D_T60_debug_defconfig
kernel-3.10/arch/arm/configs/T39D_T60_defconfig
alps\device\mediateksample\k31v1_bsp_512/ProjectConfig.mk
四、TP
kernel-3.10/drivers/input/touchscreen/mediatek/GT9147
kernel-3.10/drivers/input/touchscreen/Kconfig
kernel-3.10/drivers/input/touchscreen/mediatek/Makefile
kernel-3.10/drivers/misc/mediatek/mach/mt6735/T39D_T60/touchpanel/GT9147
kernel-3.10/arch/arm/configs/T39D_T60_debug_defconfig
kernel-3.10/arch/arm/configs/T39D_T60_defconfig
device/XX/T39D_T60/ProjectConfig.mk
五、Camera
kernel-3.10/drivers/misc/mediatek/imgsensor/src/mt6735m/gc2355_mipi_raw_t60b
kernel-3.10/drivers/misc/mediatek/imgsensor/src/mt6735m/ov5648_mipi_raw_t60b
kernel-3.10/drivers/misc/mediatek/imgsensor/src/mt6735m/kd_sensorlist.h
kernel-3.10/drivers/misc/mediatek/imgsensor/inc/kd_imgsensor.h
kernel-3.10/drivers/misc/mediatek/mach/mt6735/T39D_T60/camera/camera/kd_camera_hw.c
vendor/mediatek/proprietary/custom/mt6735/hal/D2/imgsensor/gc2355_mipi_raw_t60b
vendor/mediatek/proprietary/custom/mt6735/hal/D2/imgsensor/ov5648_mipi_raw_t60b
vendor/mediatek/proprietary/custom/mt6735/hal/D2/imgsensor_src/sensorlist.cpp
vendor/mediatek/proprietary/custom/common/kernel/imgsensor/inc/kd_imgsensor.h
vendor/mediatek/proprietary/custom/mt6735/hal/D2/lens/lenslist.cpp
kernel-3.10/arch/arm/configs/T39D_T60_debug_defconfig
kernel-3.10/arch/arm/configs/T39D_T60_defconfig
device/XX/T39D_T60/ProjectConfig.mk
六、闪光灯
kernel-3.10/drivers/misc/mediatek/flashlight/Kconfig
kernel-3.10/drivers/misc/mediatek/flashlight/src/mt6735/constant_flashlight/leds_strobe.c
device/XX/T39D_T60/ProjectConfig.mk
七、Gsensor
kernel-3.10/drivers/misc/mediatek/accelerometer/mxc622x
kernel-3.10/drivers/misc/mediatek/accelerometer/Makefile
kernel-3.10/drivers/misc/mediatek/Kconfig.drivers
kernel-3.10/include/linux/sensors_io.h
kernel-3.10/drivers/misc/mediatek/mach/mt6735/T39D_T60/accelerometer/mxc622x
kernel-3.10/drivers/misc/mediatek/mach/mt6735/T39D_T60/Makefile
kernel-3.10/arch/arm/configs/T39D_T60_debug_defconfig
kernel-3.10/arch/arm/configs/T39D_T60_defconfig
device/XX/T39D_T60/ProjectConfig.mk
八、Alsps
kernel-3.10/drivers/misc/mediatek/alsps/stk3x1x-new
kernel-3.10/drivers/misc/mediatek/alsps/em30718
kernel-3.10/drivers/misc/mediatek/alsps/Makefile
kernel-3.10/drivers/misc/mediatek/Kconfig.drivers
kernel-3.10/drivers/misc/mediatek/mach/mt6735/T39D_T60/alsps/stk3x1x-new
kernel-3.10/drivers/misc/mediatek/mach/mt6735/T39D_T60/alsps/em30718
kernel-3.10/drivers/misc/mediatek/mach/mt6735/T39D_T60/Makefile
kernel-3.10/arch/arm/configs/T39D_T60_debug_defconfig
kernel-3.10/arch/arm/configs/T39D_T60_defconfig
九、音频相关
kernel-3.10/sound/soc/mediatek/mt_soc_audio_v3/mt_soc_codec_63xx.c
十、工厂测试
vendor/mediatek/proprietary/custom/T39D_T60/factory/factory.chn.ini
vendor/mediatek/proprietary/custom/T39D_T60/factory/inc/cust.h
vendor/mediatek/proprietary/custom/T39D_T60/factory/inc/cust_led.h
十一、其它
①Gpio 配置
修改DWS文件
vendor\mediatek\proprietary\scripts\dct\DrvGen.exe来打开dws
kernel-4.4\drivers\misc\mediatek\dws\mt6739\k39tv1_bsp_512.dws
vendor\mediatek\proprietary\bootable\bootloader\lk\target\k39tv1_bsp_512\dct\dct\codegen.dws
vendor\mediatek\proprietary\bootable\bootloader\preloader\custom\k39tv1_bsp_512\codegen.dws
vendor\mediatek\proprietary\bootable\bootloader\preloader\custom\k39tv1_bsp_512\dct\dct\codegen.dws
这四个是一样的,只要修改其中一个,其它拷贝。
②去除不需要的配置
kernel-3.10/arch/arm/configs/T39D_T60_debug_defconfig
kernel-3.10/arch/arm/configs/T39D_T60_defconfig
device/XX/T39D_T60/ProjectConfig.mk
③私有化目录重点比较!
device/XX/T39D_T60/ProjectConfig.mk
bootable/bootloader/lk/target/T39D_T60/
bootable/bootloader/preloader/custom/T39D_T60/
kernel-3.10/drivers/misc/mediatek/mach/mt6735/T39D_T60/
vendor/mediatek/proprietary/custom/T39D_T60/
init.rc路径
device/mediatek/mt67xx/ init.mt67xx.rc中写入
1.检查是否编译到了init.rc文件,可在out\target\product\$project\root
下查看相同名的init.rc中内容是否与你修改的一致。
2.烧录:若只是修改了init.rc,则只需要烧录boot.img,若修改了C文件则要连syste.img一起烧录。
类似于如下图的这种定义,注意图片必须是.bmp格式