2001-02-26 14:34:27

by Oswald Buddenhagen

[permalink] [raw]
Subject: [PATCH] quick reboot on i386

hi there,

remember quarterdeck's quickreboot from "good" (*cough*) old D{o|O}S
days? here it is for linux! it's only of limited use, especially
in it's current state, but some people might find it useful.

the first patch is the kernel patch. note, that it makes qreboot the
default, if you specify reboot=q on the kernel command line.
to enforce a long (i.e., normal) reboot, you need a modified version
of sysvinit - this is the second patch. it is a bit debian-specific
(in the script part), but this shouldn't matter much.

have fun!

best regards

--
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.


Attachments:
(No filename) (684.00 B)
linux-2.4.2.patch (6.57 kB)
the QReboot kernel patch
sysvinit278.patch (5.50 kB)
the "enforce long reboot" sysvinit patch
Download all attachments

2001-02-27 20:30:13

by Pavel Machek

[permalink] [raw]
Subject: Re: [PATCH] quick reboot on i386

Hi!

> remember quarterdeck's quickreboot from "good" (*cough*) old D{o|O}S
> days? here it is for linux! it's only of limited use, especially
> in it's current state, but some people might find it useful.

Hmm, I'm probably going to apply this one, as I hate behaviour of my
bios: if you power off during POST it will not come up next time
asking for you to adjust CPU frequency.
Pavel
--
I'm [email protected]. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at [email protected]

2001-02-27 20:45:06

by Oswald Buddenhagen

[permalink] [raw]
Subject: Re: [PATCH] quick reboot on i386

> > remember quarterdeck's quickreboot from "good" (*cough*) old D{o|O}S
> > days? here it is for linux! it's only of limited use, especially
> > in it's current state, but some people might find it useful.
>
> Hmm, I'm probably going to apply this one, as I hate behaviour of my
> bios: if you power off during POST it will not come up next time
> asking for you to adjust CPU frequency.
>
"nice" bios ... :-/
so now pray, that your hardware configuration allows a second boot
without being reset. (yes, this is the downside of qreboot).
to make it work always, we would need a "deep" reset of at least the
pci and isa-pnp busses, presumably a chipset reset. sadly, i have
no idea, how to do this. possibly this would require an additional
reset function for every chipset. anyone can add something useful here?

best regards

--
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.