LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices



Reply
 
Search this Thread
Old 05-01-2010, 09:12 AM   #1
miprampo
LQ Newbie
 
Registered: May 2010
Location: Italy
Distribution: ubuntu, custom distro
Posts: 4

Rep: Reputation: 0
Question 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.
 
Old 05-03-2010, 05:33 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,058

Rep: Reputation: 88
What network service do you turn on, such as NFS client?
 
Old 05-04-2010, 03:25 AM   #3
miprampo
LQ Newbie
 
Registered: May 2010
Location: Italy
Distribution: ubuntu, custom distro
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 05-04-2010, 03:36 AM   #4
Gnuru-the-1
LQ Newbie
 
Registered: Dec 2009
Location: Sweden
Distribution: all Slack, Gnewsence, Debian...
Posts: 9

Rep: Reputation: 1
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

Last edited by Gnuru-the-1; 05-04-2010 at 03:38 AM.
 
Old 05-05-2010, 12:20 PM   #5
miprampo
LQ Newbie
 
Registered: May 2010
Location: Italy
Distribution: ubuntu, custom distro
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 05-05-2010, 03:25 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,058

Rep: Reputation: 88
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?
 
Old 05-06-2010, 02:36 AM   #7
miprampo
LQ Newbie
 
Registered: May 2010
Location: Italy
Distribution: ubuntu, custom distro
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash scripting - Don't wait for application exit polarberg Linux - Newbie 2 10-24-2009 08:35 PM
how to make my application start during system boot rajesh84210 Linux - Software 5 07-27-2009 07:33 AM
Help me ... Install packet application start with reboot system ! minhstone Red Hat 2 01-18-2008 02:34 AM
Wait for WiFi connection before launching SSH? stickyc Linux - Wireless Networking 2 10-21-2006 02:44 PM
bash-script won't wait for application to finish TLV Linux - Software 24 10-01-2004 12:18 AM


All times are GMT -5. The time now is 12:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration