Re: serial console device

2007-08-23 Thread Marmotic Marvel
On Tue, 21 Aug 2007, nicodache wrote:

 when getting the stage 2 boot loading prompt, I also get the following 
 message :
 probing: pc0 com0 mem[639K 1023M a20=on]
 disk: fd0 fd1 hd0+ hd1+
  OpenBSD/i386 BOOT 2.13
 boot 
 
 So, my installation sees an com port. is that because it is physically
 detected ? or because it is configured in the /etc/ttys file ?

/etc/ttys isn't mounted yet.  At this point you can have anything
in /etc/ttys ... /etc/ttys is for getty, later, after the system
is booted.

At this point, boot, you're looking at a hardware probe.

Dave



Re: serial console device

2007-08-22 Thread Otto Moerbeek
On Wed, 22 Aug 2007, nicodache wrote:

 Hello, it's me again, for an end.
 
 IT WAS THE CABLE /o\
 
 I bought a cable in a shop, specially asking the guy there if it would
 fit to connect 2 pc to acces them using console control software, and
 he told me he used that same cable for his own lab test.
 And it appears the cable I made myself last month, and I didn't trust
 at all, is working using default params (and vt100 as HyperTerm does
 not seem to support vt220), while the one I paid 2.5 is not... (I
 said my cicso was fine with the serial port, but I could not use his
 cable, as one end is a rj45 connector...)
 
 Thanks anyway to you guys, and off to another problem ; /etc/boot.conf
 not used \x/

You said you wre using RAIDframe. The /etc/boot.conf needs to be on
the same filesystem you are loading the kernel from.  If root is on a
RAIDframe partition, that is not the right one.

-Otto

 We'll see that tomorrow, gonna sleep now, 34 after midnight here.
 
 nicodache
 
 On 8/21/07, nicodache [EMAIL PROTECTED] wrote:
  Me again,
 
  Trying to play with the serial port to see if I can get it to work, I
  just saw my box does not seem to care of /etc/boot.conf : when I set
  timeout 20 (plus stty com0 9600  set tty com0), my machine still
  decides to boot after 5 seconds.
 
  So, my computer really does sorcerer-ish things...
 
  any clues on why I got no luck ?
 
  Could that be due to RAIDframe ?
  Or am I just some kind of idiot ?
 
  Thx
 
  On 8/21/07, nicodache [EMAIL PROTECTED] wrote:
   Here is the content of /etc/ttys file. do you see any mistake ?
  
   -bash-3.2$ grep -v none /etc/ttys
   #
   #   $OpenBSD: ttys,v 1.17 2002/06/09 06:15:14 todd Exp $
   #
   # name  getty   typestatus  comments
   #
   console /usr/libexec/getty Pc vt220   off secure
   ttyC0   /usr/libexec/getty Pc vt220   on  secure
   ttyC1   /usr/libexec/getty Pc vt220   off secure
   ttyC2   /usr/libexec/getty Pc vt220   off secure
   ttyC3   /usr/libexec/getty Pc vt220   off secure
   ttyC4   /usr/libexec/getty Pc vt220   off secure
   ttyC5   /usr/libexec/getty Pc vt220   off secure
   ttyC6   /usr/libexec/getty Pc vt220   off secure
   ttyC7   /usr/libexec/getty Pc vt220   off secure
   ttyC8   /usr/libexec/getty Pc vt220   off secure
   ttyC9   /usr/libexec/getty Pc vt220   off secure
   ttyCa   /usr/libexec/getty Pc vt220   off secure
   ttyCb   /usr/libexec/getty Pc vt220   off secure
   tty00   /usr/libexec/getty std.9600   vt220   on  secure
   tty01   /usr/libexec/getty std.9600   unknown off
   tty02   /usr/libexec/getty std.9600   unknown off
   tty03   /usr/libexec/getty std.9600   unknown off
   tty04   /usr/libexec/getty std.9600   unknown off
   tty05   /usr/libexec/getty std.9600   unknown off
   tty06   /usr/libexec/getty std.9600   unknown off
   tty07   /usr/libexec/getty std.9600   unknown off
  
  
   when getting the stage 2 boot loading prompt, I also get the following
 message :
   probing: pc0 com0 mem[639K 1023M a20=on]
   disk: fd0 fd1 hd0+ hd1+
