Friday, December 23, 2016

Board Transparent Transmission Channel Commands on debugging bsp info

Function

This command is used to query BSP running information in the system.

Format

debugging bsp info

Parameters

None

Modes

Diagnose mode, SSN1GXCSASSN1UXCSA

Level

Operator level

Usage Guidelines

  • In the privilege mode or global config mode, run the diagnose command to enter the Diagnose mode.
  • statistics is hardware status information recorded during the system running and used for fault cause analysis. The statistics includes lastword information, interruption statistics, hardware-layer statistics on the active and standby serial ports, current stack invocation statistics for turning on lights, running tracks before the system reset, link status of the active and standby network ports, ECC statistics, reset causes, IIC statistics, and exceptional stack invoking information.
  • This command is only used to collect abnormal system information. Users are not recommended to perform analysis and processing based on the queried information. If necessary, collect all information output by this command and sent to Huawei for fault location.

Example

To query current BSP running status statistics, do as follows:
huawei(diagnose)%%debugging bsp info
 File                   Line  FirstErrNo LastErrNo  ErrCount
                              TimeBaseH  TimeBaseL  ResetCount

 cplddrv.c              2938  0x815001a2 0x815001a2 1
                              0x0        0x0        1
 cplddrv.c              2816  0x815001a2 0x815001a2 2
                              0x0        0x0        1
 cplddrv.c              2944  0x815001ae 0x815001ae 2190
                              0x0        0x0        1
 bsp_vx_public.c        837   0xffffffff 0xffffffff 1
                              0x0        0x0        1
 dataupdatecheck.c      236   0x81d11005 0x81d11005 1
                              0x0        0x0        1
 bsp_configcommon.c     2514  0x81900ca1 0x81900ca1 2
                              0x0        0x0        1

 Current Interrupt Counts:

 Vec         : 9
 InCount     : 12075
 InMaxCount  : 0
 OutCount    : 12115
 OutMaxCount : 0
 InTime      : 918217347
 OutTime     : 919592167

 Vec         : 17
 InCount     : 17903
 InMaxCount  : 0
 OutCount    : 17903
 OutMaxCount : 0
 InTime      : 922346025
 OutTime     : 930280330

 Vec         : 32
 InCount     : 21508
 InMaxCount  : 0
 OutCount    : 21508
 OutMaxCount : 0
 InTime      : 932945976
 OutTime     : 932946333

 Last Interrupt Counts:


 Uart statistic:

 ulIntAll      = 0x0
 ulIntRx       = 0x0
 ulIntTx       = 0x0
 ulIntOther    = 0x0
 ulRxByte      = 0x0
 ulTxByte      = 0x0
 ulRxDropByte  = 0x0


 g_ulLedNumber = 4
 g_ulLedStackDeep = 10
 g_ulLedTickStep = 25
 g_ulLedInitFlag = 1
 g_ulLedStackCurent = 2

 Show led statistic:

 Index   Level     Run         Alarm       Act_Green   Act_Red
 0       0x100     0xf0f0f0f0  0x0         0x0         0x0

 Led style in stack

 Level : 256
 led     style         curindex  maxindex
 0       0xf0f0f0f     3         32
 1       0xffffffff    4         32
 2       0x80000000    0         32
 3       0x80000000    0         32

 Level : 0
 led     style         curindex  maxindex
 0       0xffffffff    14        32
 1       0x33333333    14        32
 2       0xffffffff    25        32
 3       0xffffffff    25        32

 Display trace code from current to last:

 The trace code is    : 0x[00001111]
 The trace code is    : 0x[00000000]
 The trace code is    : 0x[00000000]
 The trace code is    : 0x[00000000]
 The trace code is    : 0x[00000000]
 The trace code is    : 0x[00000000]
 The trace code is    : 0x[00000000]
 The trace code is    : 0x[00000000]
 The trace code is    : 0x[00000000]
 The trace code is    : 0x[00000000]

 Display eth link state:

 EthType   LinkState
 debug     up
 ms        down


 Show ecc statistic:

 DevName    EccEnState   ErrDetState   Threshold   Count
 DDR        Enable       Enable        1           0

