Re: [debian-sparc] Re: SPARC 2.6 serial and console issues

2004-03-15 Thread Erwann Abalea
Bonjour,

On Sat, 13 Mar 2004, Mike Edwards wrote:

 On Sat, Mar 13, 2004 at 01:15:04AM -0500, Bradley Alexander said:
  From: Bradley Alexander [EMAIL PROTECTED]
[...]
  I set it up and hung a modem off of it. I can't get the serial port to run
  at over 9600. I tried running setserial /dev/ttyS0, and it gave me
 
  [EMAIL PROTECTED] storm]# setserial /dev/ttyS0
  /dev/ttyS0, UART: undefined, Port: 0x, IRQ: 7574272
 
  If I try to define it to spd_vhi (56k modem), that fails too:
 
  [EMAIL PROTECTED] storm]# setserial /dev/ttyS0 spd_vhi
  Cannot set serial info: Invalid argument

 This doesn't surprise me.  Our Ultra2 (with a 2.4 kernel) also has an
 'unknown' UART.  setserial on both our Ultra30 and E450 reports a 16450.

That's normal, because setserial 'only' recognizes 8250 and compatible
UART controllers (such as 16450, 1655x, ...), and some mc68000 ones. It
can't recognize the Zilog, because nobody wrote the code for this.

 IIRC, 16450 has a maximum theoretical speed of 9600 bps (might be able to
 get 19200 out of them, but don't quote me on that).

Wrong. I can get up to 115200 bauds with my old and trusty 486dx/25
laptop, over a 16450 UART. If you have a fast enough processor, the 16450
can get up to 115200. The lack of receive buffer is a pain, so in order to
sustain data transfers that fast, your CPU+OS must be able to handle at
least 11520 interrupts per second.

 Suffice it to say, you're not likely to get much more than 9600 bps out of
 the onboard serial ports in your Ultra2.  Given the 'unknown' status of the
 UART, you might consider yourself lucky you can even get 9600 bps.  grin

Sun documentation tells us that the Ultra2 serial port can go as fast as
38400 bauds, and according to the source of the Zilog serial driver,
serial parameters can be changed on the fly, and the max speed is at least
38400 bauds (may be even faster).

How to achieve faster than 9600 bauds is a userland problem. Maybe David
S. Miller (the author of the Linux kernel driver for the Zilog8530), or
SGI users (which seem to have the same serial controller) could tell?

-- 
Erwann ABALEA [EMAIL PROTECTED] - RSA PGP Key ID: 0x2D0EABD5
-
D'abord, on est sur le web, pas sur ce usenet dont on nous rabbache les
oreilles et qui n'est qu'une abstraction.
-+- JP in http://neuneu.ctw.cc - Neuneu en abstract mode -+-



SPARC 2.6 serial and console issues

2004-03-13 Thread Bradley Alexander
I just came into possession of an UltraSparc-2, which I built with
unstable. I decided to delve into 2.6. I'm still having a couple of
teething issues...The hardware is a dual-processor Ultra2 with 256MB RAM,
Creator card.

I set it up and hung a modem off of it. I can't get the serial port to run
at over 9600. I tried running setserial /dev/ttyS0, and it gave me 

[EMAIL PROTECTED] storm]# setserial /dev/ttyS0
/dev/ttyS0, UART: undefined, Port: 0x, IRQ: 7574272

If I try to define it to spd_vhi (56k modem), that fails too:

[EMAIL PROTECTED] storm]# setserial /dev/ttyS0 spd_vhi
Cannot set serial info: Invalid argument

dmesg, is seeing both ports:

SunZilog: 2 chips.
zs2 at 0x01fff104 (irq = 12,7e8) is a SunZilog
zs3 at 0x01fff100 (irq = 12,7e8) is a SunZilog
ttyS0 at MMIO 0x0 (irq = 7574272) is a SunZilog
ttyS1 at MMIO 0x0 (irq = 7574272) is a SunZilog

but I can't do anything to configure them. I've been googling for the last
couple of hours, I recompiled the kernel to take out the
console=/dev/ttyS0 in the 2.6.3 kernel config boot line. The Sun Zilog
8530 is compiled into the kernel rather than making it a module...

Another thing I haven't been able to figure out. I have a Sun type4
keyboard, but when I try to type with 2.6.3, all i get is garbage. Instead
of the black screen I get with 2.4.x, I get the Sun white screen,
and the keyboard doesn't work right. For instance, hitting the backspace
gives me a [17~ and enter is a [C and so forth. Can you tell me where I
lost the black penguin screen and the keyboard? (Note, for console
drivers, I have PROM console, Select compiled-in fonts, VGA 9x9, VGA 8x16,
Sparc console 8x16, and Sparc console 12x22 compiled in, and Framebuffer
console as a module.) I also have everything compiled in for Logo config.

Can anyone point me in the right direction?
-- 
--Brad

Bradley M. Alexander|
SysAdmin, Security Engineer|   storm [at] tux.org
Debian/GNU Linux Developer  |   storm [at] debian.org

Key fingerprints:
DSA 0x54434E65: 37F6 BCA6 621D 920C E02E  E3C8 73B2 C019 5443 4E65
RSA 0xC3BCBA91: 3F 0E 26 C1 90 14 AD 0A  C8 9C F0 93 75 A0 01 34

Fetchez la vasche!


pgpFZbgJrcnEE.pgp
Description: PGP signature


Re: SPARC 2.6 serial and console issues

2004-03-13 Thread Mike Edwards
On Sat, Mar 13, 2004 at 01:15:04AM -0500, Bradley Alexander said:
 Date: Sat, 13 Mar 2004 01:15:04 -0500
 From: Bradley Alexander [EMAIL PROTECTED]
 To: debian-sparc@lists.debian.org
 Subject: SPARC 2.6 serial and console issues
 X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; i386-pc-linux-gnu)
 X-Spam-Status: No, hits=0.0 required=4.0 tests=none autolearn=ham version=2.60
 X-Spam-Level: 
 
 I just came into possession of an UltraSparc-2, which I built with
 unstable. I decided to delve into 2.6. I'm still having a couple of
 teething issues...The hardware is a dual-processor Ultra2 with 256MB RAM,
 Creator card.
 
 I set it up and hung a modem off of it. I can't get the serial port to run
 at over 9600. I tried running setserial /dev/ttyS0, and it gave me 
 
 [EMAIL PROTECTED] storm]# setserial /dev/ttyS0
 /dev/ttyS0, UART: undefined, Port: 0x, IRQ: 7574272
 
 If I try to define it to spd_vhi (56k modem), that fails too:
 
 [EMAIL PROTECTED] storm]# setserial /dev/ttyS0 spd_vhi
 Cannot set serial info: Invalid argument

This doesn't surprise me.  Our Ultra2 (with a 2.4 kernel) also has an
'unknown' UART.  setserial on both our Ultra30 and E450 reports a 16450.

IIRC, 16450 has a maximum theoretical speed of 9600 bps (might be able to
get 19200 out of them, but don't quote me on that).

Why Sun charges an arm and a leg for hardware, and then can't be bothered
to include at least a 16550A (which has been standard since long before
anyone at Sun dreamed up the E450 :) ) is beyond me.

Suffice it to say, you're not likely to get much more than 9600 bps out of
the onboard serial ports in your Ultra2.  Given the 'unknown' status of the
UART, you might consider yourself lucky you can even get 9600 bps.  grin


-- 
Mike Edwards [EMAIL PROTECTED]
System Administrator
Psychology Department, Rutgers University, Newark campus
973-353-5440 x246