Re: Question related to FreeBSD Serial Console...

2003-09-14 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]>
Gordon Tetlow <[EMAIL PROTECTED]> writes:
: I've personally killed about 5 keyboards this way. I don't recommend hot
: plugging PS/2 keyboards.

PS/2 keyboards and mice are not hot pluggable.  Mechanical switches do
not meet the spec, but are less bad than actual hot plugging.  The
fact that you can often get away with it makes people think it is ok.

Warner
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-11 Thread Gordon Tetlow
On Tue, Sep 02, 2003 at 12:18:51PM +0100, [EMAIL PROTECTED] wrote:
> Hiya
> 
> 
> > Unfortunately, many motherboards (BIOSs?) won't initialise a PS/2 keyboard
> > interface unless a keyboard is connected at boot time, so if you plug in a
> > keyboard subsequently it won't work. Nothing the OS can do in this case (I
> > believe), and yes it's a PITA.
> 
> Keyboard and mouse manufacturers usually give dire warnings about plugging
> in PS/2 devices when the machine is powered up, maybe that's the reason
> why.

I've personally killed about 5 keyboards this way. I don't recommend hot
plugging PS/2 keyboards.

-gordon


pgp0.pgp
Description: PGP signature


Re: Question related to FreeBSD Serial Console...

2003-09-03 Thread Matthew D. Fuller
On Tue, Sep 02, 2003 at 12:18:51PM +0100 I heard the voice of
[EMAIL PROTECTED], and lo! it spake thus:
> 
> Keyboard and mouse manufacturers usually give dire warnings about plugging
> in PS/2 devices when the machine is powered up, maybe that's the reason
> why.

I think it's more because the interface isn't really designed
electrically to support hot-plugging.  I've cooked motherboards[0] by
hot-plugging keyboards before.

[0] Often I could, after heating up the soldering iron and a trip to
Radio Shack, recover them, but not always.



-- 
Matthew Fuller (MF4839)   |  [EMAIL PROTECTED]
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/

"The only reason I'm burning my candle at both ends, is because I
  haven't figured out how to light the middle yet"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-02 Thread Bruce M Simpson
On Mon, Sep 01, 2003 at 05:29:09PM -0600, Scott Long wrote:
> At one time I was working on patches to the loader to make the console
> speed configurable.  At the time, at least, I didn't see any evidence
> that the settings were stored in the boot0 block, but maybe I was wrong.
> In any case, finishing this up is on my TODO list.

I was trying to make the boot process 100% independent of the VGA console
at one stage.  To the best of my knowledge, boot0 doesn't know anything
about serial, unless someone's using my boot0sio hack (which I haven't
committed, btw; it was very specific - you have only 512 bytes to play
with in the MBR, and I understand people had problems with jhb's 1024 byte
boot0).

boot2 is probably the more interesting part, it does make assumptions
if BOOT_COMCONSOLE_SPEED wasn't specified in the make, and loader takes its
cue from that up until it sees 'console' in loader.conf[.local].

One of the limitations here is that there can only be one console. Anything
else would be something of a hack to get boot2 and loader to tee their
output to two independent devices.

BMS
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-02 Thread Scott M. Likens
On Tue, 2003-09-02 at 01:33, Bruce Evans wrote:
> About the original question: multiple consoles in the kernel are
> unsupported in FreeBSD-4 but are standard in -current.  Unfortunately,
> their implementation is slightly incomplete even in -current.  In
> -current, you get them by booting with -D after booting using the
> kern.console sysctl.  The number of consoles is limited only by the
> number of devices that support consoles.  Low level console i/o (mainly
> boot messages and other kernel messags printed by kernel printfs) is
> then sent to and received from all the consoles, but for some reason
> high-level console output (all i/o from/to /dev/console) is only sent
> to the first console in the list.  This should be easy to fix for
> writes and ioctls though not so easy for reads.  I think booting with
> -Dh makes the serial console first and booting with -D makes the video
> console first (if both are configured).  The order can be changed using
> the sysctl.

