From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 19343 invoked from network); 28 Apr 1999 22:12:46 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 28 Apr 1999 22:12:46 -0000 Received: from snowball.ucd.ie (snowball.ucd.ie [137.43.4.78]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id RAA07372 for ; Wed, 28 Apr 1999 17:43:19 -0400 Received: (qmail 23722 invoked from network); 28 Apr 1999 21:43:18 -0000 Received: from genie.ucd.ie (cetus@137.43.4.162) by snowball.ucd.ie with SMTP; 28 Apr 1999 21:43:18 -0000 Received: by genie.ucd.ie (sSMTP sendmail emulation); Wed, 28 Apr 1999 22:43:16 +0100 Date: Wed, 28 Apr 1999 22:43:16 +0100 From: Nikita Schmidt To: axp-list@redhat.com Subject: Re: how to get at SRM flash ROM? Message-ID: <19990428224316.A5738@snowball.ucd.ie> References: <199904281759.KAA20767@helmholtz.salk.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <199904281759.KAA20767@helmholtz.salk.edu>; from Jack Wathey on Wed, Apr 28, 1999 at 10:59:58AM -0700 On Wednesday, 28 Apr, Jack Wathey wrote: > > My question: Is there any way to read and write the values in > these SRM environment variables from a C program running under > Linux (i.e., after the kernel has booted and the system is up > and running)? If so, how? > If you boot straight from SRM (not via MILO), the answer seems to be yes, although the procedure is not very simple. You need to write a kernel module that would call srm_dispatch(CCB_..._ENV, ...) for you. See for details and arch/alpha/boot/main.c for examples. I don't know if srm_fixup is needed or not; hopefully not. Nikita