OpenBSD/i386 BOOT 2.13
   boot 
  
   So, my installation sees an com port. is that because it is physically
   detected ? or because it is configured in the /etc/ttys file ?
  
   Thanks again



Re: serial console device

2007-08-21 Thread nicodache
Here is the content of /etc/ttys file. do you see any mistake ?

-bash-3.2$ grep -v none /etc/ttys
#
#   $OpenBSD: ttys,v 1.17 2002/06/09 06:15:14 todd Exp $
#
# name  getty   typestatus  comments
#
console /usr/libexec/getty Pc vt220   off secure
ttyC0   /usr/libexec/getty Pc vt220   on  secure
ttyC1   /usr/libexec/getty Pc vt220   off secure
ttyC2   /usr/libexec/getty Pc vt220   off secure
ttyC3   /usr/libexec/getty Pc vt220   off secure
ttyC4   /usr/libexec/getty Pc vt220   off secure
ttyC5   /usr/libexec/getty Pc vt220   off secure
ttyC6   /usr/libexec/getty Pc vt220   off secure
ttyC7   /usr/libexec/getty Pc vt220   off secure
ttyC8   /usr/libexec/getty Pc vt220   off secure
ttyC9   /usr/libexec/getty Pc vt220   off secure
ttyCa   /usr/libexec/getty Pc vt220   off secure
ttyCb   /usr/libexec/getty Pc vt220   off secure
tty00   /usr/libexec/getty std.9600   vt220   on  secure
tty01   /usr/libexec/getty std.9600   unknown off
tty02   /usr/libexec/getty std.9600   unknown off
tty03   /usr/libexec/getty std.9600   unknown off
tty04   /usr/libexec/getty std.9600   unknown off
tty05   /usr/libexec/getty std.9600   unknown off
tty06   /usr/libexec/getty std.9600   unknown off
tty07   /usr/libexec/getty std.9600   unknown off


when getting the stage 2 boot loading prompt, I also get the following message :
probing: pc0 com0 mem[639K 1023M a20=on]
disk: fd0 fd1 hd0+ hd1+
 OpenBSD/i386 BOOT 2.13
boot 

So, my installation sees an com port. is that because it is physically
detected ? or because it is configured in the /etc/ttys file ?

Thanks again

