delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/29/11:41:24

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <7c5010d60805290840s300f607ep999ff62720fedadb@mail.gmail.com>
Date: Thu, 29 May 2008 17:40:53 +0200
From: "Giovanni Maruzzelli" <gmaruzz DOT lists AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: serial ports not visible with 1.7 under Vista
In-Reply-To: <008001c8c19f$ad1bcbe0$2708a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
References: <7c5010d60805290558o3717c302u959dd34f396cdb81 AT mail DOT gmail DOT com> <005a01c8c196$587b9b50$2708a8c0 AT CAM DOT ARTIMI DOT COM> <7c5010d60805290726s4faa42e2l4dc276e0118b8808 AT mail DOT gmail DOT com> <007901c8c19c$cd9bd520$2708a8c0 AT CAM DOT ARTIMI DOT COM> <7c5010d60805290811i38d4464y7da05d2d62f2061 AT mail DOT gmail DOT com> <008001c8c19f$ad1bcbe0$2708a8c0 AT CAM DOT ARTIMI DOT COM>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Thanks a lot Dave!

Seems that it is looking for a \Device\Serial5

This is the relevant part from strace on Vista:


   39   36235 [main] ciapa 3780 open: open (/dev/ttyS5, 0xC002)^M
   47   36282 [main] ciapa 3780 normalize_posix_path: src /dev/ttyS5^M
   38   36320 [main] ciapa 3780 normalize_posix_path: /dev/ttyS5 =
normalize_posix_path (/dev/ttyS5)^M
   42   36362 [main] ciapa 3780 mount_info::conv_to_win32_path:
conv_to_win32_path (/dev/ttyS5)^M
   43   36405 [main] ciapa 3780 mount_info::conv_to_win32_path:
src_path /dev/ttyS5, dst \Device\Serial5, flags 0x2, rc 0^M
   70   36475 [main] ciapa 3780 build_fh_pc: fh 0x6125271C^M
   39   36514 [main] ciapa 3780 fhandler_serial::open:
fhandler_serial::open (/dev/ttyS5, 0xC002, 0x9)^M
   49   36563 [main] ciapa 3780 fhandler_base::open: (\Device\Serial5, 0xC002)^M
  105   36668 [main] ciapa 3780 seterrno_from_win_error:
/netrel/src/cygwin-1.7.0-16/winsup/cygwin/fhandler.cc:631 windows
error 2^M
   42   36710 [main] ciapa 3780 geterrno_from_win_error: windows error
2 == errno 2^M
   38   36748 [main] ciapa 3780 __set_errno: void
seterrno_from_win_error(const char*, int, DWORD):313 val 2^M
   38   36786 [main] ciapa 3780 fhandler_base::open: C0000034 =
NtCreateFile (0x60FF0000, C0000000, \Device\Serial5, io, NULL, 0, 7,
1, 4400, NULL, 0)^M
   98   36884 [main] ciapa 3780 fhandler_base::open: 0 =
fhandler_base::open (\Device\Serial5, 0xC002)^M
  101   36985 [main] ciapa 3780 open: -1 = open (/dev/ttyS5, 0xC002)^M
  163   37148 [main] ciapa 3780 cygpsid::debug_print: get_sids_info:
owner SID = S-1-5-21-1379031178-664686864-1231587414-1001^M
   43   37191 [main] ciapa 3780 cygpsid::debug_print: get_sids_info:
group SID = S-1-5-21-1379031178-664686864-1231587414-513^M
   42   37233 [main] ciapa 3780 get_info_from_sd: ACL 1A4, uid 1001, gid 513^M
   73   37306 [main] ciapa 3780 fhandler_base::fstat_helper: 0 = fstat
(, 0x22C3F0) st_atime=483ECD0F st_size=26173, st_mode=0x81A4,
st_ino=4503599627584995, sizeof=96^M
   41   37347 [main] ciapa 3780 fstat64: 0 = fstat (1, 0x22C3F0)^M
  286   37633 [main] ciapa 3780 close: close (0)^M
   65   37698 [main] ciapa 3780 init_cygheap::manage_console_count:
fhandler_tty_slave::close: console_count 2, amount -1, ctty /dev/tty1,
avoid_freeing_console 0^M
   39   37737 [main] ciapa 3780 fhandler_tty_slave::close: /dev/tty1
closed, usecount 2^M
   38   37775 [main] ciapa 3780 fhandler_tty_slave::close: just
returning because archetype usecount is != 0^M
   39   37814 [main] ciapa 3780 close: 0 = close (0)^M
  272   38086 [main] ciapa 3780 fhandler_base::write: binary write^M
Unable to open /dev/ttyS5: No such file or directory


On Thu, May 29, 2008 at 5:21 PM, Dave Korn <dave DOT korn AT artimi DOT com> wrote:
> Giovanni Maruzzelli wrote on 29 May 2008 16:12:
>
>> Errno reports just "no such file or directory".
>> Same if you try something like "echo ATH > /dev/ttyS5"
>>
>> Probably some 1.7 initialization is not done in the same way as in 1.5.25.
>>
>> It is a sad situation for me:
>> with 1.5.25 waveinopen crashes (but it works in 1.7)
>> with 1.7 serial ports are missing (but present in 1.5.25)
>>
>> Any help very appreciated
>
>  Until one of the main developers can attend to it and then upload an
> updated snapshot, you might be able to get some useful information for them
> by running your test under 'strace'; you'll be able to see the translation
> from unix to dos path, and see what gets passed to the actual underlying O/S
> CreateFile call.  By comparing it between 1.5 and 1.7, you might narrow down
> the cause pretty well.
>
>
>    cheers,
>      DaveK
> --
> Can't think of a witty .sigline today....
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019