2440上的LCD驱动移植

2019-07-12 15:16发布

嵌入式Linux之我行,主要讲述和总结了本人在学习嵌入式linux中的每个步骤。一为总结经验,二希望能给想入门嵌入式Linux的朋友提供方便。如有错误之处,谢请指正。 一、移植环境
  • 主  机:VMWare--Fedora 9
  • 开发板:Mini2440--64MB Nand
  • 编译器:arm-linux-gcc-4.3.2
二、移植步骤 1. 修改内核源码。2.6.30.4内核对LCD的支持已很完善,这里只做少许修改 #gedit arch/arm/mach-s3c2440/mach-smdk2440.c    修改smdk2440_lcd_cfg函数和smdk2440_fb_info函数,设置LCD参数,我的是NEC3.5寸TFT屏。如下:    打开LCD的背光,如不打开就无法观测LCD是否正常工作。由开发板原理图可以看到LCD的背光电源LCD_PWR接到S3C2440的GPG4引脚上,故作如下修改 2. 配置内核选项。选上LCD支持和Logo图标 Device Drivers --->
    Graphics support --->
        < > Lowlevel video output switch controls
        <*> Support for frame buffer devices --->
            --- Support for frame buffer devices
            [*] Enable firmware EDID
            [ ] Framebuffer foreign endianness support --->
            [*] Enable Video Mode Handling Helpers
            [ ] Enable Tile Blitting Support
            *** Frame buffer hardware drivers ***
            < > Epson S1D13XXX framebuffer support
            <*> S3C2410 LCD framebuffer support
            [ ] S3C2410 lcd debug messages
            < > Silicon Motion SM501 framebuffer support
            < > Virtual Frame Buffer support (ONLY FOR TESTING!)
            < > E-Ink Metronome/8track controller support
            < > Fujitsu MB862xx GDC support
            < > E-Ink Broadsheet/Epson S1D13521 controller support
        [*] Backlight & LCD device support --->
            Display device support --->
            Console display driver support --->
        [*] Bootup logo --->
            --- Bootup logo
            [ ] Standard black and white Linux logo
            [ ] Standard 16-color Linux logo
            [*] Standard 224-color Linux logo (NEW)

3. 重新编译内核并下载到开发板上,上电系统启动后可以看到LCD亮起,并且出现小企鹅图标。