                               Broadcom Corporation
                             5300 California Avenue,
                                 Irvine, CA 92617

                                  Release Notes 
                 Broadcom BCM570X UEFI Diagnostics for IA-32 and x64
                           
Current Release 
================
Version 14.70 (2011.05.13)
   1. Problem: (CQ55119)
        UEFIb57diag: During upgrading bootcode will see incorrect bootcode version on 5720. 
      Fix:
        Display correct bootcode version on 5720.  
        
   2. Problem: (CQ55514)
        UEFIb57diag: Execute vpdinfo will get error after run vpdtest.  
      Cause:  
        It lacks a fastboot disable global reset after vpdtest.
      Fix:
        Perform a fastboot diable global reset after vpdtest.  
        
   Enhancement:
   1. Fix CQ55183 B57Diag: Version display under 'FamVer' is either from V0 or true boot code version if the manu-ID is 1028.
   2. Hide item 11-16, 31 and 32 in secfg if extended vpd exists.
   3. Fix "vpdsecfg" string too long causing display error issue. 
   
Version 14.69 (2011.05.09)
   1. Problem: (CQ54832)
        Output of some TCL's commands were not captured in a log file.
      Cause:  
        The channel to a log file was not created for TCL.
      Fix:
        Add code to create a channel for a log file.  
        
   Enhancement:
   1. Fix "vpdsecfg" string too long causing display error issue.         
        
Version 14.68 (2011.5.03)
   1. Problem (CQ55039)
        UEFIb57diag:5718 fiber run nictest will fail in "G6" with manufacture mode. 
      Fix:
        Remove excessive enable/disable APE CPU.
        
   2. Problem (CQ54872)
        UEFIb57diag:5718 run nictest will hang in "B1" with manufacture mode.  
      Fix:
        Remove excessive enable/disable APE CPU.
        
   Enhancement:
   1. Add vpdinfo support for Snaggletooth.
        
Version 14.67 (2011.4.14)
   1. Problem (CQ54666)
        B57UEFIDiag: 5718 fails F1 Indirect APE Ctrl Register Test in manufacture Mode. 
      Cause:
        Some APE registers default value will change if management firmware is loaded.
      Fix:
        Remove testing changing R/W bits that will change during test.
        
   2. Problem (CQ54667)
        B57UEFIdiag: 5718 fails D2 PHY Loopback Test. 
      Cause:
        Management firmware changes registers value during D2 test.
      Fix:
        Disable management firmware during D2 test.
        
        
Version 14.66 (2011.4.11)
   1.Problem (CQ52854)
   	   UEFIdiag: 5719 run nictest will failed in "C4" with manufacture mode. 
   	 Cause:    
   	   Management firmware changes registers value during MII registers read/write test.
   	 Fix:
   	   Disable management firmware during C4 MII register test.
   	   
   2.Problem (CQ53583)
   	   UEFIb57diag: If selects a reference device o for test D3 will get failure on Testing Speed 10. 
   	 Cause:    
   	   EMAC mode register was not set to correct speed value when management firmware enabled.
   	 Fix:
   	   Disable management firmware during reference device test.
   	   
   3.Problem (CQ53578)
   	   UEFIb57diag: If selects a reference device o for test D3 will get failure on Testing Speed 10. 
   	 Cause:    
   	   EMAC mode register was not set to correct speed value when management firmware enabled.
   	 Fix:
   	   Disable management firmware during reference device test.
   	   
   4.Problem (CQ53812)
   	   UEFIb57diag: Run reference device for test D3 will get failure on Testing Speed 10. 
   	 Cause:    
   	   EMAC mode register was not set to correct speed value when management firmware enabled.
   	 Fix:
   	   Disable management firmware during reference device test.
   	   
Version 14.65 (2011.3.24)
   1.Problem (CQ53522)
   	   UEFIdiag: Run nictest will failed in A2. Control Register Test Failed. 
   	 Cause:    
   	   Some registers offset have been changed.
   	 Fix:
   	   Apply the new registers offset.
   	   
   2.Problem (CQ53692)
   	   UEFIb57diag:The "DID" on pxe version is incorrect when program combined image- uEFI+ PXE. 
   	 Cause:    
   	   Diag does not access the correct location in nvram to display pxe version if programmed combined
   	   image-uEFI+PXE image.
   	 Fix:
   	   Access the correct address in nvram to display pxe version.
   	   
   3.Problem (CQ52774)
   	   B57diag UEFI version locks up on IBM system. 
   	 Cause:
   	   Use memory base access to read DeviceId causes system lock up.
   	 Fix:    
   	   Use PCI configuration to read deviceId.
   	        
Version 14.64 (2011.3.02)
   1.Problem (CQ52678)
   	   Takes long time(over 3 minutes) to show failed when running nictest d3 without external loopback pluged. 
   	 Fix:    
   	   Reduce the wait for link time.
   	   
   2.Problem (CQ52639)
   	   Error messages displayed when programming selfboot patch by Manufacture command line.
   	 Fix:    
   	   Remove unnecessary warning messages during selfboot patch programming.
   	   
   3.Problem (CQ53001)
   	   NCSI fw can be programed on 5761.
   	 Fix:    
   	   "seprg -a" restrict NC-SI/DASH/Mustang fw on proper devices.
   	   
   4.Problem (CQ52982)
   	   B57Diag doesn't show extra file in MBA area with DIR command
   	 Fix:    
   	   Implement code to support FCODE_IMAGE ind the DIR command.
      	   
   5.Problem (CQ51247)
   	   UEFI b57diag: G Group tests are not ran when executing default Nictest for 5719.
   	 Cause:
   	   APE does not restart properly after ape firmware download.
   	 Fix:    
   	   Pefrom a apectl reset after ape firmware download.
   
   6.Problem (CQ53211)
   	   BCM5720: B57diag does not detect ST45PE80 Flash correctly during manual strap mode.
   	 Cause:    
   	   Display typo.
   	 Fix:
   	   Display ST45PE80 Flash correctly in the manual strap mode.
   	   
   7.Problem (CQ53048)
   	   B57diag:Secfg Item 67 Is Displayed For Sawtooth.
   	 Fix:
   	   Hide Item 67 for Sawtooth in the secfg menu.   
      
   Enhancements:
   1. Add support for Snaggletooth.
   2. Add Clause 37 option for Snaggletooth.
   3. Add Link Idle Mode item in the secfg for Sawtooth/Cotopaxi/Snaggletooth.
   4. Add Force Expansion ROM Advertisement Configuration item in the secfg for Sawtooth/Cotopaxi/Snaggletooth. 
   5. Add sysop option.
   	   
Version 14.63 (2011.2.01)
   1.Problem (CQ52636)
   	   A2 Control Register test fails in Manufacturing Mode. 
   	 Cause:
   	   Some RO status bit will change during test.
   	 Fix:    
   	   Remove testing changing RO status bits that will change during test. 
   	   
Version 14.62 (2011.1.27)
   1.Problem (CQ52492)
   	   b57diag will hang at C2 test on a Dell 690 system on the middle PCI-E x4 slot. 
   	 Cause:
   	   This is time sensitive problem.  PCIE trace shows that the memory read is not 
       complete and has payload error; The system hang is due to immediately memory 
       read after CPMU SW reset in chip global reset routine.
   	 Fix:    
   	   Add some delay after CPMU SW reset. 
   	   
Version 14.61 (2011.1.24)
   1.Problem (CQ52434)
   	   5717 NIC failed Nictest C2 CPU test due to mutex error, it is only 
   	   be seen when EEE enabled. 
   	 Cause:
   	   If EEE is enabled in one port, that CPU will request/release
   	   mutex frequently to check link status.  When B57diag halting the target
   	   port during the CPU test, the other port is still running and locking/
   	   unlocking Mutex.  As a result, the CPU test failed because CPU.bin 
   	   tests all the Mutex bits and registers. 
   	 Fix:    
   	   Before running cpu.bin, halt every CPU on the same board, then reset
   	   mutex block;  after the test, reset all CPUs and reset all NVRAV blocks
   	   on same board. 

   2.Problem (CQ52465)
       5718 Fails G2 APE CPU Packet Test 
     Fix:
       Only do a chip reset if it is in serdes mode.

   3.Problem (CQ50550)
       5715 "nictest" failed in "A5"PCI Cfg Registed Test.
     Fix:
       Do not set BIT_29 for 5715 in GRC reset.

Version 14.60 (2011.1.19)
   1.Problem (CQ50074)
       After exiting b57uefi-diag. the drivers wont be unloaded.
     Cause:
       b57uefi-diag should unload uefi driver if it is loaded to avoid h/w access contention. 
     Fix:
       Added code to unload EFI drivers before exiting UEFIdiag.
       
   2.Problem (CQ52188)
       Downgrading Bootcode with Multi_SDID support for 5718 Causes a Checksum Error.
     Cause:
       The 2nd manufacture regions in NVRAM is not updated correctly due to New/Old NVRAM layout change. 
     Fix:
       Update 2nd manufacture region accordingly to the bootcode format.
       
   3.Problem (CQ50127)
       5718 B0 fails Nictest G7 APE CPU GRC Reset Test after programming Firmware from Script.
     Fix:
       Extended waiting time for the APE CPU to finish reset.
       
   4.Problem (CQ50229)
       5718B0 Fiber port 0 run nictest will failed in "G2". 
     Fix:
       Add code to support Fiber mode in G2. 
   
   5.Problem (CQ52121)
       The Subsystem Device ID will get 0000 when program image from dump image.
     Cause:
       The 2nd manufacture regions in NVRAM is not updated correctly due to New/Old NVRAM layout change. 
     Fix:
       Update 2nd manufacture region accordingly to the bootcode format.
       
   Enhancements:
   1. Improve the timing when testing D3 with a reference card during multiple iterations.
   2. Skip D1 (MAC loopback) for Sawtooth and Cotopaxi.
   
Version 14.21 (2011.1.6)
   1.Problem (CQ52057)
       Aspen B0: b57diag fails to enumerate device when otp is blank.
     Cause:
       Default clock setting may hit corner cases in some platform.
     Fix:
       Implement a workaround to select a better clock source when otp is blank.
       
   2.Problem (CQ51345)
       Add an option to program ISCSI block on all 4 ports when user programs the iSCSI boot firmware with iscsiprg command.
     Fix:
       By default to program iscsi blck on all the ports.
       
   3.Problem (CQ51346)
       Make the configure defult as IPv4 when b57diag configures the iSCSI config block. 
     Fix:
       Make Ipv4 as the default setting in the iscsi config block.
       
   4.Problem (CQ51518)
       Cotopaxi Fails Nictest D1 MAC Loopback Test. 
     Fix:
       Set correct parameters to enable Nictest D1. 
          
   Enhancements:
   1. Add multiple SDID support.
   2. Prompt the test operator to enter the mac address for every UUT when using -n, -m and -automac options.
   
Version 14.20 (2010.12.16)
   1.Problem (CQ51735)
       DID command show incorrect otp version for 57781B0.
     Fix:
       Use chip revision to display otp version.
       
   2.Problem (CQ51684)
       The "phyctrl" command doesn't work.
     Fix:
       Roll back to the old Phyctrl function.
  
Version 14.19 (2010.12.14)
   Enhancements:
    1. Replace the 'nvmcfg' command with using other commands 'dump_all_cfg' and
       'source'. The command 'dump_all_cfg' can dump configurations for all 
       devices detected into one file. The output file is a TCL script.
    2. Removed an out-of-date workaround that caused Tcl interpreter failed to 
       read data from a file.
    3. Add 'secfg' item 82 to control Gen1/Gen2, This change is applicable to 
       5717/5718/5719/5720. 
    4. Skip D1 (MAC loopback) for 57765 series.
    5. Release first working APE diag for 5719 ad5719.bin version 2.1.0.  
    6. Remove unused files from release directory; add newer firmwares that are
       used by b57diag into release sub folders.
       
Version 14.17 (2010.12.08)
   1.Problem (CQ50230)
       5718B0 fiber run nictest will failed in "D1" without cable. 
     Fix:
       Set correct PHY parameters to enable Nictest D1.

   2.Problem (CQ51514)
       The nictest -e/-n / -i / -b command doesn't work in engineering mode. 
     Cause:
       Command argument count is miss calculated when checking command options.
     Fix:
       Get the correct argument count at checking command options.

   3.Problem (CQ51516)
       The mancfg for all option key doesn't work. 
     Cause:
       Command argument count is miss calculated when checking command options.
     Fix:
       Get the correct argument count at checking command options.
      
Version 14.16 (2010.12.07)
   1.Problem (CQ51245)
       Sechksum will fail if MAC address is programmed on device 2 and 3 for 5719.
     Cause:
       Manfacture region II checksum is not updated after programming. 
     Fix:
       Update checksum accordingly.

   2.Problem (CQ51269)
       Upgrading firmware will reset MAC address and configurations to default on 5719.
     Cause:
       All ports' mac address and configurations are not saved when upgrading firmware.
     Fix:
       Save and restore MAC address and configurations of all ports after upgrading 
       firmware.

   3.Problem (CQ51301)
       UEFI b57diag: A2. Control Register Test failed when run nictest several times. 
     Cause:
       Enable the current measurement and temperature monitor process will start 
       recording in the data registers.
     Fix:
       Avoid setting current measurement and temperature monitor process.

   4.Problem (CQ51319)
       Add EEE option from SECFG menu for 57765x bc.
     Fix:
       Add EEE option in the SECFG menu.

   5.Problem (CQ50742)
       TCL execution issues with b57diag.
     Cause:
       TCL command is not reloaded and executed correctly in every loop iteration.
     Fix:
       Save and restore TCL command after each loop iteration.

   Enhancement:
   1. Add -lapp command.
   2. Add ISCSI programming for Cotopaxi.
   3. Dump NVRAM image with no address translation for bench programmer environment.
      
Version 14.15 (2010.11.18)
   1.Problem (CQ50976)
       Upgrading and Downgrading Aspen OTP patch will cause B57diag to hang.
     Cause:
       Caused by the wrong logic on sorting patches when comparing to the input image. 
     Fix:
       Re-write the code to sort patches.

   2.Problem (CQ50875)
       "All Sub Device Id" configration can't be changed when program from otp or dump image.
     Cause:
       Changed the default IDs to 0x0 when trying to overwrite the existing 
       IDs, which caused this problem.
     Fix:
       Do not regard the default IDs as 0x0 if the fields of IDs were already used.


   3.Problem (CQ50300)
       The b57diag reports incorrect NVRAM type with 4M/8M parts after programm bootcode.

     Cause:
       The 2M/4M/8M parts share same pin strap as the 2M part. Instead of using pin 
       strap, We use special method to determine the actual NVRAM size and write the 
       size to NVRAM location 0xf0. 'semode' command read the NVRAM location 0xf0 to get
       the NVRAM size. Bootcode programming can wipe out the value in 0xf0 that is 
       calculated during chip init. 'semode' will get incorrect NVRAM size after that.
     Fix:
        Recalculate and update the NVRAM location 0xf0 with the correct NVRAM size after 
        program bootcode.

   4.Problem (CQ50872)
       Programming Selfboot on Device 0 in Manufacture mode will clear MAC and config on 
       Sawtooth Device 1.
     Cause:
       MAC and configuration data of device 1 is not saved.
     Fix:
       Save device 1's MAC and configuration data.

   5.Problem (CQ50873)
       Programming Bootcode on device 0 from manufacturing mode will cause device 1 
       configurations to reset to default.
     Cause:
       The device 1's configuration data is not saved.
     Fix:
       Save device 1's MAC and configuration data.

   6.Problem (CQ51067)
       B57 diag can not program MAC addresses for each port - BCM95719A1900G.
     Cause:
       MAC addresses of other port is not saved.
     Fix:
       Save other port's MAC addresses.

   Enhancement:
   1. Add -lmac -automac and -macnum commands.
   2. Fix CQ50704.
   3. Add 4M/8M NVRAM support for Cotopaxi.
   4. Add OTP write verify_done checking and -otpwrtchk options.

Version 14.14 (2010.11.05)
   1.Problem (CA50689)
       Incorrect OTP patch version is displayed after upgrading and downgrading
       multiple times.
     Cause:
       Logic problem
     Fix:
       Correct the code logic.

   2.Problem (CQ49873)
       After MBA is programmed, 5717 NVRAM can be lockup on a specific system.
     Cause:
       B57diag disable rxCPU fastboot, so when there is GRC reset, rxCPU will 
       need to fetch code from NVRAM.  NVRAM lock up is due to timing when both
       port rxCPU hitting nvram right after ctrl-alt-del.
     Fix:
       The workaround is to not disable fastboot in B57diag for 5717.

   3.Problem (CQ50518)
       5718B0 port 1 sechksum will fail after iscsiprg" and "iscsiprg -v",
       the problem only be seen on port 1.
     Cause:
       Previous b57diag programs second port ISCSI CFG with the length 4B 
       shorter than the first port, that caused the chksum was not programmed 
       correctly.
     Fix:
       Program 2nd port ISCSI CFG with correct length.

   4.Problem (CQ50868)
       Changing Option H in secfg will also change G for Aspen OTP
     Cause:
       Previous b57diag use incorrect area.
     Fix:
       Use correct area for the option H and G.

   Enhancement:
   1. Support 57765/57785/57795 dummy device ID 0x16A3.
   2. Assign the Fiber PHY address for 5718.
   3. Support new OTP write procedure.
   
Version 14.13 (2010.10.27)
   1.Problem (CQ50395) 
       Unable to modify "VPD Data" from secfg on 5718 sb. 
     Fix: 
       add option 'f' for VPD configuration back to 'secfg' menu.
       
   2.Problem (CQ50475) 
       UEFI b57diag: To do "sedump" then show "Cannot open 204.bin". 
     Fix: 
       Use the correct file attribute when writing to sedump files.
       
   3.Problem (CQ50478) 
       UEFI b57diag: To do "upgfrm" from otp:v2.03i to 2.04 will show "Diffed @ 9". 
     Cause: 
       Pointer casting error. 
     Fix: 
       Use the correct pointer casting for Aspen.
   
   4.Problem (CQ50480) 
       The card readers does not categorize by device when plug in two ASPEN cards.
     Fix: 
       Resorting the ASPEN devices accordingly.
      
   5.Problem (CQ50498) 
       UEFI b57diag:: Nictest does not stop if "Ctrl+C or ESC" to aborted testing when running multiple iterations. 
     Cause: 
       The stop condition is not cleared when error occurs. 
     Fix: 
       Set the stop condition correctly.
           
   6.Problem (CQ50520) 
       UEFI b57diag: Change item 76/ 77/ 78 to disabled in secfg will casue diag crash when type "dev -r".
     Cause: 
       UEFI does not rescan the devices. 
     Fix: 
       The workaround to this problem is to do a sanity check by reading VID and DID. Any enabled and working device will return its 
       VID and DID as normal. But if the device is disabled, all F's will be read. So, UEFIdiag can check if it is disabled or not.
       
   7.Problem (CQ50582) 
       B57diag: Unable to set bit 23 of reg0x3668 in B57diag. 
     Cause: 
       Missing CR_ACT_LED options in the legacy boot and selfboot config menu. 
     Fix: 
       Add CR_ACT_LED item in the config menu.
        
   Enhancement:
   1. Update "sedump -f filename.bin" for Aspen devices.
   2. CQ48450 To modify EEPROM WP control pin from GPIO1 to GPIO0 in B57diag.
   3. CQ49633 To assign GPIO0 to control EEPROM WP on 48-pin Aspen devices.
   4. Update "sever" command to return boot code version. 
   5. CQ49890 Add the ability to select the number of MSI-X vectors in NVRAM for Sawtooth.
   6. CQ50456 Remove EEE option from SECFG menu for 5718 sb.
   
Version 14.12 (2010.10.15)
   1.Problem (CQ49974)
     OTP will get Mismatched OTP data when compared to file when upgrading a 
     dump'd selfboot image. 
       
   2.Problem (CQ50330)
     Manufacture programming a sedump'd otp image will fail .

   3.Problem (CQ50160)
       Program bootcode will failed under manufacturing mode.
     Cause:
       Update the Manufacturing information II region's mac addresses causes 
       the NVRAM content check failure.
     Fix:
       Only update the mac addresses in the manufacture Information II for 
       5719 device.
  	    
  4.Problem (CQ49541)
      B57diag failed to display 'qstat' correctly.
    Cause:
      The program only terminates one port from transmitting instead of both
      ports. This will cause the qstat displayed incorrectly.
    Fix:
      B57diag will terminates both ports from transmitting further packets 
      after the ESC key is pressed.
        
   5.Problem (CQ50361, CQ50396, Cq50393)
       Unable to program Dash firmware using "seprg -a -k450 5761tm1.43". When 
       above command is executed with 14.15.04 diag, 'RSA verification error'
       is displayed.
     Cause:
       Memory corruption that introduced by recent code change.  
     Fix:
       Allocate correct size of memory to avoid the memory corruption.  This 
       fix also relate the system crash or hang that reported in other CQs.
        
   6.Problem (CQ50038, 50433, 50394)
       B57diag is unable to program sb_patch on 5718 B0 chip.
     Cause:
       Previous version didn't has the Selfboot rev 6 support that is required 
       for 5717/5718 B0 chip.
     Fix:
       Added Selfboot Rev 6 support.

   7.Enhancement
       Support ST45PE 2M/4M/8M parts.
       
   	    
Version 14.11 (2010.09.09)
  1. Enhancement:
       Added xD CIS restoration support. 
       Two command can be used to complete the task:
       	 a. Generate the CIS file.  This step is optional if you have the CIS 
       	    file already.  You can use a xD card that has good CIS block, issue
       	    command 'xd -i -fxx' to generate the CIS file.  xx is the file name. 
       	 b. Write the CIS data into xD card.  Please use command "xd -w0 -b0 -l0 
       	    -e -s32 -fcis_mp1g.txt ".  Press 'y' after you see the prompt "Are you
       	    sure to write to the CIS block?".  Please note, if the CIS block is 
       	    not 0, you need to change the option '-b' with CIS block number.

  2. Based on LSI design change, modified b57diag to support the new pin strap 
     for the Atmel 4M/8M and ST 4M/8M parts.  

  3. Problem (CQ49805)
       b57diag64 will show "Global Resetting CHIP...**Error** when I disabled the
       xD function.
     Cause:
       When xD is disabled, all registers are FFs include interrupt status 
       register, when ISR is called, interrupt messages are printed.
     Fix:
       Disabled xD ISR if the xD is disabled.

  4. Problem (CQ49808)
       In secfg menu, there have item 76 (MS) and 77 (SD) on b57761 but the NIC 
       card didn't have card reader support.
     Cause:
       Previous b57diag shows the configuration item if the device belongs to 
       57785 family.
     Fix:
       Change the b57diag to show the items only when the device have card 
       reader support.

Version 14.10 (2010.09.03)

  1. Problem (CQ49619)
       mancfg -i<filename.cfg> would fail to import configuration records.
     Cause:
       mancfg -i treated all import files as though they were in .ini format.
     Change:
       Fixed file extension detection logic.

  2. Problem (CQ48405)
  	   With a 5787m that programmed with selfboot code, the nictest "C8" 
  	   failed after command "setwol -e".
  	 Fix:
  	   Overwrote another dword following CRC when running the command of 
  	   'setwol -e' to enable WOL

  3. Enhancement (CQ48450)  	  
       Current EEPROM WP control is done by GPIO1 and the same pin is used 
       for other critical function on 57765 series.  Therefore, suggested
       to change the control pin to GPIO0 for LOM applications.  This fix 
       should apply to B0 only.  A0 needs GPIO0 for over current protection 
       function.
     Fix:
        Use GPIO0 for WP control. For other chips still use GPIO1.

  4. Enhancement
       . Added support for importing management config.ini files using mancfg
         -A, -M, or -R.
       . Support PLDM state sensor polling using B57diag 'apectl -s<sensorID>'.
  	   . for multi ports device like 5718 or 5719,  we use different mutex
  	     register pair for PHY reset of each port.  

  5. xD Card reader enhancement:
 	   . Read back one page to compare after write data into xD 
 	     card to make sure the data in xD card is what we expected.
 	   . Print out error message if error related interrupt received.  
 	   . check if the block is good before write.
 	   . add software ECC ability. 	   

  6. Problem:
       With three party running together (b57diag, BC, and NCSI), mutex lock
       occurs sometimes. 
     Cause:
       This is time sensitive problem.  When multiply party running, there
       is higher possibility that the mutex get locked because there are so many 
       things happen together, halt rx cpu, halt ape cpu, reboot BC, reboot NCSI, 
       mutex request and grant.
     Fix:
       Change the code to reset mutex block wherever the Rx CPU or APE-CPU get
       halted.     

  7. Problem (CQ49619)       
       To  import config record(s) from cfg data file will show 0 configuration 
       records imported from xx.cfg
     Cause:
       Incorrect import file name extension parsing logic - was treating all files 
       as though they were ".ini" format.
     Fix:
       fixed the parsing logic.

  8. Enhancement (CQ49691)       
	   Add option 77 and 78 in 'secfg' to disable/enable SD/xD functions.
	   
Version 14.09 (2010.8.12)
  Fix:
  1. Problem (CQ49291)
       Please hide the card reader SSID options in OTP's secfg menu for Aspen non-card reader skus.
     Cause:
       B57diag does not differentiate non-card reader skus with card reader skus.
     Fix:
       Display SSID info according to different Aspen skus.

  2. Problem
        PHY loopback failure on 5718 port0.
     Cause:
        B57diag resets adapter when loadd driver.  During the reset, existing 
        b57diag read 3664 to determine if the port is serdes or copper.  But during 
        reset, port 0 3664[5] is cleared somehow so the phy_id get changed from 8 
        to 1.
     Fix:
        Don't use shard memory to determine the phy type for sawtooth.

  3. Problem (CQ45405)
       B57Diag: 5718 fails C group test in Manufacturing Mode on second port.
     Cause:
        global.optSWRestCPMU gets set to TRUE after port 0 has been run.
     Fix:
       Move the original fix from test_doAllTests to startAllTests.

  4. Problem (CQ49191)
      Invalid Character is displayed in ISCSI Boot version in the NVRAM 
      Directory.
     Cause:
       String pointer is not correctly aligned. It is the same issue as in CQ31958.
     Fix:
       Include Aspen family for the CQ31958 fix.
       
  5. Problem (CQ48606)
      B57diag doesn't update ROMHDR checksum correctly when option "-n" is used.
     Cause:
       Changed the configuration data after generating and updated CRC.
     Fix:
       To change the specific configuration data before updating CRC.

  Enhancement:
  1. Fix CQ48864 Display Family Version of Firmware for OEM system.
  2. Fix CQ49077 Add sub system device ID for the card reader functions in nvram config menu.
  3. Fix CQ48401 OTPChk will show a blank red dialog with appropriate warning text, if NIC is configured for EEPROM.
  4. Support new Aspen B0 changes.
  
Version 14.08 (06/14/2010)
  1. Problem (CQ48282):
       NCSI pass through traffic is stopped after 'loadd' command.
     Cause:
       "Enable APE TX/RX path" setting is reset during 'loadd'.  It caused the 
       traffic stopped.
     Fix:
       If the device has Ape, preserve APE tx/rx path setting after 'loadd'; 
       
  2. Problem (CQ48292)
       5718 Bootcode: BC v1.18 fails b57diag PCI Cfg  Register Test;  
     Cause:
       In bc V1.18, the Function Level Reset is enabled by default in each 
       Function. With Function Level Reset is enabled, set bit 15 of the Reg 
       0xB4 will reset the Function and resulting in losing the Host memory 
       access.  That means, B57diag cannot access registers via memory access. 
       During Nictest A5, B57diag will set Bit 15 of Reg 0xB4 and reset the 
       function.  Reg 0xB4 also get reset and then fail the test.  
     Fix:
       Skip writing 1 to Bit 15 of Reg 0xB4.

Version 14.07 (06/10/2010)
   1. Problem (CQ47938)
       5785: 50612 PHY Failed to link at 10M speed.
      Cause:
       GPHY RXC clock is running at incorrect speed (25MHz instead of 2.5MHz)
       when GPHY Inband function is enabled and device is linked at 10Mbps.
      Fix:
       Forced RXC to 2.5MHz when device is linked at 10Mbps.

   2. Problem (CQ48141)
       5785: 50612 Link Flap while setting the speed to 100M.
      Cause:
       GreenMode is enabled with force link at 100Mbps.
      Fix:
       Disable EEE advertisement and autogreen mode when speed is forced at
       100F/100H.

   3. Problem (CQ48003)
        Run nictest on 5724 will failed in "G2" APE packet loopback test.
      Cause:
        5724 only have one port while ad5717.bin test two port if it is
        5717 device family.
      Fix;
        Only test one port if it is 5724 device in ad5717.bin.
        released new ad5717.bin v2.06.
        
    4. Enhancement:
        . Display apediag firmware filename and version if APE test involved.
        . Display card's Serdes mode info in command "showcurrcard".
        . Add code to shorten the search time to discovering 50612 PHY address.

Version 14.06 (05/17/2010)
   1.  Problem (CQ46233): executing nictest with -n cause extra iteration.
       Fix: Remove the duplicated loop in TCL engine.
   2.  Fixed CQ47033, 
         program 57761/57765 ASF v8.16 will show "Management Firmware 
         is incompatible with this device".
   3.  Fixed the problem that selfboot device MAC address is not updated 
       correctly when execute 'secfg'.
   4.  Fix CQ46756:
         5717 bc ee5717c1.11 can be programmed to 5718A0 adapter.
   5.  Enhancement:
         Added secfg menu item 60 and 61 for NVRAM and image configuration. 
         Item 60 is for NC-SI package ID assignment method while item 61 is 
         for NC-SI package ID assigned value.
   6.  Enhancement:
         In 'seprg', if selfboot bc will be programmed and the device had 
         legacy bootcod, reserve the NVRAM configuration for selfboot code;
         If legacy bootcode will be programmed and the deice had selfboot 
         code, reserve the NVARM configuration for legacy bootcode.
   7.  Enhancement:
         Support 2nd port selfboot NVRAM configuration in 'secfgsb1'.
   8.  Problem cq40856:
         Testing some CPMU register can cause system hang/crash in a specific
         slot of a specific system.  The problem is not seen on other slots,
         or other systems. 
       Cause:
         These registers on port 1 relate with TLP clock control. It's 
         possible that some modification of those registers can end up having
         too slow a clock.  Depending on the test and the slot, a slow TLP 
         clock can be a problem.  
       Fix:
         Skip register 361c, 3624, and 3628.   
   9.  Problem (CQ47306):
         B57diag v12.41 and later will print an error when '-fmac' is used to 
         program OTP.
       Cause: Previous b57diag loaded the mac address from the -f file instead
         from the '-fmac' file.
       Fix: Add code to load the mac address from -fmac file.
   10. Enhancement:
         . Support programming 57780 OTP image v2.07. 
         . Support 50612E PHY in 'inband' command.
         . Update 50612E Mii Register table.
         . Update 50612E EMAC_PHY pattern.
   11. Enhancement:
         5717/5718 A0 chip cannot access shared memory directly from port1; 
         Rev B0 has fixed the problem, so we allow direct shared memory test 
         from port1.
   12. Problem: UEFI diag cannot display ASF and SMBIOS table correctly.
   	   Fix: Import ASF! and SMBIOS Table from EFI Config Table.
   13. Problem (CQ47520)
         57785 with OTP, reset -c failed and error message displayed if the MAC
         address maximum times is reached.
       Cause: During reset -c scenario, b57diag does not use the correct 
         OTP format for 57785. 
       Fix: Use the correct OTP format for Aspen series chip.
   14. Problem (CQ47509)
         B57diag allows programming ASF on 57785x device. 
       Cause: Program does not block programming ASF on 57785x device. 
       Fix: 
         Display error messages when programming ASF on 57785x device.

Version 14.05 (04/06/2010)
  1.  Added security library to support management firmware. 
  2.  Fix CQ46178 - 57765 "upg" the same otp will display "Error : Not enough 
      space in OTP".
  3.  Fix CQ46177 - 5704s prg bc will display mismatch device family.
  4.  Added 5717 selfboot support,  and 'secfg' for both 5717 ports.
  5.  Fixed the problem that b57diag cannot program SB image larger than 256B
      into NVRAM.
  6.  Support selfboot link aware mode and link idle mode on devices (5784, 
      5764, 5785, 57780, 57760, 57790, 5717, 5718, 5724), and 5717 port1.      
  7.  Skip C4(MII register test) , D5 (PHY interrupt test),   External loopback 
      at 10M and 100M if the port is 5717 Serdes.
  8.  Fixed the problem of Serdes link down after load driver.
  9.  Recognize 57788 by the latest Device ID stored in OTP.
  10. Fixed the problem that Config3 of SBII was not updated correctly when 
      programming SBII image into OTP.      
  11. Modify "apeinfo" commands to support 5717:
          "apeinfo -n" - shows NCSI firmware persistent data;
          "apeinfo -A" - shows various apeinfo commands related to 5717
  12. Support 50612E PHY 
  13. Resolved CQ46975. ASF firmware for 5785 cannot be program on 57765 and 
      vice-versa.


Version 14.04 (02/17/2010)
  1. Support dummy device support with device id 0x160A.
  2. After executing script file, return back to the prompt.
  3. Corrected the broken logic when running the command of 'otpchk -f' on Cilai devices.
  4. Fixed problem that some commands could not show the correct MAC address and firmware version of OTP image for Aspen

Version 14.03 (01/27/10)
  1. Fix CQ44791 - Sawtooth failed to run nictest on port2 without a link.
  2. Fix CQ45330 - v14.00.11 prg bc cannot open file.
  3. Fix CQ45351 - prg sb will display incorrect sb ver and MAC in 57785/
     57785x. 
  4. fixed cq43867;  changed the Aspen CR MAC and BC to N/A when display device;
  5. Fix CQ45273 -prg sb will display incorrect version
  6. fixed 5717 port 1 interrupt failure (A3).
  7. fixed Cq45277, Cq45048, Cq45076, inconsistent F6 and F7 failure: 
  8. Added MS_En bit support for 57765.  It is used to enable/disable Memory 
     stick (function 2).  It is item 76 in secfg, 1-enable and 0-disable.

Version 14.02 (01/08/10)
  1. Problem:
       Print problem when aboart a long output. E.g. "help mii" prints out the 
       mii commands.  Then "help" and after the first page of output, 
       hit "escape" to stop the listing. It stops, and then *redisplays* 
       the mii info.
     Cause:
       New tcl engine didn't process the abord command that generated by 'ESC'. 
     Fixed:
       If the 'ESC' is pressed during the command output, let TCL return 
       without error.

  2. Fix CQ45111 - b57diag should stop programming otp patch if the OTP 
     space is full.

  3. Fix CQ45107 - 5704 shows the wrong NVRAM size.
  4. Fix CQ45092 - Display the wrong major version if selfboot image is
     format 0.

  5. Fix CQ45210 - The command of 'setwol -e' caused CRC error(show unkn)
     in config block with SB1.01

  6. Fix CQ44770 - The default Sub Vendor ID in the warning message is 
     incorrect, should be 14E4.

  7. Fix CQ44771 - Failed to go back to default value if Sub-VID maximum 
     times in 'secfg' is reached then attempt forced.   

  8. Fix CQ45095 - A failure in sechksum will cause the previous command 
     to be automatically executed.

  9. Fix CQ44329 - Please hide "PHY Auto Powerdown" option from SECFG menu 
     when OTP is used

 10. Fix CQ44356 - Extend the length of the string within the batch file. 
                   The current text string command within the batch file can 
                   take up to ~128 characters MAX (including space).




Version 14.01 (12/18/09)
  1. Changed the SD/MMC Card Detect Polarity bit definition: 
     0b : Active Low (internal chip pull-up is activated)
     1b : Active High (internal chip pull-down is activated)

  2. Fixed cq44947 
     Problem: 57765 does not see the SD/MS devices in UEFI;
     Fix:  Add the SD/MS discovery in UEFI.

  3. Fixed A1 (indirect register test) failure on 5784.

  4. Fix CQ44973 - Unable detect correct 57765 NVRAM type
  5. Fix CQ44972 - Can not show correct NVRAM type for U303 on 57765 NIC
  6. Fix CQ44948 - nictest will fail "C7" under NX1 legacy card.
  7  Fix the system hang caused by "setbit" and "clearbit" commands
  8. Enhance the stability of the command interface with the merge 
     of TCL engine.

Version 14.00 (12/11/09)

  1. Added 5717/5718 chip support;
  2. Added 57765/57761/57785/57781/57795/57791 chip support;
  3. Add 'seotp -v' and 'seotp -rx' to get the current revision and update the current
     revision to x for 57765 .
  4. Support the new way to store/manipulate the patch length, revision and magic 
     signature for 57765.
  5. Fix CQ44474 - failed to program iSCSI image for 5717. 
  6. Added extended directory support for advanced management firmware.
  7. Enhancement:
         Previous code used register 6804 value to determine the chip type, it 
         generated a lot register reads;  Enhancement is made to eliminate the 
         reads to improve the performance.


Version 12.40 (10/09/09)  
    Updated release to incorporate changes from DOS B57diag v12.41, v12.40, 
    v12.19, and v12.18:

    Changes from DOS B57diag version 12.41
    --------------------------------------
      Fix:
      1. Problem (CQ43709)
           The system will hang when attempting to read otp content on a specific platform.

         Cause:
           The index to memory was corrupted.

         Fix:
           Changed code to correct the index to read.

      2. Problem (CQ43817)
           C8 test failed with certain MAC address.

         Cause:  
           ROM loader setup the starting address to store the testing image in SRAM based on the MAC address.

         Fix:
           Change code to decide the starting address based on device ID only.  

      3. Problem (CQ43645)
           Error message displayed if OTP mem is not blank when programming 
           image without '-n' option.

         Cause:
           Without '-n', the original configuration and ID's will be remained. 
           That means those data might be different from the input image. 
           This problem was caused from comparing both. 
         Fix:
           Added code to avoid comparing configuration block if the '-n'
           option is specified.  

      4. Problem (CQ43308):
           Checking selfbootII OTP Content failed while programming customer 
           platform with 57790A1 OTP.
         Cause:
           It was caused by the uninitialized memory block that hold OTP data.
         Fix:
           Initialized and zeroed out array block before using it.

      Enhancements:
      1. Update the usage of the command 'otpchk' as below.

          usage: otpchk 
          Option:
            -n          Do not check configurations and all IDs.
            -m          Do not check MAC
            -l<HEX>     Iteration (def=00000001)
            -f<string>  filename

      2. CQ42758 - Please add a command line command to print out the SECFG menu.

      3. CQ43894 - Add a new option  -run "<cmd> [option]"  to run a single command with its options. 
                   in the manufacturing mode.


         For example, to execute the command of otpchk with a specific image without checking the configuation.

         b57diag -run "otpchk -f otpfile -n"

         Another example, to dump the NVRAM image to a file.

         b57diag -run "sedump -f dumpfile"

      4. CQ43159 - Creating MBA releases with UEFI drivers inside should not be device specific.

    Changes from DOS B57diag version 12.40
    --------------------------------------
      1. Enhancement:  
           Add an option '-y' for command 'blast' to page down the statistics 
           counters automatically from page 0 to 7.  The reason to add this option
           is for the dead USB keyboard since of the legacy USB device sharing 
           the same interrupt with 5785 on the AMD motherboard.

      2. Enhancement:
           Continue to get 5761 event log entries even if get event fails for some.

      3. Problem (CQ43308):
           Checking selfbootII OTP Content failed while programming customer 
           platform with 57790A1 OTP.
         Cause:
           It was caused by the uninitialized memory block that hold OTP data.
         Fix:
           Initialized and zeroed out array block before using it.

      4. Enhancement:
           . Added Tcl support for B57diag.  
           . Renamed 'read' command to 'rread'.
           . Added option '-rc <filename>' to 'b57diag': Specify a script file
             to source after starting b57diag.
           . 'write' and 'rwrite' commands are same.

      5. Enhancement for command 'mancfg':
           . Added '-t' option. It allows specifying a specific
             record type (e.g. to view, with '-v'), this must be used with the (new) 
             -I (import data file) command, and may be used with the -r, -e, and -u 
             commands.  The old -rXX, -eXX, -uXX syntax (where XX is a record type in 
             hexadecimal) is still supported for backwards compatibility.
           . Added the -I command to import data files, automatically detected PEM 
             certificate files and decoding them accordingly.
           . Added option '-V', view cfg record headers and data.

      6. Enhancement:
           Change the 'otpchk' command to compare the configuration bits and all IDs
           (DID, SSID and SVID) by default. The option '-m' will compare MAC address 
           in addition.

    Changes from DOS B57diag version 12.19
    --------------------------------------
      1. Enhanced the solution to CQ43709 introduced in v12.18

    Changes from DOS B57diag version 12.18
    --------------------------------------
      Fix:
      1. Problem (CQ43709)
           The system will hang when attempting to read otp content on a specific platform.

         Cause:
           The index to memory was corrupted.

         Fix:
           Changed code to correct the index to read.

      2. Problem (CQ43817)
           C8 test failed with certain MAC address.

         Cause:  
           ROM loader setup the starting address to store the testing image in SRAM based on the MAC address.

         Fix:
           Change code to decide the starting address based on device ID only.  

      Enhancements:
      1. Update the usage of the command 'otpchk' as below.

          usage: otpchk 
          Option:
            -n          Do not check configurations and all IDs.
            -m          Do not check MAC
            -l<HEX>     Iteration (def=00000001)
            -f<string>  filename


+---------------+ Previous Revisions +---------------+

Version 12.04.02 (09/15/09)
     1. Added support for exporting most command outputs to Tcl shell.
     2. Fixed CQ43680 - can't upgrade bootcode using upgfrm -b command.

Version 12.04.01 (09/09/09)
     1. Fixed the way engineering mode command argument parsing when Tcl
        engine is present to be consistent with the one without Tcl engine.
     2. Fixed version 12.04 engineering mode command parameter parsing for 
        the following commands : phyctrl, pmpd, do, fillpattern, erase, 
        msitest, qstat, apectl, debug, pxecpy, rread.
     3. Fixed some version 12.04 engineering commands with multiple iteration 
        option.
     4. Fixed D8 DB SADB Interrupt failure.

  Enhancement:
     1. Added Tcl support.
     
  Note:
     b57diag engineering mode read command has been renamed to rread to avoid 
     conflicts with tcl shell read command.