On 8/20/07, nicodache [EMAIL PROTECTED] wrote:
 Ok, the dmesg is here :)

 BTW, is it normal to still have access the the ctrl-alt-del keys when
 I'm (or at least I should be) using the serial to redirect all the i/o
 from the other computer ?

 DMESG :
 OpenBSD 4.1 (GENERIC.RAID) #0: Sun Jul  8 22:16:34 CEST 2007
 [EMAIL PROTECTED]:/sys/arch/i386/compile/GENERIC.RAID
 cpu0: Intel Pentium III (GenuineIntel 686-class) 795 MHz
 cpu0: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
 real mem  = 1073311744 (1048156K)
 avail mem = 971534336 (948764K)
 using 4278 buffers containing 53788672 bytes (52528K) of memory
 mainbus0 (root)
 bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @
 0xeca00, SMBIOS rev. 2.3 @ 0xf2000 (41 entries)
 bios0: Compaq ProLiant DL320
 pcibios0 at bios0: rev 2.1 @ 0xeca00/0x3600
 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfaca0/160 (8 entries)
 pcibios0: PCI Interrupt Router at 000:15:0 (ServerWorks OSB4 rev 0x00)
 pcibios0: PCI bus #0 is the last bus
 bios0: ROM list: 0xc/0x8000 0xc8000/0x8000 0xd/0x3400 0xe8000/0x8000!
 acpi at mainbus0 not configured
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 ServerWorks CNB20LE Host rev 0x05
 pchb1 at pci0 dev 0 function 1 ServerWorks CNB20LE Host rev 0x05
 pci1 at pchb1 bus 1
 pciide0 at pci1 dev 1 function 0 Promise PDC20375 rev 0x02: DMA
 wd0 at pciide0 channel 0 drive 0: ST380811AS
 wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
 wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6
 wd1 at pciide0 channel 1 drive 0: ST380811AS
 wd1: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
 wd1(pciide0:1:0): using BIOS timings, Ultra-DMA mode 6
 pciide0: using irq 3 for native-PCI interrupt
 siop0 at pci1 dev 2 function 0 Symbios Logic 53c895A rev 0x01: irq
 3, using 8K of on-board RAM
 scsibus0 at siop0: 16 targets
 fxp0 at pci1 dev 3 function 0 Intel 8255x rev 0x08, i82559: irq 11,
 address 00:50:8b:e8:56:04
 inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
 fxp1 at pci1 dev 4 function 0 Intel 8255x rev 0x08, i82559: irq 11,
 address 00:50:8b:e8:56:05
 inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 4
 vga1 at pci0 dev 2 function 0 ATI Rage XL rev 0x27
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 Compaq Netelligent ASMC rev 0x00 at pci0 dev 3 function 0 not configured
 piixpm0 at pci0 dev 15 function 0 ServerWorks OSB4 rev 0x51: polling
 iic0 at piixpm0
 adm1022 at iic0 addr 0x2c not configured
 iic0: addr 0x2c 13=3a 14=4d 15=02 17=46 18=64 19=00 20=80 26=3b 27=1b
 2b=7f 2c=80 37=48 38=c9 39=35 3a=c9 3e=41 3f=c9 40=2b 41=10 43=11
 44=08 47=50 4a=01 4c=10 93=3a 94=4d 95=02 97=46 98=64 99=00 a0=80
 a6=3b a7=1b ab=7f ac=80 b7=48 b8=c9 b9=35 ba=c9 be=41 bf=c9 c0=2b
 c1=10 c3=11 c4=08 c7=50 ca=01 cc=10: adm1022
 pciide1 at pci0 dev 15 function 1 ServerWorks OSB4 IDE rev 0x00: DMA
 atapiscsi0 at pciide1 channel 1 drive 0
 scsibus1 at atapiscsi0: 2 targets
 cd0 at scsibus1 targ 0 lun 0: COMPAQ, CD-ROM CRN-8241B, 2.23 SCSI0
 5/cdrom removable
 cd0(pciide1:1:0): using PIO mode 4, DMA mode 2
 ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev 0x04:
 irq 5, version 

Re: serial console device

2007-08-21 Thread nicodache
Me again,

Trying to play with the serial port to see if I can get it to work, I
just saw my box does not seem to care of /etc/boot.conf : when I set
timeout 20 (plus stty com0 9600  set tty com0), my machine still
decides to boot after 5 seconds.

So, my computer really does sorcerer-ish things...

any clues on why I got no luck ?

Could that be due to RAIDframe ?
Or am I just some kind of idiot ?

Thx