========================Reboot_Rec======================
 Index    RebootCause        Time
  0          Dog         2014-02-21 05:10:08
  1          Dog         2014-03-05 15:04:20
  2          Dog         2014-04-05 08:15:14
  3          Dog         2014-05-04 02:00:00
  4          Dog         2014-06-01 14:08:00
  5          Dog         2014-06-08 00:00:00
  6          Man         2014-07-04 02:00:00
  7          Power       2014-07-05 08:15:14
  8          Dog         2014-07-05 15:04:20
  9          Dog         2014-09-21 05:10:08
 =====================End of Reboot_Rec==================

 ===================Update check record==================
 Index       CheckCondition
  0          NOT_LOAD_NEW
  1          NOT_LOAD_NEW
  2          NOT_LOAD_NEW
  3          NOT_LOAD_NEW
  4          NOT_LOAD_NEW
  5          NOT_LOAD_NEW
  6          NOT_LOAD_NEW
  7          NOT_LOAD_NEW
  8          NOT_LOAD_NEW
  9          NO_UPDATE_TOOL
 ================End of update check record============== 

 =====================IIC_Statistic===================

 DevName         BusId DevId ReadLen      ReadActLen   WriteLen     WriteActLen
 LM75_0          0     6     0x8f0        0x8f0        0x0          0x0
 LM75_1          0     7     0x0          0x0          0x0          0x0
 PMC8380         0     8     0x19c        0x19c        0x19c        0x19c
 E2PROM          1     5     0x0          0x0          0x0          0x0
 SFP0            2     1     0x0          0x0          0x0          0x0
 SFP1            2     2     0x0          0x0          0x0          0x0
 SFP2            2     3     0x0          0x0          0x0          0x0
 SFP3            2     4     0x0          0x0          0x0          0x0
 DevName         BusId DevId OperateOK    SemTakeErr   TimeOutErr   ParaErr
 LM75_0          0     6     0x478        0x0          0x0          0x0
 LM75_1          0     7     0x0          0x0          0x0          0x0
 PMC8380         0     8     0x338        0x0          0x0          0x0
 E2PROM          1     5     0x0          0x0          0x0          0x0
 SFP0            2     1     0x0          0x0          0x0          0x0
 SFP1            2     2     0x0          0x0          0x0          0x0
 SFP2            2     3     0x0          0x0          0x0          0x0
 SFP3            2     4     0x0          0x0          0x0          0x0
 =================End of IIC_Statistic================

    Last reset in TASK, ID : 0x08c762c0
Reset CpuTick    : = 0x00000005 1a091978
PC point = 0x023c8830 in TASK when the board reset.

    Print layers of TASK stack when the board reset:
023c882c
02438ea0
02438fc8
02458328
02ca5c68
00000000
    Parsing the ESF struct in INT stack
copy of sp          = 0x08c8bf00
vector offset       = 0x00000200
error  no           = 0x000000b4
dear                = 0x00000000
esr                 = 0x80000000
 LastReset by WathDog
instruc reg         = 0x023c779c
Register contents.
r0     =  23c882c   sp     =  8c8bf00   r2     =        0   r3     =  2029230
r4     =  2001230   r5     =  8c8bef8   r6     =        4   r7     =        0
r8     =  e147490   r9     = 31800010   r10    =  e15a890   r11    =  8c8bef0
r12    = 24000044   r13    =        0   r14    =        0   r15    =        0
r16    =        0   r17    =        0   r18    =        0   r19    =        0
r20    =        0   r21    =        0   r22    =        0   r23    =        0
r24    =        0   r25    =  7b40000   r26    =  7b40000   r27    =  7b40000
r28    =  7b40000   r29    =  7b40000   r30    =  7b40000   r31    =  6ab0000
msr    =  2001230   lr     =  23c8830   ctr    =   f28188   pc     =  23c8830
cr     = 84000028   xer    = 20000000

    Parsing the ESF struct in EXC stack .
copy of sp          = 0x08c8bf00
vector offset       = 0x00000200
error  no           = 0x000000b4
dear                = 0x00000000
esr                 = 0x80000000
 LastReset by WathDog
instruc reg         = 0x023c779c
Register contents.
r0     =  23c882c   sp     =  8c8bf00   r2     =        0   r3     =  2029230
r4     =  2001230   r5     =  8c8bef8   r6     =        4   r7     =        0
r8     =  e147490   r9     = 31800010   r10    =  e15a890   r11    =  8c8bef0
r12    = 24000044   r13    =        0   r14    =        0   r15    =        0
r16    =        0   r17    =        0   r18    =        0   r19    =        0
r20    =        0   r21    =        0   r22    =        0   r23    =        0
r24    =        0   r25    =  7b40000   r26    =  7b40000   r27    =  7b40000
r28    =  7b40000   r29    =  7b40000   r30    =  7b40000   r31    =  6ab0000
msr    =  2001230   lr     =  23c8830   ctr    =   f28188   pc     =  23c8830
cr     = 84000028   xer    = 20000000