Eh veh, 10 different answers to 1 question.  The mailing list is doing
it's job.  But okay, yes I was wanting both consoles to be initialized
at the same exact time really.  

So I would guess then, -current would be best supported for this.  That
or find a motherboard with builtin serial console support.

What a solution, was hoping for something more of an easy answer.  But
Thanks!


> On Mon, 1 Sep 2003, Scott Long wrote:
> 
> > John Birrell wrote:
> > > On Mon, Sep 01, 2003 at 05:29:09PM -0600, Scott Long wrote:
> > >
> > >>At one time I was working on patches to the loader to make the console
> > >>speed configurable.  At the time, at least, I didn't see any evidence
> > >>that the settings were stored in the boot0 block, but maybe I was wrong.
> 
> There are already too many places to set it.
> 
> > > AFAIK, the boot0 block uses bios int 0x16 to get a key-press and bios int
> > > 0x10 to display a character, so in a situation where you *want* a serial
> > > console, the F1 etc stuff can't be used unless the bios supports console
> > > re-direction. And you have to live with whatever baud rate the bios sets.
> 
> I think boot0 is already full (unless you unportabalize it by expanding it
> beyond one sector).  It doesn't have its own serial i/o routines mainly
> because there is no space for them.
> 
> > > Once you get to boot2, then the serial console can work if set in /boot.config.
> > >
> > > It would be nice to have a boot.config setting for the baud rate. I have a
> > > board here that allows bios re-direction to either the first or second serial
> > > port at a fixed baud rate of 38400. I have to build boot2 with
> > > BOOT_COMCONSOLE_SPEED=38400, and then the kernel with CONSPEED=38400 to
> > > get all the ducks in a row.
> 
> The latter shouldn't be necessary.  The kernel (i386 sio only) uses the
> same speed that boot2 used if the kernel was booted with -h.  It should
> also use the same speed if the kernel was booted with -D.
> 
> > > But it would be even nicer if both boot2 and the kernel would just work with
> > > whatever baud rate the bios set.
> >
> > This is exactly the problem that I was working on.
> 
> Unfortunately most BIOSes don't provide a way to set the speed.  I'm not
> sure that it even has a default.  I always use 115200 bps, but at least he
> old BIOS interface is limited to 9600 bps.  I may work on this a bit soon
> to make 921600 bps work.
> 
> Bruce
-- 
"I think we ought to be out there doing what we do best - making large
holes in other people's countries." - George Carlin



signature.asc
Description: This is a digitally signed message part
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-02 Thread jon
Hiya


> Unfortunately, many motherboards (BIOSs?) won't initialise a PS/2 keyboard
> interface unless a keyboard is connected at boot time, so if you plug in a
> keyboard subsequently it won't work. Nothing the OS can do in this case (I
> believe), and yes it's a PITA.

Keyboard and mouse manufacturers usually give dire warnings about plugging
in PS/2 devices when the machine is powered up, maybe that's the reason
why.


--Jon

http://www.witchspace.com

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-02 Thread Bob Bishop
Hi,

At 00:36 2/9/03, Nicole wrote:

 *SIGH*
 No what I want is NO serial console. DO NOT FOR ANY REASON turn off/not resp
ond to the keyboard port
Unfortunately, many motherboards (BIOSs?) won't initialise a PS/2 keyboard 
interface unless a keyboard is connected at boot time, so if you plug in a 
keyboard subsequently it won't work. Nothing the OS can do in this case (I 
believe), and yes it's a PITA.

--
Bob Bishop  +44 (0)118 977 4017
[EMAIL PROTECTED]   fax +44 (0)118 989 4254
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-02 Thread Terry Lambert
David Leimbach wrote:
> On Sep 1, 2003, at 6:36 PM, Nicole wrote:
> >  *SIGH*
> >  No what I want is NO serial console. DO NOT FOR ANY REASON turn
> > off/not resp
> > ond to the keyboard port
> >
> 
> -Dh means both keyboard and serial console... what's the problem?  And
> please
> stop shouting.

