From: cmv@cbnewsc.ATT.COM (C M Votava) Newsgroups: unix-pc.general Subject: s4test - Expert Diagnostics Helper Date: 29 Jan 90 03:16:02 GMT Reply-To: cmv@cbnewsc.ATT.COM (C M Votava) Organization: AT&T Bell Laboratories Folks- Well, I've finally got my machine up and running! In the process, I've learned much about the "Expert Diagnostics" mode that is available on the unixpc diagnostics disk. I thought it would be useful to publish this information on the net for other people who man be in need of using them to help fix their machines. Be warned, however, that I do not claim this to be 100% correct. This is just my best shot, right now, with the time I've been able to devote to it. This is valid with the version of diagnostics built Monday May 11 13:07:40 EDT 1987 in dir /usr/src/3.5.999/kern/diag. Here we go... To get into the expert diagnostics mode, boot your machine on the diagnostics floppy. At the menu prompt, type "s4test" and there you have it! Once you're in the expert diagnostics mode you can type the following commands: ? - Prints a help screen V - Prints the diagnostics version (test 7,0) LE - Toggles the parallel printer on/off PE - Toggles memory parity on/off PM - Toggles screen page mode on/off # - Run the given command number (See Table Below) example: 7 #,# - Run the given test/subtest number (See Table Below) example: 6,12 There is a difference between command and test/subtest numbers. The command numbers run sets of test/subtests. If it has a comma in it, it's considered a test/subtest number, otherwize it's a command number. The last 2 commands (# and #,#) actually have the following forms: rpt:cmd[L|C] and rpt:tst,sub[L|C] where rpt: - optional, the number of times to repeat the command cmd - mandatory, the command number you want to run tst - mandatory, test number you want to run sub - mandatory, subtest number you want to run L - optional, Long execution mode (summary printout at end) C - optional, Continuous execution mode (non-interactive) Examples: 15 - execute command 15 25:19 - execute command 19, 25 times 50:1L - execute command number 1, 50 times in long execution mode 1,0 - execute test 1, subtest 0 10:14,2 - execute test 14, subtest 2, 10 times 5:1,1C - execute test 1 subtest 1 5 times in continuous execution mode The help screen prints out only the various command numbers that you can run, it doesn't print out any of the tests, and subtests available. The first table below lists the command numbers, a description, and the list of test/subtests executed when you choose that command. The second table lists the tests, subtests, and a short description of each. Command Tests/Subtest Run Number Description (test,subtest) ======= ================= ====================================== 1 Full System Test (8,2)-(8,6)-(8,5)-(6,1)-(6,4)-(6,5) -(0,0)-(19,0)-(10,0)-(3,0)-(1,0)-(5,0) -(4,0)-(12,0)-(22,1)-(22,2)-(17,1) -(17,2)-(6,24) 2 Initialize HD (6,2)-(6,23)-(6,24) 3 Enter Bad Blocks (6,8) 4 Park Disk Heads (6,24) 5 Reboot System (9,0) 11 Hard Disk Test (6,1)-(6,4)-(6,5)-(6,6) 12 Floppy Disk Test (8,2)-(8,6)-(8,5) 13 Kbd and Mouse (18,2) 14 Video Test (15,0) 15 Memory and Parity (0,0)-(19,0)-(3,0) 16 Communications (21,0)-(11,0) 17 Modem Test (17,1)-(17,2) 18 Dialer Test (16,1)-(16,2)-(16,6) 19 Processor Test (10,0)-(1,0)-(5,0)-(4,0)-(12,0) 20 Parallel Printer (13,0) 21 Real Time Clock (22,1)-(22,2)-(22,3) 31 Interactive Device (20,0) ======================================================================= TESTS AND SUBTESTS ======================================================================= 0,subtest Memory Tests 0 - All Tests 1 - Address Connection Test 2 - Data Bus Test 3 - Random Pattern Test ======================================================================= 1,subtest Map Translation Tests 0 - All Tests 1 - Map Translation Test 2 - Check Page Map ======================================================================= 2,subtest Hard Drive #1 Tests (2nd hard drive) 0 - No Test 1 - Recalibrate Disk 2 - Format Disk 3 - [Write Sector Address Across Disk] (Not Compiled) 4 - Read Sector Across Disk 5 - Random Seeks & Read ID 6 - Non-Destructive Surface Test 7 - Read N Sectors to Address X 8 - Spare a Sector (modify bad block table) 9 - [DMA Faults] (Not Compiled) 10 - [Write Volume Home Block (VHB) & Bad Block Table (BBT)] (Not Compiled) 11 - [Write VHB & BBT from subtest #3 buffers] (Not Compiled) 12 - Print VHB & BBT 13 - [Download From Host to Disk] (Not Compiled) 14 - [Toggle Alien Disk Mode] (Not Compiled) 15 - [Read Floppy Track] (Not Compiled) 16 - Interactive Drive Test 17 - Undefined 18 - [Build Hard Disk Partition From Floppy Archive] (Not Compiled) 19 - [Create Floppy Archive From HD Partition] (Not Compiled) 20 - [Describe Unix FS (Print Out HD Partition Info)] (Not Compiled) 21 - [Find Blocks With Errors] (Not Compiled) 22 - Undefined 23 - Surface Test 24 - Park Disk Heads 25 - [Sort Bad Block Table] (Not Compiled) 26 - [Format Disk By Default Values] (Not Compiled) 27 - [Format Disk, No Surface Test] (Not Compiled) ======================================================================= 3,subtest Parity Checks 0 - All Tests 1 - Parity Test ======================================================================= 4,subtest 60Hz Clock Tests Field Never Checked ======================================================================= 5,subtest User I/O Interrupt Test 0 - All Tests 1 - Tests UIE's between 0x0 and 0x41 2 - Tests UIE's between 0xe and 0xe0 ======================================================================= 6,subtest Hard Drive #0 Tests 0 - No Test 1 - Recalibrate Disk 2 - Format Disk 3 - [Write Sector Address Across Disk] (Not Compiled) 4 - Read Sector Across Disk 5 - Random Seeks & Read ID 6 - Non-Destructive Surface Test 7 - Read N Sectors to Address X 8 - Spare a Sector (modify bad block table) 9 - [DMA Faults] (Not Compiled) 10 - [Write Volume Home Block (VHB) & Bad Block Table (BBT)] (Not Compiled) 11 - [Write VHB & BBT from subtest #3 buffers] (Not Compiled) 12 - Print VHB & BBT 13 - [Download From Host to Disk] (Not Compiled) 14 - [Toggle Alien Disk Mode] (Not Compiled) 15 - [Read Floppy Track] (Not Compiled) 16 - Interactive Drive Test 17 - Undefined 18 - [Build Hard Disk Partition From Floppy Archive] (Not Compiled) 19 - [Create Floppy Archive From HD Partition] (Not Compiled) 20 - [Describe Unix FS (Print Out HD Partition Info)] (Not Compiled) 21 - [Find Blocks With Errors] (Not Compiled) 22 - Undefined 23 - Surface Test 24 - Park Disk Heads 25 - [Sort Bad Block Table] (Not Compiled) 26 - [Format Disk By Default Values] (Not Compiled) 27 - [Format Disk, No Surface Test] (Not Compiled) ======================================================================= 7,subtest Diagnostics Version Field Never Checked ======================================================================= 8,subtest Floppy Drive Tests (Not all are valid) 0 - No Test 1 - Recalibrate Disk 2 - Format Disk 3 - [Write Sector Address Across Disk] (Not Compiled) 4 - Read Sector Across Disk 5 - Random Seeks & Read ID 6 - Non-Destructive Surface Test 7 - Read N Sectors to Address X 8 - Spare a Sector (modify bad block table) 9 - [DMA Faults] (Not Compiled) 10 - [Write Volume Home Block (VHB) & Bad Block Table (BBT)] (Not Compiled) 11 - [Write VHB & BBT from subtest #3 buffers] (Not Compiled) 12 - Print VHB & BBT 13 - [Download From Host to Disk] (Not Compiled) 14 - [Toggle Alien Disk Mode] (Not Compiled) 15 - [Read Floppy Track] (Not Compiled) 16 - Interactive Drive Test 17 - Undefined 18 - [Build Hard Disk Partition From Floppy Archive] (Not Compiled) 19 - [Create Floppy Archive From HD Partition] (Not Compiled) 20 - [Describe Unix FS (Print Out HD Partition Info)] (Not Compiled) 21 - [Find Blocks With Errors] (Not Compiled) 22 - Undefined 23 - Surface Test 24 - Park Disk Heads 25 - [Sort Bad Block Table] (Not Compiled) 26 - [Format Disk By Default Values] (Not Compiled) 27 - [Format Disk, No Surface Test] (Not Compiled) ======================================================================= 9,subtest Trap to PROM Debugger ? This re-boots system ======================================================================= 10,subtest RAM Map Test 0 - All Tests 1 - Address Connection Test 2 - Data Bus Test 3 - Random Pattern Test ======================================================================= 11,subtest Zilog 8350 Test 0 - All Tests (Nothing Seems To Happen On Any Tests Here !?!) 1 - Loop A-B Internal 2 - Loop B-A Internal 3 - Loop A-B External 4 - Loop B-A External ======================================================================= 12,subtest Page Protection Tests 0 - All Tests 1 - CPU Accessing Invalid Page 2 - Users Accessing Invalid Page 3 - Users Writing to Write Disabled Page 4 - DMA to Invalid Page ======================================================================= 13,subtest Printer Tests 0 - All Tests 1 - Printer Status Test 2 - Printer Transfer Test ======================================================================= 14,subtest Memory Test 0 - All Tests 1 - Address Connection Test 2 - Data Bus Test 3 - Random Pattern Test ======================================================================= 15,subtest Video Test 0 - Interactive Video Test Any Number - Automatic Test ======================================================================= 16,subtest Dialer Test 0 - No Test 1 - Interactive DTMF Test 2 - Interactive Pulse Test 3 - Dialer/Telephony DTMF Test 4 - Dialer/Telephony Pulse Test 5 - Not Defined 6 - Auto Answer ======================================================================= 17,subtest Modem Test 0 - Not Defined 1 - Modem Self Test 2 - Modem Data Transfer Test ======================================================================= 18,subtest Keyboard Test 0 - All Tests 1 - Interactive Keyboard Test 2 - Interactive Keyboard & Mouse Test 3 - Interactive Mouse Test ======================================================================= 19,subtest Expansion Memory Test 0 - All Tests 1 - Address Connection Test 2 - Data Bus Test 3 - Random Pattern Test ======================================================================= 20,subtest Interactive Drive Test (Same as subtest 16 of Hard Drive Tests) ======================================================================= 21,subtest Intel 8274 Test 0 - All Tests 1 - Self Test 2 - Transfer Test ======================================================================= 22,subtest Real Time Clock Test 0 - Not Defined 1 - Read/Write Test 2 - Operation Test 3 - Interactive Setting Test ======================================================================= Having these lists, and understanding how diagnostics works, helped me a lot in debugging various parts of my system. I hope this will come in handy if you ever need to fix your machine. -Craig Votava att!ihlpf!cmv