This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x LCD 显示屏 点亮 ???

am335x ti-sdk-06 的LCD屏点亮。

请问 ti-sdk-07版本的怎么点亮???

  • 不是很明白你想问什么。。。

    如果你是想问如何在SDK-07的linux中配置LCD,可以在dts文件中添加LCD的配置,

    具体可以参考sdk-07/board-support/linux-3.12.10-ti2013.12.01/arch/arm/boot/dts/am335x-boneblack.dts

  • 问的不清不楚啊

    可以说明一下具体的问题的

  • 你好!我的意思是sdk-6.0要打补丁才能点亮LCD屏,

    那么sdk-7.0要做些什么也能点亮LCD屏呢??

  • 你是后面接收这个的AM335x的吧?

    LCD屏幕的使用,主要是对相关管脚以及时序进行配置。你说的要打补丁才能点亮LCD屏,我推测是你前面有人做好SDK6.0这个移植工作了,你的补丁应该只是对相关的管脚时序参数进行配置的结果吧。建议你好好看看,补丁里面都做了什么,然后把相应的配置都移植到SDK7.0中来。配置的地方,前面的回帖中已经说明了。

  • 恩恩!好的谢谢你们的帮助,我在仔细看看!

  • 你好!请问要怎么配置arch/arm/boot/dts/am335x-boneblack.dts 文件,才能点亮ti-sdk-7.0  kernel 3.12版本的LCD 显示屏。

  • DTS DTB信息 在什么时候被读取?那个文件/函数?

  • 这个和屏参数相关,每个屏的参数是不一样的

    同时屏的电压也需要重点关注

  • 主要是要根据你的屏幕手册,修改该dts文件下lcdc节点下的display-timings结构内的参数。

    另外一定要注意,你最终在板子上面跑的配置是这个dts文件定义的。在官方开发板上通过eeprom来区别板子型号,从而对应了不同的dts文件,在你的板子上,这部分应该是修改了EEPROM的设置,最好确认一下使用的是哪个dtb配置。

  • dts文件只是设备树的源文件,最终是要编译成为dtb文件让内核读取的。你可以参考一下这个:

    http://processors.wiki.ti.com/index.php/Linux_Kernel_Users_Guide

    顺带提一下,在TI官方的SDK7.0中,在uboot中,我们通过读取EEPROM来获得了板子的型号,最终根据board_name来确认传递给内核的是哪个DTS文件,你可以进入uboot后,通过打印环境参量得到相关的信息:

  • 请问如何打印呢? 你提供的finddt 添加在那个文件么?

    参照http://blog.csdn.net/girlkoo/article/details/41382663  加载dtb和zImage失败,log如下。

    U-Boot SPL 2013.10-g78d8ebd (Mar 30 2014 - 20:46:34)                            
    reading args                                                                    
    spl: error reading image args, err - -1                                         
    reading u-boot.img                                                              
    reading u-boot.img                                                              
                                                                                    
    U-Boot SPL 2013.10-g78d8ebd (Mar 30 2014 - 20:46:34)                           
    reading args                                                                   
    spl: error reading image args, err - -1                                        
    reading u-boot.img                                                             
    reading u-boot.img                                                             
                                                                                   
                                                                                   
    U-Boot 2013.10-g78d8ebd (Mar 30 2014 - 20:46:34)                               
                                                                                   
    I2C:   ready                                                                   
    DRAM:  512 MiB                                                                 
    NAND:  0 MiB                                                                   
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                          
    *** Error - No Valid Environment Area found                                    
    *** Warning - bad CRC, using default environment                               
                                                                                   
    Net:   <ethaddr> not set. Validating first E-fuse MAC                          
    cpsw, usb_ether                                                                
    Hit any key to stop autoboot:  0                                               
    U-Boot#                                                                        
    U-Boot#                                                                        
    U-Boot# load mmc 0 0x88000000 /boot/am335x-evm.dtb                             
    reading /boot/am335x-evm.dtb                                                   
    ** Unable to read file /boot/am335x-evm.dtb **                                 
    U-Boot# load mmc 0 0x82000000 /boot/zImage                                     
    reading /boot/zImage                                                           
    ** Unable to read file /boot/zImage **  

  • 我看到am335x_evm.h  143行 中确实有 你提到的 字符串

    "findfdt="\
    "if test $board_name = A335BONE; then " \
    "setenv fdtfile am335x-bone.dtb; fi; " \
    "if test $board_name = A335BNLT; then " \
    "setenv fdtfile am335x-boneblack.dtb; fi; " \
    "if test $board_name = A33515BB; then " \
    "setenv fdtfile am335x-evm.dtb; fi; " \
    "if test $board_name = A335X_SK; then " \
    "setenv fdtfile am335x-evmsk.dtb; fi; " \
    "if test $fdtfile = undefined; then " \
    "echo WARNING: Could not determine device tree to use; fi; \0" \

    这部分代码 是什么时候运行的?

  • 这个是uboot环境下面的传参。启动linux后,在uboot阶段倒数计时时敲回车进入uboot命令行,输入“pri”即可打印所有的环境变量设置。