Hi,
this patch adds a new file lbcmos.fth to cpu/x86/pc/biosload which makes it possible to view and manipulate CMOS settings.
For instructions on how to use it type "help-lbcmos" on the ok prompt.
With kind regards,
Jens
On Wednesday 10 October 2007, Jens Freimann wrote:
Hi,
this patch adds a new file lbcmos.fth to cpu/x86/pc/biosload which makes it possible to view and manipulate CMOS settings.
+++ cpu/x86/pc/biosload/lbcmos.fth (Revision 0) @@ -0,0 +1,246 @@ +purpose: Access LinuxBIOS CMOS settings + +fload ${BP}/cpu/x86/pc/biosload/cmos.fth +
where is cmos.fth ?
Torsten
Am Freitag, den 12.10.2007, 00:56 +0200 schrieb Torsten Duwe:
On Wednesday 10 October 2007, Jens Freimann wrote:
Hi,
this patch adds a new file lbcmos.fth to cpu/x86/pc/biosload which makes it possible to view and manipulate CMOS settings.
+++ cpu/x86/pc/biosload/lbcmos.fth (Revision 0) @@ -0,0 +1,246 @@ +purpose: Access LinuxBIOS CMOS settings
+fload ${BP}/cpu/x86/pc/biosload/cmos.fth
where is cmos.fth ?
ups, I copied it from cpu/x86/pc/olpc/cmos.fth to the biosload directory. So the line should either be changed to fload ${BP}/cpu/x86/pc/olpc/cmos.fth or cmos.fth should be copied to the biosload directory. Or maybe move cmos.fth to cpu/x86/pc/?
Jens
Jens Freimann wrote:
Am Freitag, den 12.10.2007, 00:56 +0200 schrieb Torsten Duwe:
On Wednesday 10 October 2007, Jens Freimann wrote:
Hi,
this patch adds a new file lbcmos.fth to cpu/x86/pc/biosload which makes it possible to view and manipulate CMOS settings.
+++ cpu/x86/pc/biosload/lbcmos.fth (Revision 0) @@ -0,0 +1,246 @@ +purpose: Access LinuxBIOS CMOS settings
+fload ${BP}/cpu/x86/pc/biosload/cmos.fth
where is cmos.fth ?
ups, I copied it from cpu/x86/pc/olpc/cmos.fth to the biosload directory. So the line should either be changed to fload ${BP}/cpu/x86/pc/olpc/cmos.fth or cmos.fth should be copied to the biosload directory. Or maybe move cmos.fth to cpu/x86/pc/?
I suggest putting it in dev/isa/cmos.fth
I'm not sure that it's appropriate to have the stand-init in a generic place, though. The behavior of zeroing the BIOS checksum area if it is bad is what we want for OLPC, but perhaps is not always a good idea.
Jens
On Friday 12 October 2007, Mitch Bradley wrote:
Jens Freimann wrote:
or cmos.fth should be copied to the biosload directory. Or maybe move cmos.fth to cpu/x86/pc/?
I suggest putting it in dev/isa/cmos.fth
I'm not sure that it's appropriate to have the stand-init in a generic place, though. The behavior of zeroing the BIOS checksum area if it is bad is what we want for OLPC, but perhaps is not always a good idea.
The MC146818 is ISA legacy, so dev/isa has my vote. Pulling out any PC-specific or firmware-dependent semantics would be perfect, though.
Torsten
On Fri, 12 Oct 2007, Torsten Duwe wrote:
The MC146818 is ISA legacy, so dev/isa has my vote. Pulling out any PC-specific or firmware-dependent semantics would be perfect, though.
Well, to be exact, MC146818 and anything in the 0x00-0xff port I/O space is motherboard, not ISA. ISA port I/O space is 0x0100-0xffff in theory (address lines up to the bit #15 are driven on I/O cycles) and 0x100-0x3ff in reality (many cards did not decode address lines from the bit #10 upward).
And, unlike ISA (in most cases), it is still there in x86-based PC/AT-class systems, usually in the south bridge. OTOH, the 0x100-0x3ff stuff migrated to the so called LPC bus and typically got reduced to some super-I/O chip hanging off there.
Maciej
* Maciej W. Rozycki macro@linux-mips.org [071012 15:10]:
Well, to be exact, MC146818 and anything in the 0x00-0xff port I/O space is motherboard, not ISA. ISA port I/O space is 0x0100-0xffff in theory (address lines up to the bit #15 are driven on I/O cycles) and 0x100-0x3ff in reality (many cards did not decode address lines from the bit #10 upward).
And, unlike ISA (in most cases), it is still there in x86-based PC/AT-class systems, usually in the south bridge. OTOH, the 0x100-0x3ff stuff migrated to the so called LPC bus and typically got reduced to some super-I/O chip hanging off there.
In LinuxBIOS we packed that in a "pc80" directory.
Stefan