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:d-link:dir-825 [2018/03/04 12:23] bobafetthotmailtoh:d-link:dir-825 [2024/08/09 09:12] – [Hardware Highlights] frollic
Line 3: Line 3:
 ===== Known Hardware Versions ===== ===== Known Hardware Versions =====
 ^ Revision                  ^ Supported since           ^ Model Specific Notes              ^ ^ Revision                  ^ Supported since           ^ Model Specific Notes              ^
-| <color red> A1 </color>   | not supported             |                                   | +| <color red> A1 </color>   **not supported**         |                                   | 
-| B1                        | Kamikaze trunk            | working with trunk as of r18621   | +| B1/B2                     | Attitude Adjustment                                         
-B2                        | Kamikaze trunk            | working with trunk as of r25121   | +| C1                        | Barrier Breaker trunk [[https://dev.openwrt.org/changeset/35403|r35403]]    | See [[https://dev.openwrt.org/changeset/35401|r35401]], [[https://dev.openwrt.org/changeset/35402|r35402]], [[https://dev.openwrt.org/changeset/35403|r35403]], Also see [[toh:d-link:dir-835_a1|DIR-835]] 
-| B1/2                      | Attitude Adjustment trunk Newer revisions (FW 2.05EU) store mac-addresses differently,\\ which leads to non-working wlan0/1. Working with trunk as \\ of r29119+| C2                        | same as C1?               | works with C1 images, see below                                  |
-| C1                        | Barrier Breaker trunk [[https://dev.openwrt.org/changeset/35403|r35403]]    | See [[https://dev.openwrt.org/changeset/35401|r35401]], [[https://dev.openwrt.org/changeset/35402|r35402]], [[https://dev.openwrt.org/changeset/35403|r35403]], Also see [[toh:d-link:dir-835|DIR-835]] |+
 | <color red> D1 </color>   | **not supported**         | See [[https://forum.openwrt.org/viewtopic.php?id=46774|Forum]]   | | <color red> D1 </color>   | **not supported**         | See [[https://forum.openwrt.org/viewtopic.php?id=46774|Forum]]   |
 | <color red> E1 </color>   | **not supported**         | See [[https://forum.openwrt.org/viewtopic.php?id=46774|Forum]]   | | <color red> E1 </color>   | **not supported**         | See [[https://forum.openwrt.org/viewtopic.php?id=46774|Forum]]   |
 +| <color red> G1 </color>   | **not supported**         | Same basic hardware as E1 (see FCC ID [[https://fccid.link/KA2/IR825G1|KA2IR825G1]]) |
 +| <color red> WH </color>   | **not supported**         | See [[https://forum.openwrt.org/t/206775|Forum]]   |
  
 **Note:** B2 appears to only be different in labeling. The default firmware claims B1 and even ''/proc/cpuinfo'' claim to be B1 revisions even though the packaging and the sticker say B2.\\ **Note:** B2 appears to only be different in labeling. The default firmware claims B1 and even ''/proc/cpuinfo'' claim to be B1 revisions even though the packaging and the sticker say B2.\\
-**Update!!!** D1/E1 revision could be supported. You can find some useful information on the [[https://forum.openwrt.org/viewtopic.php?id=46606| forum]]\\+**Update!!!** D1/E1 revision could be supported. You can find some useful information on the [[https://forum.openwrt.org/viewtopic.php?id=46606| forum]], as well as G1, due to project similarities.\\
 **WARNING:** The DIR-825 series is prone to hardware failure of the Ethernet ports. There are [[http://www.dd-wrt.com/phpBB2/viewtopic.php?p=759172| numerous reports]] of this model developing problems with its LAN + WAN ports. **WARNING:** The DIR-825 series is prone to hardware failure of the Ethernet ports. There are [[http://www.dd-wrt.com/phpBB2/viewtopic.php?p=759172| numerous reports]] of this model developing problems with its LAN + WAN ports.
 +
 ===== Hardware Highlights ===== ===== Hardware Highlights =====
 ^ HW Rev                    ^ CPU                                             ^ Ram     ^ Flash   ^ Network   ^ Gigabit   ^ USB   ^ Serial   ^ JTag   ^ ^ HW Rev                    ^ CPU                                             ^ Ram     ^ Flash   ^ Network   ^ Gigabit   ^ USB   ^ Serial   ^ JTag   ^
Line 19: Line 21:
 | B1/B2                     | Atheros AR7161@680MHz                           | 64MB    | 8MB     | 4x1       | Yes       | Yes   | Yes      | Yes    | | B1/B2                     | Atheros AR7161@680MHz                           | 64MB    | 8MB     | 4x1       | Yes       | Yes   | Yes      | Yes    |
 | C1                        | Atheros AR9344@560MHz                           | 128MB   | 16MB    | 4x1       | Yes       | Yes   | Yes      | Yes    | | C1                        | Atheros AR9344@560MHz                           | 128MB   | 16MB    | 4x1       | Yes       | Yes   | Yes      | Yes    |
-| <color red> D1 </color>   | <color red> Realtek RTL8197D@? </color>         ?       ?       | 4x1       | Yes       | Yes   | ?        | ?      |+| <color red> D1 </color>   | <color red> Realtek RTL8197D@? </color>         64MB    8MB     | 4x1       | Yes       | Yes   | ?        | ?      |
 | <color red> E1 </color>   | <color red> Realtek RTL8197DN@660MHz </color>   | 64MB    | 8MB     | 4x1       | Yes       | Yes   | Yes      | ?      | | <color red> E1 </color>   | <color red> Realtek RTL8197DN@660MHz </color>   | 64MB    | 8MB     | 4x1       | Yes       | Yes   | Yes      | ?      |
 +| <color red> G1 </color>   | <color red> Realtek RTL8197DN@660MHz </color>   | 64MB    | 8MB     | 4x1       | Yes       | Yes   | Yes      | Yes    |
 +| <color red> HW </color>   | <color red> Realtek RTL8197FH@? </color>        | 128MB   | 16MB    | 4x1       | Yes       | No    | ?        | ?      |
  
-**Note:** Although C1 has SoC of AR9344 but it's categorized under "target" of **ar71xx**So you should find its related source code in 'trunk/target/linux/ar71xx' and its builds under [[http://downloads.openwrt.org/snapshots/trunk/ar71xx/|ar71xx/]] folder.+**Note:** More info about DIR-825 hardware revisions is available at [[https://deviwiki.com|Wikidevi]] ([[https://deviwiki.com/wiki/D-Link_DIR-825_rev_E1|E1]], [[https://deviwiki.com/wiki/D-Link_DIR-825_rev_G1|G1]], and [[https://deviwiki.com/wiki/D-Link_DIR-825|more]]).
  
-**Note:** More info about hardware in E1 revision is available at [[https://wikidevi.com/wiki/D-Link_DIR-825_rev_E1|wikidev]] 
  
-==== Switch Ports  ==== +===== Installation ===== 
-Numbers 0-3 are Ports 4 to 1 as labeled on the unit5 is the internal connection to the router itself.  +<!-- ToH: { 
-^ Port         ^ Switch port   ^ +  "source": "json"
-| CPU (eth0)   | 5             | +  "dom": "t", 
-| No port      | 4             | +  "paging": false, 
-| LAN 1        | 3             | +  "rotate": true, 
-| LAN 2        | 2             | +  "shownColumns": ["model", "version", "supportedcurrentrel", "firmwareopenwrtinstallurl", "firmwareopenwrtupgradeurl", "firmwareoemstockurl"], 
-| LAN 3        | 1             | +  "filterColumns": {"model": "^DIR-825$"} 
-| LAN 4        | 0             |+} -->
  
-===== Installation ===== 
 Consult [[docs:techref:flash.layout]] for a better understanding. Consult [[docs:techref:flash.layout]] for a better understanding.
  
Line 46: Line 48:
 It looks like Firmware 2.01EU behaves the same way. Please use the firmware recovery mode instead. It looks like Firmware 2.01EU behaves the same way. Please use the firmware recovery mode instead.
  
-**Note:** This method works for revision C2 with Firmware 3.00 using Ubuntu's Firefox. I used [[http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-dir-825-c1-squashfs-factory.bin|openwrt-ar71xx-generic-dir-825-c1-squashfs-factory.bin]]+**Note:** This method works for revision **B1** with Firmware 201EUB15, once the firmware identifier is fixed as follows: sed 's#00AP94-AR7161-RT#01AP94-AR7161-RT#' --in-place openwrt-XX.YY.Z-ar71xx-generic-dir-825-b1-squashfs-factory.bin. Use the following to get the firmware identifier: hexdump -C DIR825B1_FW201EUB15.bin | tail -3 
 + 
 +  00600000  30 31 41 50 39 34 2d 41  52 37 31 36 31 2d 52 54  |01AP94-AR7161-RT| 
 +  00600010  2d 30 38 30 36 31 39 2d  30 30                    |-080619-00| 
 +  0060001a 
 + 
 +**Note:** This method works for revision **C2** with Firmware 3.00 using Ubuntu's Firefox. I used [[http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-dir-825-c1-squashfs-factory.bin|openwrt-ar71xx-generic-dir-825-c1-squashfs-factory.bin]]
  
   - Login into the factory D-Link firmware web-interface as usual. Default procedure for the freshly purchased router is:    - Login into the factory D-Link firmware web-interface as usual. Default procedure for the freshly purchased router is: 
     - Set the static IP **''192.168.0.100/24''** on the PC     - Set the static IP **''192.168.0.100/24''** on the PC
-    - With any web browser go to http://192.168.0.1/, use "admin" as the username, and "" as the password (leave the field blank).+    - With any web browser go to ''%%http://192.168.0.1/%%'', use "admin" as the username, and "" as the password (leave the field blank).
   - Proceed into the firmware update page, click "Browse" and select your OpenWrt image file (**openwrt-ar71xx-generic-dir-825-b1-squashfs-factory.bin**)   - Proceed into the firmware update page, click "Browse" and select your OpenWrt image file (**openwrt-ar71xx-generic-dir-825-b1-squashfs-factory.bin**)
   - Click "Update" and let the router reflash itself.   - Click "Update" and let the router reflash itself.
Line 56: Line 64:
   - Give the router some time to finish firstboot tasks (initial configuration, jffs2 initialization, e.t.c.).   - Give the router some time to finish firstboot tasks (initial configuration, jffs2 initialization, e.t.c.).
   - The router's power LED should blink orange during bootup, as soon as it stops flashing, you can connect to it   - The router's power LED should blink orange during bootup, as soon as it stops flashing, you can connect to it
-  - obtain new IP from the router via DHCP and follow [[docs:guide-quick-start:walkthrough_login]]+  - Obtain new IP from the router via DHCP and follow [[docs:guide-quick-start:walkthrough_login]]
  
  
 ==== Installation using firmware recovery mode ==== ==== Installation using firmware recovery mode ====
 === Phase 1: OS specific quirks === === Phase 1: OS specific quirks ===
-<color red>**Note:** The firmware recovery mode has following quirks:</color> +<color red>**Note:** The firmware recovery mode has the following quirks:</color> 
-  * If you have a Windows machine available you can use Microsoft Internet Explorer 7 (a Windows running on a VM, like VMware, does not work) +  * If you have a //hardware// Windows machine available you can use Microsoft Internet Explorer 7 (a Windows running on a VM, like VMware, does not work) 
-    * Windows 8: Firefox cannot be used to update firmware (presumably applies to other versions of Windows). +    * **Windows 8**: Firefox cannot be used to update firmware (presumably applies to other versions of Windows). Use Internet Explorer 10. Press F12. Select Browser Mode: IE8. Leave the compatibility setting at IE5 Quirks. 
-    * Windows 8: Use Internet Explorer 10. Press F12. Select Browser Mode: IE8. Leave the compatibility setting at IE5 Quirks. +    * **Windows 7**: try to turn off ipv6 
-    * Windows 7: try to turn off ipv6+    * **Windwos 10**: works with Netscape Navigator V9.0.0.6  
   * If you are running Linux you can:   * If you are running Linux you can:
     * Ideally use C program below, otherwise:     * Ideally use C program below, otherwise:
-    * Set your interface to 100Mbps using ''sudo ethtool -s eth0 speed 100 autoneg off'', install [[http://appdb.winehq.org/objectManager.php?sClass=version&iId=4195|IE7 in Wine]] and use it to flash.+    * Set your **interface to 100Mbps** using ''sudo ethtool -s eth0 speed 100 autoneg off'', install [[http://appdb.winehq.org/objectManager.php?sClass=version&iId=4195|IE7 in Wine]] and use it to flash.
     * Later models (or some hardware combinations) may need ''sudo ethtool -s eth0 speed 100 duplex half autoneg off'' (e.g. B2, FW ver 2.05EU).     * Later models (or some hardware combinations) may need ''sudo ethtool -s eth0 speed 100 duplex half autoneg off'' (e.g. B2, FW ver 2.05EU).
     * Use [[dir-825#A simple script to flash DIR-825|the following script]].     * Use [[dir-825#A simple script to flash DIR-825|the following script]].
     * firmware 2.02EU should still be available on ftp.dlink.de and it doesn't require IE, nor Mac.     * firmware 2.02EU should still be available on ftp.dlink.de and it doesn't require IE, nor Mac.
     * 2.05EUB09_7 can't be downgraded to 2.04 but fortunately can be downgraded to 2.02EU     * 2.05EUB09_7 can't be downgraded to 2.04 but fortunately can be downgraded to 2.02EU
-    * I had to disable both avahi, cups and IPv6 to get it working. (B2 FW ver 2.01EU) +    * I had to **disable** both **avahi****cups** and **IPv6** to get it working. (B2 FW ver 2.01EU) 
-  * If you are running MacOS you can use <del>Google Chrome</del> Opera+ 
 +  * If you are running **macOS** you can use <del>Google Chrome</del> Opera
   * FW version 2.05EU seems very difficult to flash, there may be timing issues (that's just a guess). After downgrading to 2.04EU (get it from ftp.dlink.de) it worked the first time, using IE7 on a virtualbox Win XP "guest". YMMV.   * FW version 2.05EU seems very difficult to flash, there may be timing issues (that's just a guess). After downgrading to 2.04EU (get it from ftp.dlink.de) it worked the first time, using IE7 on a virtualbox Win XP "guest". YMMV.
 +  * Rarely, some (ISP-Branded?) Routers lock out firmware updates in the recovery mode. This the case for DI-825s provided by Videotron, for example. If you get "firmware update failed" you may have to open the .bin file and modify the last bit from 00 to 01 or 02 with a Hex editor. More details: https://web.archive.org/web/20201108140639/https://blog.incloudus.com/2013/flasher-un-routeur-d-link-dir-825-de-chez-videotron/
  
 === Phase 2: General steps === === Phase 2: General steps ===
-  - Get into the D-Link recovery console with the steps below: +  - Get into the **D-Link recovery console** with the steps below: 
-    - While powering up the router, press and hold the //reset button// until the power LED starts blinking orange (usually takes around 45 (forty-five) seconds ) +    - While powering up the router, **press and hold** the //reset button// until the power LED starts blinking orange (usually takes around 45 seconds) 
-    - Set a static IP on your PC to **''192.168.0.100/24''** +    - Set a **static IP** on your PC to ''192.168.0.100/24'' 
-    - connect to http://192.168.0.1, mind the quirks! +    - connect to ''%%http://192.168.0.1%%'', mind the quirks! 
-  - Click "Browseand select your OpenWrt image file (**openwrt-ar71xx-dir-825-b1-squashfs-factory.bin**, this binary image is available in the Backfire 10.03.1rc1 download directory and above) +  - Click [Browseand select your OpenWrt image file (**openwrt-ar71xx-dir-825-b1-squashfs-factory.bin**, this binary image is available in the Backfire 10.03.1rc1 download directory and above) 
-  - Click "Updateand let router flash the image (don't worry if it reboots before it reaches 100%). The page should display "Device is Upgrading the Firmware" in blue letters with the current percentage in red (with an incompatible Browser it doesn't). Look at the screenshot at the end of this section. +  - Click [Updateand let router flash the image (don't worry if it reboots before it reaches 100%). The page should display "Device is Upgrading the Firmware" in <color #00a2e8>blue</color> letters with the current percentage in <color #ed1c24>red</color> (with an incompatible Browser it doesn't). Look at the screenshot at the end of this section. 
-  - The router's power LED should blink orange during bootup, as soon as it stops flashing, you can connect to it +  - The router'**power LED should blink** <color #ff7f27>orange</color> during bootup, as soon as it stops flashing, you can connect to it 
-  - Tip! Note that default DHCP will allocate on 192.168.**1**.x, which is different subnet to the address you allocated above. This is why you can't connect until you change your IP address.+  - Tip! Note that default DHCP will allocate on 192.168.**1**.x, which is different subnet to the address you allocated above. This is why you can't connect until you change your IP address **back to DHCP**.
   - obtain new IP from the router via DHCP and follow [[docs:guide-quick-start:walkthrough_login]]   - obtain new IP from the router via DHCP and follow [[docs:guide-quick-start:walkthrough_login]]
  
Line 93: Line 104:
 ==== Flash Layout ==== ==== Flash Layout ====
  
 +=== OEM Flash Layout ===
 First, for familiarity you can look at the concept of [[docs:techref:flash.layout]]. It is also recommended that you know flash layout of DIR-825 before [[docs:guide-user:installation:generic.sysupgrade]], [[docs:guide-user:installation:generic.backup]], [[docs:guide-user:troubleshooting:generic.debrick]] or [[docs:guide-user:troubleshooting:failsafe_and_factory_reset]]. First, for familiarity you can look at the concept of [[docs:techref:flash.layout]]. It is also recommended that you know flash layout of DIR-825 before [[docs:guide-user:installation:generic.sysupgrade]], [[docs:guide-user:installation:generic.backup]], [[docs:guide-user:troubleshooting:generic.debrick]] or [[docs:guide-user:troubleshooting:failsafe_and_factory_reset]].
  
-^  D-Link DIR-825 Rev B  Flash Layout  ^^^^^^^^^ +^  D-Link DIR-825 Rev B  Flash Layout                                                                                                                                                                                                                                                                                                                                                                                                                               ||||||||| 
-^ Layer0 |  m25p80 [[wp>Serial Peripheral Interface Bus|spi]]0.0: s25sl064a 8192KiB  |||||||| +^ Layer0                               |  m25p80 [[wp>Serial Peripheral Interface Bus|spi]]0.0: [[https://pdf1.alldatasheet.com/datasheet-pdf/download/164521/SPANSION/S25FL064A.html|S25SL064A]] 8192KiB                                                                                                                                                                                                                                                            |||||||| 
-^ Layer1 |  mtd0 **//u-boot//** 256KiB  |  mtd1 **//config//** 64KiB  |  mtd7 **//firmware//** 6208KiB  |||  mtd5 **//caldata//** 64KiB  |  mtd6 **//unkown//** 1600KiB  || +^ Layer1                               |  mtd0 **//u-boot//** 256KiB                                                                                                                                       |  mtd1 **//config//** 64KiB  |  mtd7 **//firmware//** 6208KiB                                                                                             |||  mtd5 **//caldata//** 64KiB  |  mtd6 **//unknown//** 1600KiB                                     || 
-^ Layer2 | | |  mtd2 **//kernel//** 1024KiB  |  mtd3 **//rootfs//** 5184KiB  || | |  mtd8 **//caldata_copy//** 64KiB  | +^ Layer2                               :::                                                                                                                                                               :::                         |  mtd2 **//kernel//** 1024KiB    |  mtd3 **//rootfs//** 5184KiB                                                              || :::                                                         |  mtd8 **//caldata_copy//** 64KiB  | 
-^ <color magenta>mountpoint</color> | | | |  <color magenta>''/''</color>  || | | | +^ <color magenta>mountpoint</color>    :::                                                                                                                                                               :::                         :::                             |  <color magenta>''/''</color>                                                             || :::                                                         :::                               
-^ filesystem | | | |  [[docs:techref:filesystems#overlayfs|overlayfs]]  || | | | +^ filesystem                           :::                                                                                                                                                               :::                         :::                             |  [[docs:techref:filesystems#overlayfs|overlayfs]]                                         || :::                                                         :::                               
-^ Layer3 | | | | |  mtd4 **//rootfs_data//** 3328KiB  | | | | +^ Layer3                               :::                                                                                                                                                               :::                         :::                                                                                |  mtd4 **//rootfs_data//** 3328KiB     :::                                                         :::                               
-^ Size in KiB |  256KiB  |  64KiB  |  1024KiB  |  1856KiB  |  3328KiB  |  64KiB  |  1536KiB  |  64KiB  +^ Size in KiB                          |  256KiB                                                                                                                                                           |  64KiB                      |  1024KiB                        |  1856KiB                                           |  3328KiB                              |  64KiB                       |  1536KiB                       |  64KiB                            
-^ Name |  **//u-boot//**  |  **//config//**  |  **//kernel//**  | |  **//rootfs_data//**  |  **//caldata//**  | |  **//caldata_copy//**  +^ Name                                 |  **//u-boot//**                                                                                                                                                   |  **//config//**             |  **//kernel//**                                                                    |  **//rootfs_data//**                  |  **//caldata//**                                            |  **//caldata_copy//**             
-^ <color magenta>mountpoint</color> |  //none//  |  //none//  |  //none//  |  <color magenta>''/rom''</color>  |  <color magenta>''/overlay''</color>  |  //none//  |  //none//  |  //none//  +^ <color magenta>mountpoint</color>    |  //none//                                                                                                                                                         |  //none//                   |  //none//                       |  <color magenta>''/rom''</color>                   |  <color magenta>''/overlay''</color>  |  //none//                    |  //none//                      |  //none//                         
-^ filesystem |  //none//  |  //none//  |  //none//  |  [[docs:techref:filesystems#SquashFS]]  |  [[docs:techref:filesystems#JFFS2]]  |  //none//  |  //none//  |  //none//  |+^ filesystem                           |  //none//                                                                                                                                                         |  //none//                   |  //none//                       |  [[docs:techref:filesystems#SquashFS]]             |  [[docs:techref:filesystems#JFFS2]]   |  //none//                    |  //none//                      |  //none//                         |
  
-***Note*** The partitions "mtd1 **//config//**", "mtd5 **//caldata//**", "mtd6 **//unkown//**" and "mtd8 **//caldata_copy//**" contain vendor specific raw (without filesystem) config values about your router, like WiFi calibration data, MAC addresses, etc. It's a good idea to [[docs:guide-user:installation:generic.backup|make a backup from them]]. Similarly, "mtd0 **//u-boot//**" has some specific codes for Dir-825 (e.g. its "firmware recovery mode"); So you can backup that partition too.+***Note*** The partitions "mtd1 **//config//**", "mtd5 **//caldata//**", "mtd6 **//unknown//**" and "mtd8 **//caldata_copy//**" contain vendor specific raw (without filesystem) config values about your router, like WiFi calibration data, MAC addresses, etc. It's a good idea to [[docs:guide-user:installation:generic.backup|make a backup from them]]. Similarly, "mtd0 **//u-boot//**" has some specific codes for DIR-825 (e.g. its "firmware recovery mode"); So you can backup that partition too.
  
 ***Note2*** You can check mtd partitions of your router yourself by using commands "''cat /proc/mtd''" and "''dmesg''". Refer to [[https://www.mail-archive.com/kernelnewbies@nl.linux.org/msg02774.html|this link]]. ***Note2*** You can check mtd partitions of your router yourself by using commands "''cat /proc/mtd''" and "''dmesg''". Refer to [[https://www.mail-archive.com/kernelnewbies@nl.linux.org/msg02774.html|this link]].
  
 +=== OpenWRT Flash Layout ===
 +This is the layout as is when OpenWRT 22.03.5 is installed.
 +
 +^  D-Link DIR-825 Rev B  Flash Layout                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |||||||
 +^ Layer0                                m25p80 [[wp>Serial Peripheral Interface Bus|spi]]0.0: [[https://pdf1.alldatasheet.com/datasheet-pdf/download/164521/SPANSION/S25FL064A.html|S25SL064A]] 8192KiB                                                                                                                                                                                                                                                                                                                                                                                                                          ||||||
 +^ Layer1                                mtd0 **//u-boot//** 256KiB                                                                                                                                        mtd1 **//config//** 64KiB  |  mtd2 **//fwconcat0//** 6208KiB                                                                                                                                                                                                     ||  mtd3 **//caldata//** 64KiB                |  mtd4 **//fwconcat1//** 1600KiB                                                                          |
 +| **Layer1 boundaries**                |  0-0x040000                                                                                                                                                        0x040000-0x050000          |  0x050000-0x660000                                                                                                                                                                                                                  ||  0x660000-0x670000                          0x670000-0x800000                                                                                       |
 +^ Layer2                               | :::                                                                                                                                                               | :::                          mtd5 //virtual_flash// **//firmware//** 7808KiB (<color red>mtd3 is **not included** in the mtd5 concatenation*</color>                                                                                                                                                                                                                                                                ||||
 +| **Layer2 boundaries**                | :::                                                                                                                                                               | :::                          __Virtual__: 0-0x7a0000 :0-0x610000 (from mtd2) + 0x610000-0x7a0000 (from mtd4)                                                                                                                                                                                                                                                                                                          ||||
 +| **Layer3**                           | :::                                                                                                                                                               | :::                          mtd6 **//kernel//** 2240KiB                                                                                                mtd7 **//rootfs//** 5568KiB                                                                                                                                                                                                                                  |||
 +| **Layer3 boundaries**                | :::                                                                                                                                                               | :::                          __Virtual__: 0-0x230000 __Real__: 0x050000-0x280000                                                                        __Virtual__: 0x230000-0x7a0000 __Real__: 0x280000-0x660000 (from mtd2) + 0x670000-0x80000 (from mtd4)                                                                                                                                                        |||
 +| <color magenta>mountpoint</color>    | :::                                                                                                                                                               | :::                         | :::                                                                                                                        |  ''/''                                                                                                                                                                                                                                                        |||
 +^ filesystem                           | :::                                                                                                                                                               | :::                         | :::                                                                                                                        |  [[docs:techref:filesystems#OverlayFS]]                                                                                                                                                                                                                       |||
 +^ Layer4                               | :::                                                                                                                                                               | :::                         | :::                                                                                                                        |  Un-named, 1 squashfs-split partition found as //mtd8//                                                  mtd3 **//caldata//** 64KiB (//likely!// |  mtd8 **//rootfs_data//** 1856KiB                                                                        |
 +| **Layer4 boundaries**                | :::                                                                                                                                                               | :::                         | :::                                                                                                                        |  __Virtual__: 0x230000-0x5d0000 __Real__:0x280000-0x620000                                              |  0x660000-0x670000                          __Virtual__: 0x5d0000-0x7a0000 __Real__: 0x620000-0x660000 (from mtd2) + 0x670000-0x800000 (from mtd4)  |
 +| **Size**                              256KiB                                                                                                                                                            64KiB                      |  2240KiB                                                                                                                    3712KiB                                                                                                |  64KiB                                      1856KiB                                                                                                 |
 +^ Name                                  **//u-boot//**                                                                                                                                                    **//config//**              **//kernel//**                                                                                                            |  <todo>unknown</todo>                                                                                    <todo>unknown</todo>                      |  **//rootfs_data//**                                                                                     |
 +^ <color magenta>mountpoint</color>    |  //none//                                                                                                                                                          //none//                    //none//                                                                                                                  |  ''/rom''                                                                                                <todo>unknown</todo>                      |  ''/overlay''                                                                                            |
 +^ filesystem                            //none//                                                                                                                                                          //none//                    //none//                                                                                                                  |  [[docs:techref:filesystems#SquashFS]]                                                                  |  <todo>none</todo>                          [[docs:techref:filesystems#JFFS2]]                                                                      |
 +
 +FIXME //(*) Unfold for explanations. Complete missing parts.//
 +<hidden>
 +''dmesg'' from around boot time:
 +
 +''   0.762030] spi-nor spi0.0: m25p64 (8192 Kbytes)''
 +
 +''   0.766707] 5 fixed-partitions partitions found on MTD device spi0.0''
 +
 +''   0.773111] Creating 5 MTD partitions on "spi0.0":''
 +
 +''   0.777912] 0x000000000000-0x000000040000 : "u-boot"''
 +
 +''   0.786178] 0x000000040000-0x000000050000 : "config"''
 +
 +''   0.792153] 0x000000050000-0x000000660000 : "fwconcat0"''
 +
 +''   0.799856] 0x000000660000-0x000000670000 : "caldata"''
 +
 +''   0.805848] 0x000000670000-0x000000800000 : "fwconcat1"''
 +
 +''   0.815426] Concatenating MTD devices:''
 +
 +''   0.819255] (0): "fwconcat0"''
 +
 +''   0.822128] (1): "fwconcat1"''
 +
 +''   0.824994] into device "virtual_flash"''
 +
 +''   0.828868] 1 fixed-partitions partitions found on MTD device virtual_flash''
 +
 +''   0.836070] Creating 1 MTD partitions on "virtual_flash":''
 +
 +''   0.841507] 0x000000000000-0x0000007a0000 : "firmware"''
 +
 +''   0.852505] 2 uimage-fw partitions found on MTD device firmware''
 +
 +''   0.858482] Creating 2 MTD partitions on "firmware":''
 +
 +''   0.863440] 0x000000000000-0x000000230000 : "kernel"''
 +
 +''   0.869392] 0x000000230000-0x0000007a0000 : "rootfs"''
 +
 +''   0.876577] mtd: setting mtd7 (rootfs) as root device''
 +
 +''   0.881833] 1 squashfs-split partitions found on MTD device rootfs''
 +
 +''   0.888039] 0x0000005d0000-0x0000007a0000 : "rootfs_data"''
 +
 +<br>
 +One can see that **//caldata//** cuts the **//firmware//** partition into two halves. The start and end addresses are the absolute one at Level1 (**//u-boot//**, **//config//**, **//fwconcat0//**, **//caldata//**, **//fwconcat1//**).<br> 
 +
 +From Level2 on, the reported addresses are relative. The table above lists both relative addresses and how they translate to absolute (//"real"//) ones.<br>
 +
 +In the following, all mtd partitions ever present are listed.
 +
 +''root@DIR-825B1:~# cat /proc/mtd ''
 +^dev|size|erasesize|name|
 +^mtd0|00040000|00010000|u-boot|
 +^mtd1|00010000|00010000|config|
 +^mtd2|00610000|00010000|fwconcat0|
 +^mtd3|00010000|00010000|caldata|
 +^mtd4|00190000|00010000|fwconcat1|
 +^mtd5|007a0000|00010000|firmware|
 +^mtd6|00230000|00010000|kernel|
 +^mtd7|00570000|00010000|rootfs|
 +^mtd8|001d0000|00010000|rootfs_data|
 +
 +Synthesis from the above:
 +^dev|Start|End|size|erasesize|name|
 +^mtd0|00000000|00040000|00040000|00010000|u-boot|
 +^mtd1|00040000|00050000|00010000|00010000|config|
 +^mtd2|00050000|00660000|00610000|00010000|fwconcat0|
 +^mtd3|00660000|00670000|00010000|00010000|caldata|
 +^mtd4|00670000|00800000|00190000|00010000|fwconcat1|
 +^mtd5|00050000|00800000|007a0000|00010000|firmware|
 +^mtd6|00050000|00280000|00230000|00010000|kernel|
 +^mtd7|00280000|00800000|00570000|00010000|rootfs|
 +^mtd8|00630000|0080000|001d0000|00010000|rootfs_data|
 +</hidden>
 ==== Upgrading OpenWrt ==== ==== Upgrading OpenWrt ====
 ->[[docs:guide-user:installation:generic.sysupgrade]] ->[[docs:guide-user:installation:generic.sysupgrade]]
 +
 +:!: Make sure to read [[docs:guide-user:installation:ar71xx.to.ath79|Upgrade from ar71xx to ath79]] before upgrading from ar71xx to ath79!
  
 ==== OpenWrt failsafe mode ==== ==== OpenWrt failsafe mode ====
Line 127: Line 240:
 ===== Hardware ===== ===== Hardware =====
 ==== Info ==== ==== Info ====
-| **[[wp>Instruction set|Architecture]]:**   | [[wp>MIPS architecture|MIPS]]                         | +[[wp>Instruction set|Architecture]]   | [[wp>MIPS architecture|MIPS]]                         | 
-| **Vendor:**                                | [[wp>Qualcomm Atheros]]                               | +Vendor                                | [[wp>Qualcomm Atheros]]                               | 
-| **[[docs:techref:bootloader]]:**            | [[docs:techref:bootloader:uboot|U-Boot]]               +[[docs:techref:bootloader]]           | [[docs:techref:bootloader:uboot|U-Boot]]              
-| **[[docs:hardware:soc|System-On-Chip]]:**   | AR7161 rev 2 (MIPS 24Kc V7.4)                         +[[docs:techref:hardware:soc|System-On-Chip]]   | AR7161 rev 2 (MIPS 24Kc V7.4)                
-| **[[docs:hardware:cpu|CPU]]/Speed**         | 24Kc V7.4 680 MHz                                     +[[docs:techref:hardware:cpu|CPU]]/Speed        | 24Kc V7.4 680 MHz                            
-| **Flash-Chip:**                            | Spansion S25FL064A                                    | +Flash-Chip                            | Spansion S25FL064A                                    | 
-| **Flash size:**                            | 8192 KiB                                              | +Flash size                            | 8192 KiB                                              | 
-| **RAM:**                                   | 64 MiB                                                | +RAM                                   | 64 MiB                                                | 
-| **Wireless:**                              | 2 x Atheros AR922X 2.4GHz/5.0GHz 802.11abgn           | +Wireless                              | 2 x Atheros AR922X 2.4GHz/5.0GHz 802.11abgn           | 
-| **Ethernet:**                              | RealTek RTL8366S Gigabit w/ port based vlan support   | +Ethernet                              | RealTek RTL8366S Gigabit w/ port based vlan support   | 
-| **Internet:**                              | n/a                                                   | +Internet                              | n/a                                                   | 
-| **USB:**                                   | Yes 2 x 2.0 (Only 1 header to the outside)            | +USB                                   | Yes 2 x 2.0 (Only 1 header to the outside)            | 
-| **Serial:**                                | [[#Serial|Yes]] /dev/ttyS0                            | +Serial                                | [[#Serial|Yes]] /dev/ttyS0                            | 
-| **JTAG:**                                  | [[#JTAG|Yes]]                                         |+JTAG                                  | [[#JTAG|Yes]]                                         |
  
 ==== Photos ==== ==== Photos ====
-{{media:dlink:dir-825:dir-825_without-bottom-cover.jpg?400x257|D-Link DIR-825 with the bottom cover removed}} + 
-{{media:dlink:dir-825:dir-825-b2_soldered-bridges-for-2nd-usb-port.jpg?400x258|D-Link DIR-825 with bridges soldered to enable second USB port}} +=== B1 === 
-{{media:dlink:dir-825:dir-825-b2_2nd-usb-in-action.jpg?400x251|D-Link DIR-825 B2 with second USB port in use}} +{{media:dlink:dir-825:dir-825_without-bottom-cover.jpg?0x250|D-Link DIR-825 with the bottom cover removed}} 
-{{media:dlink:dir-825:dir-825-b2_2nd-usb-wires-order.jpg?400x300|DIR-825 B2 2nd USB Wires Order}} + 
-{{media:dlink:dir-825:dir-825-c1_board.jpg?400x251|D-Link DIR-825 C1 board}} +=== B2 === 
-{{media:dlink:dir-825:dir-825-c1_ar9344.jpg?400x300|D-Link DIR-825 C1 Atheros chipset}} +{{media:dlink:dir-825:dir-825-b2_soldered-bridges-for-2nd-usb-port.jpg?0x250|D-Link DIR-825 with bridges soldered to enable second USB port}} 
-{{media:dlink:dir-825:dir-825-c1_ram.jpg?250x300|D-Link DIR-825 C1 RAM chips}}+{{media:dlink:dir-825:dir-825-b2_2nd-usb-in-action.jpg?0x250|D-Link DIR-825 B2 with second USB port in use}} 
 +{{media:dlink:dir-825:dir-825-b2_2nd-usb-wires-order.jpg?0x250|DIR-825 B2 2nd USB Wires Order}} 
 + 
 + 
 +=== C1 === 
 +{{media:dlink:dir-825:dir-825-c1_board.jpg?0x250|D-Link DIR-825 C1 board}} 
 +{{media:dlink:dir-825:dir-825-c1_ar9344.jpg?0x250|D-Link DIR-825 C1 Atheros chipset}} 
 +{{media:dlink:dir-825:dir-825-c1_ram.jpg?0x250|D-Link DIR-825 C1 RAM chips}}
  
 ==== Physically breaking into the DIR-825 ==== ==== Physically breaking into the DIR-825 ====
Line 175: Line 295:
  
 ==== JTAG ==== ==== JTAG ====
-How to connect to JTAG interface, and how to reflash the device with [[http://downloads.openwrt.org/tools/oem/jtag/tools.zip|JTAG tools]]+How to connect to JTAG interface, and how to reflash the device with JTAG tools
  
-See [[docs:hardware:port.jtag]] for more JTAG details.+See [[docs:techref:hardware:port.jtag]] for more JTAG details.
  
  
Line 198: Line 318:
 | WPS                    | Two arrows       | dir825b1:blue:powersave   | n/a                      | | WPS                    | Two arrows       | dir825b1:blue:powersave   | n/a                      |
  
-=== Repair LEDs after flashing OpenWRT ===+=== Repair LEDs after flashing OpenWrt ===
  
 If you want to see the BLUE POWER ON and the BLUE GLOBE ( planet ) blinking when it receives information, then do the following setup: If you want to see the BLUE POWER ON and the BLUE GLOBE ( planet ) blinking when it receives information, then do the following setup:
Line 238: Line 358:
 The Reset button is located at the back and cannot be pressed with a finger, you need a small item to push it in. The Reset button is located at the back and cannot be pressed with a finger, you need a small item to push it in.
  
 +==== Switch Ports  ====
 +Numbers 0-3 are Ports 4 to 1 as labeled on the unit, 5 is the internal connection to the router itself. 
 +^ Port         ^ Switch port   ^
 +| CPU (eth0)   | 5             |
 +| No port      | 4             |
 +| LAN 1        | 3             |
 +| LAN 2        | 2             |
 +| LAN 3        | 1             |
 +| LAN 4        | 0             |
  
 ===== Hardware Mods ===== ===== Hardware Mods =====
Line 264: Line 393:
 ===== Connection Information ===== ===== Connection Information =====
 ->[[docs:techref:internal.layout|Internal Layout]] ->[[docs:techref:internal.layout|Internal Layout]]
 +
 ===== Other Info ===== ===== Other Info =====
 Feel free to add here any info we haven't covered yet! Thank you! Feel free to add here any info we haven't covered yet! Thank you!
Line 302: Line 432:
  ISP  ISP
  |  |
- D-825 Router with openWRT+ D-825 Router with OpenWrt
  |_______________________________.  |_______________________________.
  | LAN1 | LAN2 | LAN3 |   LAN4   |  | LAN1 | LAN2 | LAN3 |   LAN4   |
Line 321: Line 451:
 Very important is to hit the **SAVE** button ( !!! not the Save & Apply !!!) Very important is to hit the **SAVE** button ( !!! not the Save & Apply !!!)
  
-In case if you wonder why the port 0 (zero) corresponds to the 4th LAN-port, see this: [[dir-825#switch.ports]]+In case if you wonder why the port 0 (zero) corresponds to the 4th LAN-port, see this: [[dir-825#switch_ports]]
  
 o) Go to **Network / Interfaces / LAN / Physical Settings** and do the following: o) Go to **Network / Interfaces / LAN / Physical Settings** and do the following:
Line 330: Line 460:
 Now you should hit the button **"Save & Apply"** !!! Now you should hit the button **"Save & Apply"** !!!
  
-( Info: wait a bit and then you will see that your router is not responding any more -> this is normal, give him a little time ( 1min max) then unplug the power supply from the router, then wait 10sec and plug it back in! )+( Info: wait a bit and then you will see that your router is not responding any more -> this is normal, give it a little time ( 1min max) then unplug the power supply from the router, then wait 10sec and plug it back in! )
  
 o) Go to **Network / Interfaces**  o) Go to **Network / Interfaces** 
Line 980: Line 1110:
 /dev/mtdblock4            2.1M    328.0K      1.8M  15% /overlay /dev/mtdblock4            2.1M    328.0K      1.8M  15% /overlay
 '' ''
 +
 ===== Tags ===== ===== Tags =====
 +[[meta:tags|How to add tags]]
 {{tag>GigabitEthernet 5Port 2NIC USB 1USB JTAG 802.11abgn_simultan detachableantenna 2Ant 2WNIC ath9k 64RAM 8Flash MIPS MIPS32 24Kc}} {{tag>GigabitEthernet 5Port 2NIC USB 1USB JTAG 802.11abgn_simultan detachableantenna 2Ant 2WNIC ath9k 64RAM 8Flash MIPS MIPS32 24Kc}}
  • Last modified: 2024/08/09 09:26
  • by frollic