MTK LCM Debugging Summary

Source: Internet
Author: User

1. Environment Configuration and code compilation

Code clone

git clone [email protected]:mt657172_kk

Switch to Branch Origin/72kk_dev

git checkout 77kk_dev

Code compilation

./MK V3_n42_3gb25_hvga_da1bom_liandai_miami New

An error occurred while configuring the environment

Workaround: Install Unix2dos or tofrodos under root privileges.

Execute again./MK V3_n42_3gb25_hvga_da1bom_liandai_miami New, compilation succeeded.

Software packaging

The above procedure does not modify the software code, only is familiar with the code compilation and the configuration of the compilation environment, for the next to debug the new LCM driver preparation.

2, LCM Debugging (MTK6572 platform on the st7796s)

(1) Add driver files,

Create a new folder st7796s_rgb_mt6571 in the MEDIATEK/CUSTOM/COMMOM/KERNEL/LCM directory and create a new. c file with the same name. A similar st7796s_mcu_sl_cq4171 is found in the LCM directory, which is modified after copying the st7796s_mcu_sl_cq4171.c file directly. The three parts of the st7796s_mcu_sl_cq4171.c file are modified according to the screen data provided.

(2) Add the called driver file in the kernel/lcm/mt65xx_lcm_list.c file in the mediatek/custom/commom/directory.

(3) Modify the configuration file Mediatek/config/v3_w1bom_mps28/projectconfig.mk

Since the code has been fully compiled, this modification to save time, the use of rapid compilation method to compile, and the compiled files are packaged in the previous method.

3. Software burning to mobile phone test

Software burning tools using Flash tool, the process of burning the phone remains shut down, and first click on the Flash tool's Download button and then talk about the phone connected to the computer. After the success of the burning, hand function normal boot, and screen display normal, debugging success.

4. Code Submission

(1) New and switch to branch

Git checkout–b dbg_v3_n42_3gb25_hvga_da1bom_liandai_miami_lcm_xhq_0603

(2) Add all modified files

git add mediatek/config/v3_n42_3gb25_hvga_da1bom_liandai_miami/

Projectconfig.mk

git add mediatek/custom/common/kernel/lcm/st7796s_rgb_mt6571/

st7796s_rgb_mt6571.c

git add mediatek/custom/common/kernel/lcm/mt65xx_lcm_list.c

(3) Commit

Git commit-m "V3 Zhi Hin (Ihinda) st7796s Debug"

(4) Push

Git push origin dbg_v3_n42_3gb25_hvga_da1bom_liandai_miami_lcm_xhq_0603:

submit_v3_n42_3gb25_hvga_da1bom_liandai_miami_lcm_xhq_0603

MTK LCM Debugging Summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.