* Milo: rebooting - some thoughts and an idea.
@ 1996-02-29 16:29 Ka'plaagh 29-Feb-1996 1632 +0000
1996-02-29 19:16 ` Richard Henderson
1996-03-04 12:02 ` SRM rebooting Jim Nance
0 siblings, 2 replies; 7+ messages in thread
From: Ka'plaagh 29-Feb-1996 1632 +0000 @ 1996-02-29 16:29 UTC (permalink / raw)
All,
I've been thinking about how to deterministically reboot linux to
Milo such that Milo does the right things. I've some ideas, but rather than
just implement what seems neat/useful to me, I'm throwing it open to the
net. Here's my thinking on this.
(1) Alpha Linux should behave pretty much as per Intel Linux and if
possible even better. That means that:
"shutdown -h now" gets the system to a point where you can turn
the power off,
"shutdown -r now" should fully reboot the system.
(2) Fully rebooting the system is somewhat tricky. Where we booted via
WNT ARC, that would mean reloading and restarting it (most processors
do not have reset under software control). By the time Linux runs,
the WNT ARC loader has been destroyed. This would mean that every system
would have to know how it booted and how to get itself back to where
it started. Resetting back to Milo and Milo doing sensible things (to
be defined) is acceptable. This solves the rebooting a remote server
problem.
(3) Leaving a compressed version of Milo in memory is not a problem
and getting back to milo from linux is not a problem. This already
works, the halt PALcall jumps into the start of the "console", in this
case Milo.
(4) What is a sensible set of things to do in Milo when Linux halts
back to it?
(a) Execute the same boot command as the one that booted Linux
last time,
(b) Allow the user to interrupt that reboot if he/she wants to
do something else.
(5) I quite like the idea of a patchable parameter block (like rdev on
zImage) that users can use as a way of modifying/personalising Milo for
their own systems. So, to make the default boot device /dev/sdb2 they
might use something like
mdev -b/dev/sda2 milo
to set the argument block up. This argument block would contain:
(a) memory size override value,
(b) default boot device
(c) default root device
(d) default boot string
(e) autoboot (with timeout)
(6) Multiple argument blocks are possible. In other words, Milo could
have a set of three possible boots with three possible sets of boot
arguments. It would then try each in turn. All this takes is memory.
(7) The WNT ARC loader (linload) passes the memory size and a command line
to Milo. The command line is treated as the first command to execute
and the memory size overrides anything that Milo might figure out for itself.
These values would have to be merged with the argument block's values.
(8) Environment variables are a "problem". Again, they could be merged
with the boot block values but I've almost convinced myself that we
really don't need them. Don't forget that there are some systems where
Milo does not have access to NVRAM and so this _must_ work without
NVRAM.
Dave
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Milo: rebooting - some thoughts and an idea.
1996-02-29 16:29 Milo: rebooting - some thoughts and an idea Ka'plaagh 29-Feb-1996 1632 +0000
@ 1996-02-29 19:16 ` Richard Henderson
1996-03-04 12:02 ` SRM rebooting Jim Nance
1 sibling, 0 replies; 7+ messages in thread
From: Richard Henderson @ 1996-02-29 19:16 UTC (permalink / raw)
> (2) Fully rebooting the system is somewhat tricky. Where we booted via
> WNT ARC, that would mean reloading and restarting it (most processors
> do not have reset under software control).
On the i386, one way to reset the chip is to load a null
interrupt vector table and generate a software interrupt.
I do not have any of the alpha chip-specific documentation,
but is there anything similar that can be used?
Another way to reboot PC's is to ask the keyboard controller
to pull the reset line down. Since by and large the alpha
systems out there seem to use PC-compatible hardware, does
anyone know if that line is still connected on the alphas?
r~
^ permalink raw reply [flat|nested] 7+ messages in thread
* SRM rebooting
1996-02-29 16:29 Milo: rebooting - some thoughts and an idea Ka'plaagh 29-Feb-1996 1632 +0000
1996-02-29 19:16 ` Richard Henderson
@ 1996-03-04 12:02 ` Jim Nance
1 sibling, 0 replies; 7+ messages in thread
From: Jim Nance @ 1996-03-04 12:02 UTC (permalink / raw)
Hi,
I have seen some discussion about how to get a MILO booted kernel
to reboot. Has anyone given any thought to getting an SRM kernel to
reboot? My gut feeling is that it is probably easier since I believe
that SRM stays in memory after the kernel is running, but I really do
not know. Does anyone have any ideas (Jay)?
Jim
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: SRM rebooting
@ 1996-03-04 12:28 Ka'plaagh 04-Mar-1996 1232 +0000
0 siblings, 0 replies; 7+ messages in thread
From: Ka'plaagh 04-Mar-1996 1232 +0000 @ 1996-03-04 12:28 UTC (permalink / raw)
Jim,
you could always boot Milo via the SRM (which now works) and
then you've the same set of questions. Course, you could always
lose 3Mbytes of memory...
Dave
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SRM rebooting
@ 1996-03-04 13:30 Stephen J. Gaudet
1996-03-04 15:30 ` Jim Nance
0 siblings, 1 reply; 7+ messages in thread
From: Stephen J. Gaudet @ 1996-03-04 13:30 UTC (permalink / raw)
Hello
> I have seen some discussion about how to get a MILO booted kernel
>to reboot. Has anyone given any thought to getting an SRM kernel to
>reboot? My gut feeling is that it is probably easier since I believe
>that SRM stays in memory after the kernel is running, but I really do
>not know. Does anyone have any ideas (Jay)?
Might I suggest just running milo.arc and linload.exe loaded into the first
partition on the hard drive. There is a simple procedure once the disk is
partitioned to load the milo.arc and linload.exe into the first 1.44 blocks.
Then when the os is loaded use dd to copy everything on your floppy that
contains milo.arc and linload into that partition on the hard drive. Then
set up your boot options to boot sda2:vmlinux.gz and your off and running.
Cheers,
Steve
+1-603-421-1800 http://www.dcginc.com
__________________________________________________________________
| Stephen Gaudet | Reseller of Digital Alpha based systems |
| DCG Computers Inc. | and motherboards running NT, OSF/1, and |
| 35 Otterson Rd. | Red Hat Linux at affordable prices. |
| Londonderry, NH 03053 |------------------------------------------|
| ph:603-421-1800 fax:603-421-0911 e-mail:sjg@dcginc.com |
------------------------------------------------------------------
Now shipping 21164-333Mhz systems at 400 SPECint92 & 570 SPECfp92 est.
*** Microsoft NT Hardware Compatibility List Approved ***
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SRM rebooting
1996-03-04 13:30 Stephen J. Gaudet
@ 1996-03-04 15:30 ` Jim Nance
0 siblings, 0 replies; 7+ messages in thread
From: Jim Nance @ 1996-03-04 15:30 UTC (permalink / raw)
> Might I suggest just running milo.arc and linload.exe loaded into the first
> partition on the hard drive. There is a simple procedure once the disk is
> partitioned to load the milo.arc and linload.exe into the first 1.44 blocks.
> Then when the os is loaded use dd to copy everything on your floppy that
> contains milo.arc and linload into that partition on the hard drive. Then
> set up your boot options to boot sda2:vmlinux.gz and your off and running.
Thanks for the suggestion Steve. Let me describe in a little more detail what
I am trying to do so you can tell me if your suggestion is applicable.
I have an AlphaStation 200 on which I run both Digital Unix and Linux.
From Linux, I would like to be able to type:
shutdown -h now
and get back to the SRM console so I can boot Digital Unix. I am assuming
that one can not boot Digital Unix from MILO, so dropping back to MILO is
will not get me what I want.
Of course it would be nice just to be able to type 'shutdown -r now' and
be able to reboot the system. I think that loading MILO via SRM will allow
me to do this.
Jim
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SRM rebooting
@ 1996-03-04 16:24 David Mosberger-Tang
0 siblings, 0 replies; 7+ messages in thread
From: David Mosberger-Tang @ 1996-03-04 16:24 UTC (permalink / raw)
>>>>> On Mon, 4 Mar 1996 07:02:36 -0500 (EST), Jim Nance <Jim_Nance@avanticorp.com> said:
Jim> Hi, I have seen some discussion about how to get a MILO booted
Jim> kernel to reboot. Has anyone given any thought to getting an
Jim> SRM kernel to reboot? My gut feeling is that it is probably
Jim> easier since I believe that SRM stays in memory after the
Jim> kernel is running, but I really do not know. Does anyone have
Jim> any ideas (Jay)?
Switching back to SRM is trivial and does work. Problem is: you may
not see anything on the screen... :-)
What happens is that the SRM makes some specific assumptions on what
the state of the hw is at the point the call_pal HALT is executed. In
particular, the graphics card needs to have the starting address reset
to the beginning of the memory (i.e., if you use hw scrolling and go
back into the SRM mode, the SRM console will write to the "middle" of
the screen, or worse, off-screen...). Also, the virtual page table
location would need to be reset (Linux moves the address of the
virtually mapped page-table, which the SRM doesn't seem to like).
Finally, I remember that not reinitializing the PIC (interrupt
controller) may also cause problems. This may have changed though
since I last used the SRM console.
In summary: it would take a routine
reset_that_dang_hw_the_way_SRM_wants_it()
and you should be all set. AFAIK, there is no documentation as to
what the SRM expects, so it would take some trial and error.
Getting MILO to work is probably more fun and of longer lasting value.
--david
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1996-03-04 16:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-02-29 16:29 Milo: rebooting - some thoughts and an idea Ka'plaagh 29-Feb-1996 1632 +0000
1996-02-29 19:16 ` Richard Henderson
1996-03-04 12:02 ` SRM rebooting Jim Nance
-- strict thread matches above, loose matches on Subject: below --
1996-03-04 12:28 Ka'plaagh 04-Mar-1996 1232 +0000
1996-03-04 13:30 Stephen J. Gaudet
1996-03-04 15:30 ` Jim Nance
1996-03-04 16:24 David Mosberger-Tang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox