Re: Bogus serial port ttyS02

From: Geert Uytterhoeven (geert_at_linux-m68k.org)
Date: 08/13/03

  • Next message: Jan Niehusmann: "Re: IDE bug - was: Re: uncorrectable ext2 errors"
    Date:	Wed, 13 Aug 2003 18:26:27 +0200 (MEST)
    To: "Richard B. Johnson" <root@chaos.analogic.com>
    
    

    On Wed, 13 Aug 2003, Richard B. Johnson wrote:
    > On Wed, 13 Aug 2003, Geert Uytterhoeven wrote:
    > > Linux always finds 3 serial ports instead of 2:
    > >
    > > | ttyS00 at 0x03f8 (irq = 4) is a 16550A
    > > | ttyS01 at 0x02f8 (irq = 3) is a 16550A
    > > | ttyS02 at 0x03e8 (irq = 4) is a 16450
    > >
    > > The last one is bogus.
    >
    > First, this looks like ix86 stuff, not m68k. Drivers for ix86

    It's PPC, not m68k. Both PReP and CHRP have PC-style serial ports.

    > machines probe the de facto addresses for up to a maximum of
    > 4 8250-type UARTS. Those addresses are:
    >
    > (0) 0x3f8
    > (1) 0x2f8
    > (2) 0x3e8
    > (3) 0x328
    >
    > (from the Phoenix SYSTEM BIOS book)
    >
    > Usually, there are several bits that are permanently 0 in
    > some of the registers. This is used to "positively" identify
    > the chip. Note that many IR devices are also connected
    > to 8250-type UARTS.
    >
    > I would guess that you have two serial ports, plus another
    > UART that's used for IR (maybe a IR keyboard???).

    No, the Super I/O has only two serial ports, of which one can be used for IRDA.

    > You can do `od /dev/ttyS2` from the root account and see
    > what happends.

    Nothing, it just waits for data. The same for `echo hello > /dev/ttyS2'. So the
    serial driver things it has to wait to accept/send data.

    Gr{oetje,eeting}s,

                                                    Geert

    --
    Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
    In personal conversations with technical people, I call myself a hacker. But
    when I'm talking to journalists I just say "programmer" or something like that.
    							    -- Linus Torvalds
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Jan Niehusmann: "Re: IDE bug - was: Re: uncorrectable ext2 errors"

    Relevant Pages

    • Re: [PATCH] Exar quad port serial
      ... The two on-board serial UARTs were being detected along with the first two ... The last two Exar UARTs were not showing up and neither was ... four serial ports and get all four of the Exar UARTs to show up. ... If that doesn't work and you do need a special driver, ...
      (Linux-Kernel)
    • Re: Bug in X86 serial port driver in CE.NET 4.2 ?
      ... > Yeah I have noticed that too on some UARTs. ... From the behaviour I am seeing with my driver it seems to ... > connected up (system configurable to control different pieces of hardware). ... > no serial ports and no hang with my driver. ...
      (microsoft.public.windowsce.platbuilder)
    • Re: [PATCH 0/39] NLKD - Novell Linux Kernel Debugger
      ... >> of kgdb shows how putting the complex logic remotely on another system ... > Unless the target machine is modern and has no serial ports, ... type systems. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Bogus serial port ttyS02
      ... Linux always finds 3 serial ports instead of 2: ... The last one is bogus. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Christmas list for the kernel
      ... You're basically confused about serial ports. ... Hence, if the device doesn't exist in userspace, it can't be created ... of devices you want to support when you first register your driver. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)