From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15789 invoked from network); 19 Jun 1998 15:30:57 -0000 Received: from altatech.com (198.60.83.58) by mail2.redhat.com with SMTP; 19 Jun 1998 15:30:57 -0000 Received: from alta.altatech.com (alta [198.60.83.200]) by altatech.com (8.8.3/8.8.3) with ESMTP id JAA12389 for ; Fri, 19 Jun 1998 09:30:41 -0600 Received: from ALTA/SpoolDir by alta.altatech.com (Mercury 1.21); 19 Jun 98 08:31:18 MDT Received: from SpoolDir by ALTA (Mercury 1.21); 19 Jun 98 08:30:59 MDT Received: from altatech.com by alta.altatech.com (Mercury 1.21) with ESMTP; 19 Jun 98 08:30:53 MDT Sender: cworley@altatech.com Message-ID: <358A841C.C72F23EA@altatech.com> Date: Fri, 19 Jun 1998 09:30:36 -0600 From: Christian Worley Organization: Alta Technology X-Mailer: Mozilla 4.05 [en] (X11; I; SunOS 5.6 sun4u) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Can NVRAM be written from a booted system? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit (Hopefully this is falling on the ears of Jay, Jim, or Maddog). As I fall deeper and deeper into my NVRAM hole... Many have complained that they can't do a similar function such as "rdev" or "lilo -R" on AXP/Linux. If you look into the Milo source (and old RedHat AXP docs) there is a provision (conditional compile) for searching NVRAM for a block other than the one setup by the ARC console. I got this to work, although it was a little tricky: you can't embed this section into your NVRAM blow, or the SROM will die on the checksum and fail into the failsafe booter the first time after you change your boot argumants... So, I hacked a way to put the data one block after the magic string (in the blow) it's keying off of. This works great for milo booting directly out of NVRAM (which I need, but heed Jay's warnings about doing this: you'll never use any SCSI devices). For the general case, this "milo boot arguments" block would work for rebooting to a different kernel or root, if we could re-write this section of NVRAM from the live OS. In fact, if we new the magic strings being used by the ARC and other consoles to setup the boot arguments, we could do it for any of these consoles. Is this possible? It seems if milo can re-write NVRAM, then the appropriate drivers are in milo, and they need to be ported to Linux. Is this the case, or is there an easier way? Chris -- When I die, please cast my ashes upon Bill Gates --for once, let him clean up after me!