|
|
Firmware recovery
Generally you can simply update your Opengear device to the latest firmware remotely using your browser (or the command line) - as described in faq253.
However if your Opengear device has a corrupt firmware image that precludes updating (but still has a working bootloader) you can upload a new net-boot recovery image locally into the device - as the raw uboot bootloader in each Opengear device supports loading a runtime image into RAM using the tftp protocol. You can then use this recovery image to update the full firmware image.
- Set up the required files onto your PC:
- You'll need to download a tftp server into a PC on the local network. Also the raw uboot bootloader needs to be assigned an IP address so you need to download a dhcp server:
- For Windows: We suggest you use the tftpd32.exe tool as it offers both a tftp and a dhcp server. Download tftpd32.exe from tftpd32.jounin.net. Save it in a directory on your PC
- For Linux: $ sudo apt-get install atftpd dhcp3-server
- You will need to download the appropriate recovery image file and copy it into the same directory as tftpd32.exe. The recovery image .flash file can be downloaded from ftp://ftp.opengear.com/release/recovery/.
- For ACM500x download ACM_Recovery.flash
- For CM4001 download CM4001_Recovery.flash
- For CM4002 download CM4001_Recovery.flash
- For SD4001 download CM4001_Recovery.flash
- For SD4002 download CM4001_Recovery.flash
- For CM4008 download CM4008_Recovery.flash
- For CM41xx download CM41xx_Recovery.flash
- For IM42xx download IM42xx_Recovery.flash
- For IM4004 download IM4004_Recovery.flash
- Ensure you have a known good full firmware .flash file available on your PC to be uploaded into the Opengear device once the recovery step is complete. The latest Opengear release firmware .flash file can be downloaded from ftp://ftp.opengear.com/release/.
- For IM4004-5, IM4216-2, IMG4216-25 and IM4148-2 download im42xx.flash
- For CM4116 or CM4148 download cm41xx.flash
- For CM4008 download cm4008.flash
- For CM4001 download cm4001.flash
- For SD4002 download sd4002.flash
- Setup your PC for the recovery process:
- Disable all network connections except for one wired Ethernet connection you'll be using to connect to the Opengear device you are recovering
- Set up the connection with the static IP address 192.168.0.100 subnet mask 255.255.255.0 (gateway and DNS don't matter)
- Connect the Opengear device's first Ethernet port directly to your PC Ethernet port with an Ethernet cable
- Ensure all firewall and antivirus software on the PC is configured to allow TFTP and DHCP services to run on this interface. If unsure, disable all firewall and antivirus software
- Ensure the Windows DHCP service isn't running i.e. Click Start -> Programs -> Administrative Tools -> Services and if the DHCP Server (not DHCP Client) is running, right click and stop it
- Configure DHCP server and TFTP server:
For Windows:
- Launch tftpd32.exe and select 192.168.0.100 as the Server Interface.
- Ensure the Current Directory is the directory that contains the recovery image .flash file
- Click on Settings and edit the DHCP server tab. Enter 192.168.0.200 as the IP pool starting address. Enter 10 as the Size of pool. Enter the filename of the recovery image .flash file (e.g IM42xx_Recovery.flash) as the Boot File. Enter 255.255.255.0 as the Mask. Click OK
- Ensure that the Boot File is consistent with the name of the firmware file you wish to load
For Linux:
- Edit your dhcp server configuration (e.g. /etc/dhcpd.conf) to include an entry
for the Opengear device. The entry might look something like:
host myopengear
{
hardware ethernet 00:13:C6:00:00:01;
fixed-address 192.168.0.10;
filename "recovery_image.flash";
}
- Ensure that filename is consistent with the name of the firmware file you wish
to load.
- Edit your tftp server configuration (e.g. /etc/default/atftpd) to specify the
tftp directory (e.g. /tftpboot) and to run as a server directly.
USE_INETD=false
OPTIONS="--tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 1 --maxthread 100 --verbose=5 /tftpboot"
- Recover the device:
- Power the Opengear device off
- Power the Opengear device on with the Erase button pressed in. Hold it in for a few seconds before releasing
- The Opengear device will load the recovery .flash file into RAM and run it. This may take up to a minute or two
- Check down the bottom under the tftp32.exe DHCP server tab for the allocated address. In the example above it will be between 192.168.0.200-209 e.g. 192.168.0.201

- Browse to http://192.168.0.201 to access the Opengear Management Console. Please note that the recovery image UI is accessible through http as opposed to
https.
- Perform a regular firmware upgrade:
- go to the System: Firmware menu and specify the address and name for the saved .flash file (or Browse the local subnet and locate the .flash file
- specify -i under Firmware Options
- Click Apply and the console server will undertake a soft reboot and commence upgrading the firmware.
- If you can't browse to the address to start the Management Console, the unit may be uncontactable due to bad configuration. If you suspect this is the case, perform a factory erase by pressing the unit's Erase button twice within two seconds, then return to the start of this step.
|