Differences

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

toh:d-link:dir-620 [2013/04/24 05:32]
toh:d-link:dir-620 [2014/03/19 15:07] (current)
Line 4: Line 4:
^ Version/Model ^ Launch Date ^ S/N ^ OpenWrt Version Supported ^ Model Specific Notes ^ ^ Version/Model ^ Launch Date ^ S/N ^ OpenWrt Version Supported ^ Model Specific Notes ^
| A1  |  -  | - | [[https://dev.openwrt.org/changeset/33143/trunk|r33143]] | - | | A1  |  -  | - | [[https://dev.openwrt.org/changeset/33143/trunk|r33143]] | - |
-| D1  |  -  | - | [[http://pastebin.com/yhhiGxaD|patch for AA]] [[http://pastebin.com/yntTTCSU|patch for current trunk]]| - | +| D1  |  -  | - | [[http://pastebin.com/yhhiGxaD|patch for AA]] [[https://dev.openwrt.org/changeset/36432/trunk|r36432]]| - |
===== Hardware Highlights ===== ===== Hardware Highlights =====
^ Rev ^ CPU ^ Ram ^ Flash ^ WiFi ^ Network ^ USB ^ Serial ^ JTag ^ ^ Rev ^ CPU ^ Ram ^ Flash ^ WiFi ^ Network ^ USB ^ Serial ^ JTag ^
| A1 | Ralink RT3052F@384MHz | 32MiB | 8MiB | 2x2 2.4Ghz 802.11n 300MiBit/s | 4 x 1 10/100MiBit/s | Yes, 1x2.0 | Yes | Yes | | A1 | Ralink RT3052F@384MHz | 32MiB | 8MiB | 2x2 2.4Ghz 802.11n 300MiBit/s | 4 x 1 10/100MiBit/s | Yes, 1x2.0 | Yes | Yes |
 +| C1 | Broadcom BCM5357@530MHz chip rev 2 pkg 8 | 64MiB | 8MiB | 2x2 2.4Ghz 802.11n 300MiBit/s | 4 x 1 10/100MiBit/s | Yes, 1x2.0 | Yes | ? |
| D1 | Ralink RT3352F@400MHz | 32MiB | 8MiB | 2x2 2.4Ghz 802.11n 300MiBit/s | 4 x 1 10/100MiBit/s | Yes, 1x2.0 | Yes | ? | | D1 | Ralink RT3352F@400MHz | 32MiB | 8MiB | 2x2 2.4Ghz 802.11n 300MiBit/s | 4 x 1 10/100MiBit/s | Yes, 1x2.0 | Yes | ? |
The device has two non-detachable external antennas (the PCB has two Murata SWD testpoints but those are unsuitable for connecting pigtails). The device has two non-detachable external antennas (the PCB has two Murata SWD testpoints but those are unsuitable for connecting pigtails).
Line 16: Line 17:
  - -> [[doc:howto:generic.flashing|Install OpenWrt]]   - -> [[doc:howto:generic.flashing|Install OpenWrt]]
-Rev A1+===Rev A1===
-You need to select target ''Ralink RT288x/RT3xxx'' and subtarget ''RT305x based boards''. This will generate ''openwrt-ramips-rt305x-dir-620-a1-squashfs-sysupgrade.bin'' that can be either flashed via TFTP (you need serial access to control U-Boot for that) or via the OEM firmware web-interface (if you're using a version older than 1.2.102 then first download ftp://ftp.dlink.ru/pub/Router/DIR-620/Firmware/RevA/Old/DIR_620-1.2.102-20110518.fwz or ftp://ftp.dlink.ru/pub/Router/DIR-620/Firmware/RevA/Old/only_for_FW_1.2.1_DIR_620-1.2.16-20110127.fwz (only for 1.2.1) and upgrade to that, after that the OEM firmware web-interface will start to accept the U-Boot images targetted for ''DIR_620'').+IT is need to build OpenWRT from sources: or 12.09 with patch or trunk. In ''make menuconfig'' You need to select target ''Ralink RT288x/RT3xxx'' and subtarget ''RT305x based boards''. Do not select target profile (or select "Default Profile"). This will generate ''openwrt-ramips-rt305x-dir-620-a1-squashfs-sysupgrade.bin'' that can be either flashed via TFTP (you need serial access to control U-Boot for that) or via the OEM firmware web-interface (if you're using a version older than 1.2.102 then first download ftp://ftp.dlink.ru/pub/Router/DIR-620/Firmware/RevA/Old/DIR_620-1.2.102-20110518.fwz or ftp://ftp.dlink.ru/pub/Router/DIR-620/Firmware/RevA/Old/only_for_FW_1.2.1_DIR_620-1.2.16-20110127.fwz (only for 1.2.1) and upgrade to that, after that the OEM firmware web-interface will start to accept the U-Boot images targetted for ''DIR_620'').
If you ever want to flash the original firmware, just scp it to /tmp and then run ''mtd -r write /tmp/DIR_620-1.2.102-20110518.bin firmware'' If you ever want to flash the original firmware, just scp it to /tmp and then run ''mtd -r write /tmp/DIR_620-1.2.102-20110518.bin firmware''
-Rev D1+ 
 +===Rev D1=== 
 + 
 +Two modifications of DIR-620 D1 are exist: board *11340Y20IM00002B1* (old) and board *11340Y20IM00002C1* (new, 2013).  
 + 
 +IT is need to build OpenWRT from sources (trunk). In ''make menuconfig'' You need to select target ''Ralink RT288x/RT3xxx'' and subtarget ''RT305x based boards''. Do not select target profile (or select "Default Profile"). Is is need to select "ramdisk" and "squashfs" in "target images". This produced ''openwrt-ramips-rt305x-dir-620-d1-initramfs-uImage.bin'' and ''openwrt-ramips-rt305x-dir-620-d1-squashfs-sysupgrade.bin''.
OEM firmware web-interface accept the U-Boot images targetted for ''DIR_620D1''. OEM firmware web-interface accept the U-Boot images targetted for ''DIR_620D1''.
 +
 +Be careful with the patch above. I accidentally downloaded and applied it with dos line endings, and that resulted in kernel panic:
 +
 +<code>/etc/preinit: /lib/preinit/06_set_iface_mac: line 10: syntax error: unexpected word (expecting "in")</code>
 +
 +In the some old versions wifi was broken(i suppose from rev ~37150)[[https://dev.openwrt.org/ticket/13867|Ticket 13867]]. To restore it, just remove line <code>rt2x00_rt(rt2x00dev, RT3352) ||</code> immediately after function <code>rt2800_init_eeprom</code> in file <code>build_dir/target-mipsel_dsp_uClibc-0.9.33.2/linux-ramips_rt305x/compat-wireless-2013-06-27/drivers/net/wireless/rt2x00/rt2800lib.c</code>(it creates after first compilation).
 +
 +In last versions (r39903 for example) **Wi-Fi works fine**.
 +
 +To debrick, hold button for while connecting power. Release button after ~30 sc, http firmware loader should be available at 192.168.0.1
 +
 +<code>starting httpd to update firmware...
 +
 + NetTxPacket = 0x81FE5A00
 +
 + KSEG1ADDR(NetTxPacket) = 0xA1FE5A00
 +
 + NetLoop,call eth_halt !
 +Trying Eth0 (10/100-M)
 +
 + Waitting for RX_DMA_BUSY status Start... done
 +
 +
 + Header Payload scatter function is Disable !!
 +
 + ETH_STATE_ACTIVE!!
 +Starting Httpd Server From Server 192.168.0.1
 +Our Netmask 255.255.255.0</code>
 +
 +If HTTP isn't avaiable, You nesessary TFTP flashing using serial console.
 +
 +In the new firmware you may use a ''mtd'' program in telnet session:
 +<code>
 +# mtd -r write openwrt-ramips-rt305x-dir-620-d1-squashfs-sysupgrade.bin firmware
 +</code>
 +
 +==TFTP flashing using serial console.==
 +(debricking)
 +
 +It is nesessary open cover and sold a serial connector to board (see a photo below). Next connect serial port to computer via RS232C 3.3 V adater (PL2303 recommended), and turn on router.
 +Next press key "1" at waiting two-seconds cyrcle and download U-boot image to RAM of router:
 +<code>
 +DRAM_WIDTH: 16 bits
 +
 +DRAM_TOTAL_WIDTH: 16 bits
 +
 +TOTAL_MEMORY_SIZE: 32 MBytes
 +
 +Flash component: SPI Flash
 +
 +Date:Jun  9 2012  Time:07:23:11
 +
 +============================================
 +
 +icache: sets:256, ways:4, linesz:32 ,total:32768
 +
 +dcache: sets:128, ways:4, linesz:32 ,total:16384
 +
 +
 + ##### The CPU freq = 400 MHZ ####
 +
 + estimate memory size =32 Mbytes
 +
 +raspi_read: from:40004 len:6
 +
 +.
 +
 +
 +Please choose the operation:
 +
 +  1: Load system code to SDRAM via TFTP.
 +
 +  2: Load system code then write to Flash via TFTP.
 +
 +  3: Boot system code via Flash (default).
 +
 +  4: Entr boot command line interface.
 +
 +  7: Load Boot Loader code then write to Flash via Serial.
 +
 +  9: Load Boot Loader code then write to Flash via TFTP.
 + 1
 +
 +You choosed 1
 +
 + 0
 +raspi_read: from:40004 len:6
 +.
 + 
 +1: System Load Linux to SDRAM via TFTP.
 + Please Input new ones /or Ctrl-C to discard
 +      Input device IP (192.168.0.1) ==:192.168.0.1
 +      Input server IP (192.168.0.2) ==:192.168.0.2
 +      Input Linux Kernel filename () ==:openwrt-ramips-rt305x-dir-620-d1-initramfs-uImage.bin
 +
 + netboot_common, argc= 3
 +
 + NetTxPacket = 0x81FE5A00
 +
 + KSEG1ADDR(NetTxPacket) = 0xA1FE5A00
 +
 + NetLoop,call eth_halt !
 +
 + NetLoop,call eth_init !
 +Trying Eth0 (10/100-M)
 +
 + Waitting for RX_DMA_BUSY status Start... done
 +
 +
 + Header Payload scatter function is Disable !!
 +
 + ETH_STATE_ACTIVE!!
 +Using Eth0 (10/100-M) device
 +TFTP from server 192.168.0.2; our IP address is 192.168.0.1
 +Filename 'openwrt-ramips-rt305x-dir-620-d1-initramfs-uImage.bin'.
 +
 +TIMEOUT_COUNT=10,Load address: 0x80800000
 +Loading:
 +ArpTimeoutCheck
 +Got ARP REPLY, set server/gtwy eth addr (00:18:f3:d0:62:06)
 +Got it
 +#################################################################
 +      #################################################################
 +      #################################################################
 +      #################################################################
 +      #################################################################
 +      #################################################################
 +      #################################################################
 +      ############################################
 +done
 +Bytes transferred = 2554082 (26f8e2 hex)
 +NetBootFileXferSize= 0026f8e2
 +raspi_read: from:30000 len:10000
 +.Erasing SPI Flash...
 +raspi_erase: offs:30000 len:10000
 +.
 +Writing to SPI Flash...
 +raspi_write: to:30000 len:10000
 +.
 +done
 +Automatic boot of image at addr 0x80800000 ...
 +## Booting image at 80800000 ...
 +  Image Name:  MIPS OpenWrt Linux-3.9.10
 +  Created:      2013-07-17  19:20:03 UTC
 +  Image Type:  MIPS Linux Kernel Image (lzma compressed)
 +  Data Size:    2554018 Bytes =  2.4 MB
 +  Load Address: 80000000
 +  Entry Point:  80000000
 +  Verifying Checksum ... OK
 +  Uncompressing Kernel Image ... OK
 +No initrd
 +## Transferring control to Linux (at address 80000000) ...
 +## Giving linux memsize in MB, 32
 +
 +Starting kernel ...
 +</code>
 +After booting OpenWRT from RAM you may use ''sysupgrade'' to write "*sysupgrade.bin" image to flash:
 +<code>
 +root@OpenWrt:/tmp# sysupgrade -v -n openwrt-ramips-rt305x-dir-620-d1-squashfs-sysupgrade.bin
 +killall: watchdog: no process killed
 +Sending TERM to remaining processes ... ubusd netifd 6relayd dnsmasq ntpd
 +Sending KILL to remaining processes ... ubusd
 +Performing system upgrade...
 +Unlocking firmware ...
 +
 +Writing from <stdin> to firmware ...  [w]
 +   
 +Upgrade completed
 +Rebooting system...
 +</code>
==== Flash Layout ==== ==== Flash Layout ====
Please check out the article [[doc:techref:Flash Layout]]. It contains an example and a couple of explanations. Please check out the article [[doc:techref:Flash Layout]]. It contains an example and a couple of explanations.
 +
 +^ Address range ^ Partition ^
 +|0x00000000-0x00030000 |Bootloader |
 +|0x00030000-0x00040000 |Config |
 +|0x00040000-0x00050000 |Factory |
 +|0x00050000-0x00800000 |Firmware |
==== Upgrading OpenWrt ==== ==== Upgrading OpenWrt ====
Line 41: Line 223:
==== Led config ==== ==== Led config ====
-> [[doc:uci:system#leds]] -> [[doc:uci:system#leds]]
-Rev A1+===Rev A1===
Please note that the "WAN" led will be inactive unless there's a link on the "WAN" port present, that's a hardware limitation. Please note that the "WAN" led will be inactive unless there's a link on the "WAN" port present, that's a hardware limitation.
-Rev D1+===Rev D1=== 
 + 
 +Last vendor firmware v1.3.10 help to find wifi LED gpio17 (need JTAG to GPIO mode switch). So [[http://pastebin.com/yhhiGxaD|this patch]] add full support for OpenWrt Attitude Adjustment. And [[http://pastebin.com/HgWkmzBy|new patch]] (new version of [[http://pastebin.com/yntTTCSU|patch]] with corrected flash size) for current trunk (devicetree file included).
-Last vendor firmware v1.3.10 help to find wifi LED gpio17 (need JTAG to GPIO mode switch). So [[http://pastebin.com/yhhiGxaD|this patch]] add full support for OpenWrt Attitude Adjustment. And [[http://pastebin.com/yntTTCSU|patch]] for current trunk (devicetree file included) 
===== Hardware ===== ===== Hardware =====
==== Info ==== ==== Info ====
-Rev A1+===Rev A1===
| **[[wp>Instruction set|Architecture]]:**    | [[wp>MIPS architecture|MIPS]] | | **[[wp>Instruction set|Architecture]]:**    | [[wp>MIPS architecture|MIPS]] |
| **Vendor:**          | [[wp>Ralink]] | | **Vendor:**          | [[wp>Ralink]] |
Line 66: Line 249:
| **[[doc:hardware:port.jtag|JTAG]]:**            | [[#JTAG|Yes]]  | | **[[doc:hardware:port.jtag|JTAG]]:**            | [[#JTAG|Yes]]  |
-Rev D1+===Rev D1===
| **[[wp>Instruction set|Architecture]]:**    | [[wp>MIPS architecture|MIPS]] | | **[[wp>Instruction set|Architecture]]:**    | [[wp>MIPS architecture|MIPS]] |
| **Vendor:**          | [[wp>Ralink]] | | **Vendor:**          | [[wp>Ralink]] |
Line 84: Line 267:
-> [[doc:hardware:port.serial]] general information about the serial port, serial port cable, etc. -> [[doc:hardware:port.serial]] general information about the serial port, serial port cable, etc.
-Rev A1+===Rev A1===
{{:toh:d-link:dir-620.serial.jpg?500|D-Link DIR-620 A1 serial pinout}} {{:toh:d-link:dir-620.serial.jpg?500|D-Link DIR-620 A1 serial pinout}}
-Rev D1+===Rev D1===
{{http://dl.dropbox.com/u/10610088/dlink620_pinout.jpg|D-Link DIR-620 A1 serial pinout}} {{http://dl.dropbox.com/u/10610088/dlink620_pinout.jpg|D-Link DIR-620 A1 serial pinout}}
Line 95: Line 278:
-> [[doc:hardware:port.jtag]] general information about the JTAG port, JTAG cable, etc. -> [[doc:hardware:port.jtag]] general information about the JTAG port, JTAG cable, etc.
-Rev A1+===Rev A1===
It's possible to upload a special u-boot version (recompiled to run from RAM) via JTAG. The pinout is here: It's possible to upload a special u-boot version (recompiled to run from RAM) via JTAG. The pinout is here:
Line 103: Line 286:
[[http://dir620.ipb.su/index.php?showtopic=106|JTAG using instructions (in Russian)]] [[http://dir620.ipb.su/index.php?showtopic=106|JTAG using instructions (in Russian)]]
-Rev D1+===Rev D1===
May be possible, untested (near serial flash?). May be possible, untested (near serial flash?).
===== Hardware mods ===== ===== Hardware mods =====
-Rev A1+===Rev A1===
Many reports suggest that the SoC is overheating and some devices require BGA reballing after extensive use. The chip can need to dissipate up to 2.3W and thus installing a heatsink is highly recommended (or you might severely damage your device). Many reports suggest that the SoC is overheating and some devices require BGA reballing after extensive use. The chip can need to dissipate up to 2.3W and thus installing a heatsink is highly recommended (or you might severely damage your device).
Line 122: Line 305:
===== Stock firmware bootlog ===== ===== Stock firmware bootlog =====
 +===A1===
<HTML> <HTML>
<p style="padding: 10px;border:1px solid grey;height:600px;font:10px/14px Georgia, Garamond, Serif;overflow:Auto;background-color:#FFFFFF"> <p style="padding: 10px;border:1px solid grey;height:600px;font:10px/14px Georgia, Garamond, Serif;overflow:Auto;background-color:#FFFFFF">
Line 519: Line 703:
===== Tags ===== ===== Tags =====
-{{tag>FastEthernet 5Port 1USB JTAG Serial 802.11bgn 2Ant NonDetachableAntenna 32RAM 8Flash MIPS}}+{{tag>ramips rt3052 rt3352 FastEthernet 5Port 1USB JTAG Serial 802.11bgn 2Ant NonDetachableAntenna 32RAM 8Flash MIPS}}

Back to top

toh/d-link/dir-620.1366774367.txt.bz2 · Last modified: 2013/04/24 05:32 (external edit)