openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

README (2290B)


      1 #################################################
      2 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      3 # 
      4 # Copyright 2007-2019 Broadcom Inc. All rights reserved.
      5 #################################################
      6 
      7 #################################################
      8 The pelib application has been build and tested in the vxworks/gto build.
      9 #################################################
     10 
     11 #################################################
     12 Build the pelib application
     13 #################################################
     14 
     15 -------------------------------------------------
     16 1. copy the sdk/make/local/esw/Make.pkg.pe-sdk to sdk/make/Make.local
     17 -------------------------------------------------
     18 
     19 cd make
     20 cp make/local/esw/Make.pkg.pe-sdk make/Make.local
     21 
     22 -------------------------------------------------
     23 2. build vxworks gto
     24 -------------------------------------------------
     25 
     26 cd systems/vxworks/gto
     27 make clean
     28 make
     29 
     30 #################################################
     31 Run the application
     32 #################################################
     33 
     34 -------------------------------------------------
     35 1. Modify the config.bcm file to not initialize the
     36    xe ports by doing something similiar below:
     37 -------------------------------------------------
     38 
     39 port_phy_addr_xe=0xff
     40 #port_phy_addr_1=0x0
     41 #port_phy_addr_2=0x1
     42 #port_phy_addr_3=0x2
     43 #port_phy_addr_4=0x3
     44 #port_phy_addr_5=0x4
     45 #port_phy_addr_6=0x5
     46 #port_phy_addr_7=0x6
     47 #port_phy_addr_8=0x7
     48 
     49 -------------------------------------------------
     50 2. Load the vxworks image and get to the BCM prompt
     51 -------------------------------------------------
     52 CFE	> @
     53 ...
     54 BCM.0>
     55 
     56 -------------------------------------------------
     57 3. Go to the application shell
     58 -------------------------------------------------
     59 BCM.0> sh
     60 ->
     61 
     62 -------------------------------------------------
     63 4. Run the pe_app() application:
     64 -------------------------------------------------
     65 -> pe_app(0)
     66 pe_app() testnum: 0 arg0 0, arg1 0, arg2 0
     67 bcm_initialize()
     68 Usage: pe_app <test>
     69   1 - FW download test
     70   2 - PE Init
     71   3 - PE Port Status Get
     72   4 - PE Port Statistics Get
     73   5 - PE FW Ver Get
     74   6 - PE Device Rev ID
     75   7 - PE Die Temp
     76   8 - XMOD Debug Test Cmd
     77   9 - XMOD Debug Loopback Cmd(port, lb, enable)
     78 value = 0 = 0x0
     79