On 8/21/07, nicodache [EMAIL PROTECTED] wrote:
 Here is the content of /etc/ttys file. do you see any mistake ?

 -bash-3.2$ grep -v none /etc/ttys
 #
 #   $OpenBSD: ttys,v 1.17 2002/06/09 06:15:14 todd Exp $
 #
 # name  getty   typestatus  comments
 #
 console /usr/libexec/getty Pc vt220   off secure
 ttyC0   /usr/libexec/getty Pc vt220   on  secure
 ttyC1   /usr/libexec/getty Pc vt220   off secure
 ttyC2   /usr/libexec/getty Pc vt220   off secure
 ttyC3   /usr/libexec/getty Pc vt220   off secure
 ttyC4   /usr/libexec/getty Pc vt220   off secure
 ttyC5   /usr/libexec/getty Pc vt220   off secure
 ttyC6   /usr/libexec/getty Pc vt220   off secure
 ttyC7   /usr/libexec/getty Pc vt220   off secure
 ttyC8   /usr/libexec/getty Pc vt220   off secure
 ttyC9   /usr/libexec/getty Pc vt220   off secure
 ttyCa   /usr/libexec/getty Pc vt220   off secure
 ttyCb   /usr/libexec/getty Pc vt220   off secure
 tty00   /usr/libexec/getty std.9600   vt220   on  secure
 tty01   /usr/libexec/getty std.9600   unknown off
 tty02   /usr/libexec/getty std.9600   unknown off
 tty03   /usr/libexec/getty std.9600   unknown off
 tty04   /usr/libexec/getty std.9600   unknown off
 tty05   /usr/libexec/getty std.9600   unknown off
 tty06   /usr/libexec/getty std.9600   unknown off
 tty07   /usr/libexec/getty std.9600   unknown off


 when getting the stage 2 boot loading prompt, I also get the following 
 message :
 probing: pc0 com0 mem[639K 1023M a20=on]
 disk: fd0 fd1 hd0+ hd1+
  OpenBSD/i386 BOOT 2.13
 boot 

 So, my installation sees an com port. is that because it is physically
 detected ? or because it is configured in the /etc/ttys file ?

 Thanks again



Re: serial console device

2007-08-21 Thread nicodache
Hello, it's me again, for an end.

IT WAS THE CABLE /o\

I bought a cable in a shop, specially asking the guy there if it would
fit to connect 2 pc to acces them using console control software, and
he told me he used that same cable for his own lab test.
And it appears the cable I made myself last month, and I didn't trust
at all, is working using default params (and vt100 as HyperTerm does
not seem to support vt220), while the one I paid 2.5 is not... (I
said my cicso was fine with the serial port, but I could not use his
cable, as one end is a rj45 connector...)

Thanks anyway to you guys, and off to another problem ; /etc/boot.conf
not used \x/
We'll see that tomorrow, gonna sleep now, 34 after midnight here.

nicodache

On 8/21/07, nicodache [EMAIL PROTECTED] wrote:
 Me again,

 Trying to play with the serial port to see if I can get it to work, I
 just saw my box does not seem to care of /etc/boot.conf : when I set
 timeout 20 (plus stty com0 9600  set tty com0), my machine still
 decides to boot after 5 seconds.

 So, my computer really does sorcerer-ish things...

 any clues on why I got no luck ?

 Could that be due to RAIDframe ?
 Or am I just some kind of idiot ?

 Thx

 On 8/21/07, nicodache [EMAIL PROTECTED] wrote:
  Here is the content of /etc/ttys file. do you see any mistake ?
 
  -bash-3.2$ grep -v none /etc/ttys
  #
  #   $OpenBSD: ttys,v 1.17 2002/06/09 06:15:14 todd Exp $
  #
  # name  getty   typestatus  comments
  #
  console /usr/libexec/getty Pc vt220   off secure
  ttyC0   /usr/libexec/getty Pc vt220   on  secure
  ttyC1   /usr/libexec/getty Pc vt220   off secure
  ttyC2   /usr/libexec/getty Pc vt220   off secure
  ttyC3   /usr/libexec/getty Pc vt220   off secure
  ttyC4   /usr/libexec/getty Pc vt220   off secure
  ttyC5   /usr/libexec/getty Pc vt220   off secure
  ttyC6   /usr/libexec/getty Pc vt220   off secure
  ttyC7   /usr/libexec/getty Pc vt220   off secure
  ttyC8   /usr/libexec/getty Pc vt220   off secure
  ttyC9   /usr/libexec/getty Pc vt220   off secure
  ttyCa   /usr/libexec/getty Pc vt220   off secure
  ttyCb   /usr/libexec/getty Pc vt220   off secure
  tty00   /usr/libexec/getty std.9600   vt220   on  secure
  tty01   /usr/libexec/getty std.9600   unknown off
  tty02   /usr/libexec/getty std.9600   unknown off
  tty03   /usr/libexec/getty std.9600   unknown off
  tty04   /usr/libexec/getty std.9600   unknown off
  tty05   /usr/libexec/getty std.9600   unknown off
  tty06   /usr/libexec/getty std.9600   unknown off
  tty07   /usr/libexec/getty std.9600   unknown off
 
 
  when getting the stage 2 boot loading prompt, I also get the following
