How to display linux Startup information to the LCD

Source: Internet
Author: User
How to display the linux Startup information to the LCD-Linux general technology-Linux programming and kernel information. The linux Startup information is displayed only on the Super Terminal at the beginning. You can follow these steps to display the information on the LCD. (The premise is that the LCD driver has been transplanted to the kernel)

1. First modify the startup parameter information in bootloader.

Set void NandPart_LoadRun (int part_sel, U32 buf) in nandflash. c In the bootloader code

Char * linux_params = "noinitrd root =/dev/mtdblock2 init =/linuxrc console = tty0, ttySAC0, 115200 mem = 64 M devfs = mount ";
// Noinitrd: no Initial RamDisk support
// Description: mtdblock2 represents 3rd flash partitions used as the root file system rootfs;
// Console = ttySAC0, 115200: The information generated during the startup of the kernel is output to the serial port 0 at the beginning, and the baud rate is 115200. The subsequent information is output to the LCD screen.
// The 2.6 kernel name for the serial port is changed to ttySAC0, but this does not affect the serial port programming of the user space.
// User space serial port programming is still targeted at/dev/ttyS0, etc.
// Mem = 32 M indicates that the memory is 32 M. If it is 64, it is set to 64 M.

2. When configuring the kernel make menuconfig, enter:

Noinitrd root =/dev/mtdblock2 init =/linuxrc console = tty0, ttySAC0, 115200 mem = 64 M devfs = mount
Related Article

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.