From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtGsp-0002lI-CT for qemu-devel@nongnu.org; Sun, 30 Jun 2013 08:37:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtGso-0005bk-Bo for qemu-devel@nongnu.org; Sun, 30 Jun 2013 08:37:35 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49002 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtGso-0005ba-5d for qemu-devel@nongnu.org; Sun, 30 Jun 2013 08:37:34 -0400 Message-ID: <51D02689.1040802@suse.de> Date: Sun, 30 Jun 2013 14:37:29 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <51CD86CD.9060809@suse.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] CAN device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yang Jin Cc: qemu-devel@nongnu.org Hi, Am 30.06.2013 14:25, schrieb Yang Jin: > Thanks, Andreas. It really help me a lot. >=20 > When I man qemu, I found "path specifies the name of the serial device > to open". Does that mean I should have a real serial device or I cannot > test it? Can I test it just in a virtual environment? When I try to ope= n > a /dev/ttyS0 through "cat /dev/ttyS0", error "Input/output error". -chardev serial is for a serial device. If you cannot or don't want to use one, just use a different -chardev parameter. The man page I pointed you to documents quite a few: null, file, pipe, stdio and many more. I cannot guess which one is best for what you are trying to do. ;) Regards, Andreas P.S. Please avoid top-posting on the mailing list. --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg