hi
This NVRAM is for suspend/resume. So it is only powered if 5VSB is
there. So it is not a real battery backup device.
The platform has 256 bytes of classic NVRAM (CMOS). I think you can use
ioports 74/75. to get access
to whole 256Bytes.
(check if PCI 11.0 4e bit 3 is 1) I think it should be.
Rudolf
[email protected] wrote:
I use those methods in Seabios.
And as soon as I unplug the power supply, load_state_from_nvram doesn't return
the value saved.
Is something wrong with my methods ?
#define K8T890_NVRAM_IO_BASE 0xf00
int save_state_to_nvram(u32 dword) {
int nvram_pos=64;
dprintf(1,"Writing %x of size 4 to nvram pos: %d\n", dword, nvram_pos);
//size=4
outl(dword, K8T890_NVRAM_IO_BASE+nvram_pos);
nvram_pos +=4;
return nvram_pos;
}
int load_state_from_nvram( u32 *old_dword) {
int nvram_pos=64;
//size=4
*old_dword = inl(K8T890_NVRAM_IO_BASE+nvram_pos);
nvram_pos +=4;
dprintf(1,"Loading %x of size 4 from nvram pos:%d\n", * old_dword,
nvram_pos-4);
return nvram_pos;
}
Message du 05/02/10 à 20h38
De : "Joseph Smith" <[email protected]>
A : [email protected]
Copie à : [email protected]
Objet : Re: [coreboot] M2v-mx_se asus : nvram reset on power unplug
On 02/05/2010 02:35 PM, [email protected] wrote:
Message du 05/02/10 à 19h52
De : "Joseph Smith"<[email protected]>
A : [email protected]
Copie à : [email protected]
Objet : Re: [coreboot] M2v-mx_se asus : nvram reset on power unplug
On 02/05/2010 01:22 PM, [email protected] wrote:
Hello,
When I shutdown my computer, my nvram datas are kept alive. But if I
unplug/plug the power supply, nvram is reset.
The clock is OK, so it is not a battery problem.
How can I keep datas in nvram when I unplug the power supply ?
Either your CMOS battery is dead or you have RTC issue.
But the clock is OK, so I don't think my CMOS battery is dead.
Could you tell me more about the RTC issue ?
Is this with coreboot?
--
Thanks,
Joseph Smith
Set-Top-Linux
www.settoplinux.org
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot
____________________________________________________
Faites le plein d’amour, de cadeaux coquins et de poèmes romantiques avec Voila
sur http://evenementiel.voila.fr/SaintValentin2010/
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot