| 1 | = Factory resetting switches = |
| 2 | This page describes how to factory reset various switches. |
| 3 | |
| 4 | == References == |
| 5 | * [ Using kermit] (UNIX serial communications tool) |
| 6 | * [ U-Boot primer] |
| 7 | == Switchlist == |
| 8 | The following is a list of switches described here. |
| 9 | |
| 10 | Netgear |
| 11 | * [#g7224 GSM7224] |
| 12 | * [#g7248 GSM7248] |
| 13 | |
| 14 | === GSM7224 === #g7224 |
| 15 | '''Default user/password:''' admin/blank [[BR]] |
| 16 | '''Serial settings:''' carrier-watch off, 9600 baud, 8 data, 1 stop, parity none |
| 17 | |
| 18 | Start the switch up, with the serial line connected. Select 2 when prompted for the boot option: |
| 19 | {{{ |
| 20 | Verifying Operational Code CRC in Flash...100% |
| 21 | Select an option. If no selection in 10 seconds then |
| 22 | operational code will start. |
| 23 | |
| 24 | 1 - Start operational code. |
| 25 | 2 - Start Boot Menu. |
| 26 | Select (1, 2): 2 |
| 27 | }}} |
| 28 | |
| 29 | You will be presented with a boot menu. Choose "Restore Configuration to factory defaults", selection 8 in the case shown: |
| 30 | {{{ |
| 31 | Boot Menu |
| 32 | Options available |
| 33 | 1 - Start operational code |
| 34 | 2 - Change baud rate |
| 35 | 3 - Retrieve event log using XMODEM (64KB) |
| 36 | 4 - Load new operational code using XMODEM |
| 37 | 5 - Run Flash Diagnostics |
| 38 | 6 - Update Boot Code |
| 39 | 7 - Reset the system |
| 40 | 8 - Restore Configuration to factory defaults (delete config files) and reset |
| 41 | 9 - Display operational code vital product data |
| 42 | [Boot Menu] 8 |
| 43 | }}} |
| 44 | |
| 45 | Upon entering 8, the switch will reset and boot up. |
| 46 | {{{ |
| 47 | [Boot Menu] 8 |
| 48 | |
| 49 | |
| 50 | NetGear GSM7224 Boot code.... |
| 51 | |
| 52 | Flash = 8MB |
| 53 | SDRAM = 64MB |
| 54 | |
| 55 | Verifying Operational Code CRC in Flash...100% |
| 56 | Select an option. If no selection in 10 seconds then |
| 57 | operational code will start. |
| 58 | |
| 59 | 1 - Start operational code. |
| 60 | 2 - Start Boot Menu. |
| 61 | Select (1, 2): |
| 62 | |
| 63 | |
| 64 | Operational Code Date: Fri Jun 9 12:35:52 2006 |
| 65 | Uncompressing..... |
| 66 | |
| 67 | 50% 100% |
| 68 | |||||||||||||||||||||||||||||||||||||||||||||||||| |
| 69 | Attaching interface lo0...done |
| 70 | |
| 71 | Adding 23132 symbols for standalone. |
| 72 | |
| 73 | (Unit 1)> |
| 74 | |
| 75 | User: |
| 76 | }}} |
| 77 | |
| 78 | === GSM7248 === #g7248 |
| 79 | '''Default user/password:''' admin/blank [[BR]] |
| 80 | '''Serial settings:''' carrier-watch off, 9600 baud, 8 data, 1 stop, parity none |
| 81 | |
| 82 | Load the U-Boot prompt. This can be done by hitting any key right after the appearance of the U-Boot banner: |
| 83 | {{{ |
| 84 | U-Boot 1.1.2 (Feb 25 2006 - 21:16:55) |
| 85 | |
| 86 | Board: Netgear GSM7248 |
| 87 | DRAM: 64 MB |
| 88 | FLASH: 8.5 MB |
| 89 | Hit any key to stop autoboot: 0 |
| 90 | }}} |
| 91 | The variables for the switch should look like something below: |
| 92 | {{{ |
| 93 | => printenv |
| 94 | flashargs=setenv bootargs root=/dev/ram console=ttyS0,9600 mem=62M mac0=$(fp_card_base_mac) serialnum=$(fp_sn) quiet |
| 95 | silent=1 |
| 96 | bootcmd=run flashargs; bootm ff000000 |
| 97 | bootdelay=3 |
| 98 | baudrate=9600 |
| 99 | initrd_high=03E00000 |
| 100 | fp_num_mac_addrs=4 |
| 101 | fp_model=Netgear GSM7248 |
| 102 | fp_mfgr=bc00 |
| 103 | fp_pn=GSM7248 |
| 104 | fp_fru=GSM7248 |
| 105 | fp_desc=Netgear GSM7248 |
| 106 | fp_maint=1 |
| 107 | fp_who=LVL7 Support |
| 108 | fp_type=Netgear GSM7248stdin=serial |
| 109 | fp_card_base_mac=0x00:0x1E:0x2A:0x3B:0x9E:0xC5 |
| 110 | fp_sn=1DU3823J00054 |
| 111 | stdin=serial |
| 112 | stdout=serial |
| 113 | stderr=serial |
| 114 | |
| 115 | Environment size: 496/65532 byte |
| 116 | }}} |
| 117 | |
| 118 | The `flashargs` variable for `bootcmd` load the firmware with the current settings, including the password. You want to start the firmware without these settings so you can get to the boot menu. To do this, run the `bootm` command directly: |
| 119 | {{{ |
| 120 | => bootm ff000000 |
| 121 | }}} |
| 122 | |
| 123 | This loads just the firmware of the switch. Let the startup process run its course. Choose 2 when prompted for the startup mode: |
| 124 | {{{ |
| 125 | Select startup mode. If no selection is made within 3 seconds, |
| 126 | the GSM7248 Application will start automatically... |
| 127 | |
| 128 | 1 - Start GSM7248 Application |
| 129 | 2 - Display Utility Menu |
| 130 | Select (1, 2): 2 |
| 131 | }}} |
| 132 | |
| 133 | This will present you with the familiar boot menu: |
| 134 | {{{ |
| 135 | GSM7248 Startup Rev: 3.3 |
| 136 | |
| 137 | GSM7248 Startup -- Utility Menu |
| 138 | |
| 139 | 1 - Start GSM7248 Application |
| 140 | 2 - Load Code Update Package using XMODEM/YMODEM/ZMODEM |
| 141 | 3 - Display Vital Product Data |
| 142 | 4 - Select Serial Speed |
| 143 | 5 - Retrieve Error Log using XMODEM/YMODEM/ZMODEM |
| 144 | 6 - Erase Current Configuration |
| 145 | 7 - Erase Permanent Storage |
| 146 | |
| 147 | Q - Quit from GSM7248 Startup |
| 148 | |
| 149 | Select option (1-8 or Q): |
| 150 | }}} |
| 151 | Enter 6 to reset the configs. Now, power cycle the switch. The switch should be in default mode when it comes up again: |
| 152 | {{{ |
| 153 | GSM7248 starting...started! |
| 154 | |
| 155 | (Unit 1)> |
| 156 | |
| 157 | User:admin |
| 158 | Password: |
| 159 | (GSM7248) > |
| 160 | }}} |
| 161 | |