Re: How do I do a COLD Reboot on FreeBSD?

2005-02-02 Thread Billy Newsom
Bob Hall wrote:
This may help.
http://www.faqs.org/faqs/assembly-language/x86/general/part3/section-5.html
Bob Hall
Hmmm.  Good link.  Here's a better one that I just discovered reading about 
this stuff:

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/hackers/2003-11/0205.html
I began to notice that the 0x472 code is rampant in these reboot assembler 
code examples.  Then I found out that FreeBSD has its own asembly language 
found in the boot loaders, etc.

OpenBSD and others like Linux use this stuff similarly.  Linux seems to give 
you the option in a config file!! to cold reboot.

So this led me to:
/usr/src/sys/i386/i386/locore.s
Which looks to me the place where a warm boot is guaranteed.  By the way, the 
guy above (Adrian Steinmann) might have cleaned up the code for the btx
(usr/src/sys/boot/i386/btx/btx/btx.S) in 2003.  But his code cleanup never 
stayed in /usr/src/sys/boot/i386/boot2/boot1.S.

Example from FreeBSD-5-stable:
/usr/src/sys/boot/i386/btx/btx/btx.S has this:
movw $0x1234, BDA_BOOT  # Do a warm boot
ljmp $0x,$0x0   # reboot the machine
/usr/src/sys/boot/i386/boot2/boot1.S has the *better* version:
movw $0x1234, BDA_BOOT  # Do a warm boot
ljmp $0xf000,$0xfff0# reboot the machine
Anyway, Adrian Steinmann tried to patch the reboot code in btx.s to do some 
sort of bugfix and troubleshooting on his particular machine.  There may have 
been a regresion here since he tried that, but I don't care much about the 
BTX or the boot1 code.  My issue is for now with the reboot done during a 
normal full kernel running.  That is when SMP code is active and the memory 
is being actively used.  I believe the locore.s file is where I need to look, 
because it moves this 0x1234 data into the BDA_BOOT location, which is 0x427 
in memory.

Therefore, I will try to hack the locore.s file and use a zero instead of 
0x1234 to move into memory at the BDA_BOOT location.

here's my unified diff:
-Code
--- locore.sThu Jul  8 17:35:34 2004
+++ /usr/src/sys/i386/i386/locore.s Wed Feb  2 01:50:36 2005
@@ -214,7 +214,8 @@
movsb
 #else  /* IBM-PC */
 /* Tell the bios to warmboot next time */
-   movw$0x1234,0x472
+/* movw$0x1234,0x472 */
+movw$0x,0x472   /* Billy: Perform Cold Reboot! */
 #endif /* PC98 */
 /* Set up a real frame in case the double return in newboot is executed. */
-Code
The only substantial change is that I hope this make my machine do a cold 
reboot.
Billy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I do a COLD Reboot on FreeBSD?

2005-02-01 Thread Xian
On Monday 31 January 2005 19:24, Billy Newsom wrote:
 Xian wrote:
  On Monday 31 January 2005 18:53, Billy Newsom wrote:
 When you flash your BIOS from DOS, it will usually do a cold reboot
 when it exits.
 
  Does the dos reboot command work? If it does, I'm sure I could dig up a
  copy of it from one of my disks. I don't know if it is possible to hack
  the code out that actually does the reboot

 No, because reboot is basically the same as shutdown -r now.  I've done
 both to no avail.

 Technically, the shutdown command calls either the reboot or halt commands.

I was meaning the reboot command in DOS not FreeBSD

-- 
/Xian

A man's ethical behaviour should be based effectually on sympathy, education, 
and social ties; no religious basis is necessary. Man would indeeded be in a 
poor way if he had to be restrained by fear of punishment and hope of reward 
after death.

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


Re: How do I do a COLD Reboot on FreeBSD?

2005-02-01 Thread Billy Newsom
Xian wrote:
Does the dos reboot command work? If it does, I'm sure I could dig up a
copy of it from one of my disks. I don't know if it is possible to hack
the code out that actually does the reboot
No, because reboot is basically the same as shutdown -r now.  I've done
both to no avail.
Technically, the shutdown command calls either the reboot or halt commands.

I was meaning the reboot command in DOS not FreeBSD
Oh, yeah.  I could try that.  I could boot an old DOS 6.2 or whatever 
and try CTRL-ALT-DELETE.  I think that is what you mean.  I don't 
remember that actual command, although I'm sure there's a lot of 
third-party reboot commands...  Some of which I'd like to see in the 
assembler code, myself.  I'll just bet someone has an old MS-DOS BASIC 
program or assembler written in C, Pascal, or something, which could do 
a warm or cold reset.

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


