Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:netgear:r6220 [2024/03/31 09:35] – [OEM easy installation (OpenWrt 19.07 and newer, snapshot)] badulesiatoh:netgear:r6220 [2024/03/31 09:44] – [Debricking / back to stock firmware] badulesia
Line 63: Line 63:
   * the wireless LED is still on while wireless networks are disabled (default behavior of OpenWrt). A reboot, or use of the wireless handswitch, restores the right LED status.   * the wireless LED is still on while wireless networks are disabled (default behavior of OpenWrt). A reboot, or use of the wireless handswitch, restores the right LED status.
   * There is no default LED rules configurated.   * There is no default LED rules configurated.
-==== Installation through telnet (OpenWrt 18.06)==== 
- 
-<WRAP center round alert> 
-**This is only for vintage technical purpose, use a newer version of OpenWrt for obvious security reasons.** 
- 
-**Note**: OEM firmware 1.0.xxx will not work (mtd will not unlock for write). Version 1.1.0.50_1.0.1 will not work anyway, but versions 1.1.0.62_1.0.1, 1.1.0.80_1.0.1 and 1.1.0.86_1.0.1 are confirmed working. 
- 
-  - Copy kernel.bin and rootfs.bin to a USB flash disk, plug to usb port on the router 
-  - Call the link: ''%%http://192.168.1.1/setup.cgi?todo=debug%%'' (login if required, default: admin - password); if the above IP address does not work, try with 10.0.0.1. 
-  - You will see "Debug Enabled!" 
-  - telnet IP-address and login with "root" (default: admin - password) 
-  - ''ls /mnt/shares/'' to find out path of your USB disk - ''myUdisk'' for example 
-  - ''cd /mnt/shares/myUdisk'' 
-  - ''cat /proc/mtd > r6220.mtd.layout'' 
-  - ''cat /dev/mtd10ro > r6220.mtd10ro.factory.bin'' 
-  - ''mtd_write write rootfs.bin Rootfs'' 
-  - ''mtd_write write kernel.bin Kernel'' 
-  - ''reboot'' 
- 
-// Replace ''rootfs.bin'' and ''kernel.bin'' with the names of the images downloaded // 
-</WRAP> 
- 
- 
  
 ==== OEM installation using the TFTP method ==== ==== OEM installation using the TFTP method ====
Line 111: Line 88:
 ->  [[docs:guide-user:installation:generic.sysupgrade]] ->  [[docs:guide-user:installation:generic.sysupgrade]]
  
-<WRAP BOX>+Upgrading can be done using LuCI or sysupgrade (in SSH) in the usual way. 
 +Upgrading from 19.07 to an higher version requires a complete new setup due to DSA syntax. So don't keep settings and reconfigure from scratch. Upgrading from 21.02 to a higher version can be done while keeping settings. Refer to the release note of each version for general purpose compatibility.
  
-FIXME These are generic instructions. Update with your router's specifics. 
  
-==== LuCI Web Upgrade Process ==== 
  
-  * Browse to ''%http://192.168.1.1/cgi-bin/luci/mini/system/upgrade/%'' LuCI Upgrade URL 
-  * Upload image file for sysupgrade to LuCI 
-  * Wait for reboot 
- 
-==== Terminal Upgrade Process ==== 
- 
-If you don't have a GUI (LuCI) available, you can alternatively upgrade via the command line. 
-There are two command line methods for upgrading: 
- 
-  * ''sysupgrade'' 
-  * ''mtd'' 
- 
-<WRAP center round important 60%> 
-It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing. 
-</WRAP> 
- 
-=== sysupgrade === 
- 
-  * Login as root via SSH on 192.168.1.1, then enter the following commands: 
- 
-<code> 
-# Version 18.06.X 
-cd /tmp 
-wget http://downloads.openwrt.org/releases/18.06.5/targets/ramips/mt7621/openwrt-18.06.5-ramips-mt7621-r6220-squashfs-sysupgrade.tar 
-sysupgrade -v /tmp/openwrt-18.06.5-ramips-mt7621-r6220-squashfs-sysupgrade.tar 
- 
-# Version 19.07.X 
-cd /tmp 
-wget http://downloads.openwrt.org/releases/19.07.2/targets/ramips/mt7621/openwrt-19.07.2-ramips-mt7621-r6220-squashfs-sysupgrade.bin 
-sysupgrade -v /tmp/openwrt-19.07.2-ramips-mt7621-r6220-squashfs-sysupgrade.bin 
- 
-</code> 
-<WRAP center round important 60%> 
-Since version 19.07.X, sysupgrade images now have the ".bin" extension instead of ".tar". 
-</WRAP> 
- 
- 
-=== mtd === 
- 
-If ''sysupgrade'' does not support this router, use ''mtd''. 
- 
-  * Login as root via SSH on 192.168.1.1, then enter the following commands: 
- 
-FIXME The commands below are just an example. 
-<code> 
-cd /tmp 
-wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc 
-mtd write /tmp/xxx.abc linux && reboot 
-</code> 
- 
-:!: Flashing to the wrong mtd label or an invalid image file may **brick** your device.\\  
-:!: DO NOT attempt to write files with the ''.tar'' extension using mtd. 
- 
-</WRAP> 
  
 ===== Debricking / back to stock firmware ===== ===== Debricking / back to stock firmware =====
 -> [[docs:guide-user:troubleshooting:generic.debrick]] -> [[docs:guide-user:troubleshooting:generic.debrick]]
  
-Debricking of the R6220 can be done by using the **nmrpflash** program. It is somehow a ''tftp'' method to upload file, and so the stock firmware. See details over here: [[https://github.com/jclehner/nmrpflash]]. You will also need [[https://npcap.com/dist/|npcap]] tool. Latest version don't seem to work. Version 1.60 does.+Debricking of the R6220 can be done by using the **nmrpflash** program. It is somehow a ''tftp'' method to upload file, and so the stock firmware. See details over here: [[https://github.com/jclehner/nmrpflash]]. You will also need [[https://npcap.com/dist/|npcap]] tool. Versions 1.60 and 1.79 are working.
  
-While the doc states to launch the progran THAN power on the router, it has been found that you must power on the router THAN launch the program for the R6220. After uploading the file, the message ''Received keep-alive request'' may take a while (>4 min) to complete, so be patient. In the example below, notice 253s. Reboot when told to by using the power button.+While the doc states to launch the progran THAN power on the router, it has been found that you must power on the router THAN launch the program for the R6220. After uploading the file, the message ''Received keep-alive request'' may take a while to complete (up to 4 min), so be patient. In the example below, notice **253s**. Reboot when told to by using the power button.
  
 <code bash> <code bash>
Line 193: Line 115:
 </code> </code>
  
-You can use the same method to install a ''factory'' OpenWrt image. In this case the ''Received keep-alive request'' message is about 60s long.+You can use the same method to install a ''factory'' OpenWrt image. In this case the ''Received keep-alive request'' message is longer (image is larger).
  
-if this fails try temporarily disabling the windows firewall while using nmrpflash and remember to re enable it after.+if this fails try temporarily disabling the windows firewall while using nmrpflashand remember to re-enable it after.
 ===== Flash Layout ===== ===== Flash Layout =====
  
  • Last modified: 2024/07/25 15:32
  • by badulesia