Re: Flavours of rebooting (was 3C509 acting strangely on Win95/Debian ...)

1998-12-15 Thread Bruce Perens
It belongs on the LILO command line that boots the linux kernel (given
that you boot with LILO). It's interpreted by the _kernel_, not any
user-mode program, at boot time, and it saves that parameter until halt
time. You can also hack the kernel to hard-code the booting method.

Another solution would be an /etc/init.d script that saves the motor
positions when halting, and restores them while booting. Of course,
this is not as nice as having the hardware remember. You might have to
re-calibrate at boot time just to make sure the stored positions are
right.

Thanks

Bruce
--
The $70 Billion US "budget surplus" hardly offsets our $5 Trillion national
debt. The debt increased by $133 Billion in the same year we found a
"surplus".
Bruce Perens K6BP [EMAIL PROTECTED] 510-620-3502 NCI-1001


Flavours of rebooting (was 3C509 acting strangely on Win95/Debian ...)

1998-12-15 Thread David Wright
Quoting Bruce Perens ([EMAIL PROTECTED]):
> From: kevin havener <[EMAIL PROTECTED]>
> > When rebooting into W95 from Linux, I have to power cycle the machine to
> > get it to recognize my 3C509 ethernet card.
> 
> Try adding "reboot=h" to the boot command line. If that works, edit your
> lilo config to put it in there permanently. The reboot options are:
> 
>   w:  warm - no power-on self-test.
>   c:  cold - performs POST.
>   b:  bios - reboot by jumping through the BIOS.
>   h:  hard - reset the CPU to reboot.
> 
> Please get back to us and tell us if that works.

I think this may be the answer to my problem but I don't know how to
apply it.

My boxes that are Intel TC (Tucson) mobo-based flick the power light off
when they reboot from linux to W95. Unfortunately this has the side-effect
of making an ISA motor-drive card reset, and it loses its knowledge of
the motor positions.

I therefore want as warm a reboot as possible. Where do I put reboot=w ?
man reboot/shutdown/inittab etc. have lots of -r style-of-syntax switches
but I can't see anything like reboot=X.

Other background:

>From power-on, the machine boots directly into W95.
For linux, I shutdown W95 to an MSDOS prompt and run loadlin.
To revert to W95, I Ctrl-Alt-Del which does (/etc/inittab)
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.