Re: How do I do a COLD Reboot on FreeBSD?

2005-02-01 Thread Billy Newsom
Billy Newsom wrote:
Oh, yeah.  I could try that.  I could boot an old DOS 6.2 or whatever 
and try CTRL-ALT-DELETE.  I think that is what you mean.  I don't 
remember that actual command, although I'm sure there's a lot of 
third-party reboot commands...  Some of which I'd like to see in the 
assembler code, myself.  I'll just bet someone has an old MS-DOS BASIC 
program or assembler written in C, Pascal, or something, which could do 
a warm or cold reset.
Well, I just tried a Windows 98 Startup disk.  I booted to floppy, and 
then hit CTRL-alt-delete.  Guess what?  This system did a warm reboot, I 
 removed the floppy, and FreeBSD booted from the hard disk perfectly. 
So I have to come to this conclusion: something in the FreeBSD 5-Stable 
code has made this machine break anytime it performs a halt followed by 
a power cycle, or a reboot followed by a power cycle (since the reboot 
always fails).  My surmise is that the new SMP code has somehow done 
some sort of corruption to the CPU state(s) and the BIOS is somehow 
confused during the attempted reboot.

0. System has passed every diagnostic I can throw at it.  Everything 
checks out during normal operation.  Dual processor Pentium Pro.  DOS, 
Windows, and FreeBSD 4.7 with SMP do not have this problem.  Latest 
5-Stable code from 1/30/2005.

1.  I type shutdown -r now or reboot.  This shows the normal cpu_reset 
stuff, and then the system beeps and hangs. (a memory error beep code 
saying the first 64KB are bad.)  If I turn power off and back on, the 
system bypasses its memory check in POST and crashes on next boot.

2.  I type shutdown now, followed by halt in single user mode.  This 
puts me at the press any key to reboot screen.  If I press a key, 
system won't reset, and gives a memory error beep code saying the first 
64KB are bad.  If I turn power off and back on, (no matter if I tried 
the reboot or not) the system bypasses its memory check in POST and 
crashes on next boot.

3. I must turn power off and unplug the cord usually.  Then, on 
subsequesnt boot, the memory will be tested during POST and FreeBSD 
boots normally.

4. None of these problems appear after a DOS warm boot on this machine.
5. I'm looking for a cold reboot utility to patch the kernel or the 
reboot command of FreeBSD 5.3.

