LCD Driver Transplantation on 2440

Source: Internet
Author: User
In this article, I will introduce and summarize every step of learning embedded Linux. I would like to sum up my experience, and I hope it will be convenient for anyone who wants to get started with embedded Linux. If any error occurs, please correct it.
  • Share resources. Please refer to the following link for more information:
    Http://hbhuanggang.cublog.cn

I. Porting Environment

  • MASTER: VMWare -- fedora 9

  • Development Board: mini2440 -- 64 MB Nand
  • Compiler: arm-linux-gcc-4.3.2

2. Migration steps

1. Modify the kernel source code. 2.6.30.4 kernel supports LCD very well. Only a few modifications are made here.

#gedit arch/arm/mach-s3c2440/mach-smdk2440.c

Modify the smdk2440_ LCD _cfg function and the smdk2440_fb_info function to set the LCD parameters. My name is nec3.5 inch tftscreen. As follows:

Enable the backlight of the LCD. If the backlight is not enabled, you cannot observe whether the LCD works normally. From the schematic diagram of the Development Board, we can see that the LCD backlight power LCD _pwr is connected to the gpg4 pin of the S3C2440, and the following modifications are made:

2. Configure kernel options. Choose LCD support and logo icons

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. recompile the kernel and download it to the Development Board. After the power-on system is started, you can see that the LCD is on and the penguin icon appears.

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.