man 8 boot:

 -Dtoggle single and dual console configurations.  In
   the single configuration the console will be either
   the internal display or the serial port, depending
   on the state of the -h option below.  In the dual
   console configuration, both the internal display
   and the serial port will become the console at the
   same time, regardless of the state of the -h
   option.  However, the dual console configuration
***
   takes effect only during the boot prompt.  Once the
   ***
   kernel is loaded, the console specified by the -h
   *
   option becomes the only console.
   ***

-- Terry
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-02 Thread Terry Lambert
Scott Long wrote:
> Scott M. Likens wrote:
> > I have a question related to FreeBSD Serial console,
> >
> > I am aware you can use -Dh for both internal and serial, but is it
> > possible to see the 'kernel' "boot" messages sent on both the serial and
> > the console?
> >
> > It was a question that was asked to me by a client, and after
> > researching it more, it seems that it's not possible.
> >
> > Am i wrong?  or did I miss an option that's not documented?

In boot.config, you can add the line "-D".

Unfortunately, this only makes both consoles active during the
boot; when control is given over to the kernel, only a single
console (specified by the state of the -h option, and toggling,
depending on whether you have a keyboard plugged in) makes only
a single console active.  Unfortunately, when the sense of the
-P option was inverted, it kind of broke the expected console
behaviour ("use keyboard if keyboard connected, else use serial").

Unfortunately you can't just "-P -h" as it used to tell you to do
in the handbook, because of the "-P" sense inversion.

Probably someone ought to do the work of making "-D" work internal
to the kernel itself, and ought to reinvert the "-P" so that you
could hook up a keyboard before or after boot, and the keyboard
would "just work", like it did circa FreeBSD 4.2/4.3.  Making the
"-D" work is probably what the person who broke "-P" had in mind,
with breaking "-P" provoking someone to "make -D work right".  Kind
of like starting someone's foot on fire to get extinguishers put in
the apartment complex (or because "it feels so good when the fire
goes out").

-- Terry
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-02 Thread Bruce Evans
About the original question: multiple consoles in the kernel are
unsupported in FreeBSD-4 but are standard in -current.  Unfortunately,
their implementation is slightly incomplete even in -current.  In
-current, you get them by booting with -D after booting using the
kern.console sysctl.  The number of consoles is limited only by the
number of devices that support consoles.  Low level console i/o (mainly
boot messages and other kernel messags printed by kernel printfs) is
then sent to and received from all the consoles, but for some reason
high-level console output (all i/o from/to /dev/console) is only sent
to the first console in the list.  This should be easy to fix for
writes and ioctls though not so easy for reads.  I think booting with
-Dh makes the serial console first and booting with -D makes the video
console first (if both are configured).  The order can be changed using
the sysctl.

On Mon, 1 Sep 2003, Scott Long wrote:

> John Birrell wrote:
> > On Mon, Sep 01, 2003 at 05:29:09PM -0600, Scott Long wrote:
> >
> >>At one time I was working on patches to the loader to make the console
> >>speed configurable.  At the time, at least, I didn't see any evidence
> >>that the settings were stored in the boot0 block, but maybe I was wrong.

There are already too many places to set it.

> > AFAIK, the boot0 block uses bios int 0x16 to get a key-press and bios int
> > 0x10 to display a character, so in a situation where you *want* a serial
> > console, the F1 etc stuff can't be used unless the bios supports console
> > re-direction. And you have to live with whatever baud rate the bios sets.

I think boot0 is already full (unless you unportabalize it by expanding it
beyond one sector).  It doesn't have its own serial i/o routines mainly
because there is no space for them.

> > Once you get to boot2, then the serial console can work if set in /boot.config.
> >
> > It would be nice to have a boot.config setting for the baud rate. I have a
> > board here that allows bios re-direction to either the first or second serial
> > port at a fixed baud rate of 38400. I have to build boot2 with
> > BOOT_COMCONSOLE_SPEED=38400, and then the kernel with CONSPEED=38400 to
> > get all the ducks in a row.

The latter shouldn't be necessary.  The kernel (i386 sio only) uses the
same speed that boot2 used if the kernel was booted with -h.  It should
also use the same speed if the kernel was booted with -D.

> > But it would be even nicer if both boot2 and the kernel would just work with
> > whatever baud rate the bios set.
>
> This is exactly the problem that I was working on.

Unfortunately most BIOSes don't provide a way to set the speed.  I'm not
sure that it even has a default.  I always use 115200 bps, but at least he
old BIOS interface is limited to 9600 bps.  I may work on this a bit soon
to make 921600 bps work.

Bruce
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-02 Thread Scott M. Likens
On Mon, 2003-09-01 at 16:13, Nicole wrote:
> On 01-Sep-03 Unnamed Administration sources reported Scott Long said :
> > Scott M. Likens wrote:
> >> I have a question related to FreeBSD Serial console,
> >> 
> >> I am aware you can use -Dh for both internal and serial, but is it
> >> possible to see the 'kernel' "boot" messages sent on both the serial and
> >> the console?
> >> 
> >> It was a question that was asked to me by a client, and after
> >> researching it more, it seems that it's not possible.
> >> 
> >> Am i wrong?  or did I miss an option that's not documented?
> >> 
> >> Sincerely,
> >> 
> >> Scott M. Likens
> >> 
> >> 
> > 
> > I'm a little confused by your request, but maybe adding the following
> > line to /boot/loader.conf will get what you want?
> > 
> > console="comconsole"
> > 
> > There is also a way to get the console directed to both the video and
> > serial at the same time, but I've forgotten the magic and can't find it
> > at the moment.
> 
>  Heh magic is the right word ;)
> 
>  According to what I have found it is supposed to be:
> 
>  console="vidconsole"   To make it still choose internal console even if it does
> not find a keyboard present at boot time. So you can walk up later and connect
> a keyboard and have it work.
> 
> 
>  Everytime I asked on the lists I got.. Oh go look here for the answer. Which I
> had.. to which I got, oh well the answers in there..  No one ever was able to
> say DO THIS.  Let alone anyone saying do this and have it work :(
> 
>  If you find the Magic please do let me know :)

