From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4394 invoked by alias); 27 Apr 2003 14:24:49 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 4386 invoked from network); 27 Apr 2003 14:24:48 -0000 Received: from unknown (HELO hermes.chez-thomas.org) (63.225.98.241) by sources.redhat.com with SMTP; 27 Apr 2003 14:24:48 -0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id B433650E0E7; Sun, 27 Apr 2003 08:24:47 -0600 (MDT) From: "Gary D. Thomas" To: Daniel Lidsten Cc: eCos Discussion In-Reply-To: <004B1D7A5257174C9044A1B7BD0E60ED232D3B@ratatosk.combitechsystems.com> References: <004B1D7A5257174C9044A1B7BD0E60ED232D3B@ratatosk.combitechsystems.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 27 Apr 2003 14:39:00 -0000 Message-Id: <1051453487.18469.25981.camel@hermes.chez-thomas.org> Mime-Version: 1.0 Subject: Re: [ECOS] Problem with serial setup X-SW-Source: 2003-04/txt/msg00528.txt.bz2 On Sun, 2003-04-27 at 06:14, Daniel Lidsten wrote: > Hi, > > I am trying to use the same serial port for both printf and diag_printf > but there seem to be some problem. Is there someone that use the same > port for both an interrupt driven serial driver and a diag version at > the same time? > Yes, I have done this successfully on the PowerPC (QUICC) hardware that you are using. Be sure and get up-to-date sources, as I fixed a bug in the HAL/QUICC serial serial drivers about a month ago. > I have setup my config file like this: > > Section->Serial Device Drivers/TTY-mode serial device drivers: > HAL/diag serial device driver: /dev/ser1 > TTY mode channel #0: /dev/ser1 > TTY mode channel #1: /dev/ser2 > > Section->Serial Device Drivers/Hardware serial device drivers > Here i have enabled two serial driver with the names /dev/ser1 and > /dev/ser2 > > However, when i run this then i get the following printout: > > Init device '/dev/tty0' > Init tty channel: 89428 > Init device '/dev/tty1' > Init tty channel: 89448 > Init device '/dev/haldiag' > HAL/diag SERIAL init > Init device '/dev/ser1' > QUICC_SMC SERIAL init - dev: 90.54 el:0el:0el:0el:0el:0el:0eQUICC_SMC > SERIAL ini > t - dev: d0.55 > Set output buffer - buf: 8ab20 len: 256 > Set input buffer - buf: 8ac20 len: 256 > > [cyg_hal_interrupt_set_level] Vector:55 > [cyg_hal_interrupt_set_level] > Level:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el: > 0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el: > 0el:0el: > 0el:0el:0el:0el:0el: > > After i have setup the two interrupt driven serial ports then the diag > channel doesnt work anymore. > > My question is: Is it possible to setup diag to use an interrupt driver > serial port (so that diag_ and printf use the same driver)OR shall i use > two drivers on the same serial port? > > Regards, Daniel Lidsten > > -- > Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos > and search the list archive: http://sources.redhat.com/ml/ecos-discuss -- .--------------------------------------------------------. | Mind: Embedded Linux and eCos Development | |--------------------------------------------------------| | Gary Thomas email: gary.thomas@mind.be | | Mind ( http://mind.be ) tel: +1 (970) 229-1963 | | gpg: http://www.chez-thomas.org/gary/gpg_key.asc | '--------------------------------------------------------' -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss