Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [Q] How to reboot automatically?
@ 1998-07-18  8:47 Francis M. J. Hsieh
       [not found] ` <19980719041810.G489@uni-koblenz.de>
  0 siblings, 1 reply; 8+ messages in thread
From: Francis M. J. Hsieh @ 1998-07-18  8:47 UTC (permalink / raw)
  To: Linux

Can the bios remeber to reboot as "boot /vmlinux root=/dev/sdb1" ?

--
Francis M. J. Hsieh, Bioinformatics Center, Life Science, NTHU, Taiwan

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

* Re: [Q] How to reboot automatically?
       [not found] ` <19980719041810.G489@uni-koblenz.de>
@ 1998-07-19 20:18   ` Francis M. J. Hsieh
  1998-07-19 21:20     ` ralf
  0 siblings, 1 reply; 8+ messages in thread
From: Francis M. J. Hsieh @ 1998-07-19 20:18 UTC (permalink / raw)
  To: Linux

On Sun, Jul 19, 1998 at 04:18:10AM +0200, ralf@uni-koblenz.de wrote:
> On Sat, Jul 18, 1998 at 04:47:41PM +0800, Francis M. J. Hsieh wrote:
> > Can the bios remeber to reboot as "boot /vmlinux root=/dev/sdb1" ?
> Try the ARC environment variable OsLoadOptions.  See also the IRIX manpages
> about the firmware.

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.

-- 
Francis M. J. Hsieh      | Email:   mjhsieh@life.nthu.edu.tw
Life Science Department, | Webpage: http://www.life.nthu.edu.tw/~mjhsieh/
National Tsing Hua Univ, | Voice:   +886 3 5715131 ext 3482
HsinChu, Taiwan Republic | 	    +886 3 5715649

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

* Re: [Q] How to reboot automatically?
  1998-07-19 20:18   ` Francis M. J. Hsieh
@ 1998-07-19 21:20     ` ralf
  1998-07-20 12:25       ` Francis M. J. Hsieh
  0 siblings, 1 reply; 8+ messages in thread
From: ralf @ 1998-07-19 21:20 UTC (permalink / raw)
  To: Francis M. J. Hsieh, Linux

On Mon, Jul 20, 1998 at 04:18:15AM +0800, Francis M. J. Hsieh wrote:

> On Sun, Jul 19, 1998 at 04:18:10AM +0200, ralf@uni-koblenz.de wrote:
> > On Sat, Jul 18, 1998 at 04:47:41PM +0800, Francis M. J. Hsieh wrote:
> > > Can the bios remeber to reboot as "boot /vmlinux root=/dev/sdb1" ?
> > Try the ARC environment variable OsLoadOptions.  See also the IRIX manpages
> > about the firmware.
> 
> 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?

!@#%%$!##,

  Ralf

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

* Re: [Q] How to reboot automatically?
  1998-07-19 21:20     ` ralf
@ 1998-07-20 12:25       ` Francis M. J. Hsieh
  1998-07-20 16:10         ` William J. Earl
  0 siblings, 1 reply; 8+ messages in thread
From: Francis M. J. Hsieh @ 1998-07-20 12:25 UTC (permalink / raw)
  To: Linux

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...

-- 
Francis M. J. Hsieh      | Email:   mjhsieh@life.nthu.edu.tw
Life Science Department, | Webpage: http://www.life.nthu.edu.tw/~mjhsieh/
National Tsing Hua Univ, | Voice:   +886 3 5715131 ext 3482
HsinChu, Taiwan Republic | 	    +886 3 5715649

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

* Re: [Q] How to reboot automatically?
  1998-07-20 12:25       ` Francis M. J. Hsieh
@ 1998-07-20 16:10         ` William J. Earl
  1998-07-20 18:32           ` ralf
  0 siblings, 1 reply; 8+ messages in thread
From: William J. Earl @ 1998-07-20 16:10 UTC (permalink / raw)
  To: Francis M. J. Hsieh; +Cc: Linux

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.

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

* Re: [Q] How to reboot automatically?
  1998-07-20 16:10         ` William J. Earl
@ 1998-07-20 18:32           ` ralf
  1998-07-20 18:43             ` William J. Earl
  0 siblings, 1 reply; 8+ messages in thread
From: ralf @ 1998-07-20 18:32 UTC (permalink / raw)
  To: William J. Earl, Francis M. J. Hsieh; +Cc: Linux

On Mon, Jul 20, 1998 at 09:10:34AM -0700, William J. Earl wrote:

> 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.

That looks like a good idea; it can be implemented easily and nicely
within Linux.  And for transparency we should.  What will stay different
is the naming convention of Linux partitions.

The environment is allocated in ``Firmware Temporary'' memory, isn't it?
We don't free that yet but we should, for low memory configurations that
should be a significant amount of memory.

  Ralf

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

* Re: [Q] How to reboot automatically?
  1998-07-20 18:32           ` ralf
@ 1998-07-20 18:43             ` William J. Earl
  1998-07-20 19:11               ` ralf
  0 siblings, 1 reply; 8+ messages in thread
From: William J. Earl @ 1998-07-20 18:43 UTC (permalink / raw)
  To: ralf; +Cc: Linux

ralf@uni-koblenz.de writes:
 > On Mon, Jul 20, 1998 at 09:10:34AM -0700, William J. Earl wrote:
 > 
 > > 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.
 > 
 > That looks like a good idea; it can be implemented easily and nicely
 > within Linux.  And for transparency we should.  What will stay different
 > is the naming convention of Linux partitions.

     That is good, but you might consider translating incoming IRIX-format
and ARCS-format names to Linux names, just as IRIX translates ARCS-format
names to IRIX-format names.  

 > The environment is allocated in ``Firmware Temporary'' memory, isn't it?
 > We don't free that yet but we should, for low memory configurations that
 > should be a significant amount of memory.

     Yes, the environment is in firmware temporary memory, along with
a copy of the firmware.  The non-volatile environment is in the Dallas
part, but the user, via PROM or sash, may have replaced one or more
of the variables after the environment was copied to memory.

     I would guess that, depending on how the system was booted,
firmware temporary memory could be 4 MB or more, although the
actual environment and argument values are of course much smaller.
Once you free the firmware area, you can no longer use the firmware
entries (except to leave linux and reboot or halt).

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

* Re: [Q] How to reboot automatically?
  1998-07-20 18:43             ` William J. Earl
@ 1998-07-20 19:11               ` ralf
  0 siblings, 0 replies; 8+ messages in thread
From: ralf @ 1998-07-20 19:11 UTC (permalink / raw)
  To: William J. Earl; +Cc: Linux

On Mon, Jul 20, 1998 at 11:43:15AM -0700, William J. Earl wrote:

>  > That looks like a good idea; it can be implemented easily and nicely
>  > within Linux.  And for transparency we should.  What will stay different
>  > is the naming convention of Linux partitions.
> 
>      That is good, but you might consider translating incoming IRIX-format
> and ARCS-format names to Linux names, just as IRIX translates ARCS-format
> names to IRIX-format names.  
> 
>  > The environment is allocated in ``Firmware Temporary'' memory, isn't it?
>  > We don't free that yet but we should, for low memory configurations that
>  > should be a significant amount of memory.
> 
>      Yes, the environment is in firmware temporary memory, along with
> a copy of the firmware.  The non-volatile environment is in the Dallas
> part, but the user, via PROM or sash, may have replaced one or more
> of the variables after the environment was copied to memory.
> 
>      I would guess that, depending on how the system was booted,
> firmware temporary memory could be 4 MB or more, although the
> actual environment and argument values are of course much smaller.
> Once you free the firmware area, you can no longer use the firmware
> entries (except to leave linux and reboot or halt).

Once I enable the L2 caches of the R4600SC and R5000SC modules I can't use
the firmware any longer anyway, the machine just crashes.  So not much
of a loss anyway.

  Ralf

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

end of thread, other threads:[~1998-07-20 19:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-18  8:47 [Q] How to reboot automatically? Francis M. J. Hsieh
     [not found] ` <19980719041810.G489@uni-koblenz.de>
1998-07-19 20:18   ` Francis M. J. Hsieh
1998-07-19 21:20     ` ralf
1998-07-20 12:25       ` Francis M. J. Hsieh
1998-07-20 16:10         ` William J. Earl
1998-07-20 18:32           ` ralf
1998-07-20 18:43             ` William J. Earl
1998-07-20 19:11               ` ralf

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