My god I think i'm gonna create a 10line signature to compete with you
guys.

At any rate, Thank you for the console="vidconsole" that should do the
trick of what i was seeking.

I just basically want it to send to both serial + vga at the same time,
that's all.

Because sometimes serial is required for remote purposes, ssh into a
control server, minicom over to the serial, wam.  Or if i'm at the
server, switchover the kvm and see what's up.

Can be hard during the boot process when something hangs and you can't
see shit until it's fully booted.

But thank you for your responses.

---

"I think we ought to be out there doing what we do best - making large
holes in other people's countries." - George Carlin



signature.asc
Description: This is a digitally signed message part
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-02 Thread Aaron Wohl
If you do try a USB keyboard be sure and test reboot -d (make a kernel
core).  On the intel servers I have reboot -d (or any panic) causes the
kernel to lockup forever.  In the routine where it writes out kernel
dumps it pools for a control-c hit on the console that routine (poll for
a char) turns out to block on USB keyboards during shutdown, I suspect
too much of the user level USB code has been turned off by then.

I ended up turning off the kernel (5.1) USB support, not running the usb
deamon and removing moused.  To save on USB related kernel crashes.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-02 Thread Scott Long
John Birrell wrote:
On Mon, Sep 01, 2003 at 05:29:09PM -0600, Scott Long wrote:

At one time I was working on patches to the loader to make the console
speed configurable.  At the time, at least, I didn't see any evidence
that the settings were stored in the boot0 block, but maybe I was wrong.


AFAIK, the boot0 block uses bios int 0x16 to get a key-press and bios int
0x10 to display a character, so in a situation where you *want* a serial
console, the F1 etc stuff can't be used unless the bios supports console
re-direction. And you have to live with whatever baud rate the bios sets.
Once you get to boot2, then the serial console can work if set in /boot.config.

It would be nice to have a boot.config setting for the baud rate. I have a
board here that allows bios re-direction to either the first or second serial
port at a fixed baud rate of 38400. I have to build boot2 with
BOOT_COMCONSOLE_SPEED=38400, and then the kernel with CONSPEED=38400 to
get all the ducks in a row.
But it would be even nicer if both boot2 and the kernel would just work with
whatever baud rate the bios set.
This is exactly the problem that I was working on.

Scott

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-02 Thread Scott Long
I don't believe that I responded to your email, so I'm not sure why you 
are shouting at me.

Figuring out what the Right Thing is for handling disconnected keyboards
seems to be highly debatable.  Until someone comes along and solves the
problem the way that you want it, one workaround to investigate is USB
keyboards.
Scott

Nicole wrote:
 *SIGH*
 No what I want is NO serial console. DO NOT FOR ANY REASON turn off/not resp
ond to the keyboard port


 Nicole



On 01-Sep-03 Unnamed Administration sources reported Scott Long said :

Aaron Wohl wrote:

My notes on getting a serial console at 115200

-must be com1
-com1 must be at port 0x3F8 irq 4
-in bios set the port and irq as above
-in bios set serial redirection to com1
-in bios set baud rate 115200
-in bios set RTS/CTS flow control
-edit (or create) /etc/make.conf to add these lines:
BOOT_COMCONSOLE_PORT=   0x3F8
BOOT_COMCONSOLE_SPEED=  115200
-cd /sys/boot
-make clean
-make
-make install
-fdisk -B
No im not kidding.  Part of the boot knowing baud rate loader lives in
the main disk boot block.
-cd /boot
-edit loader.conf
-add a line:
console=comconsole
-edit /boot.config make it read (with a return after it):
-Dh
(the above is minus D h return, thats 4 characters)
-cd /usr/src/sys/i386/conf
-edit PASODOBLE (or whatever your kernconf is called)
-add:
options   CONSPEED=115200 # Console Redirection
-cd /usr/src
-make buildkernel KERNCONF=PASODOBLE
-make installkernel KERNCONF=PASODOBLE
-reboot
-pray


At one time I was working on patches to the loader to make the console
speed configurable.  At the time, at least, I didn't see any evidence
that the settings were stored in the boot0 block, but maybe I was wrong.
In any case, finishing this up is on my TODO list.
Scott

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"




 |\ __ /|   (`\
 | o_o  |__  ) )   
//  \\ 
 -  [EMAIL PROTECTED]  -  Powered by FreeBSD  -
--
 " Daemons" will now be known as "spiritual guides"
-Politically Correct UNIX Page

"Witchcraft is in essence the worship of the powers of this world,
 beautiful and terrible, but all in a circle under the turning sky
 that is the One." -C.A. Burland, "Echoes of Magic"
"Connecting with energy is something humans have to be open
 to and talking about and expecting,  otherwise the whole human
 race can go back to pretending that life is about power over others
 and exploiting the planet.  If we go back to doing this,
 then we won't survive."  -James Redfield, "The Celestine Prophecy"



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-02 Thread John Birrell
On Mon, Sep 01, 2003 at 05:29:09PM -0600, Scott Long wrote:
> At one time I was working on patches to the loader to make the console
> speed configurable.  At the time, at least, I didn't see any evidence
> that the settings were stored in the boot0 block, but maybe I was wrong.

AFAIK, the boot0 block uses bios int 0x16 to get a key-press and bios int
0x10 to display a character, so in a situation where you *want* a serial
console, the F1 etc stuff can't be used unless the bios supports console
re-direction. And you have to live with whatever baud rate the bios sets.

Once you get to boot2, then the serial console can work if set in /boot.config.

It would be nice to have a boot.config setting for the baud rate. I have a
board here that allows bios re-direction to either the first or second serial
port at a fixed baud rate of 38400. I have to build boot2 with
BOOT_COMCONSOLE_SPEED=38400, and then the kernel with CONSPEED=38400 to
get all the ducks in a row.

But it would be even nicer if both boot2 and the kernel would just work with
whatever baud rate the bios set.

-- 
John Birrell
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-01 Thread David Leimbach
On Sep 1, 2003, at 6:36 PM, Nicole wrote:

 *SIGH*
 No what I want is NO serial console. DO NOT FOR ANY REASON turn 
off/not resp
ond to the keyboard port

-Dh means both keyboard and serial console... what's the problem?  And 
please
stop shouting.



Dave



 Nicole



On 01-Sep-03 Unnamed Administration sources reported Scott Long said :
Aaron Wohl wrote:
My notes on getting a serial console at 115200

-must be com1
-com1 must be at port 0x3F8 irq 4
-in bios set the port and irq as above
-in bios set serial redirection to com1
-in bios set baud rate 115200
-in bios set RTS/CTS flow control
-edit (or create) /etc/make.conf to add these lines:
BOOT_COMCONSOLE_PORT=   0x3F8
BOOT_COMCONSOLE_SPEED=  115200
-cd /sys/boot
-make clean
-make
-make install
-fdisk -B
No im not kidding.  Part of the boot knowing baud rate loader lives 
in
the main disk boot block.
-cd /boot
-edit loader.conf
-add a line:
console=comconsole
-edit /boot.config make it read (with a return after it):
-Dh
(the above is minus D h return, thats 4 characters)
-cd /usr/src/sys/i386/conf
-edit PASODOBLE (or whatever your kernconf is called)
-add:
options   CONSPEED=115200 # Console Redirection
-cd /usr/src
-make buildkernel KERNCONF=PASODOBLE
-make installkernel KERNCONF=PASODOBLE
-reboot
-pray



At one time I was working on patches to the loader to make the console
speed configurable.  At the time, at least, I didn't see any evidence
that the settings were stored in the boot0 block, but maybe I was 
wrong.
In any case, finishing this up is on my TODO list.

Scott

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"


 |\ __ /|   (`\
 | o_o  |__  ) )
//  \\
 -  [EMAIL PROTECTED]  -  Powered by FreeBSD  -
--
 " Daemons" will now be known as "spiritual guides"
-Politically Correct UNIX Page
"Witchcraft is in essence the worship of the powers of this world,
 beautiful and terrible, but all in a circle under the turning sky
 that is the One." -C.A. Burland, "Echoes of Magic"
"Connecting with energy is something humans have to be open
 to and talking about and expecting,  otherwise the whole human
 race can go back to pretending that life is about power over others
 and exploiting the planet.  If we go back to doing this,
 then we won't survive."  -James Redfield, "The Celestine Prophecy"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-01 Thread Nicole

 *SIGH*
 No what I want is NO serial console. DO NOT FOR ANY REASON turn off/not resp
ond to the keyboard port



 Nicole



On 01-Sep-03 Unnamed Administration sources reported Scott Long said :
> Aaron Wohl wrote:
>> My notes on getting a serial console at 115200
>> 
>> -must be com1
>> -com1 must be at port 0x3F8 irq 4
>> -in bios set the port and irq as above
>> -in bios set serial redirection to com1
>> -in bios set baud rate 115200
>> -in bios set RTS/CTS flow control
>> -edit (or create) /etc/make.conf to add these lines:
>> BOOT_COMCONSOLE_PORT=   0x3F8
>> BOOT_COMCONSOLE_SPEED=  115200
>> -cd /sys/boot
>> -make clean
>> -make
>> -make install
>> -fdisk -B
>> No im not kidding.  Part of the boot knowing baud rate loader lives in
>> the main disk boot block.
>> -cd /boot
>> -edit loader.conf
>> -add a line:
>> console=comconsole
>> -edit /boot.config make it read (with a return after it):
>> -Dh
>> (the above is minus D h return, thats 4 characters)
>> -cd /usr/src/sys/i386/conf
>> -edit PASODOBLE (or whatever your kernconf is called)
>> -add:
>> options   CONSPEED=115200 # Console Redirection
>> -cd /usr/src
>> -make buildkernel KERNCONF=PASODOBLE
>> -make installkernel KERNCONF=PASODOBLE
>> -reboot
>> -pray
>> 
> 
> 
> At one time I was working on patches to the loader to make the console
> speed configurable.  At the time, at least, I didn't see any evidence
> that the settings were stored in the boot0 block, but maybe I was wrong.
> In any case, finishing this up is on my TODO list.
> 
> Scott
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"



 |\ __ /|   (`\
 | o_o  |__  ) )   
//  \\ 
 -  [EMAIL PROTECTED]  -  Powered by FreeBSD  -
--
 " Daemons" will now be known as "spiritual guides"
-Politically Correct UNIX Page

"Witchcraft is in essence the worship of the powers of this world,
 beautiful and terrible, but all in a circle under the turning sky
 that is the One." -C.A. Burland, "Echoes of Magic"

"Connecting with energy is something humans have to be open
 to and talking about and expecting,  otherwise the whole human
 race can go back to pretending that life is about power over others
 and exploiting the planet.  If we go back to doing this,
 then we won't survive."  -James Redfield, "The Celestine Prophecy"

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-01 Thread Scott Long
Aaron Wohl wrote:
My notes on getting a serial console at 115200

-must be com1
-com1 must be at port 0x3F8 irq 4
-in bios set the port and irq as above
-in bios set serial redirection to com1
-in bios set baud rate 115200
-in bios set RTS/CTS flow control
-edit (or create) /etc/make.conf to add these lines:
BOOT_COMCONSOLE_PORT=   0x3F8
BOOT_COMCONSOLE_SPEED=  115200
-cd /sys/boot
-make clean
-make
-make install
-fdisk -B
No im not kidding.  Part of the boot knowing baud rate loader lives in
the main disk boot block.
-cd /boot
-edit loader.conf
-add a line:
console=comconsole
-edit /boot.config make it read (with a return after it):
-Dh
(the above is minus D h return, thats 4 characters)
-cd /usr/src/sys/i386/conf
-edit PASODOBLE (or whatever your kernconf is called)
-add:
options   CONSPEED=115200 # Console Redirection
-cd /usr/src
-make buildkernel KERNCONF=PASODOBLE
-make installkernel KERNCONF=PASODOBLE
-reboot
-pray


At one time I was working on patches to the loader to make the console
speed configurable.  At the time, at least, I didn't see any evidence
that the settings were stored in the boot0 block, but maybe I was wrong.
In any case, finishing this up is on my TODO list.
Scott

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-01 Thread Aaron Wohl
My notes on getting a serial console at 115200

-must be com1
-com1 must be at port 0x3F8 irq 4
-in bios set the port and irq as above
-in bios set serial redirection to com1
-in bios set baud rate 115200
-in bios set RTS/CTS flow control
-edit (or create) /etc/make.conf to add these lines:
BOOT_COMCONSOLE_PORT=   0x3F8
BOOT_COMCONSOLE_SPEED=  115200
-cd /sys/boot
-make clean
-make
-make install
-fdisk -B
No im not kidding.  Part of the boot knowing baud rate loader lives in
the main disk boot block.
-cd /boot
-edit loader.conf
-add a line:
console=comconsole
-edit /boot.config make it read (with a return after it):
-Dh
(the above is minus D h return, thats 4 characters)
-cd /usr/src/sys/i386/conf
-edit PASODOBLE (or whatever your kernconf is called)
-add:
options   CONSPEED=115200 # Console Redirection
-cd /usr/src
-make buildkernel KERNCONF=PASODOBLE
-make installkernel KERNCONF=PASODOBLE
-reboot
-pray
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-01 Thread Nicole

On 01-Sep-03 Unnamed Administration sources reported Scott Long said :
> Scott M. Likens wrote:
>> I have a question related to FreeBSD Serial console,
>> 
>> I am aware you can use -Dh for both internal and serial, but is it
>> possible to see the 'kernel' "boot" messages sent on both the serial and
>> the console?
>> 
>> It was a question that was asked to me by a client, and after
>> researching it more, it seems that it's not possible.
>> 
>> Am i wrong?  or did I miss an option that's not documented?
>> 
>> Sincerely,
>> 
>> Scott M. Likens
>> 
>> 
> 
> I'm a little confused by your request, but maybe adding the following
> line to /boot/loader.conf will get what you want?
> 
> console="comconsole"
> 
> There is also a way to get the console directed to both the video and
> serial at the same time, but I've forgotten the magic and can't find it
> at the moment.

 Heh magic is the right word ;)

 According to what I have found it is supposed to be:

 console="vidconsole"   To make it still choose internal console even if it does
not find a keyboard present at boot time. So you can walk up later and connect
a keyboard and have it work.


 Everytime I asked on the lists I got.. Oh go look here for the answer. Which I
had.. to which I got, oh well the answers in there..  No one ever was able to
say DO THIS.  Let alone anyone saying do this and have it work :(

 If you find the Magic please do let me know :)



 Nicole


> Scott
> 
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"



 |\ __ /|   (`\
 | o_o  |__  ) )   
