Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* volatile SRM variables
@ 2000-11-11  1:12 Robert Williams
  2000-11-11  1:06 ` Matthew Jacob
  2000-11-11  3:52 ` John Jasen
  0 siblings, 2 replies; 15+ messages in thread
From: Robert Williams @ 2000-11-11  1:12 UTC (permalink / raw)
  To: axp-list

The boot variables under SRM, such as boot_dev,
appear to be volatile.   Once set, they are reset to
the defaults when the system is shut down.
I've been reading all of the manuals...
Is there no way to make these settings persistent
across shutdowns?

--
Bob Williams, http://bob.usuf2.usuhs.mil/





^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: volatile SRM variables
@ 2000-11-12 22:38 William H. Magill
  0 siblings, 0 replies; 15+ messages in thread
From: William H. Magill @ 2000-11-12 22:38 UTC (permalink / raw)
  To: axp-list

>   On Sat, Nov 11, 2000 at 04:58:37PM -0700, Maurice Hilarius wrote:
>   > 
>   > >If it effect LX then it sounds like the problem originated at Compaq,
>   > >however I don't think that's the case.
>   > We have fielded 6 customer support calls on this topic in the last 60 days 
>   > on LX hardware.
>
>   Please provide details:
>
>   1. what revs of the SRM console were being used
>   2. does updating to 5.8 firmware solve the problem
>   3. any particular circumstances
>
>   Any rev prior to 5.8 will not be considered in bug reports.
>
>   If there is a problem with 5.8, NOW is the time to fix it (5.9 is close).
>
>   Note that PC164 firmware is no longer being updated, only LX and SX, of
>   the EV56-based Digital Semi motherboards.
>
>   If the problem appeared with the 5.6 PC164 SRM, perhaps backing off to
>   the 5.5 would solve the problem?

I don't recall when it changed, but I know that with Tru64 5.1/SRM 5.8,
and 4.0d with 5.6 one can use the "consvar" command to manipulate many of
the SRM console variables.  I say many, because it only claims to know
about a few when asked to list the variables.

That is to say, the SRM variables CAN be manipulated by the running
operating system.

In Tru64 that is done by the get/setsysinfo calls.
And the implication from the man page is that there is a copy of these
maintained in memory, which gets written out at sometime (other than when
consvar is issued) -- possibly when an orderly shutdown is invoked.

One might assume that Alpha Linux does/can do something similar.

[And there are some interesting comments in machine/prom.h about calls
which are broken!  And if one believes the Modification history, the code
is unchanged since 1991 - but it does have a 2000 Compaq copyright notice,
in addition to the old Digital one.
And this interesting comment:

 * synopsis: sets the in memory environment variable specified by 
 *      varname to the value specified by the value parameter.
 *      The environment variable type is validated as one 
 *      that Digital UNIX recognizes. Then an attempt is made 
 *      to set the in memory copy of the console environment 
 *      variable via SRM console callback.  According to the
 *      SRM, the environment variable is not saved in NVR after 
 *      this call.

implying that it is pretty easy to set the variable and then forget
to write it out.]

From the setsysinfo man page:

   3.  In the following example the setsysinfo operation SSI_PROM_ENV sets
       the value of a named console environment variable:


            #include <machine/prom.h>;

            char evname[]="boot_dev";
            char evval[]="/dev/rz0a";      /* or something like "tu0" */
            int status;
            status = setsysinfo(SSI_PROM_ENV,evval, strlen(evval)+1,
                                evname, PROM_CONVERT_TYPE;


-- 
                        www.tru64unix.compaq.com
                              www.tru64.org
                             comp.unix.tru64
                        
T.T.F.N.
William H. Magill                          Senior Systems Administrator
Information Services and Computing (ISC)   University of Pennsylvania
Internet: magill@isc.upenn.edu             magill@acm.org
http://www.isc-net.upenn.edu/~magill/




^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: volatile SRM variables
@ 2000-11-13 13:27 Jemiolo, John
  0 siblings, 0 replies; 15+ messages in thread
From: Jemiolo, John @ 2000-11-13 13:27 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

Could these problems have something to do with the fact that the memory
resident SRM code is relocated to upper memory by Linux when it starts, then
restored to lower memory when it shuts down???
 
JJ 
-----Original Message-----
From: Robert Williams [mailto:bob@bob.usuhs.mil]
Sent: Sunday, November 12, 2000 1:27 AM
To: axp-list@redhat.com
Subject: Re: volatile SRM variables


Maurice Hilarius wrote: 

With regards to your message at 12:00 PM 11/11/00, Rich Payne. Where you 
stated: 
>This gentleman is saying that whenever he powers the board off 
>it goes back to defaults.

I've performed a series of experiments and here are the results: 

(The latest SRM for AlphaPC164 is 5.5-1...) 


If the system is powered down after setting the boot 
variables (without booting) those variables remain 
set when the machine is powered up later. 
However, those variables are reset to default when 
the machine is allowed to boot to Linux, followed 
by a "shutdown -h now" and a power down. 
The variables remain set to the values I set them to 
after the halt, but are reset to default following 
the power down. 


Put simply:   The boot variables become volatile after 
the machine boots to Linux.   The boot variables appear 
to be non-volatile as long as the machine is not booted. 
  


BOOT_RESET..?  I can't find it documented in the 
"Alpha SRM Consol for Alpha Microprocessor 
Evaluation Boards" manual.   Anyone? 

-- 

Bob Williams,  http://bob.usuf2.usuhs.mil/ <http://bob.usuf2.usuhs.mil/> 
  




^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2000-11-13 14:36 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-11  1:12 volatile SRM variables Robert Williams
2000-11-11  1:06 ` Matthew Jacob
2000-11-11  3:52 ` John Jasen
2000-11-11 15:11   ` Robert Williams
2000-11-11 17:33     ` John Jasen
2000-11-11 17:41       ` Rich Payne
2000-11-11 18:50         ` Maurice Hilarius
2000-11-11 19:00           ` Rich Payne
2000-11-11 19:15             ` Maurice Hilarius
2000-11-11 22:25               ` Rich Payne
2000-11-11 23:58                 ` Maurice Hilarius
2000-11-12 15:33                   ` Jay Estabrook
2000-11-12  6:27               ` Robert Williams
  -- strict thread matches above, loose matches on Subject: below --
2000-11-12 22:38 William H. Magill
2000-11-13 13:27 Jemiolo, John

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox