public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sysctl interface to bootflags?
@ 2001-10-09 14:01 Thomas Hood
  2001-10-09 14:15 ` Dave Jones
  2001-10-09 14:18 ` Alan Cox
  0 siblings, 2 replies; 16+ messages in thread
From: Thomas Hood @ 2001-10-09 14:01 UTC (permalink / raw)
  To: linux-kernel

As I've said, I think it would be nice to have /proc
control over two boot flags: the DIAG bit (which switches
on (1) and off (0) the BIOS diagnostics) and the PnP-OS bit
(which switches on (0) and off (1) PnP BIOS device configuration).

Would it be a good idea to do this using the sysctl infrastructure?
If so, can someone please suggest an appropriate pathname for
the flag files?  How about "/proc/sys/BIOS/bootflags/diagnostics"
and "/proc/sys/BIOS/bootflags/PnP-OS" ?

If this is a bad idea, someone please stop me before I waste my
time implementing it.

--
Thomas


^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: sysctl interface to bootflags?
@ 2001-10-09 22:48 Thomas Hood
  2001-10-10 14:05 ` Dave Jones
  0 siblings, 1 reply; 16+ messages in thread
From: Thomas Hood @ 2001-10-09 22:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: davej

Thanks.  I tested the new sbf.c and after hacking it a
bit to remove the fail-on-invalid-reg-value, it runs:

root@thanatos:/home/jdthood/src/sbf# ./a.out
BOOT @ 0x07fd0040
CMOS register: 0x33
Read current value := 0x88
Read updated value := 0x89

Here it has set bit 0, the PnP-OS bit.  Do you have any
plans to enhance the program to allow control of all the flags?

--
Thomas


^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: sysctl interface to bootflags?
@ 2001-10-09  3:29 Thomas Hood
  0 siblings, 0 replies; 16+ messages in thread
From: Thomas Hood @ 2001-10-09  3:29 UTC (permalink / raw)
  To: linux-kernel

Well, it may run, but what it changed was NOT the SBF field.
When I restarted my machine the BIOS beeped and told me
there was an error in the nonvolatile RAM.  I was made to
reset the system date, and then the computer rebooted
normally.

--
Thomas

> Thanks.  I tested the new sbf.c and after hacking it a
> bit to remove the fail-on-invalid-reg-value, it runs:
>
> root@thanatos:/home/jdthood/src/sbf# ./a.out
> BOOT @ 0x07fd0040
> CMOS register: 0x33
> Read current value := 0x88
> Read updated value := 0x89
>
> Here it has set bit 0, the PnP-OS bit.  Do you have any
> plans to enhance the program to allow control of all the flags?





^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: sysctl interface to bootflags?
@ 2001-10-09  2:56 Thomas Hood
  2001-10-10  6:46 ` Dave Jones
  0 siblings, 1 reply; 16+ messages in thread
From: Thomas Hood @ 2001-10-09  2:56 UTC (permalink / raw)
  To: linux-kernel; +Cc: davej

Well, it may run, but what it changed was NOT the SBF field.
When I restarted my machine the BIOS beeped and told me
there was an error in the nonvolatile RAM.  I was made to
reset the system date, and then the computer rebooted
normally.

--
Thomas

> Thanks.  I tested the new sbf.c and after hacking it a
> bit to remove the fail-on-invalid-reg-value, it runs:
>
> root@thanatos:/home/jdthood/src/sbf# ./a.out
> BOOT @ 0x07fd0040
> CMOS register: 0x33
> Read current value := 0x88
> Read updated value := 0x89
>
> Here it has set bit 0, the PnP-OS bit.  Do you have any
> plans to enhance the program to allow control of all the flags?





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

end of thread, other threads:[~2001-10-10 14:05 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-09 14:01 sysctl interface to bootflags? Thomas Hood
2001-10-09 14:15 ` Dave Jones
2001-10-09 15:21   ` Thomas Hood
2001-10-09 15:34     ` Dave Jones
2001-10-09 15:50       ` Thomas Hood
2001-10-09 15:52         ` Dave Jones
2001-10-09 15:56           ` Thomas Hood
2001-10-09 16:53             ` Dave Jones
2001-10-09 14:18 ` Alan Cox
2001-10-09 15:35   ` Thomas Hood
  -- strict thread matches above, loose matches on Subject: below --
2001-10-09 22:48 Thomas Hood
2001-10-10 14:05 ` Dave Jones
2001-10-09  3:29 Thomas Hood
2001-10-09  2:56 Thomas Hood
2001-10-10  6:46 ` Dave Jones
2001-10-10 12:37   ` Thomas Hood

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