message :
  probing: pc0 com0 mem[639K 1023M a20=on]
  disk: fd0 fd1 hd0+ hd1+
   OpenBSD/i386 BOOT 2.13
  boot 
 
  So, my installation sees an com port. is that because it is physically
  detected ? or because it is configured in the /etc/ttys file ?
 
  Thanks again



serial console device

2007-08-20 Thread nicodache
Hello,

I'm almost done configuring some little 1U server for my own
edutainment, and I'm busy trying to configure the serial console.
I have the excellent book of Michael W. Lucas calld Absolute
OpenBSD, and he tells about serial console, that by entering set tty
com0, we can access the machine from any other machine that has a
serial port, and a port monitoring software.
I use a windows computer for it, only because I know this machine's
serial port works, and the configuration I set up for my cisco (which
is the same config as the one for openbsd) works in that machine.
However, I can't get my serial port on my server to work ; I type in
set tty com0, and nothing nowhere ! It even seems this server does not
boot up ! (I can't find it with an nmap -sP with serial on booting,
while I can otherwise).
The server is an old compaq server : Proliant DL 320 (G1), with only 1
serial port on the motherboard.

Is there anyway for me to check my com port is detected and working,
before I put my server into a datacenter ?

Thanks

nicodache



Re: serial console device

2007-08-20 Thread Jim Razmus
* nicodache [EMAIL PROTECTED] [070820 15:26]:
 Hello,
 
 I'm almost done configuring some little 1U server for my own
 edutainment, and I'm busy trying to configure the serial console.
 I have the excellent book of Michael W. Lucas calld Absolute
 OpenBSD, and he tells about serial console, that by entering set tty
 com0, we can access the machine from any other machine that has a
 serial port, and a port monitoring software.
 I use a windows computer for it, only because I know this machine's
 serial port works, and the configuration I set up for my cisco (which
 is the same config as the one for openbsd) works in that machine.
 However, I can't get my serial port on my server to work ; I type in
 set tty com0, and nothing nowhere ! It even seems this server does not
 boot up ! (I can't find it with an nmap -sP with serial on booting,
 while I can otherwise).
 The server is an old compaq server : Proliant DL 320 (G1), with only 1
 serial port on the motherboard.
 
 Is there anyway for me to check my com port is detected and working,
 before I put my server into a datacenter ?
 
 Thanks
 
 nicodache
 

This doesn't answer your question directly, but you could take a look in
the FAQ here:

http://www.openbsd.org/faq/faq7.html#SerCon

and change the relevant line in /etc/ttys to something like:

tty00   /usr/libexec/getty std.19200  vt220on secure

If you don't enable the console, 'set tty com0' doesn't help.

HTH,
Jim



Re: serial console device

