LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-16-2009, 07:38 AM   #1
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Trouble accessing ttyS0 from qemu w/Windows


All,

I'm trying to run an APC SmartUPS application troubleshooter from a WindowsXP-install running within qemu on a Slackware server.
Windows complains it's unable to communicate with ttyS0, although no Linux service is hogging the port (ie apcupsd is shut down for this exercise) and /dev/ttyS0 is mode 666. The communication over the serial port works just fine from within apcupsd, and qemu is started with "-serial /dev/ttyS0".

qemu is compiled and installed from the SBo slackbuild with no tweaks or changes.

Does anyone have experience with running programs needing access to /dev/ttyS0 from a Windows running from within qemu?
 
Old 12-16-2009, 08:27 AM   #2
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I've not used serial port access from a Windows guest in QEMU but maybe you should be using the COMn option instead of the /dev/XXX option?

From the QEMU documentation in the Debug/expert options:

Quote:
‘-serial dev’

Redirect the virtual serial port to host character device dev. The default device is vc in graphical mode and stdio in non graphical mode.

This option can be used several times to simulate up to 4 serial ports.

Use -serial none to disable all serial ports.

Available character devices are:
Quote:
/dev/XXX

[Linux only] Use host tty, e.g. ‘/dev/ttyS0’. The host serial port parameters are set according to the emulated ones.
Quote:
COMn

[Windows only] Use host serial port n
I'll be interested in the final solution.

Last edited by Chuck56; 12-16-2009 at 08:48 AM.
 
  


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
Trouble accessing windows media player on Acer aspire one nubreeze1 Linux - Newbie 2 04-14-2009 09:17 PM
Samba: trouble accessing windows share linmix Linux - Software 8 10-12-2006 03:42 PM
Having trouble accessing windows drives from fedora core 3 pranavojha Linux - Newbie 7 03-05-2006 09:21 AM
Trouble accessing Windows network linuxvirgin Linux - Networking 0 05-20-2004 07:31 AM
Problem accessing ttys0 ttys1? horak Linux - General 6 03-11-2004 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:51 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
Open Source Consulting | Domain Registration