6. I recompiled the kernel with the BROKEN_KEYBOARD_RESET option.  The 
reboot hangs and system does not reboot, but the beep codes aren't 
there.  I suppose that the BROKEN_KEYBOARD_RESET style reboot (I saw the 
source code and thought I'd try it) does not work.  Again, when I power 
cycle the machine, the POST is still a short POST (and the kernel 
crashes when loading) and so I must disengage the power cable as above.

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


Re: How do I do a COLD Reboot on FreeBSD?

2005-02-01 Thread Bob Hall
This may help.

http://www.faqs.org/faqs/assembly-language/x86/general/part3/section-5.html

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


Re: How do I do a COLD Reboot on FreeBSD?

2005-01-31 Thread Oliver Leitner
I am not completely sure...

but from what i know bout a COLD Reboot:

just unplug the power cable.

that exactly does what a COLD Reboot does.

Greetings
Oliver Leitner
Technical Staff
http://www.shells.at

On Monday 31 January 2005 15:31, Billy Newsom wrote:
 I need to do a cold restart.  I've looked through a lot of docs, and I
 can't seem to find this out.  The computer I am working with seems to no
 longer enjoy a warm reboot (like shutdown -r now or reboot) but I'm
 pretty sure it will do cold reboots fine.  Is there a port, or is the
 shutdown command hackable for this, or what?

 I remember many computers in bygone years which had this problem. It was
 pretty common back in the 90's it seems like.  Computers would reboot and
 act weird using CTRL-ALT-DELETE, but work fine when powered off and on.

 The computer I've got actually fails a memory test during the warm reboot.
 This freezes it.  I have to power cycle the machine.  And then, the
 computer performs a warm restart, bypassing its memory checks!  One more
 power cycle laster, it will boot normally.  If I don't do this last reboot,
 the FreeBSD boot loader or the beginning of the kernel boot crashes very
 early.  It's stable otherwise on a cold reboot.

 Thanks,
 Billy

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

-- 
By reading this mail you agree to the following:

using or giving out the email address and any 
other info of the author of this email is strictly forbidden.
By acting against this agreement the author of this mail 
will take possible legal actions against the abuse.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I do a COLD Reboot on FreeBSD?

2005-01-31 Thread Malcolm Kay
On Tue, 1 Feb 2005 01:01 am, Billy Newsom wrote:
 I need to do a cold restart.  I've looked through a lot of docs, and I
 can't seem to find this out.  The computer I am working with seems to no
 longer enjoy a warm reboot (like shutdown -r now or reboot) but I'm
 pretty sure it will do cold reboots fine.  Is there a port, or is the
 shutdown command hackable for this, or what?


Try the man page for 'shutdown'.

# shutdown -h now
will cause a controlled shutdown finishing
with a message to press any key to reboot.
At this stage you can switch off.

If your computer supports programmed power off 
then you can also use:
# shutdown -p now
which will end with powering down your machine.

 I remember many computers in bygone years which had this problem. It was
 pretty common back in the 90's it seems like.  Computers would reboot and
 act weird using CTRL-ALT-DELETE, but work fine when powered off and on.

Yes I've also experienced this. I always suspected it was one or other
peripheral device that is only reset on power down; but I really don't
have any justification for this assumption.


Malcolm




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


Re: How do I do a COLD Reboot on FreeBSD?

2005-01-31 Thread Jerry McAllister
 
 I need to do a cold restart.  I've looked through a lot of docs, and I can't 
 seem to find this out.  The computer I am working with seems to no longer 
 enjoy a warm reboot (like shutdown -r now or reboot) but I'm pretty sure 
 it will do cold reboots fine.  Is there a port, or is the shutdown command 
 hackable for this, or what?
 
 I remember many computers in bygone years which had this problem. It was 
 pretty common back in the 90's it seems like.  Computers would reboot and act 
 weird using CTRL-ALT-DELETE, but work fine when powered off and on.

FreeBSD is pretty good about doing a very clean reboot as far as the OS
is concerned.  But, it is possible that some devices don't clean up well 
in ways that are out of FreeBSD control.So, a cold boot can be a 
good idea in some circumstances.

To do this, do a 'shutdown -h now'  or a 'shutdown -p now'  if your
hardware supports the -p and you have it set up.   Choose your own
time of delay for 'now' if you have other people on the machine.

If you did the '-h' or the '-p' didn't turn off the power, then
at the press any key to reboot prompt, turn off the power.
Then, unplug the power source and let it set for a few minutes to let
any charge dissipate.   This can be important because the capacitance
in some of the devices including the power supply can provide just
enough charge to keep them from reloading if that is their inclination
and you lose the effect you are looking for.   You should also unplug
the network connection and any external devices that have their own
power supply.

After a sufficient time drain capacitance - I usually go to the bathroom 
or go get something to drink to kill a few minutes - , then just plug
it all back in.  Plug in the network cable and any external devices first 
and then the power cord and turn it on and let it boot.  

Voila, you have gone from warm to cold to warm again.

jerry

 
 The computer I've got actually fails a memory test during the warm reboot. 
 This freezes it.  I have to power cycle the machine.  And then, the computer 
 performs a warm restart, bypassing its memory checks!  One more power cycle 
 laster, it will boot normally.  If I don't do this last reboot, the FreeBSD 
 boot loader or the beginning of the kernel boot crashes very early.  It's 
 stable otherwise on a cold reboot.
 
 Thanks,
 Billy
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 

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


Re: How do I do a COLD Reboot on FreeBSD?

2005-01-31 Thread Billy Newsom
Oliver Leitner wrote:
I am not completely sure...
but from what i know bout a COLD Reboot:
just unplug the power cable.
that exactly does what a COLD Reboot does.
Yep, you are techically right, but of course, I asked how to do this from the 
operating system, in this case FreeBSD.  Many diagnostic disks and ROM 
burning floppy disks do a cold reset from software, just as some examples. 
This code is available, but I need to do this remotely, from 3000 miles away, 
or tell someone how to do it over the phone, or write it on a napkin glued to 
the monitor (aka sticky note) for a clueless user who happens to be near 
the box, etc.

And personally, I would rather not disengage the power cord.
The target look and feel will be to type rebootme and see the video card 
BIOS screen, followed by memory counting, etc. and the POST.  Right now, 
typing reboot eventually just crashes the system after the CPU's are halted. 
 I will probably need to hack the kernel source to do the disk syncing and 
other stuff which shutdown/reboot do.

Billy
On Monday 31 January 2005 15:31, Billy Newsom wrote:
I need to do a cold restart.  I've looked through a lot of docs, and I
can't seem to find this out.  The computer I am working with seems to no
longer enjoy a warm reboot (like shutdown -r now or reboot) but I'm
pretty sure it will do cold reboots fine.  Is there a port, or is the
shutdown command hackable for this, or what?
I remember many computers in bygone years which had this problem. It was
pretty common back in the 90's it seems like.  Computers would reboot and
act weird using CTRL-ALT-DELETE, but work fine when powered off and on.
The computer I've got actually fails a memory test during the warm reboot.
This freezes it.  I have to power cycle the machine.  And then, the
computer performs a warm restart, bypassing its memory checks!  One more
power cycle laster, it will boot normally.  If I don't do this last reboot,
the FreeBSD boot loader or the beginning of the kernel boot crashes very
early.  It's stable otherwise on a cold reboot.
Thanks,
Billy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I do a COLD Reboot on FreeBSD?

2005-01-31 Thread Billy Newsom
Jerry McAllister wrote:
I need to do a cold restart.  I've looked through a lot of docs, and I
can't
seem to find this out.  The computer I am working with seems to no longer
enjoy a warm reboot (like shutdown -r now or reboot) but I'm pretty
sure
it will do cold reboots fine.  Is there a port, or is the shutdown command
hackable for this, or what?

I remember many computers in bygone years which had this problem. It was
pretty common back in the 90's it seems like.  Computers would reboot and
act
weird using CTRL-ALT-DELETE, but work fine when powered off and on.


 FreeBSD is pretty good about doing a very clean reboot as far as the OS
 is concerned.  But, it is possible that some devices don't clean up well
 in ways that are out of FreeBSD control.So, a cold boot can be a
 good idea in some circumstances.

 To do this, do a 'shutdown -h now'  or a 'shutdown -p now'  if your
 hardware supports the -p and you have it set up.   Choose your own
 time of delay for 'now' if you have other people on the machine.

 If you did the '-h' or the '-p' didn't turn off the power, then
 at the press any key to reboot prompt, turn off the power.
 Then, unplug the power source and let it set for a few minutes to let
 any charge dissipate.   This can be important because the capacitance
 in some of the devices including the power supply can provide just
 enough charge to keep them from reloading if that is their inclination
 and you lose the effect you are looking for.   You should also unplug
 the network connection and any external devices that have their own
 power supply.
I know that this is all very good advice and information from the shutdown 
man page and good stuff about the nature of capacitors, but all of this is 
known to myself and unfortunately not useful...  The shutdown -p does 
essentially a different thing (and one time it caused the freeze problem to 
disappear.) but this also does not work.  I don't want to shut the computer 
off, anyway, I want it to reboot back to FreeBSD remotely if need be.

And so far, the halt command (or its shutdown -h equivalent) is not what I 
want, either.  If I press a key to reboot, I get the same issue anyway. 
There's a remote possibility that the halt code is causing the freeze up, 
because FreeBSD 4.7 did not have this problem.  I'm not confident whether the 
machine broke or the new 5.3 code broke, so I won't speculate which.  I just 
need the reboot code.

...
 After a sufficient time drain capacitance - I usually go to the bathroom
 or go get something to drink to kill a few minutes - , then just plug
 it all back in.  Plug in the network cable and any external devices first
 and then the power cord and turn it on and let it boot.
It's not the capacitors, but perhaps some strange bug in the BIOS or 
something, I guess.  The issue that I'm highlighting is that when a floppy 
program does a cold reset of this machine, the system (re)boots normally.

As a side note, I have run this machine through the ringer trying to discover 
any hardware errors.  The memory is now EDO ECC (it had been something else) 
and the problem persists.  I have run diagnostics, memtest86, etc.  Futile. 
The cold reset code exists somewhere.  Anybody?

Billy

 Voila, you have gone from warm to cold to warm again.

 jerry


The computer I've got actually fails a memory test during the warm reboot.
This freezes it.  I have to power cycle the machine.  And then, the computer
performs a warm restart, bypassing its memory checks!  One more power cycle
laster, it will boot normally.  If I don't do this last reboot, the FreeBSD
boot loader or the beginning of the kernel boot crashes very early.  It's
stable otherwise on a cold reboot.

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


Re: How do I do a COLD Reboot on FreeBSD?

2005-01-31 Thread Jerry McAllister
 
 Jerry McAllister wrote:
  I need to do a cold restart.  I've looked through a lot of docs, and I
  can't
  seem to find this out.  The computer I am working with seems to no longer
  enjoy a warm reboot (like shutdown -r now or reboot) but I'm pretty
  sure
  it will do cold reboots fine.  Is there a port, or is the shutdown command
  hackable for this, or what?
  
  I remember many computers in bygone years which had this problem. It was
  pretty common back in the 90's it seems like.  Computers would reboot and
  act
  weird using CTRL-ALT-DELETE, but work fine when powered off and on.
  
  
   FreeBSD is pretty good about doing a very clean reboot as far as the OS
   is concerned.  But, it is possible that some devices don't clean up well
   in ways that are out of FreeBSD control.So, a cold boot can be a
   good idea in some circumstances.
  
   To do this, do a 'shutdown -h now'  or a 'shutdown -p now'  if your
   hardware supports the -p and you have it set up.   Choose your own
   time of delay for 'now' if you have other people on the machine.
  
   If you did the '-h' or the '-p' didn't turn off the power, then
   at the press any key to reboot prompt, turn off the power.
   Then, unplug the power source and let it set for a few minutes to let
   any charge dissipate.   This can be important because the capacitance
   in some of the devices including the power supply can provide just
   enough charge to keep them from reloading if that is their inclination
   and you lose the effect you are looking for.   You should also unplug
   the network connection and any external devices that have their own
   power supply.
 I know that this is all very good advice and information from the shutdown 
 man page and good stuff about the nature of capacitors, but all of this is 
 known to myself and unfortunately not useful...  The shutdown -p does 
 essentially a different thing (and one time it caused the freeze problem to 
 disappear.) but this also does not work.  I don't want to shut the computer 
 off, anyway, I want it to reboot back to FreeBSD remotely if need be.
 
 And so far, the halt command (or its shutdown -h equivalent) is not what I 
 want, either.  If I press a key to reboot, I get the same issue anyway. 
 There's a remote possibility that the halt code is causing the freeze up, 
 because FreeBSD 4.7 did not have this problem.  I'm not confident whether the 
 machine broke or the new 5.3 code broke, so I won't speculate which.  I just 
 need the reboot code.
 
 ...
 
   After a sufficient time drain capacitance - I usually go to the bathroom
   or go get something to drink to kill a few minutes - , then just plug
   it all back in.  Plug in the network cable and any external devices first
   and then the power cord and turn it on and let it boot.
 
 It's not the capacitors, but perhaps some strange bug in the BIOS or 
 something, I guess.  The issue that I'm highlighting is that when a floppy 
 program does a cold reset of this machine, the system (re)boots normally.

Well, I guess I completely do not understand what you are asking.
From anything I can get from what you write here, its behavior is
normal and expected.   What is the problem and what are you trying 
to fix or to get it to do?

A cold boot - which is what you ask about in your original post - is
a boot all the way up from a powered off machine as far as I know.
So, all I did was explain how to get what you asked for in the post.

Another small guess - are you looking for  'shutdown -r now' by
any chance?

If you want something else, you will need to explain that.   Who knows
if anyone will know what to do about that - at least not until you
reveal what it is.

jerry

 
 As a side note, I have run this machine through the ringer trying to discover 
 any hardware errors.  The memory is now EDO ECC (it had been something else) 
 and the problem persists.  I have run diagnostics, memtest86, etc.  Futile. 
 The cold reset code exists somewhere.  Anybody?
 
 Billy
  
   Voila, you have gone from warm to cold to warm again.
  
   jerry
  
  
  The computer I've got actually fails a memory test during the warm reboot.
  This freezes it.  I have to power cycle the machine.  And then, the 
 computer
  performs a warm restart, bypassing its memory checks!  One more power cycle
  laster, it will boot normally.  If I don't do this last reboot, the FreeBSD
  boot loader or the beginning of the kernel boot crashes very early.  It's
  stable otherwise on a cold reboot.
  
  Thanks,
  Billy
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 

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


Re: How do I do a COLD Reboot on FreeBSD?

2005-01-31 Thread Billy Newsom
Jerry McAllister wrote:
Well, I guess I completely do not understand what you are asking.
From anything I can get from what you write here, its behavior is
normal and expected.   What is the problem and what are you trying 
to fix or to get it to do?

A cold boot - which is what you ask about in your original post - is
a boot all the way up from a powered off machine as far as I know.
So, all I did was explain how to get what you asked for in the post.
No, I said a cold reboot.  That's the term for a reboot which runs the entire 
POST, counts memory, etc.  The screen looks identical to a cold start or cold 
boot.  We all know what the warm reboot means -- that's when many parts of 
the POST are skipped.  Windows uses a cold reboot, for example, when you 
click Restart on the Shutdown menu.  FreeBSD does a warm reboot using the 
reboot command.  The warm reboot may save thirty to sixty seconds over the 
cold reboot.  A warm reboot typically skips the memory check and does a 
cursory check of hard drive parameters, etc. to save time.

If you use a PC DOCTOR disk and tell it to reboot, it will do a cold reboot. 
 When you flash your BIOS from DOS, it will usually do a cold reboot when it 
exits.  When you save changes and reboot from the BIOS setup screen, it will 
do a cold reboot.  Many other examples are possible.

What I tried to explain is that this PC crashes on the subsequent boot if a 
warm reboot is performed by FreeBSD.  But if I could perform a cold reboot 
every time, this would solve the issue.  A cold reboot is not the act of 
shutting the power off and turning it back on.  That is called a power 
cycle and it is obviously manual.  A cold reboot is done by a special 
software command.

Another small guess - are you looking for  'shutdown -r now' by
any chance?
No, it fails.

If you want something else, you will need to explain that.   Who knows
if anyone will know what to do about that - at least not until you
reveal what it is.
The revelation is at hand.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I do a COLD Reboot on FreeBSD?

2005-01-31 Thread Xian
On Monday 31 January 2005 18:53, Billy Newsom wrote:
 When you flash your BIOS from DOS, it will usually do a cold reboot
 when it exits.

Does the dos reboot command work? If it does, I'm sure I could dig up a copy 
of it from one of my disks. I don't know if it is possible to hack the code 
out that actually does the reboot

-- 
/Xian

Artificial Intelligence is no match for Natural Stupidity
unknown author
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I do a COLD Reboot on FreeBSD?

2005-01-31 Thread Billy Newsom
Xian wrote:
On Monday 31 January 2005 18:53, Billy Newsom wrote:
When you flash your BIOS from DOS, it will usually do a cold reboot
when it exits.

Does the dos reboot command work? If it does, I'm sure I could dig up a copy 
of it from one of my disks. I don't know if it is possible to hack the code 
out that actually does the reboot

No, because reboot is basically the same as shutdown -r now.  I've done 
both to no avail.

Technically, the shutdown command calls either the reboot or halt commands.
Billy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I do a COLD Reboot on FreeBSD?

2005-01-31 Thread Bart Silverstrim
On Jan 31, 2005, at 1:53 PM, Billy Newsom wrote:
Jerry McAllister wrote:
Well, I guess I completely do not understand what you are asking.
From anything I can get from what you write here, its behavior is
normal and expected.   What is the problem and what are you trying to 
fix or to get it to do?
A cold boot - which is what you ask about in your original post - is
a boot all the way up from a powered off machine as far as I know.
So, all I did was explain how to get what you asked for in the post.
No, I said a cold reboot.  That's the term for a reboot which runs the 
entire POST, counts memory, etc.  The screen looks identical to a cold 
start or cold boot.  We all know what the warm reboot means -- that's 
when many parts of the POST are skipped.  Windows uses a cold reboot, 
for example, when you click Restart on the Shutdown menu.  FreeBSD 
does a warm reboot using the reboot command.  The warm reboot may save 
thirty to sixty seconds over the cold reboot.  A warm reboot typically 
skips the memory check and does a cursory check of hard drive 
parameters, etc. to save time.

If you use a PC DOCTOR disk and tell it to reboot, it will do a cold 
reboot.  When you flash your BIOS from DOS, it will usually do a cold 
reboot when it exits.  When you save changes and reboot from the BIOS 
setup screen, it will do a cold reboot.  Many other examples are 
possible.

What I tried to explain is that this PC crashes on the subsequent boot 
if a warm reboot is performed by FreeBSD.  But if I could perform a 
cold reboot every time, this would solve the issue.  A cold reboot is 
not the act of shutting the power off and turning it back on.  That 
is called a power cycle and it is obviously manual.  A cold reboot is 
done by a special software command.
I was always told a cold reboot comes from powering down the system; 
minimal power to the logic board and wiping any and all traces possible 
(short of unplugging it) of random crap in the capacitors and memory.  
Literally cold boot because usually it happened after powering it down 
and it would cool off until the user came back to work on their 
computer for awhile.

Warm boots basically just cycle the computer to restart the OS.  It's 
just restarting it, and power to the components has been maintained the 
whole time so as far as the computer hardware is concerned nothing 
really happened, just a chunk of memory access and the processor mode 
getting kicked around a bit.

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


RE: How do I do a COLD Reboot on FreeBSD?

2005-01-31 Thread Niy
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bart Silverstrim
Sent: Monday, January 31, 2005 3:30 PM
To: Billy Newsom
Cc: freebsd-questions@freebsd.org
Subject: Re: How do I do a COLD Reboot on FreeBSD?


On Jan 31, 2005, at 1:53 PM, Billy Newsom wrote:

 Jerry McAllister wrote:
 Well, I guess I completely do not understand what you are asking.
 From anything I can get from what you write here, its behavior is
 normal and expected.   What is the problem and what are you trying to 
 fix or to get it to do?
 A cold boot - which is what you ask about in your original post - is 
 a boot all the way up from a powered off machine as far as I know.
 So, all I did was explain how to get what you asked for in the post.

 No, I said a cold reboot.  That's the term for a reboot which runs the 
 entire POST, counts memory, etc.  The screen looks identical to a cold 
 start or cold boot.  We all know what the warm reboot means -- that's 
 when many parts of the POST are skipped.  Windows uses a cold reboot, 
 for example, when you click Restart on the Shutdown menu.  FreeBSD 
 does a warm reboot using the reboot command.  The warm reboot may save 
 thirty to sixty seconds over the cold reboot.  A warm reboot typically 
 skips the memory check and does a cursory check of hard drive 
 parameters, etc. to save time.

 If you use a PC DOCTOR disk and tell it to reboot, it will do a cold 
 reboot.  When you flash your BIOS from DOS, it will usually do a cold 
 reboot when it exits.  When you save changes and reboot from the BIOS 
 setup screen, it will do a cold reboot.  Many other examples are 
 possible.

 What I tried to explain is that this PC crashes on the subsequent boot 
 if a warm reboot is performed by FreeBSD.  But if I could perform a 
 cold reboot every time, this would solve the issue.  A cold reboot is 
 not the act of shutting the power off and turning it back on.  That 
 is called a power cycle and it is obviously manual.  A cold reboot is 
 done by a special software command.

I was always told a cold reboot comes from powering down the system;
minimal power to the logic board and wiping any and all traces 
possible (short of unplugging it) of random crap in the capacitors and
memory.  
Literally cold boot because usually it happened after powering it down and
it would cool off until the user came back to work on their computer for
awhile.

Warm boots basically just cycle the computer to restart the OS.  It's just
restarting it, and power to the components has been 
maintained the whole time so as far as the computer hardware is concerned
nothing really happened, just a chunk of memory access and the processor
mode getting kicked around a bit.

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


Okay, you're all mostly correct. For more info, see this page: 

http://ironbark.bendigo.latrobe.edu.au/subjects/int11ct/2004/L17/lecture.htm
l

Now, as for how to get FreeBSD to set this area in memory (:0472h) set
with the something other than 1234h, I'd imagine a simple assembler job
could do it. Seems right up assemblers alley. It's been a while since I've
done anything outside of C, but I'll see what I can whip up.

- Niy
 

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


Re: How do I do a COLD Reboot on FreeBSD?

2005-01-31 Thread Rich Winkel
According to Bart Silverstrim:
 Warm boots basically just cycle the computer to restart the OS.  It's 
 just restarting it, and power to the components has been maintained the 
 whole time so as far as the computer hardware is concerned nothing 
 really happened, just a chunk of memory access and the processor mode 
 getting kicked around a bit.

It's been a long time, but it seems to me the byte at
absolute address 0x412 (labelled MFG_TST in the old ibm bios listing)
determines whether the bios does a full POST or not.  If that value
is nulled out before the reboot, I think it will do a full POST.

Rich

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