The text of a manual · part 14 of 18
NCR RealPOS 80c Release 1.1 Hardware User's Guide: Memory Dump
Pages 115 to 128 of 157, from NCR RealPOS 80c Release 1.1 Hardware User's Guide
The original document is the PDF (2.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the NCR 5952
Page 115
Chapter 6: Memory Dump General Memory Dump Information In the event of a catastrophic software failure (system lock up), the 7456 provides a means to dump the contents of the system memory contents (RAM) to a file that can then be analyzed using the Memory Dump Analyzer Utility. In order to get a memory dump on the 7456 it must first be configured in BIOS Setup and/or the Operating System. Note: The memory dump file is intended to be analyzed by Microsoft or requires a certain level of Post Mortem expertise.
BIOS Requirements The 7456 Memory Dump ROM’s image is contained in the BIOS and can be updated by the BIOS Phlash update Process/Utilities. See the BIOS Updating Procedures chapter. Memory Dump capability on the 7456 requires NCR BIOS version 3.0.0.0 (or greater).
Disk Format The Memory Dump ROM writes the data to the diskette in the form of a binary FAT compatible file. The ROM directly writes the FAT table information required to permit DOS to interpret the file as a normal binary file. Each diskette receives a single file named dumpinfo.xxx. The extension .xxx is a number denoting the sequential position of the diskette in the consolidated dump image. This extension starts at 001 and increments with each additional diskette used. Note: All pre-existing data on the diskette is overwritten during the dump process.
Page 116
6-2
Chapter 6: Memory Dump
Each diskette’s dumpinfo.xxx file is created with the same time and date information to help designate a diskette as being part of a specific set.
Page 117
Chapter 6: Memory Dump
6-3
Supported Operating Systems The following table provides a summary of operating systems supported by the Memory Dump Utility.
Summary of Operating Systems Operating System
Memory Dump Support
Notes
MS-DOS
Inherent
Reset Switch set to Dump; Dump Option ROM enabled in BIOS Setup
Pharlap 286 DOS Extender
Not Supported
Windows 3.1 Windows 3.11 Windows for Workgroups 3.1 Windows for Workgroups 3.11 Windows 95
Not Supported
Windows 98
Not Supported
Windows XP
Supported
Operating System configured; Reset Switch set to Dump in BIOS Setup
Windows 2000
Supported
Operating System configured; Reset Switch set to Dump in BIOS Setup
Windows NT
Supported
Operating System configured; Reset Switch set to Dump in BIOS Setup
OS/2
Not supported
Page 118
6-4
Chapter 6: Memory Dump
Prerequisites Windows 2000 and Windows NT systems require preparation prior to performing a memory dump. For additional information about Windows Memory dump refer to the Microsoft web site and search their Knowledge Base for the following: •
Windows 2000 Memory Dump Options Overview (Q254649)
•
Gathering Blue Screen Information After Memory Dump in Windows 2000 or Windows NT (Q192463)
Windows XP/2000 To enable memory dump on a Windows 2000 system, complete the following steps prior to performing the memory dump: 1. In the Control Panel, click on System. 2. In System Properties, select Advanced and then Startup and Recovery. 3. Under System Failure, check the following boxes: - Write an event to the system log - Send an administrative alert - Automatically reboot 4. In Write debugging information select Complete Memory Dump, and in Dump file: enter - C:\Memory.dmp. Note: The size of the memory file can be very large. Therefore, the file should be dumped to the local drive or a network drive and not to diskettes. 5. Check the box - Overwrite any existing files and enter OK. Do not reboot the system yet. 6. Click on START→Run. Enter regedit and click on OK. 7. Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\ Control\CrashControl. 8. Click on Edit and then on New. 9. Click on DWORD Value and enter NMICrashDump. 10. Highlight NMICrashDump. Click on Edit and then on Modify.
Page 119
Chapter 6: Memory Dump
6-5
11. Enter a 1 in Value Data and enter OK. 12. Close the Registry editor. 13. Reboot the system for changes to take effect.
Windows NT To enable memory dump on an NT system, complete the following steps prior to performing the memory dump: 1. In the Control Panel, click on System. 2. In System Properties, select Startup/Shutdown. 3. In the Recovery Section and under When a STOP error occurs, do the following, check the boxes −
Write an event to the system log
−
Send an administrative alert
−
Write debugging information to: In the box enter the file name and the path to the local drive, example: C:\Memory.dmp Note: The size of the memory file can be very large. Therefore, the file should be dumped to the local drive or a network drive and not to diskettes.
−
Overwrite any existing files
−
Automatically reboot
4. Click on Apply and enter OK. 5. Click on START→Run. Enter regedit and click on OK. 6. Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\ Control\CrashControl. 7. Click on Edit and then on New. 8. Click on DWORD Value and enter NMICrashDump. 9. Highlight NMICrashDump and in the Edit function. Click on Modify. 10. Enter a 1 in Value Data and enter OK. 11. Reboot the system for changes to take effect.
Page 120
6-6
Chapter 6: Memory Dump
DOS Memory Dump Specifics In the event of a catastrophic software failure (system lock up), the 7456 provides a means to dump the contents of the system memory contents (RAM) to a file that can then be analyzed using the Memory Dump Analyzer Utility. Workstations running MS-DOS are fully supported by the Memory Dump process. No additional runtime software is required. The Dump Option ROM must be set to [Enabled] in BIOS Setup
Dump Process Overview The memory dump process writes the data onto diskettes. As each diskette is filled, the user is prompted for another. When the memory dump is complete, all diskettes successfully used in the dump denote a set of diskettes that comprise a single consolidated memory dump image. The data from the diskettes is then moved to hard disk and the consolidated dump image file reassembled from its component pieces. Note: The workstation must remain powered up following the system lock up, before performing the memory dump, else the memory contents will be lost.
Restrictions and Limitations The Memory Dump functionality has the following restrictions and limitations: •
Dumps to flex drive only. No hard disk or LAN support is provided.
•
All dumps are written to drive A:
•
1.44 MB diskettes and 12-bit FAT are the only supported media.
•
Diskettes must be preformatted.
•
Memory between the base 640K and the start of extended memory is not dumped. (A0000h and FFFFFh is not dumped)
Page 121
Chapter 6: Memory Dump
6-7
•
No control header information is added to the diskette dump files. Human error can cause memory dump images to be rebuilt incorrectly. An example would be mixing files from different memory dumps.
•
No video or keyboard interaction during the memory dump process is provided. All information is provided to the user by way of speaker tunes and beeps.
•
If a protect mode NMI hander is not set up to direct NMIs to the real mode vector captured by the Memory Dump ROM, the system experiences the default protect mode NMI handling defined by the operating system and/or compilers used. Often this is a fatal system error.
•
When the dump switch is pressed the signal SERR# is introduced onto the BUS producing a NMI. If the Memory Dump ROM’s NMI handler is not invoked at this time, further activation of the memory dump switch will not produce a NMI as no software has run to re-enable the SERR# signal to produce a NMI. This would only occur in real mode if third party software captured the NMI vector and did not forward it to its previous handler. Under protect mode this can occur if the dump button’s NMI is handled by the default protect mode NMI handler.
•
The register contents stored within the pseudo CMOS storage in the resulting dump are those seen at entry to the Memory Dump ROM’s NMI handler and do not specifically match those that would be most useful - those of the application interrupted.
•
Intel 386 or higher processor, required as the Memory Dump ROM, is compiled with the .386 option in order to fully save the CPU state.
•
Diskette drive must support change line.
•
512 bytes is the only supported sector size. This is the sector size MS-DOS is hard coded throughout to support.
Page 122
6-8
Chapter 6: Memory Dump
•
Corruption of the interrupt vector table will prevent memory dumps from working. If the NMI is not routed through to the ROM, the memory dump process cannot start. The Memory Dump ROM uses several BIOS interrupts to access the diskette, get time and date, and determine the amount of extended memory present. Corruption of the interrupt chain for these BIOS interrupts will prevent memory dumps from working/completing.
•
Memory dumps are not supported with Nu-Mega’s Soft-ice or other equivalent programs installed. The ROM’s accessing extended memory for dumping of addresses past the 15.75 MB boundary with Soft-ice 2.80 installed results in Soft-ice popping up and proclaiming a protect violation, failing the dump process.
•
Memory dumps initiated while at Nu-Mega Technologies’ Soft-ice prompt will not complete. Soft-ice seems to absorb the NMI when it is active on the screen. When the user exits the debugger and returns to DOS, the dump does not then occur and further depressions of the memory dump switch will not cause a memory dump to start. A NMI occurred due to the dump switch (absorbed by Soft-ice) and no software has run to re-enable further memory dump switch NMIs.
•
Installation of Microsoft’s APM module power.exe without enabling the 7456’s PC BIOS APM options may result in failed memory dumps if emm386.exe is also installed. The combination of emm386.exe and power.exe without the BIOS’s APM support enabled causes emm386.exe to take an exception and halt the system when the memory dump button is pushed. emm386.exe displays a message: EMM386 has detected error #13 in an application at memory address 0048:0637. To minimize the chance of data loss, EMM386 has halted your computer. For more information, see the readme.txt file. To restart your computer press ENTER. Users installing power.exe should have the BIOS APM option enabled.
•
Windows memory dumps may not always complete.
Page 123
Chapter 6: Memory Dump
6-9
Performing the Memory Dump Configuring the Terminal Configure the terminal BIOS as follows prior to performing a memory dump. Note: Steps 3 and 4 are only required for DOS dumps. 1. Apply power to the terminal. 2. Press F2 at the screen prompt to enter Setup. 3. In the Advanced menu, select Multiple ROM Menu. 4. Set the MS-DOS Memory Dump to Enabled. 5. In the Power menu, set the Reset Switch to Memory Dump. 6. In the Exit menu, select Save Changes and reboot.
Dump Procedure The number of diskettes required to perform the memory dump varies depending on your system configuration. Workstation Approx. Number of 1.44 Memory Capacity MB Diskettes Required (MB)
64 128 256
46 93 186
Note: Diskettes must be preformatted. Fewer diskettes can be used if only the first part of the dump is needed.
Page 124
6-10
Chapter 6: Memory Dump
1. Press the Memory Dump Switch. Insert a small pointed object, such as an unfolded paper clip, through the opening to the right of the On/Off Power Switch to access the Memory Dump Switch. Pressing the switch starts the tone sequence. Reset/Memory Dump Switch
20302
2. Insert a diskette into the flex drive when prompted by the audio tones. The pseudo CMOS is dumped first, followed by the 640 KB of base memory. After this the extended memory is dumped.
Tunes/Tones Periodic tunes/tones are sounded as memory is copied to the diskettes. The following tones are used: Success tune - an upbeat 4 note song (ascending sequence) Failure tune - 4 note song that’s deeper toned and more depressing than the success tune. (descending sequence) Extended flat tone - denotes diskette related information. The tone is about 2 seconds and is clearly distinguishable from a beep.
Page 125
Chapter 6: Memory Dump
6-11
Tune/Tone
Meaning
Success Tune (played once)
The memory dump process successfully started.
Success Tune (played repeatedly)
The memory dump process successfully completed. The current diskette was successfully written to and is the last of the set.
Failure tune, followed by two groups of beeps (with a short delay to distinguish the end of a sequence)
The memory dump attempt failed. These are fatal errors. 1,1 - max retries exceeded (generally disk error retries) 1,2 - cannot forward non-dump NMI to previous NMI vector. 2,1 - failed resetting the disk subsystem 2,2 - diskette does not support change line – bad drive, disk disabled, etc. 2,3 - failed reading a sector from diskette
Extended flat tone, The current diskette was successfully followed by a Success tune written to and another diskette is (repeated sequences, with needed. Remove the diskette, label it as a short delay to distinguish disk x, save it as part of the dump image the end of a sequence) set, and insert another diskette. Extended flat tone, Diskette related information. followed by two groups of 1,1 - insert a diskette. beeps (repeated sequences, 1,2 - diskette found in drive is part of a with a short delay to previous dump. Remove diskette, distinguish the end of a and insert first dump diskette. sequence) 2,1 - diskette failed. Remove diskette. Disk inserted at start of dump. 2,2 - invalid media (non-1.44 MB diskette). Insert a valid disk.
Page 126
6-12
Chapter 6: Memory Dump
Either of the following tones are sounded when a diskette is successfully added to the set of disks composing a memory dump image: •
The Extended tone/Success tune is played, indicating the diskette has been successfully written to and that another diskette is required.
•
The Success tune is repeatedly playing, indicating the dump process is complete and the current diskette is the last disk in the set.
Moving the Files to Hard Disk and Reassembling Once the memory dump is complete, you have a set of diskettes, each with a single binary file dumpinfo.xxx. The next step is to move all files on the diskettes to a hard disk. Copy the files to the hard disk using the standard DOS copy command. The copy command MUST have the binary file option /b specified each time it is used. Note: The amount of hard disk space required to assemble the file is twice the memory dump image size (individual files plus composite image). After the files are on the hard disk, the DOS utility assemble.exe is run to build the memory dump image from the individual files. The individual diskette files will be left on the hard disk and must be removed manually. Follow these steps when reassembling the diskettes onto the PC: 1. Change to a directory on the PC that has no other dumpinfo.xxx files. This is important to prevent files from different memory dumps being intermixed. 2. Copy each diskette’s dumpinfo.xxx file to the hard disk using copy /b a:\dumpinfo.*. 3. Reassemble all individual component files into the memory dump image by running assemble.exe. Note: After assembling the files the image is reassembled and ready for analysis by NCR.
Page 127
Chapter 6: Memory Dump
6-13
Flow Chart A high level flow chart of a typical successful memory dump follows: 2
Start
Fill diskette with data
User presses dump switch
More data to dump?
ROM's NMI handler called
Sounds success tune once to indicate dump started
Sound tone/ success tune sequence. Disk successfully filled No
No Sound success tune repeatedly to signal successful dump
Done
1 Sound tone/1-beep sequence to indicate need disk
Has disk been removed? Yes
No Has disk been inserted?
1
Yes 2
20301
Note: Currently there are no NCR supported tools available to analyze the dump in the field. The diskettes containing the dump can be sent to NCR Corporation, RSG-Atlanta for analysis.
Page 128
6-14
Chapter 6: Memory Dump
Memory Dump Assembler The Memory Dump Assembler is a simple DOS application that reassembles the binary files resulting from a memory dump into a consolidated memory dump image. The utility is part of the Memory Dump Analyzer Utility (497-0406704). The file name is assemble.exe, which is a command line driven application. The command line is: assemble -i <input file’s basename> -o <output file name> where: • i specifies the basename of the input files (8 characters max). All input files must have the same basename. Do not specify an extension. The default basename is dumpinfo, which is the basename used by the memory dump process.
• o specifies the destination file name. Specify a maximum of twelve characters including the extension, using the FAT 8.3 filename format. The default filename extension is *.dmp.
The diskette files composing the image must be moved manually to an empty subdirectory at a Memory Dump Analyzer workstation. Once all the files are on the hard disk. Run assemble.exe from that directory. assemble.exe uses all files in the current directory with the configured base name and a numerical extension in the form .001, .002, etc, to build the Memory Dump Analyzer compatible image. assemble.exe stops when a file with the next sequential extension cannot be located. Use care to not skip any files when moving the diskette files to hard disk. A list of files used in building the image will be displayed upon exit. Note: The amount of hard disk space required to assemble the file is twice the memory dump image size (individual files plus composite image). The individual diskette files will be left on the hard disk and must be removed manually