Loading armlinux startup information to LCD display
Source: Internet
Author: User
The startup information of armlinux is loaded to the LCD display-Linux general technology-Linux programming and kernel information. The following is a detailed description. When the arm linux system is started, the startup information is printed on the serial port terminal by default. But is there any way to display the startup information on the LCD, just like the startup of a PC. The answer is yes.
1. Modify the startup parameter char * Linux_params = "noinitrd root =/dev/mtdblock2 init =/Linuxrc console = tty0, ttySAC0, 115200 mem = 64 M devfs = mount ";
Noinitrd no init ramdisk support
The third partition of mtdblock2 nand flash is used as rootfs.
Console = tty0, ttySAC0, 115200 the First Half of the system startup information (before bootloader + kernel) is displayed in ttySAC0 (serial port terminal), and 115200 indicates the baud rate, load the half-end startup information of the kernel to tty0 (LCD Terminal)
64 M 64 M memory
2. When you configure the kernel make menuconfig, change the boot option to noinitrd root =/dev/mtdblock2 init =/Linuxrc console = tty0, ttySAC0, 115200 mem = 64 M devfs = mount.
3. When UBOOT is used as the bootloader, modify the UBOOT environment variable bootargs setenv bootargs 'noinitrd root =/dev/mtdblock2 init =/Linuxrc console = tty0, ttySAC0, 115200 'saveenv (Save the variable)
I personally like to display information from the terminal, and the LCD is neat and tidy.
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