Package: nvram-wakeup Version: 1.1-4+b1 Severity: normal On first run as root:
nvram-wakeup: Your mainboard is currently not supported. nvram-wakeup: Please try determining the addresses and sending the following nvram-wakeup: information back to the maintainers: nvram-wakeup: - The addresses you found out (read README.mb) nvram-wakeup: - Mainboard vendor: "ASUSTeK Computer INC." nvram-wakeup: - Mainboard type: "M2NS-NVM" nvram-wakeup: - Mainboard revision: "1.XX" nvram-wakeup: - BIOS vendor: "Phoenix Technologies, LTD" nvram-wakeup: - BIOS version: "M2NS-NVM 0103" nvram-wakeup: - BIOS release: "08/31/2006" Following instructions of /usr/share/doc/nvram-wakeup/README.mb.gz I ran guess-helper which generated attached /root/guess-directisa/nvram-wakeup.conf, after copying it to /etc: # nvram-wakeup -A -C /etc/nvram-wakeup.conf -s $((`date +%s` + 60)) Speicherzugriffsfehler -A was used because the config contains "upper_method = VT82Cxxx" and 'man nvram-wakeup' suggests -A, --directisa Use direct I/O port access to access the nvram instead of /dev/nvram. This option must be used if the configuration option upper_method is set. The device /dev/rtc is still used. WARNING: If you use the option --directisa and some other programm tries to access nvram and/or rtc at the same time, you might screw up all your nvram (i.e. all CMOS settings). Note that the segfault also happens without the -A flag. I attached gdb.txt created with following command: echo -e "set logging on\n run\n bt full" | gdb --args \ nvram-wakeup -D -A -C /etc/nvram-wakeup.conf -s $((`date +%s` + 60)) After adding # before each line of nvram-wakeup.conf I got: # nvram-wakeup -A -s $((`date +%s` + 60)) -C /etc/nvram-wakeup2.conf nvram-wakeup: addr_stat (0xFFFFFFFF) is beyond the end of nvram Although the upstream project tracker looks a bit dead I have good faith that this bugreport will help to both fix this nice tool and to support above mainboard in the future. (I did not register at sf because it did not let me - "Your registration violated our antispam filter.") https://sourceforge.net/p/nvram-wakeup/bios-mb-list/ Please let me know if I made any mistakes using the program or some information is missing. Thanks for your work! --- System information. --- Architecture: Kernel: Linux 4.9.0-6-amd64 Debian Release: 9.4 500 stable-updates ftp.de.debian.org 500 stable-debug debug.mirrors.debian.org 500 stable security.debian.org 500 stable ftp.de.debian.org --- Package information. --- Depends (Version) | Installed ======================-+-=========== libc6 (>= 2.14) | Package's Recommends field is empty. Package's Suggests field is empty.
(gdb) Starting program: /usr/sbin/nvram-wakeup -D -A -C /etc/nvram-wakeup.conf Program received signal SIGSEGV, Segmentation fault. assign (lnr=lnr@entry=12, b=b@entry=0x555555795480 <b>, ptr=0x555555795494 <b+20>, val=val@entry=0x5555557974a1 "0x4A", allow_symbolic=allow_symbolic@entry=0) at readconf.c:73 73 readconf.c: Datei oder Verzeichnis nicht gefunden. (gdb) #0 assign (lnr=lnr@entry=12, b=b@entry=0x555555795480 <b>, ptr=0x555555795494 <b+20>, val=val@entry=0x5555557974a1 "0x4A", allow_symbolic=allow_symbolic@entry=0) at readconf.c:73 tail = 0x555555797480 "addr_stat" prev = 0x55795754 #1 0x000055555557ed44 in readconf (b=0x555555795480 <b>, filename=0x7fffffffe641 "/etc/nvram-wakeup.conf") at readconf.c:183 ret = <optimized out> line = 0x555555796260 "" rest = <optimized out> comment = <optimized out> name = <optimized out> val = 0x5555557974a1 "0x4A" n = 0 lnr = 12 fd_conf = 0x555555796030 #2 0x0000555555575147 in main (argc=0, argv=<optimized out>) at nvram-wakeup.c:125 retval = <optimized out> addr = <optimized out> changed = 0 need_reboot = 0 oChkH = 0x7ffff7de30c1 <_dl_lookup_symbol_x+353> "H\203\304\060\203", <incomplete sequence \370> oChkL = 0x0 nChkH = 0x7fffffffe2a0 "Ȳ\271\367\005" nChkL = 0x0 oChk = 0 nChk = 0 oChkH2 = 0x0 oChkL2 = 0x0 nChkH2 = 0x7ffff7ffe708 "" ---Type <return> to continue, or q <return> to quit--- nChkL2 = 0x0 oChk2 = 0 nChk2 = 0 oStat = 0x0 nStat = 0x0 oMon = 0x7ffff7ffea90 "\300\351\377\367\377\177" nMon = 0x7fffffffe1b0 "h\242\377\367\377\177" oDay = 0x0 nDay = 0x7ffff7ffe708 "" oWdays = 0x7fffffffe1a0 "\377\377\377\377" nWdays = 0x7ffff7b9b2e7 "__vdso_getcpu" oHour = 0x6562b026 <error: Cannot access memory at address 0x6562b026> nHour = 0xffffffff <error: Cannot access memory at address 0xffffffff> oMin = 0x0 nMin = 0x7ffff7ffa268 "6" oSec = 0x7ffff7ffe708 "" nSec = 0x0 oRtcDay = 0x0 nRtcDay = 0x0 oRtcMon = 0x0 nRtcMon = 0x0 oRtc_tm = {tm_sec = 0, tm_min = 0, tm_hour = 0, tm_mday = 0, tm_mon = 0, tm_year = 0, tm_wday = 0, tm_yday = 0, tm_isdst = 0} nRtc_tm = {tm_sec = -7272, tm_min = 32767, tm_hour = -7520, tm_mday = 32767, tm_mon = -134225552, tm_year = 32767, tm_wday = 0, tm_yday = 0, tm_isdst = 1} vdr_abs_tm = <optimized out> get_the_time = <optimized out> now = 0 (gdb) quit A debugging session is active. ---Type <return> to continue, or q <return> to quit--- Inferior 1 [process 2029] will be killed. Quit anyway? (y or n) [answered Y; input not from terminal] (gdb) Starting program: /usr/sbin/nvram-wakeup -D -A -C /etc/nvram-wakeup.conf -s 1529970074 Program received signal SIGSEGV, Segmentation fault. assign (lnr=lnr@entry=12, b=b@entry=0x555555795480 <b>, ptr=0x555555795494 <b+20>, val=val@entry=0x5555557974a1 "0x4A", allow_symbolic=allow_symbolic@entry=0) at readconf.c:73 73 readconf.c: No such file or directory. (gdb) #0 assign (lnr=lnr@entry=12, b=b@entry=0x555555795480 <b>, ptr=0x555555795494 <b+20>, val=val@entry=0x5555557974a1 "0x4A", allow_symbolic=allow_symbolic@entry=0) at readconf.c:73 tail = 0x555555797480 "addr_stat" prev = 0x55795754 #1 0x000055555557ed44 in readconf (b=0x555555795480 <b>, filename=0x7fffffffe633 "/etc/nvram-wakeup.conf") at readconf.c:183 ret = <optimized out> line = 0x555555796260 "" rest = <optimized out> comment = <optimized out> name = <optimized out> val = 0x5555557974a1 "0x4A" n = 0 lnr = 12 fd_conf = 0x555555796030 #2 0x0000555555575147 in main (argc=0, argv=<optimized out>) at nvram-wakeup.c:125 retval = <optimized out> addr = <optimized out> changed = 0 need_reboot = 0 oChkH = 0x7ffff7de30c1 <_dl_lookup_symbol_x+353> "H\203\304\060\203\370" oChkL = 0x0 nChkH = 0x7fffffffe280 "\310\262\271\367\a" nChkL = 0x0 oChk = 0 nChk = 0 oChkH2 = 0x0 oChkL2 = 0x0 nChkH2 = 0x7ffff7ffe708 "" ---Type <return> to continue, or q <return> to quit--- nChkL2 = 0x0 oChk2 = 0 nChk2 = 0 oStat = 0x0 nStat = 0x0 oMon = 0x7ffff7ffea90 "\300\351\377\367\377\177" nMon = 0x7fffffffe190 "h\242\377\367\377\177" oDay = 0x0 nDay = 0x7ffff7ffe708 "" oWdays = 0x7fffffffe180 "\377\377\377\377" nWdays = 0x7ffff7b9b2e7 "__vdso_getcpu" oHour = 0x6562b026 <error: Cannot access memory at address 0x6562b026> nHour = 0xffffffff <error: Cannot access memory at address 0xffffffff> oMin = 0x0 nMin = 0x7ffff7ffa268 "6" oSec = 0x7ffff7ffe708 "" nSec = 0x0 oRtcDay = 0x0 nRtcDay = 0x0 oRtcMon = 0x0 nRtcMon = 0x0 oRtc_tm = {tm_sec = 0, tm_min = 0, tm_hour = 0, tm_mday = 0, tm_mon = 0, tm_year = 0, tm_wday = 0, tm_yday = 0, tm_isdst = 0} nRtc_tm = {tm_sec = -7288, tm_min = 32767, tm_hour = -7552, tm_mday = 32767, tm_mon = -134225552, tm_year = 32767, tm_wday = 0, tm_yday = 0, tm_isdst = 1} vdr_abs_tm = <optimized out> get_the_time = <optimized out> now = 0 (gdb) quit A debugging session is active. ---Type <return> to continue, or q <return> to quit--- Inferior 1 [process 2166] will be killed. Quit anyway? (y or n) [answered Y; input not from terminal]
$Id: guess.c 835 2005-03-16 22:43:39Z bistr-o-math $ 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... Assuming size of files 256 bytes guess: Opening /dev/mem in O_RDONLY mode... guess: _DMI_ table found: base: 0xF0000, size: 0x742, count: 59 guess: data block 1 at offset 0x000: type 0, size 0x014 ( 20) guess: found string "Phoenix Technologies, LTD" guess: found string "M2NS-NVM 0103" guess: found string "08/31/2006" guess: data block 2 at offset 0x048: type 1, size 0x019 ( 25) guess: data block 3 at offset 0x08C: type 139, size 0x036 ( 54) guess: data block 4 at offset 0x0CD: type 2, size 0x008 ( 8) guess: found string "ASUSTeK Computer INC." guess: found string "M2NS-NVM" guess: found string "1.XX" guess: data block 5 at offset 0x10B: type 3, size 0x011 ( 17) guess: data block 6 at offset 0x15D: type 4, size 0x023 ( 35) guess: data block 7 at offset 0x1B9: type 4, size 0x023 ( 35) guess: data block 8 at offset 0x1F9: type 5, size 0x018 ( 24) guess: data block 9 at offset 0x213: type 6, size 0x00C ( 12) guess: data block 10 at offset 0x223: type 6, size 0x00C ( 12) guess: data block 11 at offset 0x233: type 6, size 0x00C ( 12) guess: data block 12 at offset 0x243: type 6, size 0x00C ( 12) guess: data block 13 at offset 0x253: type 7, size 0x013 ( 19) guess: data block 14 at offset 0x270: type 7, size 0x013 ( 19) guess: data block 15 at offset 0x28D: type 7, size 0x013 ( 19) guess: data block 16 at offset 0x2AA: type 7, size 0x013 ( 19) guess: data block 17 at offset 0x2C7: type 8, size 0x009 ( 9) guess: data block 18 at offset 0x2DD: type 8, size 0x009 ( 9) guess: data block 19 at offset 0x2F5: type 8, size 0x009 ( 9) guess: data block 20 at offset 0x30F: type 8, size 0x009 ( 9) guess: data block 21 at offset 0x326: type 8, size 0x009 ( 9) guess: data block 22 at offset 0x335: type 8, size 0x009 ( 9) guess: data block 23 at offset 0x344: type 8, size 0x009 ( 9) guess: data block 24 at offset 0x353: type 8, size 0x009 ( 9) guess: data block 25 at offset 0x362: type 8, size 0x009 ( 9) guess: data block 26 at offset 0x371: type 8, size 0x009 ( 9) guess: data block 27 at offset 0x380: type 8, size 0x009 ( 9) guess: data block 28 at offset 0x38F: type 8, size 0x009 ( 9) guess: data block 29 at offset 0x39E: type 8, size 0x009 ( 9) guess: data block 30 at offset 0x3B8: type 8, size 0x009 ( 9) guess: data block 31 at offset 0x3D4: type 8, size 0x009 ( 9) guess: data block 32 at offset 0x3EC: type 8, size 0x009 ( 9) guess: data block 33 at offset 0x41A: type 8, size 0x009 ( 9) guess: data block 34 at offset 0x448: type 8, size 0x009 ( 9) guess: data block 35 at offset 0x468: type 8, size 0x009 ( 9) guess: data block 36 at offset 0x47E: type 8, size 0x009 ( 9) guess: data block 37 at offset 0x4A2: type 8, size 0x009 ( 9) guess: data block 38 at offset 0x4C4: type 8, size 0x009 ( 9) guess: data block 39 at offset 0x4D7: type 8, size 0x009 ( 9) guess: data block 40 at offset 0x4EA: type 8, size 0x009 ( 9) guess: data block 41 at offset 0x4FA: type 8, size 0x009 ( 9) guess: data block 42 at offset 0x50A: type 9, size 0x00D ( 13) guess: data block 43 at offset 0x51D: type 9, size 0x00D ( 13) guess: data block 44 at offset 0x530: type 9, size 0x00D ( 13) guess: data block 45 at offset 0x546: type 9, size 0x00D ( 13) guess: data block 46 at offset 0x55D: type 13, size 0x016 ( 22) guess: data block 47 at offset 0x5AE: type 15, size 0x01D ( 29) guess: data block 48 at offset 0x5CD: type 16, size 0x00F ( 15) guess: data block 49 at offset 0x5DE: type 17, size 0x01B ( 27) guess: data block 50 at offset 0x619: type 17, size 0x01B ( 27) guess: data block 51 at offset 0x654: type 17, size 0x01B ( 27) guess: data block 52 at offset 0x68F: type 17, size 0x01B ( 27) guess: data block 53 at offset 0x6CA: type 19, size 0x00F ( 15) guess: data block 54 at offset 0x6DB: type 20, size 0x013 ( 19) guess: data block 55 at offset 0x6F0: type 20, size 0x013 ( 19) guess: data block 56 at offset 0x705: type 20, size 0x013 ( 19) guess: data block 57 at offset 0x71A: type 20, size 0x013 ( 19) guess: data block 58 at offset 0x72F: type 32, size 0x00B ( 11) guess: data block 59 at offset 0x73C: type 127, size 0x004 ( 4) guess: Following DMI entries found: guess: - Mainboard vendor: "ASUSTeK Computer INC." guess: - Mainboard type: "M2NS-NVM" guess: - Mainboard revision: "1.XX" guess: - BIOS vendor: "Phoenix Technologies, LTD" guess: - BIOS version: "M2NS-NVM 0103" guess: - BIOS release: "08/31/2006" checking 0x4A: 0x7A 0x7A 0x7A 0x72 checking 0x4C: 0x1F 0x0B 0x01 0x01 checking 0x4D: 0x17 0x0C 0x00 0x00 checking 0x4E: 0x3B 0x0D 0x00 0x00 checking 0x4F: 0x3B 0x0E 0x00 0x00 checking 0x6D: 0x23 0x22 0x22 0x22 checking 0x6E: 0x66 0xEC 0xBB 0xB3
################################################ ## Mainboard autodetection information: ## ## - Mainboard vendor: "ASUSTeK Computer INC." ## - Mainboard type: "M2NS-NVM" ## - Mainboard revision: "1.XX" ## - BIOS vendor: "Phoenix Technologies, LTD" ## - BIOS version: "M2NS-NVM 0103" ## - BIOS release: "08/31/2006" addr_stat = 0x4A shift_stat = 3 addr_day = 0x4C addr_hour = 0x4D addr_min = 0x4E addr_sec = 0x4F addr_chk_h = 0x6D addr_chk_l = 0x6E upper_method = VT82Cxxx
################################################ ## Mainboard autodetection information: ## ## - Mainboard vendor: "ASUSTeK Computer INC." ## - Mainboard type: "M2NS-NVM" ## - Mainboard revision: "1.XX" ## - BIOS vendor: "Phoenix Technologies, LTD" ## - BIOS version: "M2NS-NVM 0103" ## - BIOS release: "08/31/2006" ##addr_stat = 0x4A #shift_stat = 3 #addr_day = 0x4C #addr_hour = 0x4D #addr_min = 0x4E #addr_sec = 0x4F #addr_chk_h = 0x6D #addr_chk_l = 0x6E #upper_method = VT82Cxxx