From owner-freebsd-mips@FreeBSD.ORG Thu Aug 23 10:10:51 2007 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC01D16A421 for ; Thu, 23 Aug 2007 10:10:51 +0000 (UTC) (envelope-from gonzo@pbxpress.com) Received: from bugor.portaone.com (bugor.portaone.com [65.61.203.147]) by mx1.freebsd.org (Postfix) with ESMTP id BC21713C483 for ; Thu, 23 Aug 2007 10:10:51 +0000 (UTC) (envelope-from gonzo@pbxpress.com) Received: from mail.pbxpress.com ([65.61.203.142] helo=leaf.pbxpress.com) by bugor.portaone.com (8.11.3/8.11.3) with ESMTP (TLSv1:AES256-SHA:256)id 1IO9MD-000GRT-Ph; Thu, 23 Aug 2007 02:52:05 -0700 Received: from [192.168.0.94] (k3-gw.portaone.com [193.28.87.193]) (authenticated bits=0) by leaf.pbxpress.com (8.13.3/8.13.3) with ESMTP id l7N9tP3W014918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Aug 2007 02:55:30 -0700 (PDT) (envelope-from gonzo@pbxpress.com) Message-ID: <46CD58C1.5070204@pbxpress.com> Date: Thu, 23 Aug 2007 12:52:01 +0300 From: Oleksandr Tymoshenko User-Agent: Thunderbird 1.5.0.9 (X11/20070115) MIME-Version: 1.0 To: Talha Lateef , freebsd-mips@freebsd.org References: <5bcfed510708230016l3347e914rce9fff362ace4a13@mail.gmail.com> In-Reply-To: <5bcfed510708230016l3347e914rce9fff362ace4a13@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, recieved from customer server pbxpress.com or rt.portaone.com Cc: Subject: Re: multiple uarts X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 10:10:52 -0000 Talha Lateef wrote: > Hi there > > I am a newbie on freebsd mips, I have a mips4k based board which has 2 uarts > i wanted to use uart1 as standard port not for debugging purposes i would > also like to try shifting console on it > is it possible ? are there sample code for any boards available, any help > would be appreciated. What kind of board do you have and what kind of uart is it. If your uart is supported by FreeBSD, e.g.: it's ns8250-compatible or something, try looking at malta/uart* files. If it's something unsupported - there are two ways. The first one and the simplest one is to implement CONSOLE_DRIVER interface like in adm5120/console.c, though you'll get output from kernel only. The second one is to implement whole uart interface as in adm5120/uart_* files. -- gonzo