System Response

  • The system displays the queried result when the command runs successfully.
  • The following table describes the parameters in response to this command.
  • Error statistics
    Parameter Description
    File Indicates the file name.
    Line Indicates the line ID.
    FirstErrNo Indicates the first error code.
    LastErrNo Indicates the last error code.
    ErrCount Indicates the error count.
    TimeBaseH Indicates the most significant 16 bits of the last time base counter.
    TimeBaseL Indicates the least significant 16 bits of the last time base counter.
    ResetCount Indicates that the last lastword record is queried.
  • Interruption statistics
    Parameter Description
    Vec Indicates that all lastword records are queried.
    InCount Indicates the interruption times.
    InMaxCount Indicates the maximum interruption times.
    OutCount Indicates the times that the interruption recovers.
    OutMaxCount Indicates the maximum number of times that the interruption recovers.
    InTime Indicates the time when the interruption occurs.
    OutTime Indicates the time when the interruption recovers.
  • Serial port statistics
    Parameter Description
    ulIntAll Indicates the total number of interruptions on the serial port.
    ulIntRx Indicates the number of receive interruptions on the serial port.
    ulIntTx Indicates the number of transmit interruptions on the serial port.
    ulIntOther Indicates the number of interruptions except receive and transmit interruptions on the serial port.
    ulRxByte Indicates the number of bytes received on the serial port.
    ulTxByte Indicates the number of bytes sent from the serial port.
    ulRxDropByte Indicates the number of bytes discarded on the serial port.
  • Indicator lighting module statistics
    Parameter Description
    g_ulLedNumber Indicates the number of LEDs.
    g_ulLedStackDeep Indicates maximum LED stack depth.
    g_ulLedTickStep Indicates the tick frequency at which the LED blinks.
    g_ulLedInitFlag Indicates the initialization flag.
    g_ulLedStackCurent Indicates the current LED stack depth.
  • Statistics on light turn-on
    Parameter Description
    Index Indicates the index.
    Level Indicates the light blinking level.
    Run Indicates the blinking mode of the running indicator.
    Alarm Indicates the blinking mode of the alarm indicator.
    Act_Green Indicates the blinking mode of the ACT green indicator.
    Act_Red Indicates the blinking mode of the ACT red indicator.
    led Indicates the ID of the LED.
    style Indicates the value of the light blinking mode.
    curindex Indicates the index of the blinking light.
    maxindex Indicates the maximum index.
  • tracecode statistics
    Parameter Description
    tracecode Indicates recent 16 tracecode statistics.
  • Reset cause statistics
    Parameter Description
    EthType Indicates the network port type. It can be debug or ms.
    LinkState Indicates the link status of the network port.
  • Ecc statistics
    Parameter Description
    DevName Indicates the device name.
    EccEnState Indicates whether ECC is enabled.
    ErrDetState Indicates whether the ECC error detection function is enabled.
    Threshold Indicates the error threshold.
    Count Indicates statistics on single bit errors.
  • Reset cause statistics
    Parameter Description
    Index Indicates the index.
    RebootCause Indicates the reset cause. It can be Dog, Man or Power.
    Time Indicates the reset time.
  • Database upgrade check record
    Parameter Description
    Index Indicates the index.
    CheckCondition Indicates the check result.
  • IIC statistics
    Parameter Description
    DevName Indicates the device name.
    BusId Indicates the bus ID.
    DevId Indicates the device ID.
    ReadLen Indicates the read length.
    ReadActLen Indicates the successful read length.
    WriteLen Indicates the write length.
    WriteActLen Indicates the successful write length.
  • Exception stack invoking records
    Parameter Description
    layers of TASK stack Indicates the task stack invoking track.
    struct in INT stack Indicates the CPU status register value recorded by the interruption stack during the reset.
    struct in EXC stack Indicates the CPU general register value recorded by the exception stack during the reset.
    LastReset by WathDog Indicates the cause of the reset due to the watchdog failure.
    Register contents Indicates the CPU general register value during the reset. 
More blog:

No comments:

Post a Comment