aTCA-N700 Dual Cavium CN6880 Packet Processor GbE ATCA Processor Blade Software User's Manual Manual Revision: Revision Date: Part Number: 1.00 August 28, 2013 50- 1G027-1000 I Advance Technologies; Automate the World.
aTCA-N700 SW Users Guide Revision History Rev 1.
aTCA-N700 SW Users Guide Preface Copyright 2013 ADLINK Technology, Inc. This document contains proprietary information protected by copyright. All rights are reserved. No part of this manual may be reproduced by any mechanical, electronic, or other means in any form without prior written permission of the manufacturer.
aTCA-N700 SW Users Guide Table of Contents REVISION HISTORY .......................................................................................................II PREFACE .......................................................................................................................III LIST OF TABLES ...........................................................................................................VI LIST OF FIGURES..........................................................................
aTCA-N700 SW Users Guide 8. SWITCH MANAGEMENT ..................................................................................40 8.1. Networking..................................................................................................41 8.1.1. Port Mapping ...........................................................................................42 8.2. Initialization ................................................................................................44 8.3. bcm.user .................
aTCA-N700 SW Users Guide List of Tables TABLE 1-1 ABBREVIATIONS ............................................................................................... 2 TABLE 3-1 DELIVERABLES ................................................................................................. 8 TABLE 4-1 SUMMARY OF DEVICES AND ACCESS ...............................................................16 TABLE 5-1 NVM MAP.....................................................................................................
aTCA-N700 SW Users Guide 1. Introduction The aTCA-N700 is a single slot AdvancedTCA blade powered by dual OCTEON II multi-core processors for high performance packet processing applications such as LTE wireless, security and other networking applications. The blade provides up to 40Gbps full duplex packet processing performance with flexible network interfaces.
aTCA-N700 SW Users Guide Table 1-1 Abbreviations Terms ATCA Base Interface Blade BSP Boot-flash Bootloader (bootrom) DDR DIMM ECC E-keying Fabric Interface Fabric Slot FRU GPIO Hot-swap IPMB IPMB-L IPMC IPMI JTAG LMP MAC MMC NP or NPU PCI PCIe PHY PICMG RGMII RXAUI RTM SDR SDRAM SFP SFP+ SGMII SOL SPI QSFP+ UART VLP XAUI XLAUI Description Advanced Telecom Computing Architecture ATCA Base Interface on the Zone-2 connectors to connect to the dual HUBs, 4 differential pairs per Base Channel.
aTCA-N700 SW Users Guide 2. Software Overview The aTCA-N700 has one Local Management Processor (LMP), dual Network Processor Units and another intelligent device, the IPMC. The Local Management Processor (LMP) P2041, OCTEON #1 (Top, right), OCTEON #2 (Bottom, left) and the SmartFusion IPMC. Since two NPs (OCTEONs) are in an identical configuration, the software for the NPs is identical.
aTCA-N700 SW Users Guide Figure 2-1 aTCA-N700 Software Components 2.1. SDK 2.1.1. LMP-SDK The LMP-SDK is LMP (Local Management Processor) P2041 SDK is provided by Freescale. As of December, 2012, most up-to-date version is 1.3, distributed in an iso file (QorIQSDK-V1.3-SOURCE-20121114-yocto.iso). After installation, the default directory generated is QorIQ-SDK-V1.3-20121114-yocto. The directory structure follows LTIB (Linux Target Image Builder, See http://ltib.
aTCA-N700 SW Users Guide 2.1.2. BCM-SDK The BCM-SDK is switch (BCM56842, BCM53115) SDK from Broadcom. Each application developer of the SDK requires a S/W license from Broadcom. As of December, 2012, most up-to-date version for BCM5684x is 5.11.0. (Note: 6,x version is available, but it’s not for BCM5684x) 2.1.3. NP-SDK The NP-SDK is NP (OCTEON CN6880) SDK from Cavium. Each application developer of the SDK requires a S/W license from Cavium. As of December, 2012, the most up-to-date version is 2.3.
aTCA-N700 SW Users Guide 2.2.3. NP-BSP The board specific OCTEON II NPU configuration is reflected on to NP-BSP, which uses the NP-SDK APIs. The BCM-BSP is a collection of patch files to generate the aTCA-N700 NPU S/W.
aTCA-N700 SW Users Guide 3. S/W deliverables 3.1. Contents of S/W Package ADLINK’s aTCA-N700 S/W package, which is to be released after the development is completed, is composed of the following components. • • aTCA-N700_ sw-package_$(PACKAGE_VERSION).bsp.tgz : LMP-BSP + BCMBSP + NP-BSP aTCA-N700_ sw-package_$(PACKAGE_VERSION).bin.tgz : LMP-IMAGES + NP-IMAGES - • • aTCA-N700_lmp-bsp.$(LMP_BSP_VERSION).diff: Patches for LMP Linux and UBoot sources. Included in aTCA-N700_ swpackage_$(PACKAGE_VERSION).
aTCA-N700 SW Users Guide Table 3-1 Deliverables Item Type Contents patch QorIQ-DPAA-SDK generates (compiles) LMP U-Boot, linux kernel, and rootfs images with the patch. binary LMP linux application layer includes the following: - Broadcom switch S/W (bcm.user), - H/W diagnostics program - ipmi utility - CPLD access utility - upgrade utility patch BCM-SDK generates (compiles) Broadcom switch program with the patch. np.
aTCA-N700 SW Users Guide 3.2. Installing S/W Package (for developer) This section describes the procedures to install the S/W package from ADLINK for the aTCA-N700. 3.2.1. Prerequisites 3.2.1.1. LMP-SDK 1. 2. 3. The host machine should have the Freescale SDK installed. Version supported: QorIQ-SDK-V1.3-SOURCE-20121114-yocto.iso With the Freescale SDK installed, fsl-image-full generation should be verified working.
aTCA-N700 SW Users Guide /home/yglim/work/QorIQ-SDK-V1.3-20121114-yocto, please execute following steps to continue: $ cd /home/yglim/work/QorIQ-SDK-V1.3-20121114-yocto $ ./scripts/host-prepare.sh $ source .
aTCA-N700 SW Users Guide - OCTEON-COMPONENTS-COMMON-2.3.0-62.i386.rpm - OCTEON-PCI-NIC-2.3.0-85.i386.rpm - OCTEON-LINUX-2.3.0-427.i386.rpm - OCTEON-SDK-2.3.0-427.i386.rpm - OCTEON-PCI-BASE-2.3.0-84.i386.rpm - OCTEON-PCI-CNTQ-2.3.0-85.i386.rpm - sdk_2.3.0_update_p4.tgz Default installation location of these RPM package is /usr/local/Cavium_Networks/OCTEON-SDK. Copying the directory to your working directory is recommended, as shown below.
aTCA-N700 SW Users Guide Now, you have installed NP SDK on the /home/yglim/work/OCTEON-SDK-2.3.0 directory. 3.2.1.3. ipmitool / BCM SDK The board management features are heavily related with ipmitool. The ipmitool patch set for aTCA-N700 board is also provided in the released source packages. The vanilla source code of ipmitool-1.8.11 should be prepared to generate proper root filesystem for aTCA-N700. Furthermore, BCM SDK is also needed to build rootfilesystem for aTCA-N700. 3.2.2.
aTCA-N700 SW Users Guide Basic RFS file name should be fsl-image-core-aTCA-N70020121213061548.rootfs.tar.gz # mv fsl-rfs-core.gz fsl-image-core-aTCA-N700-20121213061548.rootfs.tar.gz ls contrib files scriptsVERSION ipmitool-1.8.11 sdk-xgs-robo-5.11.0 linux-qoriq-sdk-3.0.48-r5 target Makefile U-Boot-2011.09 naboma README fsl-image-core-aTCA-N700-20121213061548.rootfs.tar.gz 3.2.2.2. Build Environment variables described below should be configured.
aTCA-N700 SW Users Guide Run as described below to build LMP images. After build process, three target images (LMP U-Boot, dtb, linux kernel uImage) will be located in the ${QORIQ_BSP}/target directory. Ramdisk rootfilesystem file will be located in the ${QORIQ_BSP}. # make binpack # make rfs # ls ${QORIQ_BSP}/target/boot aTCA-N700.dtb U-Boot.bin uImage # ls ${QORIQ_BSP}/rootfs.ext2.gz.uboot 3.2.3. Compiling aTCA-N700 S/W package - NP 3.2.3.1.
aTCA-N700 SW Users Guide # cd ${OCTEON_ROOT}/linux # make link-kernel-se-files; make kernel; make kernel-deb; # cd ${OCTEON_ROOT}/bootloader/U-Boot/ # make aTCA-N700_config; make # ls ${OCTEON_ROOT}/linux/kernel_2.6/linux/vmlinux.64 # ls ${OCTEON_ROOT}/bootloader/U-Boot/U-Boot-octeon_aTCA-N700.bin # ls ${OCTEON_ROOT}/linux/embedded_rootfs/rootfs.cpio.
aTCA-N700 SW Users Guide 4. Device Drivers The Device Drivers provide device accessibility for the devices on the aTCA-N700 specific devices. The vendor’s drivers are ported to the blade environments with necessary changes. Device Table 4-1 Summary of devices and access ID Description Host Program (All LMP Linux programs) LMP Linux kernel P2041 LMP Local Management Processor LMP Mini VLP DIMM LMP_MEM DRAM for LMP LMP BCM56842 FABRIC_SWITCH multilayer switch LMP bcm.
aTCA-N700 SW Users Guide Device ID Description Host CN5880 OCTEON_R OCTEON_L right octeon left octeon NP DIMM DIMM_OCTEON_R DIMM_OCTEON_L NOR_FLASH NOR_FLASH_R_1 NOR_FLASH_R_2 NOR_FLASH_L_1 NOR_FLASH_L_1 NAND_FLASH_R_1 NAND_FLASH_R_2 NAND_FLASH NAND_FLASH_L_1 NAND_FLASH_L_2 DIMM set of OCTEON_R DIMM set of OCTEON_L Nor Flash1 OCTEON_R Nor Flash2 OCTEON_R Nor Flash1 OCTEON_L Nor Flash2 OCTEON_L Nand Flash1 OCTEON_R Nand Flash2 OCTEON_R Nand Flash1 OCTEON_L Nand Flash2 OCTEON_L .
aTCA-N700 SW Users Guide 5. Booting The aTCA-N700 provides various NVMs (Non Volatile memory) to store software images and log system events for different purposes, especially used for a booting procedure. The memory map for the devices is illustrated in Table 5-1.
aTCA-N700 SW Users Guide Host Device Size Contents U-Boot 1MiB image NOR_FLASH1 6MiB Reserved U-Boot 1MiB Env. U-Boot 1MiB image NOR_FLASH2 6MiB Reserved U-Boot 1MiB Env.
aTCA-N700 SW Users Guide CPU0:1200 MHz, CPU1:1200 MHz, CPU2:1200 MHz, CPU3:1200 MHz, CCB:600 MHz, DDR:600 MHz (1200 MT/s data rate) (Asynchronous), LBC:37.500 MHz FMAN1: 500 MHz PME: 300 MHz L1: D-cache 32 kB enabled I-cache 32 kB enabled Board: aTCA-N700, 36-bit Addressing, bank#1 -> this shows active flash number I2C: ready SPI: ready DRAM: Detected UDIMM i-DIMM DDR: 2 GiB (DDR3, 64-bit, CL=8, ECC on) Date: 2013-07-16 (Tuesday) Time: 20:33:54 IPMC: OK Manuf.
aTCA-N700 SW Users Guide DDR:600 MHz (1200 MT/s data rate) (Asynchronous), LBC:37.500 MHz FMAN1: 500 MHz PME: 300 MHz L1: D-cache 32 kB enabled I-cache 32 kB enabled Board: aTCA-N700, 36-bit Addressing, bank#0 -> this shows active flash number I2C: ready SPI: ready DRAM: Detected UDIMM i-DIMM DDR: 2 GiB (DDR3, 64-bit, CL=8, ECC on) Date: 2013-07-16 (Tuesday) Time: 20:39:20 IPMC: OK Manuf.: ADLINK Technology Name: aTCA-N700 Part#: aTCA-N700 Version: A2 Serial#: Slot: 4 Reset: FRU control command(opt.
aTCA-N700 SW Users Guide SATA1 (1.5 Gbps) reading uImage 3815369 bytes read reading aTCA-N700.dtb 28054 bytes read WARNING: adjusting available memory to 30000000 ## Booting kernel from Legacy Image at 01000000 ... Image Name: Linux-3.0.48-rt70-svn33 Created: 2012-12-18 7:36:48 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3815305 Bytes = 3.6 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ...
aTCA-N700 SW Users Guide aTCA-N700 login: root root@aTCA-N700:~# cat /proc/cmdline root=/dev/sda2 rw console=ttyS0,115200 5.1.3. OCTEON U-Boot Redundancy The OCTEON U-Boot image is stored in a NOR flash memory. On the aTCA-N700, each NP has two of such U-Boot flash memories in a primary and a redundant fashion. The flash device selection is done by the CPLD and configurable by a CPLD register on. Shown below is a command example of such setting.
aTCA-N700 SW Users Guide mtdparts=octeon_nand0:512m(osA),1536m(rfsA);octeon_nand1:512m(osB),1536m(rfs B) ubi.mtd=2 root=ubi0:rfs rw rootfstype=ubifs primary console=ttyS0,115200 ~ # reboot … aTCA-N700# run ubibootB -> boot from secondary NAND Flash Creating 1 MTD partitions on "nand1": 0x000000000000-0x000020000000 : "mtd=0" … BusyBox v1.18.4 (2013-02-27 02:59:52 KST) built-in shell (ash) Enter 'help' for a list of built-in commands.
aTCA-N700 SW Users Guide => setenv rootpath /tftpboot/aTCA-N700T/RFS/rootfs -> Set rootfs path information => setenv netdev eth0 -> For REV1 set netdev as eth0(mgmt port) => => => => => setenv serverip 192.168.0.142 setenv ipaddr 192.168.34.56 setenv gatewayip 192.168.0.1 setenv netmask 255.255.0.0 run nfsboot -> -> -> -> set set set set NFS server IP address my IP address gateway IP address netmask 5.4.
aTCA-N700 SW Users Guide 5.5. Install / Upgrade The software image install scripts provides a way to install or upgrade images on the devices. The software delieverables shown below should be located on the tftpserver to use it. z z z z z z z z uImage : LMP linux kernel image file (to be used on tftpboot) aTCA-N700.dtb: LMP linux dtb image file (to be used on tftpboot) rootfs.ext2.gz.uboot: LMP linux rootfs image file (to be used on tftpboot) fsl-rfs-full.
aTCA-N700 SW Users Guide root@aTCA-N700:~# lmp-installer … root@aTCA-N700:~# reboot Boot-up with new U-Boot image, U-Boot environment variables should be updated, as shown below. cpld flashctl lmp 0 setenv bootdelay 3 setenv bootcmd "ipmi bmc 100 1; run satabootA" saveenv cpld flashctl lmp 1 setenv bootcmd "ipmi bmc 100 1; run satabootB" saveenv reset 5.5.2.
aTCA-N700 SW Users Guide BASE> #ex) /np-installer 192.168.12.34 192.168.1.213 /media/ram oct-U-Boot.bin vmlinux.64 rootfs.cpio.gz ipaddr=192.168.37.2 serverip=192.168.1.213 filebase=/tftpboot uboot=oct-U-Boot.bin linux=vmlinux.64 rfs=rootfs.cpio.gz #npamac=00:30:64:0F:5B:19 # board#5 #npbmac=00:30:64:0F:5B:1E # board#5 npamac=00:30:64:0F:5B:33 npbmac=00:30:64:0F:5B:38 ... root@aTCA-N700:~# np-installer 5.5.3.
aTCA-N700 SW Users Guide filebase=/media/ram ipmcpkg=ipmc.tgz ... root@aTCA-N700:~# ipmc-installer ... (board reboot automatically) 5.5.4. Upgrade LMP U-Boot only To replace former U-Boot image on the first and the secondary SPI-flash, U-Boot commands and environmental variables can be used as shown below. This can be used upgrading U-Boot only. => setenv ipaddr 192.168.95.67 => setenv serverip 192.168.0.142 address => setenv netmask 255.255.0.
aTCA-N700 SW Users Guide 6. Hardware Diagnostics The aTCA-N700 Software Package provides the basic functionalities to test the devices on the board. Table 6-1 illustrates the overview of the device testing.
aTCA-N700 SW Users Guide ID DIMM_OCTEON_R DIMM_OCTEON_L NOR_FLASH_R_1 NOR_FLASH_R_2 NOR_FLASH_L_1 NOR_FLASH_L_2 NAND_FLASH_R_1 NAND_FLASH_R_2 NAND_FLASH_L_1 NAND_FLASH_L_2 Description DIMM set of OCTEON_R DIMM set of OCTEON_L NorFlash1 of OCTEON_R NorFlash2 of OCTEON_R NorFlash1 of OCTEON_L NorFlash2 of OCTEON_L NandFlash1 of OCTEON_R NandFlash2 of OCTEON_R NandFlash1 of OCTEON_L NandFlash2 of OCTEON_L Host Test Description Tools Memtester (open source) NP write/read/compare NP flashcp, backup/wr
aTCA-N700 SW Users Guide 6.2. POST The Power-On-Self-Test (POST) is performed during bootloader booting up. The POST includes the major devices on the board. The POST result is printed out on the monitoring port at the end of the bootloader booting. Table 6-2 summarizes the devices and testing. (The blade without the NAND flash skips the test; CONFIG_SYS_POST_NAND_FPGA test and CONFIG_SYS_POST_NAND_FLASH test.) Table 6-2 Devices covered by the POST No.
aTCA-N700 SW Users Guide 6.3. Base Switch The base port switch is managed by “robo” command. The usage is as the following. => robo robo - Base Switch specific commands Usage: robo [command] ...
aTCA-N700 SW Users Guide 6.4. IPMI commands The Intelligent Platform Management Interface (IPMI) is provided as a tool to monitor and management the blade. The commands are in available in the bootloader environment, which are summarized in Table 6-3.
aTCA-N700 SW Users Guide ShelfAddr[1]: ShelfAddr[2]: ShelfAddr[3]: ShelfAddr[4]: ShelfAddr[5]: ShelfAddr[6]: ShelfAddr[7]: ShelfAddr[8]: ShelfAddr[9]: ShelfAddr[10]: ShelfAddr[11]: ShelfAddr[12]: ShelfAddr[13]: ShelfAddr[14]: ShelfAddr[15]: ShelfAddr[16]: ShelfAddr[17]: ShelfAddr[18]: ShelfAddr[19]: chksum_1: 0x30 0x30 0x30 0x30 0x31 0x20 0x41 0x30 0x31 0x30 0x31 0x46 0x46 0x46 0x46 0x46 0x46 0x2e 0x2e 0xc6 => ipmi get-device-id Device ID: 0x12 Device Revision: 0x80 Major Firmware Revision: 0x01 Minor Fi
aTCA-N700 SW Users Guide ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs nfsboot=run nfsargs; tftp $loadaddr $bootfile; tftp $fdtaddr $fdtfile; bootm $loadaddr $fdtaddr nibA=nboot $loadaddr kernelA; nboot $ramdiskaddr rfsA; nboot $fdtaddr dtbA nibB=nboot $loadaddr kernelB; nboot $ramdiskaddr rfsB; nboot $fdtaddr dtbB normalargs=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate root=/dev/ram rw ramdisk_size=400000 post_res=$post_result n
aTCA-N700 SW Users Guide Table 6-5 sdboot parameters No command Description mmc dev Activate the mmc deivce. 1 fatload mmc0 0:1 Load kernel image at mmc0 interface 0 device 1 2 $loadaddr uimage partition. fatload mmc0 0:1 Load rootfile system at mmc0 interface 0 device 1 3 $ramdiskaddr partition. rootfs.ext2.gz.uboot fatload mmc0 0:1 Load dtb image at mmc0 interface 0 device 1 4 $fdtaddr aTCApartition. N700.dtb run normalargs Set Environment.
aTCA-N700 SW Users Guide 7. OCTEON Host Utilities The OCTEON-SDK provides OCTEON host utilities which apply only to OCTEON or Intel HOST architecture. For the LMP (Freescale) porting, however, the OCTEONSDK sources (OCTEON-SDK/host/remote-utils) can be accompanied into the LMP source tree for cross compilation. There may be limitations in using assembler based modules on the LMP. SW7 configuration selects PCIe operation mode for each OCTEON processor.
aTCA-N700 SW Users Guide oct-remotememory oct-remote-pow oct-remote-profile oct-remote-qlm oct-remote-reset oct-remote-save oct-remote-tra Read or write bytes at a physical memory address. Usage: oct-remote-memory [-w width] [-c count] address [value] The state of the OCTEON POW can be captured and displayed through the remote interface Profiling of any code running on OCTEON can be performed Read and display all QLM jtag settings.
aTCA-N700 SW Users Guide 8. Switch Management The Broadcom SDK is a part of the LMP software suite. Shown in Figure 8-1 are the Broadcom switch S/W package components which are associated with the two onboard switches, the BCM56842 fabric switch and the BCM53115 base switch. The configuration interfaces are PCI-e for BCM56842 and SPI for the BCM53115. Both interfaces are connected to the LMP. The bcm.user is a user interface shell program which can be accessed to configure the switches.
aTCA-N700 SW Users Guide 8.1. Networking The network interfaces are detailed in Figure 8-2 and Figure 8-3. The RTM1 is an optional installment which has twelve of SFP+ (10G) ports, whereas the RTM2 has two QSFP+ ports (40G) and four SFP+ ports. The front SFP+ ports are present, but are omitted in the figures.
aTCA-N700 SW Users Guide Figure 8-3 Broadcom device networking interfaces (RTM2) 8.1.1. Port Mapping Bcm.user uses port names as described in Table 8-1 without an RTM, and Table 8-2 with an RTM. The front blade only configuration is according to /usr/local/bcm/config.bcm.config. The configuration with an RTM is according to /usr/local/bcm/config.bcm.rtm config. Table 8-1 bcm.
aTCA-N700 SW Users Guide xe13 xe14 xe15 xe16 xe17 xe18 xe19 xe20 xe21 xe22 xe23 xe24 xe25 10000 40000 1000 10000 40000 1000 10000 1000 10000 1000 10000 1000 10000 1000 10000 1000 10000 1000 10000 1000 10000 1000 10000 1000 10000 1000 10000 1000 10000 XGMII(XAUI) KR4 GMII XGMII(XAUI) KR4 GMII SFI GMII SFI GMII SFI GMII SFI GMII SFI GMII SFI GMII SFI GMII SFI GMII SFI GMII SFI GMII SFI GMII SFI on FabricB off Rear Port 1 off Rear Port 2 off Rear Port 3 off Rear Port 4 off Rear Port 5 off Rea
aTCA-N700 SW Users Guide xe14 xe15 xe16 xe17 xe18 xe19 40000 40000 1000 10000 1000 10000 1000 10000 1000 10000 XLAUI XLAUI GMII SFI GMII SFI GMII SFI GMII SFI off off off Rear Port 1 Rear Port 2 Rear Port 3 off Rear Port 4 off Rear Port 5 off Rear Port 6 8.2. Initialization During booting up, /etc/init.d/bcm.sh script is executed and the switch software is launched. Here are lists of actions performed by /etc/init.d/bcm.sh. 1. Loading kernel modules (linux_kernel_bde, linux_user_bde) 2.
aTCA-N700 SW Users Guide This is a shell environment provided by BCM SDK to configure the fabric Switch from Broadcom for various functions. Refer to the Broadcom documents for the details. In the following sections, we describe aTCA-N700 dependant configurations and their commands. 8.3.1. Port configuration Users can set the attributes of a port such as speed, auto-negotiation and enable by ‘port’ command. ‘port’ command usage is as shown below.
aTCA-N700 SW Users Guide 8.3.2. Vlan configuration To configure vlan for ports, use the ‘vlan’ command.
aTCA-N700 SW Users Guide - Set default VLAN tag for port(s) Port bitmaps are read from the VTABLE entry for the VID. must have been created and all ports in must belong to that VLAN. Some examples of the pvlan command are described in the following. ** Set port xe0, xe2 default vlan= 2. BCM.0> pvlan xe0,xe2 2 ** Display port xe0, xe2 default vlan information. BCM.0> pvlan show xe0,xe2 Port xe0 default VLAN is 2 Port xe2 default VLAN is 2 8.3.4.
aTCA-N700 SW Users Guide BCM.0> stg remove 2 3 BCM.0> stg show 2 STG 2: contains 0 VLANs ** Delete STG2. BCM.0> stg destroy 2 BCM.0> stg show STG 1: contains 3 VLANs (1,3-4) Forward: xe BCM.0> 8.3.5. Mac configuration Port static mac information is configured by ‘l2’ command.
aTCA-N700 SW Users Guide 8.3.6. Port interframe gap configuration ‘ipg’ command is used to configure interfame gap for each port speed. Usage (IPG): Parameters: [PortBitMap=] [SPeed=10|100|1000|2500|10000] [FullDuplex=true|false] [Gap=] Set the IPG register values to the specified values when the MAC is programmed after autonegotiation OR when the port is into the specific mode. If no args are given, displays settings. ipg examples are as the following.
aTCA-N700 SW Users Guide RDBGC0.xe0 R64.xe0 R127.xe0 R255.xe0 R511.xe0 RPKT.xe0 RUCA.xe0 RPRM.xe0 RPOK.xe0 RBYT.xe0 T64.xe0 T127.xe0 T255.xe0 TPOK.xe0 TPKT.xe0 TUCA.xe0 TBYT.xe0 PERQ_PKT(10).xe0 PERQ_BYTE(10).xe0 : : : : : : : : : : : : : : : : : : : 24,999,987 97,654 6,152,568 18,652,091 97,674 24,999,987 24,999,987 24,999,987 24,999,987 3,999,973,180 1 4 5 10 10 10 1,299 10 1,299 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 8.3.8.
aTCA-N700 SW Users Guide ** Run rcload. BCM.0> rcload /tmp/traffic_10G_NP_RTM1_FABRIC 8.3.10. Switch configuration Switch initialization uses /usr/local/bcm/config.bcm.atca3700 file. Switch can be restarted after this file is updated(/etc/init.d/bcm.sh restart). Also it can be updated in BCM shell. Usage (CONFig): Parameters: show | refresh | save | [add] [=] | delete If no parameters are given, displays the current config vars.
aTCA-N700 SW Users Guide portmap_22.0=56:10 portmap_23.0=49:10 portmap_24.0=50:10 portmap_25.0=51:10 portmap_26.0=52:10 serdes_2wire_xaui_5=1 serdes_2wire_xaui_6=1 serdes_2wire_xaui_9=1 serdes_2wire_xaui_10=1 serdes_preemphasis_23=0xa370 serdes_preemphasis_24=0xa370 ** Set port xe3 preemphasis =0x9. BCM.0> config serdes_preemphasis_4=0x9 ** Remove port xe3 preemphasis value. BCM.0> config delete serdes_preemphasis_4 ** Add port xe4 preemphasis= 1. BCM.
aTCA-N700 SW Users Guide [root@N700]$ nbm-relay ps xe0 ena/ speed/ link auto STP lrn inter max loop port link duplex scan neg? state pause discrd ops face frame back xe0 up 1G FD SW Yes Forward TX RX None FA GMII 16356 ** LED ‘E’ Off [root@N700]$ nbm-sfp tx_disable n FP1 [root@N700]$ nbm-relay port xe0 en=false [root@N700]$ nbm-relay ps xe0 ena/ speed/ link auto STP lrn inter max loop port link duplex scan neg? state pause discrd ops face frame xe0 !ena 1G FD SW Yes Forward TX RX None FA GMII 16356 back
aTCA-N700 SW Users Guide nbm-robo trunk init - initialize trunking Following example shows how to enable a port and perform connection verification such as ping operation.
aTCA-N700 SW Users Guide [root@N700]$ nbm-robo vlan show 2 VID Untagged Ports Tagged Ports ================================== 2 1 [root@N700]$ nbm-robo pvid 1 2 [root@N700]$ nbm-robo pvid show Port PVID ========= 0 1 1 2 2 1 3 1 4 1 5 1 IMP 1 [root@N700]$ nbm-robo vlan del 1 1 [root@N700]$ nbm-robo vlan show 1 VID Untagged Ports Tagged Ports ================================== 0 2 3 4 5 IMP Add or remove static mac for a port.
aTCA-N700 SW Users Guide 9. Board Management Package The BOMA package includes functional modules for CPLD handling, and U-Boot environment variable configurations, base switch control, etc. 9.1. nbm-uenv U-Boot environment variables are accessible in Linux by nbm-uenv utilities. Usage: nbm-uenv printenv [] nbm-uenv setenv [] *** Check U-Boot environment variables.
aTCA-N700 SW Users Guide tib_1=tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile; tftp $ramdiskaddr $ramdiskfile 9.2. nbm-robo The base switch is connected via SPI interface to the LMP. nbm-robo provides utilities to configure the base switch. Refer to section 8.3.12 for the details. 9.3. nbm-cpld This is a tool to read/write CPLD registers. CPLD read/write tool Usage: nbm-cpld : read CPLD register nbm-cpld : write CPLD register * addr : 0, 1, 2, 3 ...
aTCA-N700 SW Users Guide Usage: nbm-util (rtm1|rtm2) (add|del) nbm-util swconfig FILENAME : add or delete RTM1 or RTM2 : convert simple config file to bcm.
aTCA-N700 SW Users Guide Table 9-1.
aTCA-N700 SW Users Guide Table 9-1 Directives in the configuration file Directive Function Start character of comment # line <$STRING> Defines a Test item. [$STRING] Defines a Test module. device: $STRING Defines a device to test. Defines the Test program: either nbm_diag or an external program. extern: (yes:no) intrusiveness: (yes|no) Defines intrusiveness. test_item: $STRING Defines nbm_diag built-in test item.
aTCA-N700 SW Users Guide 10. IPMI The Intelligent Platform Management Interface, or IPMI, is a part of the ATCA standard for controlling intelligent devices that monitor a system. It enables dynamic discovery of sensors in the system and the ability to monitor the sensors and to be informed when the sensor's values change or go beyond the predefined boundaries. It also has a standardized database for field-replaceable units (FRUs) and a watchdog timer.
aTCA-N700 SW Users Guide 10.2. ipmitool The ipmitool program provides a simple command-line interface to the LMP. It features the ability to read the sensor data repository (SDR) and print sensor values, display the contents of the System Event Log (SEL), print Field Replaceable Unit (FRU) inventory information, read and set LAN configuration parameters, and perform remote chassis power control.
aTCA-N700 SW Users Guide 11. IPMC Access via Ethernet If the IPMC firmware on the IPMC is configured with IPMI over LAN or SOL, it is possible to use a direct Ethernet connection to the IPMC running the firmware. To access the IPMC using an Ethernet connection, the following parameters should be specified in the command line of the ipmitool utility on a remote management system. ■ –I lan This command line parameter instructs the ipmitool utility to use the RMCP protocol for communicating with the IPMC.
aTCA-N700 SW Users Guide ■ Obtain general information about an ipmi channel. This command can be used to find out whether a given channel supports session establishment. Figure 11-2 Get Channel Info command ■ Set a privilege level for a spefied user. ipmitool channel setaccess privilege= Figure 11-3 Set Channel Access command ■ Change a user name.
aTCA-N700 SW Users Guide ■ Obtain the LAN configuration parameters for a given channel. ipmitool lan print Figure 11-7 Get LAN Configuration Parameters Command ■ Set the management IP address for a given channel.
aTCA-N700 SW Users Guide 11.2. Serial-over-LAN 11.2.1. SOL Overview Figure 11-9 Serial-over-LAN Diagram Serial-over-LAN (SOL) is an IPMI v2.0-defined capability that allows establishing a virtual serial console with the payload over LAN. It uses the RMCP+ protocol to encapsulate serial data in network packets and pass them between the BMC and remote console. Check base switch configuration if both IPMC port and Management port you designed are up.
aTCA-N700 SW Users Guide ■ Obtain the SOL configuration parameters for a given channel. ipmitool sol info Figure 11-11 Get SOL Configuration Parameters Command ■ Change one of the following SOL Configuration parameters.
aTCA-N700 SW Users Guide Figure 11-13 Terminating Serial-over-LAN Session 68
aTCA-N700 SW Users Guide Getting Service ADLINK Technology, Inc. Address: 9F, No.166 Jian Yi Road, Zhonghe District New Taipei City 235, Taiwan Tel: +886-2-8226-5877 Fax: +886-2-8226-5717 Email: service@adlinktech.com Ampro ADLINK Technology, Inc. Address: 5215 Hellyer Avenue, #110, San Jose, CA 95138, USA Tel: +1-408-360-0200 Toll Free: +1-800-966-5200 (USA only) Fax: +1-408-360-0222 Email: info@adlinktech.com ADLINK Technology (China) Co., Ltd. Address: 300 Fang Chun Rd.
aTCA-N700 SW Users Guide ADLINK Technology, Inc. (Korean Liaison Office) Address: 8F Mointer B/D,1675-12, Seocho-Dong, Seocho-Gu, Seoul 137-070, Korea Tel: +82-2-2057-0565 Fax: +82-2-2057-0563 Email: korea@adlinktech.com ADLINK Technology Singapore Pte. Ltd. Address: 84 Genting Lane #07-02A, Cityneon Design Centre, Singapore 349584 Tel: +65-6844-2261 Fax: +65-6844-2263 Email: singapore@adlinktech.com ADLINK Technology Singapore Pte. Ltd.