Automatic startup of applications in Embedded Linux

Source: Internet
Author: User
In the embedded Linux system, the general technology of Linux-Linux programming and kernel information about application programs is provided. For details, refer to the following section. In order to enable the LCD screen to automatically start the screen during the past two days, I have studied the problem of application sub-startup in Linux.

When the Linux system is started, after the kernel is started, the init program is executed to start new processes and restart other processes when exiting. I don't know about other systems. I only know that in my system, init works in the/etc/init. d/rcS file. Just add the statement directly.
The rc will call/usr/etc/rc. local, so you can add the application startup statement here. After all, usr stores user-related things.

Because the yaffs file system is also used on our platform, there is also an init. sh shell file under/mnt/yaffs, which can also be initialized here. Since the yaffs system can be read and written, we can modify the init. sh file through the network cable without having to re-create the file system. Therefore, I set the IP address in init. sh, load the SD card driver, start the boa Server, and start the MiniGUI interface program.

The Code is as follows:
#! /Bin/sh
Ifconfig eth0 172.23.2.225
Route add default gw 172.23.2.9 netmask 0.0.0.0
Inetd
Cd/mnt/yaffs/sdcard;./inssd. sh
Insmod./iccards/i2c-tomega8.o
Cd/mnt/yaffs/boa;./boa
Ln-s/dev/fb/0/dev/fb0
Cd/mnt/yaffs/boa/web;./coolbar
# Version 2410 s 1.6

At the beginning of the attempt, I did not add an orange statement. at startup, the LCD interface was not displayed, and the Super Terminal was displayed.

No available video device.
NEWGAL: Does not find matched engine: qvfb.
GDI: Can not get graphics engine information!
InitGUI failure when using incore resource.

At first, I thought it was the problem that the driver of the LCD screen was not loaded. Later I learned that the driver name was not matched, and I needed to establish the above link. High people are high people!

In this way, when the development platform is started, you can directly access the LCD interface I wrote, and it feels good. It is much better than typing commands on a Super Terminal.

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.