From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ovl0o-0002LZ-NW for mharc-grub-devel@gnu.org; Wed, 15 Sep 2010 01:58:30 -0400 Received: from [140.186.70.92] (port=45046 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ovl0k-0002JW-U1 for grub-devel@gnu.org; Wed, 15 Sep 2010 01:58:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ovl0j-0008Va-Lz for grub-devel@gnu.org; Wed, 15 Sep 2010 01:58:26 -0400 Received: from smtp-out4.iol.cz ([194.228.2.92]:48105) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovl0j-0008V8-Fv for grub-devel@gnu.org; Wed, 15 Sep 2010 01:58:25 -0400 Received: from antivir6.iol.cz (unknown [192.168.30.215]) by smtp-out4.iol.cz (Postfix) with ESMTP id 5A72DCE4020 for ; Wed, 15 Sep 2010 05:58:24 +0000 (UTC) Received: from localhost (antivir6.iol.cz [127.0.0.1]) by antivir6.iol.cz (Postfix) with ESMTP id 47827720057 for ; Wed, 15 Sep 2010 07:58:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at iol.cz Received: from antivir6.iol.cz ([127.0.0.1]) by localhost (antivir6.iol.cz [127.0.0.1]) (amavisd-new, port 10224) with LMTP id 95o5xmE8Xp+w for ; Wed, 15 Sep 2010 07:58:24 +0200 (CEST) Received: from port7.iol.cz (unknown [192.168.30.97]) by antivir6.iol.cz (Postfix) with ESMTP id 25A64720055 for ; Wed, 15 Sep 2010 07:58:24 +0200 (CEST) X-SBRS: None X-SBRS-none: None X-RECVLIST: MTA-OUT-IOL X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As4HAAr9j0xVRnXk/2dsb2JhbAAHhBXib4VBBA Received: from 228.117.broadband3.iol.cz (HELO [192.168.6.160]) ([85.70.117.228]) by port7.iol.cz with ESMTP; 15 Sep 2010 07:58:24 +0200 From: =?UTF-8?Q?Ale=C5=A1?= Nesrsta To: The development of GNU GRUB In-Reply-To: <1284401606.5929.3.camel@pracovna> References: <4C7519E8.90907@gmail.com> <20100826230527.GA26246@pina.cat> <4C76F58D.6020304@gmail.com> <1282995082.14285.4.camel@pracovna> <4C7AF2BB.2040606@gmail.com> <4C7AF7E1.7020204@gmail.com> <1283551348.27688.89.camel@pracovna> <1283621655.4824.25.camel@pracovna> <1284312512.5714.83.camel@pracovna> <1284378479.13334.53.camel@pracovna> <1284401606.5929.3.camel@pracovna> Content-Type: text/plain Date: Wed, 15 Sep 2010 07:58:22 +0200 Message-Id: <1284530302.6578.25.camel@pracovna> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Question: USB serial - device driver debugging X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2010 05:58:28 -0000 Hi, it seems there are some problems in USB serial driver PL2303 and I want to debug it. I need to send and receive some data to see what happened, i.e. I need to enable remote debug via classic serial interface by e.g. "serial;terminal_output console serial;debug=xxx" and then do something like "cat some_file > serial_usb0" and "cat serial_usb0 > some file" to send and receive some data. But redirection is not supported in GRUB... I cannot use additional terminal redirection like "terminal_output console serial serial_usb0" to send something into serial_usb0 - it makes recursive hang/crash when debug output is enabled. Is there some way how to send/receive data to/from such device from GRUB command line? Or do I need to prepare my own testing program as command module? Regards Ales