2007-08-20 Thread Joachim Schipper
On Mon, Aug 20, 2007 at 03:55:50PM -0400, Jim Razmus wrote:
 * nicodache [EMAIL PROTECTED] [070820 15:26]:
  Hello,
  
  I'm almost done configuring some little 1U server for my own
  edutainment, and I'm busy trying to configure the serial console.
  I have the excellent book of Michael W. Lucas calld Absolute
  OpenBSD, and he tells about serial console, that by entering set tty
  com0, we can access the machine from any other machine that has a
  serial port, and a port monitoring software.
  I use a windows computer for it, only because I know this machine's
  serial port works, and the configuration I set up for my cisco (which
  is the same config as the one for openbsd) works in that machine.
  However, I can't get my serial port on my server to work ; I type in
  set tty com0, and nothing nowhere ! It even seems this server does not
  boot up ! (I can't find it with an nmap -sP with serial on booting,
  while I can otherwise).
  The server is an old compaq server : Proliant DL 320 (G1), with only 1
  serial port on the motherboard.
  
  Is there anyway for me to check my com port is detected and working,
  before I put my server into a datacenter ?
 
 This doesn't answer your question directly, but you could take a look in
 the FAQ here:
 
 http://www.openbsd.org/faq/faq7.html#SerCon
 
 and change the relevant line in /etc/ttys to something like:
 
 tty00   /usr/libexec/getty std.19200  vt220on secure
 
 If you don't enable the console, 'set tty com0' doesn't help.

Actually, 'set tty com0' in /etc/boot.conf will tell the kernel to
redirect the console messages (notably, the messages at boot) there.

Also, are you *sure* you want to set the console to 19200 baud instead
of the far-more-standard 9600? Even if you are, you should at least
match it with /etc/boot.conf...

(The above suggests booting into OpenBSD with both a serial cable and
if possible a monitor attached, starting the serial session before
OpenBSD starts booting, and looking at the results.)

Joachim

-- 
TFMotD: pkg_mklocatedb (1) - create a locate database for packages



Re: serial console device

2007-08-20 Thread nicodache
Hello,

