Login to the broadcom shell – ADLINK cPCI-6S10 User Manual

Page 81

Advertising
background image

Getting Started

71

cPCI-6S10

Login to the Broadcom Shell

Users can login to the Broadcom shell by connecting to LAN port
or serial port. The application "/usr/local/bcm/bcm.user" is the
complete BCM command shell. This includes the BCM shell appli-
cation as well as the BCM API and all drivers. All BCM SDK
related files are stored in the directory "/usr/local/bcm/", and the
startup script is "/etc/init.d/S70bcm".

After Linux has started, it runs bcm.user in background mode and
listens to port 9895. Users can enter the BCM shell by using the
following command:

telnet localhost 9895

In the CLI, typing "quit" will close the telnet connection, but will not
terminate the bcm.user process.

When bcm.user is started, it clears all Ethernet switch settings.
Meanwhile, the shell executes the startup script
"/usr/local/bcm/rc.soc". The system administrator can customize
the startup script and add initialization command sequences as
required.

On the cPCI-6S10, another script file
"/usr/local/bcm/customer_config.soc" is used to include special
configurations for the board. It is executed as the last part of
"/usr/local/bcm/rc.soc".

# customer extra configurations after SDK init.

/usr/local/bcm/customer_config.soc

# ADLINK. Switch LED to Serial2Parallel mode.

setreg top_parallel_led_ctrl 0x3ff00

# ADLINK. Restart LEDuP to load program.

led stop

led load /usr/local/bcm/cpci-6s10_led_0.hex

led auto on

led start

# ADLINK. 54685 LED select & act set.

phy ge16 0x1c 0xb430

phy ge17 0x1c 0xb430

phy ge18 0x1c 0xb430

phy ge19 0x1c 0xb430

Advertising