System wait for a connection before start my application
I had write a custom application in C language to control a inkjet printer; this software works on this hardware:
1) Motherboard Avalue EPI-LX800 (Geode processor) 2) Custom PCI board to interface Motherboard with printer head We have build a custom distro with Pengutronix application. The printer work fine but we have the following problem: 1) At the end of system boot, our application in launch automatically 2) During this phase, if we haven't a network connection attached, or we have a network connection to a PC via crosscable, the system goes in a wait state. A simple plug/unplug of the network cable, or attaching a mouse or keyboard (PS2 or USB), awake system from wait state and system complete start correctly. If the system have a network connection attached to a switch / hub of a domain with DNS server the system doesn't go on wait state and application start correctly without the need of plug/unplug network cable. I don't understand which is the item that system wait for whe it is on "wait state previously described". Can someone help me to find problem ? Thanks in advance. |
What network service do you turn on, such as NFS client?
|
Network services:
ssh ftp telnet During other test, the system freeze also if we have a keyboard plugged before booting; to unfreeze system we need to press a key during freez state. |
Maybe sounds strange but have you checked the BIOS settings
Report mode on keyboard ore mouse present ? Ore what do the #tail var/log/messages give |
On embedded system we have BusyBox without tail command.
During other test we have seen this behaviour: 1) using a 1GB PQI Industrial Compact Flash the system has no problem 2) using a 1GB INNODISK ICF4000 Industrial Compact Flash the system has problem as described previously. Thanks |
What's the process or module when system is waiting in there? In other words, what's the display on console when system is in waiting state?
|
The system wait for login, but it goes on this wait state when start my application (automatically with a script place on /etc/init.d and it's link place on /etc/rc.d).
If we start our application with strace (on script we have this line: strace /usr/bin/our_application) to trace all system call, the system start without any wait condition. Thanks |
All times are GMT -5. The time now is 07:08 AM. |