Hallo,
da mein Mainboard nicht automatisch unterstützt wurde, habe ich es manuell mit guess und mit xxd probiert.
mit guess erzeugte configurationsdate sieht so aus:
Code
vdr:/usr/local/src/nvram-wakeup-0.91/mein_bios # /usr/local/src/nvram-wakeup-0.91/guess
$Id: guess.c,v 1.16 2003/03/18 14:34:19 bistr-o-math Exp $
Opened file 31.23.59.59+ readonly...
Opened file 11.12.13.14+ readonly...
Opened file 01.00.00.00+ readonly...
Opened file 01.00.00.00- readonly...
Couldn't read byte 0x72 from 31.23.59.59+
Assuming size of files 114 bytes
################################################
## Mainboard autodetection information:
##
guess: Opening /dev/mem in O_RDONLY mode...
guess: _DMI_ table found: base: 0xF2CA0, size: 0x44E, count: 38
guess: Following DMI entries found:
guess: - Mainboard vendor: ASUSTeK Computer INC.
guess: - Mainboard type: P4S8L
guess: - Mainboard revision: REV 1.xx
guess: - BIOS vendor: Award Software, Inc.
guess: - BIOS version: ASUS P4S8L ACPI BIOS Revision 1005
guess: - BIOS release: 06/11/2003
## - Mainboard vendor: "ASUSTeK Computer INC."
## - Mainboard type: "P4S8L"
## - Mainboard revision: "REV 1.xx"
## - BIOS vendor: "Award Software, Inc."
## - BIOS version: "ASUS P4S8L ACPI BIOS Revision 1005"
## - BIOS release: "06/11/2003"
checking 0x49: 0xFE 0xAE 0x86 0x84
addr_stat = 0x49 # but differs somewhere else
shift_stat = 1
addr_date = 0x49 # but differs somewhere else
shift_date = 2
checking 0x6B: 0x09 0x09 0x08 0x08
checking 0x6C: 0x65 0x15 0xED 0xEB
addr_stat = 0x6C # but differs somewhere else
shift_stat = 2
addr_chk_h = 0x6A # guessed
addr_chk_l = 0x6B
Alles anzeigen
dies habe ich dann abgeändert und als nvram-wakeup-conf in /etc gespeichert
Code
vdr:/usr/local/src/nvram-wakeup-0.91 # cat /etc/nvram-wakeup.conf
################################################
## Mainboard autodetection information:
##
## - Mainboard vendor: "ASUSTeK Computer INC."
## - Mainboard type: "P4S8L"
## - Mainboard revision: "REV 1.xx"
## - BIOS vendor: "Award Software, Inc."
## - BIOS version: "ASUS P4S8L ACPI BIOS Revision 1005"
## - BIOS release: "06/11/2003"
need_reboot = OFF
addr_stat = 0x49 # Status byte
shift_stat = 1 # The position of the status bit in the byte
addr_date = 0x49 # Date
shift_date = 2 # The position of the date bit in the byte
rtc_time = ON # Time
addr_chk_h = 0x6A # These are adresses of
addr_chk_l = 0x6B # the checksum bytes
Alles anzeigen
Dann habe ich nvram zum test aufgerufen
Code
vdr:/usr/local/src/nvram-wakeup-0.91 # ./nvram-wakeup --configfile=/etc/nvram-wakeup.conf -s $((`date +%s` + 20 * 60)) --nowrite
All values are displayed as they are stored in the nvram/rtc.
(and do not correspond necessarily to the system date/time)
WakeUp : Disabled (0xAC)
Date : 11 (0xAC)
rtcHour : 12
rtcMin : 13
rtcSec : 14
Checksum: 0x0009
Enabling (0xA6) WakeUp-on-RTC in nvram.
New Date : 09 (0xA6)
New rtcHour : 20
New rtcMin : 28
New rtcSec : 32
New Checksum: 0x0003
Actually, nothing was written into /dev/nvram nor into /dev/rtc.
(since --nowrite option was used).
Alles anzeigen
Diese Werte habe ich dann manuell im Bios eingetragen und andschließend neu ausgelesen:
Code
vdr:/usr/local/src/nvram-wakeup-0.91 # ./nvram-wakeup --configfile=/etc/nvram-wakeup.conf
All values are displayed as they are stored in the nvram/rtc.
(and do not correspond necessarily to the system date/time)
WakeUp : Enabled (0xA6)
Date : 09 (0xA6)
rtcHour : 20
rtcMin : 28
rtcSec : 32
Checksum: 0x0009
Alles anzeigen
Nun ist das Problem, daß die Checksum falsch gesetzt worden wäre.
Wenn ich aber die Zeit erneut setze, wenn Wake Up enabled ist, dann passt auch die Checksum.
Sollten wirklich zwei verschiedene Bits für den status gesetzt werden, wie kann ich das dann in die nvram--wakeup-conf Datei eintragen, daß dies dann auch akzeptiert wird?
Gruß
matrix79