I was just looking this webpage when I got your answer ; as Michael
Lucas didn't talk about this file in his talk about consoles, I though
console ports were active by default... (but I found this file in this
book's index, however)

So, tty00 is tty00   /usr/libexec/getty std.9600   vt220   on
secure, but it still does not work (I tried 19200 also).

At the boot prompt, when I type set tty, there is some sort of
autocompletion, that lists me only pc0, no com port is present. Does
that mean the kernel does not recognize the serial ports ?

I'm still running generic kernel plus RAIDframe. My serial port should
be detected by the kernel, shouldn't they ?
any guess would be neat, I really do feel unconfident with serial ports :-/

Would a dmesg be of any use in this case ?

Thanks

nicodache

On 8/20/07, Jim Razmus [EMAIL PROTECTED] wrote:
 * nicodache [EMAIL PROTECTED] [070820 15:26]:
  Hello,
 
  I'm almost done configuring some little 1U server for my own
  edutainment, and I'm busy trying to configure the serial console.
  I have the excellent book of Michael W. Lucas calld Absolute
  OpenBSD, and he tells about serial console, that by entering set tty
  com0, we can access the machine from any other machine that has a
  serial port, and a port monitoring software.
  I use a windows computer for it, only because I know this machine's
  serial port works, and the configuration I set up for my cisco (which
  is the same config as the one for openbsd) works in that machine.
  However, I can't get my serial port on my server to work ; I type in
  set tty com0, and nothing nowhere ! It even seems this server does not
  boot up ! (I can't find it with an nmap -sP with serial on booting,
  while I can otherwise).
  The server is an old compaq server : Proliant DL 320 (G1), with only 1
  serial port on the motherboard.
 
  Is there anyway for me to check my com port is detected and working,
  before I put my server into a datacenter ?
 
  Thanks
 
  nicodache
 

 This doesn't answer your question directly, but you could take a look in
 the FAQ here:

 http://www.openbsd.org/faq/faq7.html#SerCon

 and change the relevant line in /etc/ttys to something like:

 tty00   /usr/libexec/getty std.19200  vt220on secure

 If you don't enable the console, 'set tty com0' doesn't help.

 HTH,
 Jim



Re: serial console device

2007-08-20 Thread nicodache
I wouldn't try to set set tty com0 in my /boot.conf, as it does not
even work from boot prompt : I wouldn't like to have my computer stuck
at boot, without beeing able to get OpenBSD up (seems like my computer
does not continue booting after switching to the serial console).

However, good news, I got to make it work, I don't know how, and I
don't know why. I discovered this after plugging my only screen for
both the server and the windows, on the windows ; I saw console output
from the previous boot. However, I don't remember the settings, and I
can't get it to work anymore :(
I think some unplug/replug of serial cable was involved. Seems abnormal to me...

nicodache

On 8/20/07, Joachim Schipper [EMAIL PROTECTED] wrote:
 On Mon, Aug 20, 2007 at 03:55:50PM -0400, Jim Razmus wrote:
  * nicodache [EMAIL PROTECTED] [070820 15:26]:
   Hello,
  
   I'm almost done configuring some little 1U server for my own
   edutainment, and I'm busy trying to configure the serial console.
   I have the excellent book of Michael W. Lucas calld Absolute
   OpenBSD, and he tells about serial console, that by entering set tty
   com0, we can access the machine from any other machine that has a
   serial port, and a port monitoring software.
   I use a windows computer for it, only because I know this machine's
   serial port works, and the configuration I set up for my cisco (which
   is the same config as the one for openbsd) works in that machine.
   However, I can't get my serial port on my server to work ; I type in
   set tty com0, and nothing nowhere ! It even seems this server does not
   boot up ! (I can't find it with an nmap -sP with serial on booting,
   while I can otherwise).
   The server is an old compaq server : Proliant DL 320 (G1), with only 1
   serial port on the motherboard.
  
   Is there anyway for me to check my com port is detected and working,
   before I put my server into a datacenter ?
 
  This doesn't answer your question directly, but you could take a look in
  the FAQ here:
 
  http://www.openbsd.org/faq/faq7.html#SerCon
 
  and change the relevant line in /etc/ttys to something like:
 
  tty00   /usr/libexec/getty std.19200  vt220on secure
 
  If you don't enable the console, 'set tty com0' doesn't help.

 Actually, 'set tty com0' in /etc/boot.conf will tell the kernel to
 redirect the console messages (notably, the messages at boot) there.

 Also, are you *sure* you want to set the console to 19200 baud instead
 of the far-more-standard 9600? Even if you are, you should at least
 match it with /etc/boot.conf...

 (The above suggests booting into OpenBSD with both a serial cable and
 if possible a monitor attached, starting the serial session before
 OpenBSD starts booting, and looking at the results.)

 Joachim

 --
 TFMotD: pkg_mklocatedb (1) - create a locate database for packages



Re: serial console device

2007-08-20 Thread Stuart Henderson
On 2007/08/20 21:17, nicodache wrote:
 I use a windows computer for it, only because I know this machine's
 serial port works, and the configuration I set up for my cisco (which
 is the same config as the one for openbsd) works in that machine.

Doesn't mean the cable is suitable. Check that first... 3-wire is
generally not enough for the PC boot loaders (but probably will be
enough for an after-boot console enabled in /etc/ttys).

 The server is an old compaq server : Proliant DL 320 (G1), with only 1
 serial port on the motherboard.

Also check any BIOS console redirect options; if this exists, you
should probably only have it active for the BIOS, not OS/bootloader.

 Is there anyway for me to check my com port is detected and working,
 before I put my server into a datacenter ?

cu -l cua00, dumb terminal software at the other end, type blind
at one end, it should appear on-screen at the other.



Re: serial console device

2007-08-20 Thread nicodache
Ok, the dmesg is here :)

BTW, is it normal to still have access the the ctrl-alt-del keys when
I'm (or at least I should be) using the serial to redirect all the i/o
from the other computer ?

DMESG :
OpenBSD 4.1 (GENERIC.RAID) #0: Sun Jul  8 22:16:34 CEST 2007
[EMAIL PROTECTED]:/sys/arch/i386/compile/GENERIC.RAID
cpu0: Intel Pentium III (GenuineIntel 686-class) 795 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 1073311744 (1048156K)
avail mem = 971534336 (948764K)
using 4278 buffers containing 53788672 bytes (52528K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @
0xeca00, SMBIOS rev. 2.3 @ 0xf2000 (41 entries)
bios0: Compaq ProLiant DL320
pcibios0 at bios0: rev 2.1 @ 0xeca00/0x3600
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfaca0/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:15:0 (ServerWorks OSB4 rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x8000 0xd/0x3400 0xe8000/0x8000!
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 ServerWorks CNB20LE Host rev 0x05
pchb1 at pci0 dev 0 function 1 ServerWorks CNB20LE Host rev 0x05
pci1 at pchb1 bus 1
pciide0 at pci1 dev 1 function 0 Promise PDC20375 rev 0x02: DMA
wd0 at pciide0 channel 0 drive 0: ST380811AS
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6
wd1 at pciide0 channel 1 drive 0: ST380811AS
wd1: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd1(pciide0:1:0): using BIOS timings, Ultra-DMA mode 6
pciide0: using irq 3 for native-PCI interrupt
siop0 at pci1 dev 2 function 0 Symbios Logic 53c895A rev 0x01: irq
3, using 8K of on-board RAM
scsibus0 at siop0: 16 targets
fxp0 at pci1 dev 3 function 0 Intel 8255x rev 0x08, i82559: irq 11,
address 00:50:8b:e8:56:04
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
fxp1 at pci1 dev 4 function 0 Intel 8255x rev 0x08, i82559: irq 11,
address 00:50:8b:e8:56:05
inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 4
vga1 at pci0 dev 2 function 0 ATI Rage XL rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
Compaq Netelligent ASMC rev 0x00 at pci0 dev 3 function 0 not configured
piixpm0 at pci0 dev 15 function 0 ServerWorks OSB4 rev 0x51: polling
iic0 at piixpm0
adm1022 at iic0 addr 0x2c not configured
iic0: addr 0x2c 13=3a 14=4d 15=02 17=46 18=64 19=00 20=80 26=3b 27=1b
2b=7f 2c=80 37=48 38=c9 39=35 3a=c9 3e=41 3f=c9 40=2b 41=10 43=11
44=08 47=50 4a=01 4c=10 93=3a 94=4d 95=02 97=46 98=64 99=00 a0=80
a6=3b a7=1b ab=7f ac=80 b7=48 b8=c9 b9=35 ba=c9 be=41 bf=c9 c0=2b
c1=10 c3=11 c4=08 c7=50 ca=01 cc=10: adm1022
pciide1 at pci0 dev 15 function 1 ServerWorks OSB4 IDE rev 0x00: DMA
atapiscsi0 at pciide1 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: COMPAQ, CD-ROM CRN-8241B, 2.23 SCSI0
5/cdrom removable
cd0(pciide1:1:0): using PIO mode 4, DMA mode 2
ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev 0x04:
irq 5, version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ServerWorks OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
isa0 at mainbus0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask f7ed netmask ffed ttymask ffef
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
Kernelized RAIDframe activated
cd0(atapiscsi0:0:0): Check Condition (error 0x70) on opcode 0x0
SENSE KEY: Not Ready
 ASC/ASCQ: Medium Not Present
raid0 (root): (RAID Level 1) total number of sectors is 156091648
(76216 MB) as root
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
swapmount: no device


On 8/20/07, Darren Spruell [EMAIL PROTECTED] wrote:
 On 8/20/07, nicodache [EMAIL PROTECTED] wrote:
  Hello,
 
  I was just looking this webpage when I got your answer ; as Michael
  Lucas didn't talk about this file in his talk about consoles, I though
  console ports were active by default... (but I found this file in this
  book's index, however)
 
  So, tty00 is tty00   /usr/libexec/getty std.9600   vt220   on
  secure, but it still does not work (I tried 19200 also).
 
  At the boot prompt, when I type set tty, there is some sort of
  autocompletion, that lists me only pc0, no com port is present. Does
  that mean the kernel does not recognize the serial ports ?
 
  I'm still running generic kernel plus RAIDframe. My serial port