linux-mips
[Top] [All Lists]

Re: [Q] How to reboot automatically?

To: "Francis M. J. Hsieh" <mjhsieh@helix.life.nthu.edu.tw>
Subject: Re: [Q] How to reboot automatically?
From: "William J. Earl" <wje@fir.engr.sgi.com>
Date: Mon, 20 Jul 1998 09:10:34 -0700
Cc: Linux <linux%cthulhu.engr.sgi.com@ms21.hinet.net>
In-reply-to: <19980720202548.A526@helix.life.nthu.edu.tw>
References: <19980718164741.A868@life.nthu.edu.tw> <19980719041810.G489@uni-koblenz.de> <19980720041815.A298@helix.life.nthu.edu.tw> <19980719232054.A956@uni-koblenz.de> <19980720202548.A526@helix.life.nthu.edu.tw>
Sender: owner-linux@cthulhu.engr.sgi.com
Francis M. J. Hsieh writes:
 > On Sun, Jul 19, 1998 at 11:20:54PM +0200, ralf@uni-koblenz.de wrote:
 > > On Mon, Jul 20, 1998 at 04:18:15AM +0800, Francis M. J. Hsieh wrote:
 > > > Well, OSLoadOptions saves only 12 character. Maybe I was at the wrong 
 > > > way,
 > > > there is few document about firmware. neither the manpages nor the online
 > > > books contain helpful information.
 > > 
 > > 12 Characters?
 > > 
 > > !@#%%$!##,
 > 
 > any idea? the sash would not read root variable...... so setenv root won't
 > work...

    To boot IRIX from an alternate partition, we usually
set

        OSLoadPartition=scsi(0)disk(4)rdisk(0)partition(0)
        OSLoader=sash
        OSLoadFilename=/unix
        root=dks0d4s0

sash is fetched from

        SystemPartition=scsi(0)disk(4)rdisk(0)partition(8)

These can be set in the NVRAM using

        setenv -p SymbolName SymbolValue

IRIX looks at the environment when booting.  That is, it finds
argc, argv, and envp in $a0, $a1, and $a2.  It copies them to
private storage before starting up, since they are in memory
which will be overlaid by dynamic memory allocation.  All of the
NVRAM and temporary environment variables are passed via envp.
IRIX looks for root= on the command line (in argv) first, and then
in the environment, before falling back on a default.  linux could
do the same.

<Prev in Thread] Current Thread [Next in Thread>