//  \\ 
 -  [EMAIL PROTECTED]  -  Powered by FreeBSD  -
--
 " Daemons" will now be known as "spiritual guides"
-Politically Correct UNIX Page

"Witchcraft is in essence the worship of the powers of this world,
 beautiful and terrible, but all in a circle under the turning sky
 that is the One." -C.A. Burland, "Echoes of Magic"

"Connecting with energy is something humans have to be open
 to and talking about and expecting,  otherwise the whole human
 race can go back to pretending that life is about power over others
 and exploiting the planet.  If we go back to doing this,
 then we won't survive."  -James Redfield, "The Celestine Prophecy"

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-01 Thread Scott Long
Scott M. Likens wrote:
I have a question related to FreeBSD Serial console,

I am aware you can use -Dh for both internal and serial, but is it
possible to see the 'kernel' "boot" messages sent on both the serial and
the console?
It was a question that was asked to me by a client, and after
researching it more, it seems that it's not possible.
Am i wrong?  or did I miss an option that's not documented?

Sincerely,

Scott M. Likens


I'm a little confused by your request, but maybe adding the following
line to /boot/loader.conf will get what you want?
console="comconsole"

There is also a way to get the console directed to both the video and
serial at the same time, but I've forgotten the magic and can't find it
at the moment.
Scott

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question related to FreeBSD Serial Console...

2003-09-01 Thread David Leimbach
On Sep 1, 2003, at 2:47 PM, Scott M. Likens wrote:

I have a question related to FreeBSD Serial console,

I am aware you can use -Dh for both internal and serial, but is it
possible to see the 'kernel' "boot" messages sent on both the serial 
and
the console?
If your BIOS supports serial port redirection you can do GRUB over 
serial :)

I used to.  I don't know that FreeBSD can run its serial driver before 
its kernel that loads
the driver is loaded. [got that?  I didn't :)]

Of course the boot loader could always support it right?

It was a question that was asked to me by a client, and after
researching it more, it seems that it's not possible.
Am i wrong?  or did I miss an option that's not documented?

Sincerely,

Scott M. Likens
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Question related to FreeBSD Serial Console...

2003-09-01 Thread Scott M. Likens
I have a question related to FreeBSD Serial console,

I am aware you can use -Dh for both internal and serial, but is it
possible to see the 'kernel' "boot" messages sent on both the serial and
the console?

It was a question that was asked to me by a client, and after
researching it more, it seems that it's not possible.

Am i wrong?  or did I miss an option that's not documented?

Sincerely,

Scott M. Likens


signature.asc
Description: This is a digitally signed message part
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"