LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   System wait for a connection before start my application (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/system-wait-for-a-connection-before-start-my-application-805300/)

miprampo 05-01-2010 08:12 AM

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.

nini09 05-03-2010 04:33 PM

What network service do you turn on, such as NFS client?

miprampo 05-04-2010 02:25 AM

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.

Gnuru-the-1 05-04-2010 02:36 AM

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

miprampo 05-05-2010 11:20 AM

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

nini09 05-05-2010 02:25 PM

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?

miprampo 05-06-2010 01:36 AM

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.