Version 12.04 (09/02/09)
     1. Fixed CQ43144 - unable to run D3 external loopback test on 5785.
     2. Fixed CQ42183 - should exit gracefully and retain any error messages
        without user intervention.

  Enhancement:
     1. Added Tcl support.

Version 12.03 (07/09/09)
     1. Fixed CQ35732 - Sender/response test failure on 5761.

Version 12.02 (05/27/09)
     1. Fixed CQ40651 - NVRAM size show zero and program MBA firmware fail when two NICs in the SUT.
     2. Fixed CQ40650 - Bootcode upgrade and downgrade fail because of available size is 0.

Known problems/issues with this release:
     1. Some PCI utility commands are not functional.
     2. Not all client management (ASF) utility commands are functional.
     3. Serial port communication is not supported.

Version 12.01 (04/16/09)  
    Updated release to incorporate changes from DOS B57diag v12.02, v12.03 and v12.04:
    See the DOS B57diag release.txt file for information about the changes.

Version 12.00 (04/06/09)  
    The following code changes were picked up from DOS B57diag v12.00 and v12.01:
    1. Add the new command 'otpchk' to verify patches in OTP.  
    2. Revise the algorithm for version upgrade/downgrade in OTP.   
    3. Fix CQ40042 - Patches does not get deactivated after upgrade and downgrade the OTP patch code.    
    4. Fix CQ40182 - Support compare function to verify the content of OTP memory against an OTP image
    5. Fix CQ40183 - Modify SEDUMP to support dumping of OTP memory content for use with CQ40182 otp compare fucntion.
    6. Enhancement request (CQ39405):
          Customer is requesting "Lowest Speed Advertised" equivalent 
          option to 5761 management firmware. 
       Fix:
           Consider driver Vaux speed setting if available.

Version 11.16 (03/09/09)
     1. Fix for CQ39264. Loop Back test failed at G1 on 5761s.
     2. Fix for intermittent G8 GRC reset failure.
     3. Synchronize updates from the latest DOS version release.


Version 11.15 (01/09/09)
     1. Update to support 57760/57780/57790 devices.
     2. Fix for 5714/15 external loopback PHY configuration for Blast and Txpkt commands.
     3. Synchronize updates from the latest DOS version release.

Version 11.14 (10/28/08)
     1. Fix for delay in Phy MII R/W routines. 
     2. Fix for error checking in APE diag firmware load.

Version 11.13 (10/17/2008)
    1. Synchronize code to DOS version. (See B57diag DOS release notes)

Version 11.12 (09/09/2008)
    1. Synchronize code. See B57diag DOS release notes.

Version 11.11 (8/22/2008)
    1. Fix (-asf 1) command line option to enable DASH firmware.
    2. Fix cosmetic problems when programming large NVRAM image.
    3. Synchronize code with latest DOS version.

Version 11.10 (8/6/2008)

    1. Updates to support latest Soledad B0 Bond Id's (IPsec and non-IPSec).
    2. Synchronize code with latest DOS version.

Version 11.09 (05/28/2008)

    1. Fix for CQ35343.
       Problem: UEFI Diag executing nictest, but system hang randomly
       Resolution: Issue is related to DOS diagnostic fixes.  Synchronized code to latest version.
    2. Fix for CQ35550.
       Problem: UEFI Diag - "Mutex register request 0x2c failed" message seen in nictest.
       Resolution: Issue is related to DOS diagnostic fixes.  Synchronized code to latest version.
    3. Fix for CQ35551. 
       Problem: UEFI Diag - NIC 5761m Rework(P7) Loop Back test failed at F group
       Resolution: Issue is related to DOS diagnostic fixes.  Synchronized code to latest version.
    4. Fix for handling very long strings. 

Version 11.08 (05/12/2008)
    1. Fix for CQ34504 
       Problem: Error message in D group test when running nictest in 5906
	 Resolution: Check for Rx receive rules register removed for 5906 (does not exist) 
    2. Fix for CQ35009  
       Problem: DASH - EFI/UEFI Diag can not upgrade DASH firmware V0.95
	 Resolution: Incorporated latest DASH support code to fix problem.
    3. Fix for chksecfg command parsing error.
    4. Added new blast option to disable VLAN tag copy in host loopback mode. 
    5. Added 5761 IPsec tests and support commands.
    6. Updated USB test functionality.  Updated USB test firmware with FAT support.
    7. Incorporated latest DOS diag source updates.  See DOS b57diag release notes for more information.
   
Version 11.07 (03/25/2008)
    1. Fix for CQ34381
       Problem : UEFI diag version 11.06 failed check bond ID in 5721 board.
	 Resolution: Bond ID mask test changed to work with all devices.
    2. Added APE USB device test for 5761/5761E devices.
    3. Removed APE Boot Loader test (redundant).
    4. Added support for APE DASH utility commands, apeinfo and apectl.
    5. Added device support for 5752,5752M,5754,5754M,5755,5755M,5756ME,and 5722

Version 11.06 (3/12/2008) 
    1. Fix for CQ34118. (A5 test failed on 5764m B0). 
    2. Additional device support added for 5761/5761E/5715/5714/5721/5906/5704. 

Version 11.05 (2/29/2008)
    1. Fix for CQ34018.  
       Problem : upgfrm command does not correctly set the checksum in the NVRAM directory.
       Resolution:  Corrected code to add checksum on selfboot format 1 type.
    2. Added code to correctly display shadow on dialog boxes.
    3. Added code to pause after error condition when in manufacturing mode.
    4. Fix EFI display routines for handling console displays larger than 80x25 characters. 

Version 11.04.01 (2/26/2008)
    1. Added support for launching without the EFI Shell.  
    2. Fixed console screen display routines to support unicode screen save and restore.
    3. Fixed 'read' command alignment on displays wider than 80 characters.
    4. This release adds support for BCM5784M, and BCM5764M.

Version 11.01.01 Evaluation Release (1/29/2008)
    1. Updated to UEFI/EFI 2.0x specification.  Added support for x64 (EM64T/x64).
    2. Added support for PCI-E devices (only BCM5787 fully supported in this release).


