Alternative device firmware update method using RS-232
When you cannot update the firmware via web configurator or the console (Тelnet, SSH), you may use an alternative firmware update method via RS-232.
To update the device firmware, you will need the following programs:
- Terminal program (нfor example, TERATERM);
- TFTP server program.
Firmware update procedure:
- Connect to Ethernet port of the device.
- Connect PC COM port to the device console port using a crossed cable.
- Run the terminal application.
- Configure data rate: 115200, data format: 8 bit w/o parity, 1 stop bit, w/o flow control.
- Run tftp server program and specify the path to smg_files folder. In this folder, create smg subfolder, and place SMG_kernel, SMG_initrd files in it (computer that runs TFTP server and the device should be located in the same network.)
Turn the device on and stop the startup sequence by entering 'stop' command in the terminal program window:
U-Boot 2009.06 (Feb 09 2010 – 20:57:21) CPU: AMCC PowerPC 460GT Rev. A at 800 MHz (PLB=200, OPB=100, EBC=100 MHz) Security/Kasumi support Bootstrap Option B – Boot ROM Location EBC (16 bits) 32 kB I-Cache 32 kB D-Cache Board: SMG-1016Mv2 board, AMCC PPC460GT Glacier based, 2*PCIe, Rev. FF I2C: ready DRAM: 512 MB SDRAM test phase 1: SDRAM test phase 2: SDRAM test passed. Ok! FLASH: 64 MB NAND: 128 MiB DTT: 1 FAILED INIT Net: ppc_4xx_eth0, ppc_4xx_eth1 Type run flash_nfs to mount root filesystem over NFS Autobooting in 3 seconds, press 'stop' for stop =>- Enter set ipaddr <device IP address> <ENTER>;
Example: set ipaddr 192.168.2.2 - Enter set netmask <device network mask> <ENTER>;
Example: set netmask 255.255.255.0 - Enter set serverip <IP address of the computer, that runs tftp server> <ENTER>;
Example: set serverip 192.168.2.5 Enter mii si <ENTER> to active the network interface:
=> mii si Init switch 0: ..Ok! Init switch 1: ..Ok! Init phy 1: ..Ok! Init phy 2: ..Ok! =>
Update the Linux kernel using run flash_kern command:
=> run flash_kern About preceeding transfer (eth0): - Sent packet number 0 - Received packet number 0 - Handled packet number 0 ENET Speed is 1000 Mbps – FULL duplex connection (EMAC0) Using ppc_4xx_eth0 device TFTP from server 192.168.2.5; our IP address is 192.168.2.2 Filename ' smg/SMG_kernel'. Load address: 0x400000 Loading: ################################################################# ################################### done Bytes transferred = 1455525 (1635a5 hex) Un-Protected 15 sectors ............... done Erased 15 sectors Copy to Flash... 9....8....7....6....5....4....3....2....1....done =>Update the file system using run flash_initrd command:
=> run flash_initrd Using ppc_4xx_eth0 device TFTP from server 192.168.2.5; our IP address is 192.168.2.2 Filename ' smg/SMG_initrd'. Load address: 0x400000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# #################### done Bytes transferred = 25430113 (1840861 hex) Erase Flash Sectors 56-183 in Bank # 2 Un-Protected 256 sectors ........................................................... done Erased 256 sectors Copy to Flash... 9....8....7....6....5....4....3....2....1....done =>- Start up the device using run bootcmd command.
Alternative device firmware update method using USB-flash
When all other firmware update methods are unavailable, you may update the firmware using USB flash drive.
To update the device firmware using USB flash drive, you will need the following:
- USB flash drive;
- Terminal program (for example, TERATERM).
Firmware update procedure:
- Copy the firmware file into the USB flash drive root directory.
- Connect PC COM port to the device console port using a crossed cable or establish a connection with the device via Telnet/SSH protocol.
- Run the terminal application.
- Configure data rate: 115200, data format: 8bit w/o parity, 1 stop bit, w/o flow control (for connection via RS-232).
- Turn the device on, wait until it boots up completely.
- After the startup, connect in the terminal mode via Telnet/SSH or RS-323.
Enter the following command in CLI mode:
firmware update <file-name> usb
If CLI mode is not available, you may update in shell mode; to do this, enter in shell mode:/usr/local/scripts/get_firmware <file-name> usb
where <file-name> – fimware file name.
- Wait until firmware update procedure is completed and restart the device.