D-Link DIR-632

Overview
Device uses the AR9287-BL1A and AR7242-AH1A.
 * Flash is assumed to be 8MB based on firmware size.

8 ETHERNET PORTS FOR UNLIMITED CONNECTIVITY TO ALL YOUR DEVICES

Delivering great wireless performance, network security and coverage, the D-Link Wireless N 8-Port Router (DIR-632) is ideal for building a powerful network. Designed to do the heavy-lifting and get your small business humming, 8 ports let you connect just about anything you can imagine, all at once - printers, laptops, desktops, security cameras, servers, storage drives - you name it, the DIR 632 can handle it. It also serves as an excellent home router, since it's ideal for providing wired Internet connectivity for video, music, photos, and documents.

Links of Interest
GPL source code on the D-Link FTP
 * On OpenWrt wiki
 * On OpenWrt forums


 * On DD-WRT wiki
 * On DD-WRT forums (internal pictures and notes)

Flashing dd-wrt
dir632a build 17967 20111207

'Please note that is is pre-release firmware at the momment. Please read the support forum listed at the bottom of this page before loading it on you router to avoid bricking it.'

Out-of-the-box factory firmware upgrade
To install dd-wrt on a stock D-Link DIR-632, you can flash it directly from the router's web admin page (yes, that is correct... from D-Link's standard web interface). These are the steps to follow:
 * 1) Download the current firmware:
 * 2) NA (North America) - Factory-to-ddwrt r20548. See Where do I download firmware? for links.
 * 3) AP (Asia Pasific) - Download the NA version of the firmware, then use a Hex Editor to modify the signature at the end of the file. Change A101-AR7242-RT-100324-01 to A101-AR7242-RT-100324-02
 * 4) WW (Any place else in the world) - Download the NA version of the firmware, then use a Hex Editor to modify the signature at the end of the file. Change A101-AR7242-RT-100324-01 to A101-AR7242-RT-100324-03
 * 5) Connect to the DIR-632 using an Ethernet cable.
 * 6) Open http://192.168.0.1/ in your web browser (Firefox recommended), which should open the DIR632's administrative page from the standard D-link firmware.
 * 7) The D-link's default login details are user "admin", password is blank.
 * 8) Tools -> Firmware
 * 9) Click "browse" button -> select the "factory-to-ddwrt_NA.bin" file -> click "Upload" button.
 * 10) Wait 2 or 3 minutes for the DIR-632 to flash and do the update. You will see a status page that shows you the progress as it happens. After the flash & update is done, the router will reboot to dd-wrt, and the IP address will have changed to 192.168.1.1. There is no need to reset.
 * 11) Open http://192.168.1.1/ in web browser. This should open DD-WRT's web interface. Configure DD-WRT as desired.
 * 12) You're finished! No need to 30/30/30 hard reset, but you can reboot your router after several minutes. (I don't know if it has to build anything in NVRAM, but better safe than sorry.)

How to upgrade with new DD-WRT firmware

 * 1) Download the "dir632a-firmware" from one of the links from Where do I download firmware?, then pick a recent directory, then use the "dlink-dir632a" directory.
 * 2) Open the DD-WRT's web interface in your web browser. It's http://192.168.1.1/ by default.
 * 3) Administration tab -> "Firmware Upgrade" button
 * 4) Click "browse" button -> select the "dir632a-firmware.bin" file -> click "Upgrade" button.  It will take about 2 minutes to upload and write the flash. Your browser will reload and let you know when it is done.
 * 5) It is probably a good idea to reboot after updating. That's it.

How to reset the Router to initial DD-WRT configuration
If you forget the username or password, or if the configuration becomes really messed up, you can always clear all the non-volitile parameters by doing a 'factory reset'. To do this, with the router already fully booted, press and hold the reset button for 5~6 seconds and release. The router will boot back up and answer to 192.168.1.1 just as if it had just been flashed with DD-WRT.

Flashing OpenWrt
Please insert instructions here

How to restore to factory firmware
This has been tested by GottaBKD
 * 1) Download the original firmware from http://www.dlink.com/ca/en/home-solutions/connect/routers/-/media/Consumer_Products/DIR/DIR%20632/Firmware/DIR632A1_FW103NA.bin
 * 2) Unplug everything from the router including power and any LAN/WAN cables
 * 3) Hold down reset button with a pin or bent paperclip for 10 seconds
 * 4) While still holding reset button down, plug router back in and hold down the reset button until the status light continually flashes orange
 * 5) Configure a Windows 7 computer with IP address in the 192.168.0.2, subnet 255.255.255.0, Gateway 192.168.0.1, DNS 192.168.0.1
 * 6) Plug ethernet cable into computer and a LAN port on the router, do not use WAN
 * 7) Open FIREFOX, I could only get this to work in FIREFOX, download it if you don't have it. CHROME and IE would not work, they just hang when it looks like they are working! I spent ages trying to get it to work in IE, then downloaded firefox and it worked first try.
 * 8) Type 192.168.0.1 into firefox, this should bring up the emergency recovery page
 * 9) Click browse and select your firmware file
 * 10) Click send, and let it do it's magic, this may take a minute or 2, be patient, if it works your status light will turn green, you are supposed to get a page that says upload succeeded, I waited 5 minutes and it didn't happen. It still worked.
 * 11) Reset router by holding down reset button for 10 seconds, status light will go orange again but don't worry it is just rebooting.
 * 12) You should be good to go, open a new browser window and type 192.168.0.1 and you should get the Dlink login page. If this doesn't work, try again from step 1

USB Info
What follows are the steps needs to use storage devices connected to the routers USB port.
 * 1) Connect the USB device to the Router.
 * 2) Restart the router.
 * 3) Open the DD-WRT's web interface in your web browser. It's http://192.168.1.1/ by default.
 * 4) Services -> USB
 * 5) Enable Core USB Support
 * 6) Enable USB Storage Support
 * 7) Enable Automatic Drive Mount
 * 8) Select Save, and then Apply
 * 9) * You can ignore the Status: Not mounted message

FTP Access
Once set up, you will be able to access all the mounted partitions by using ftp://192.168.1.1


 * 1) Serices -> NAS
 * 2) Enable ProFTPD
 * 3) Select other settings and then select Save, and then Apply

File Sharing Access
Once set up, you can access your files using Universal Naming Convention (UNC) names; ex. \\192.168.1.1\part1. Storage devices can be format as Fat16, Fat32, NTFS, and Ext2. The Ext3 drive format is not support, and will not mount.
 * 1) Serices -> NAS
 * 2) Add Share
 * 3) Select the Share's Path, enter and name, and indicate is it's public or not. If it's pubic you do not have to add users.
 * 4) Repeat 2 and 3 for each share
 * 5) Select Save, and then Apply


 * [[Image:Samba Share Path.png]]


 * If you plan to add user, do so after adding the shares.

'''Note: There is currently a limit of the size of Hard Drive that can be connected:  2TB and under only. Also formatting the drive as EXT2 will give you better performance over NTFS. Use the GParted Live image to reform your hard drive.'''

USB Printing
What follows are the steps needs to use printer devices connected to the routers USB port.
 * 1) Connect the USB device to the Router.
 * 2) Restart the router.
 * 3) Open the DD-WRT's web interface in your web browser. It's http://192.168.1.1/ by default.
 * 4) Services -> USB
 * 5) Enable Core USB Support
 * 6) Enable USB Printer Support
 * 7) Select Save, and then Apply

Using the printer in Windows 7

 * Open Control Panel, Devices and Printers
 * Choose Add a printer, and then Add a Local Printer
 * select Create a new port, and choose Type of port: Standard TCP/IP Port.  Click Next
 * Enter the IP address or your router: 192.168.1.1. If you like you can give the port a name.
 * UNCHECK the checkbox to Query the printer and automatically select a driver use.  Click Next.  Now wait until the detection is done. It will say that the device is not found. Don't despair
 * Choose Custom and then click Settings
 * Make sure that Protocol Raw is selected and Port 9100 is entered. That will be proposed.
 * Leave all other settings also as they were and click OK
 * Click Next.
 * Choose the printer driver for your printer, then click Next
 * Give your printer a name,, then click Next
 * You don't have to share the printer. click Next
 * You can set it as default printer if your would like.
 * Click Finish

Don't forget that your routers default address is 192.168.1.1 and its port is 9100

Pictures
Retail Images 

Pros of this hardware

 * Runs standard version of DD-WRT
 * Eight (8) wired ports, at 10/100 speed.
 * New Harware. 802.11n WiFi
 * Easy to install DD-WRT
 * One USB Port
 * Great range, signal strength and stability

Cons of this hardware

 * The biggest knock about this router is it's frequent WIFI drops and lockups when using the stock firmware. Installing DD-WRT corrects this isssue.
 * No gigabit / 1000 speed LAN support.
 * No Wireless AC / IEEE 802.11ac.

Common Problems

 * Wireless Security WPA2 does not work with i Touches. Use WPA instead with AES or TKIP+AES encryption.
 * When mounting USB devices, an odd message is produced indicating Status: Not mounted. This can be ignored. Fixed in beta versions (since at least March 2015).
 * Can only load on the NA (North American) versions of the router. You need to Hex Edit the NA firmware to load elsewhere per the instructions.
 * The undocumented button on the right side, near the front is a WDS or Wireless Distribution System button. It's not used.
 * The WiFi Led doesn't light up. Not really a problem. Fixed in beta versions (since at least March 2015).