WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [patch] auto serial port configuration

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [patch] auto serial port configuration
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Wed, 13 Jul 2005 17:36:56 -0500
Cc: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Delivery-date: Wed, 13 Jul 2005 22:37:12 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM Linux Technology Center
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.8.1
This patch allows runtime autoconfiguration of the serial console.

Right now on PowerPC, we're configuring the serial port by appending 
"com1=..." to cmdline, which is inflexible and inefficient.

Also, we're using a couple systems whose firmware use different baud rates for 
the serial console (115200 and 19200). It is annoying or impossible to set 
environment variables in these firmwares right now, which makes 
autoconfiguration important.

This patch does a few things:
- It allows us to automatically enable the serial console ("console=com1").
- It gives the ns16550 parameters reasonable defaults (8n1).
- If baud is unspecified, do not reconfigure the ns16550 baud rate (use 
whatever firmware was using).
- It allows us to automatically configure ns16550 parameters 
("com1=baud,..."). All parameters are optional (so you can selectively 
override the defaults).

I've included the PowerPC code so you could see an example of a user. (Side 
note: Open Firmware systems provide the system's hardware configuration in a 
data structure called the "device tree". In particular, the ISA IO base, used 
to emulate ISA IO on systems that only have MMIO, is at an arbitrary physical 
address; we only know where that is at runtime, when the device tree tells 
us.)

If there are no objections, please apply.

Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>

-- 
Hollis Blanchard
IBM Linux Technology Center

Attachment: ns16550-config.diff
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>