From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FUZZY_XPILL autolearn=no version=3.2.5 Date: Wed, 28 Jan 2009 11:12:03 +0300 From: Pavlov Konstantin To: sysadmins@lists.altlinux.org Message-ID: <20090128081203.GA22474@snowwhite.immo> References: <4980106A.3070707@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: <4980106A.3070707@gmail.com> X-Operating-System: ALT Linux Sisyphus (20081222) User-Agent: Mutt/1.5.18 (2008-10-30) X-Virus-Scanned: amavisd-new at immo.ru Subject: Re: [Sysadmins] =?koi8-r?b?b3BlbndydCDJIGFzdXMgd2wtMzIwZ2U=?= X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: ALT Linux sysadmin discuss List-Id: ALT Linux sysadmin discuss List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2009 08:11:10 -0000 Archived-At: List-Archive: --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 28, 2009 at 10:59:38AM +0300, Vladimir Elizarov wrote: > =F0=D9=D4=C1=C0=D3=D8 =DA=C1=CC=C9=D4=D8 =D0=D2=CF=DB=C9=D7=CB=D5 =DE=C5= =D2=C5=DA tftp. =E4=C5=CC=C1=C0 =D7=D3=A3 =CB=C1=CB =CE=C1=D0=C9=D3=C1=CE= =CF =D7=20 > =C4=CF=CB=D5=CD=C5=CE=D4=C1=C3=C9=C9. =F3=C4=C5=CC=C1=CC hard-reset =C4= =CF =C1=D3=D5=D3=D7=D3=CB=CF=CA =D0=D2=CF=DB=C9=D7=CB=C9 (1.9.8.6) >=20 > =F7=D9=CB=CC=C0=DE=C9=CC =C4=C5=D7=C1=CAc > =D3=C4=C5=CC=C1=CC: >=20 > atftp --trace --option "timeout 1" --option "mode octet" --put --local-fi= le openwrt-brcm-2.4-squashfs.trx 192.168.1.1 >=20 > =C9 =D7=CB=CC=C0=DE=C9=CC =C4=C5=D7=C1=CA=D3 >=20 > =D0=CF=CB=C1=DA=D9=D7=C1=C5=D4 =D3=CC=C5=C4=D5=C0=DD=C9=C5: > Trace mode on. > Option timeout =3D 1 > Option mode =3D octet > sent WRQ > > source port mismatch, check bypassedtimeout: retrying... > sent WRQ > > source port mismatch, check bypassedtimeout: retrying... > sent WRQ > > source port mismatch, check byassedtimeout: retrying... > sent WRQ > > source port mismatch, check bypassedtimeout: retrying... > sent WRQ > > source port mismatch, check bypassedtimeout: retrying... > sent WRQ > > source port mismatch, check bypassedtimeout: retrying... >=20 >=20 > =D3=D7=D1=DA=D8 =CD=C5=D6=C4=D5 =D4=CF=DE=CB=CF=CA =C9 =CB=CF=CD=D0=CF=CD= =C5=D3=D4=D8. =F0=CF=C8=CF=D6=C5 =CE=C1 =D4=CF =DE=D4=CF tftp =CE=C5 =D7= =CB=CC=C0=DE=C5=CE, =CE=C1 > =D3=D4=D2=C1=CE=C9=C3=C5 wl-320ge =D0=D2=CF =CF=D3=CF=C2=CF=C5 =D7=CB=CC= =C0=DE=C5=CE=C9=C5 tftp =CE=C9=DE=C5=C7=CF =CE=C5 =CE=C1=D0=C9=D3=C1=CE=CF.= =EB=C1=CB =C5=C7=CF =D7=D3=A3-=D4=C1=CB=C9 =D7=CB=CC=C0=DE=C9=D4=D8? =F7 diag mode =CE=C1=C4=CF. =F7 =CD=CF=C5=CD wl500gp =DC=D4=CF =D4=C1=CB: To install OpenWrt using TFTP or the ASUS firmware restoration tool you hav= e to put the router in diag mode. To put the router in the diag mode, do this: * Unplug the router's power cord. * Confirm your PC is configured to request an address via DHCP. * Connect the router's LAN1 port directly to your PC. * Push the black RESTORE button using a pen or such, and keep the button pu= shed down. * Plug the power on while keeping the RESTORE button pushed for few seconds. * When you see a slowly blinking power light, you are in diag mode. * Now the router should accept an image via TFTP or via the ASUS firmware restoration tool.=20 In diag mode, the router takes address 192.168.1.1. It responds to ping, so= you can confirm that it is in diag mode and ready for the tftp by using "ping 192.168.1.1". Note: I used the Asus tool to reflash the orginal asus firmware over kamika= ze 7.09. In diag mode the asus kept the IP address assigned to it in kamikaze, which was not 192.168.1.1. The asus firmware restoration tool worked even though the asus in diag mode did not assign my PC an IP via DHCP and even though I could not ping the asus at 192.168.1.1. I had to use ethereal/wireshark to monitor traffic on LAN1 to figure out what I had set = the IP address to. Then, using the proper IP address I could access the stock A= sus web pages to use the "Reset to Factory Default" function and restore all settings to factory state.=20 --=20 [...] =DA=C1=DE=C5=CD =D7=D9 =C8=CF=D4=C9=D4=C5 =DA=C1=D4=C1=DD=C9=D4=D8 = =CB=CF=C4 =C1=D7=D4=CF=D2=C9=DA=C1=C3=C9=C9 =D7 =D1=C4=D2=CF, =D7 =D4=CF = =D7=D2=C5=CD=D1 =CB=C1=CB =D7=D3=C5 =D3=D4=C1=D2=C1=C0=D4=D3=D1 =D7=D9=CE=C5=D3=D4=C9 =D7=D3=A3 =DE= =D4=CF =CD=CF=D6=CE=CF =C9=DA =D1=C4=D2=C1 =D7 userspace? =EE=C5 =C9=CE=C1= =DE=C5 =CB=C1=CB =CE=C1=D0=D2=C1=DB=C9=D7=C1=C5=D4=C5=D3=D8 =CE=C1 =D3=CF=D7=C5=D4 =D0=D2=CF= =DE=C9=D4=C1=D4=D8 =C8=CF=D2=CF=DB=D5=C0 =CB=CE=C9=D6=CB=D5 =D0=D2=CF unix? -- ldv in community@ --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkmAE1AACgkQR0cP4/qrkIRz/gCZAY81cEJ90193Ef7QAbWM+9r+ LcEAn3TDUOB10l7hnONfIZRt/u87idtW =PItg -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N--