Sun Quad FastEthernet SBus Adapter Installation and User's Guide

Using the OpenBoot PROM FCode Selftest

The following tests are available to help identify problems with the Sun Quad FastEthernet SBus adapter if the system does not boot.

You can invoke the FCode selftest diagnostics by using the OpenBoot user interface test or test-all commands. If you encounter an error while running diagnostics, appropriate messages will be displayed. Refer to the appropriate OpenBoot Command Reference Manual for more information on the test and test-all commands.

Selftest exercises most functionality sub-section by sub-section and ensures the following:

Running the Ethernet FCode Selftest Diagnostic

To run the ethernet diagnostics, you must first bring the system to a stop at the OpenBoot prompt after issuing a reset. If you do not reset the system, the diagnostic tests may cause the system to hang.

For more information about the OpenBoot commands in this section, refer to the appropriate OpenBoot Command Reference manual.

  1. Shut down the system.

    Use the standard shut down procedures described in Solaris 2.x Handbook for SMCC Peripherals.

  2. At the ok prompt, set the auto-boot? configuration variable to false.


    ok setenv auto-boot? false
    

  3. Reset the system.

    Refer to the appropriate OpenBoot Command Reference manual for more information.

  4. Type show-devs to display the list of devices.

    You should see lines in the list of devices, similar to the example below, specific to the Sun Quad FastEthernet SBus adapter:


    ok show-devs
    . . .
    /sbus@1f,0/SUNW,qfe@1,8c30000
    /sbus@1f,0/SUNW,qfe@1,8c20000
    /sbus@1f,0/SUNW,qfe@1,8c10000
    /sbus@1f,0/SUNW,qfe@1,8c00000
    . . .

    In this example, the SUNW,qfe@1 entries identify the device paths to the four Ethernet channels.

  5. Type the following to put the OpenBoot PROM into diagnostic mode:


    ok setenv diag-switch? true
    

  6. Type the following to run the selftest using the test command on one of the adapters four Ethernet channels:


    ok test <device path>
    

    The following tests are run when the test command is executed:

    • hme register

    • MAC internal loopback

    • 100 Mbps PHY loopback

    • 10 Mbps PHY loopback

    If the test passes, you will see these messages:


    Hme register test --- succeeded.
    Internal loopback test -- succeeded
    Transceiver check -- Using onboard transceiver -- Link up
    passed

    If the channel is not connected to a network, you will see the following error messages:


    Hme register test --- succeeded.
    Internal loopback test -- succeeded
    Transceiver check -- Using onboard transceiver -- Link down
    Autonegotiation timeout
    Check Cable or contact system administrator
    Failed
    selftest failed. return code = -1


    Note -

    To test other channels of the adapter, you will need to execute the test command separately on each channel.


  7. After testing the adapter, type the following to return the OpenBoot PROM to standard operating mode:


    ok setenv diag-switch? false
    

  8. Set the auto-boot? configuration parameter to true.


    ok setenv auto-boot? true
    

  9. Reset and reboot the system.

    Refer to the appropriate OpenBoot Command Reference manual for more information.