Differences

This shows you the differences between the selected revision and the current version of the page.

howto:reflash_from_windows 2011/04/16 11:57 howto:reflash_from_windows 2018/05/17 14:30 current
Line 9: Line 9:
  * [[hardware:serial|Get a Serial Adapter]]   * [[hardware:serial|Get a Serial Adapter]]
  * [[http://www.cygwin.com/|Cygwin]]   * [[http://www.cygwin.com/|Cygwin]]
-  * [[http://www.megaupload.com/?d=IOOH0FLI|splitdns323fw Utility]] +  * [[http://downloads.secnem.com/Software/DNS-323/splitdns323fw.zip|splitdns323fw Utility]] 
-  * [[http://www.dlink.ca/products/?pid=509|Factory]] or Custom Firmware+  * [[http://support.dlink.ca/ProductInfo.aspx?m=DNS-323|Factory]], [[https://code.google.com/p/alt-f/|ALT-F]] or Custom Firmware
  * [[http://en.sourceforge.jp/projects/ttssh2/releases/|Tera Term]]   * [[http://en.sourceforge.jp/projects/ttssh2/releases/|Tera Term]]
Line 18: Line 18:
==== Serial Adapter ==== ==== Serial Adapter ====
You will need to get one of the serial adapters from the hardware guide [[hardware:serial|Serial Adapters]]. I used the USB cable out of the available options, but any will work. You will need to get one of the serial adapters from the hardware guide [[hardware:serial|Serial Adapters]]. I used the USB cable out of the available options, but any will work.
-==== Cygwin ====+ 
 +==== Firmware ==== 
 +The next step will be to either use a pre-split firmware (provided below) or use splitdns323fw to split your own into a Kernel and Ramdisk image. 
 + 
 +=== Pre-Split === 
 +== D-Link Firmware 1.10 (http://www.djtazie.com/) == 
 +  * [[http://www.djtazie.com/dns323/uKernel|Download uKernel]] 
 +  * [[http://www.djtazie.com/dns323/uRamdisk|Download uRamdisk]] 
 + 
 +=== Split your own === 
 +== Cygwin ==
Install Cygwin with the **Ruby interpreter** and any dependent packages. The remaining setup settings can remain as their defaults. Install Cygwin with the **Ruby interpreter** and any dependent packages. The remaining setup settings can remain as their defaults.
-==== splitdns323fw  ====+ 
 +== splitdns323fw  ==
Here is where we'll split either a custom firmware or factory firmware in Cygwin. Here is where we'll split either a custom firmware or factory firmware in Cygwin.
-  - Open up Cygwin once everything is finished installing and note the path to __your home directory__ (in my case it was C:\cygwin\home\Wes).  +  - Open up Cygwin once everything is finished installing and note the path to **your home directory** (in my case it was C:\cygwin\home\Wes).  
-  - Extract the __firmware to your home directory__, in my case I used the current factory firmware (1.09) so I extracted the 'dns323_fw_109' file from the 'dns323_fw_109.zip' archive to C:\cygwin\home\Wes.  +  - Extract the **firmware to your home directory**, in my case I used the current factory firmware (1.09) so I extracted the 'dns323_fw_109' file from the 'dns323_fw_109.zip' archive to C:\cygwin\home\Wes.  
-  - Extract the 'splitdns323fw' file from the 'splitdns323fw.zip' archive to __your home directory__. ((Currently in your home directory there should the firmware you want to flash and the splitdns323fw utility.))+  - Extract the 'splitdns323fw' file from the 'splitdns323fw.zip' archive to **your home directory**. ((Currently in your home directory there should the firmware you want to flash and the splitdns323fw utility.))
  - Back in the Cygwin console type the following commands:   - Back in the Cygwin console type the following commands:
    * chmod 777 ./splitdns323fw     * chmod 777 ./splitdns323fw
    * ./splitdns323fw -k uKernel -i uRamdisk name_of_firmware_file //(Example: ./splitdns323fw -k uKernel -i uRamdisk dns323_fw_109)//     * ./splitdns323fw -k uKernel -i uRamdisk name_of_firmware_file //(Example: ./splitdns323fw -k uKernel -i uRamdisk dns323_fw_109)//
-  - Once the splitdns323fw utility is finished you should have __two new files__ in your home directory: __uKernel and uRamdisk__ +  - Once the splitdns323fw utility is finished you should have **two new files** in your home directory: **uKernel and uRamdisk**  
 + 
 + 
 + 
==== Tera Term ==== ==== Tera Term ====
Now comes the tricky part of flashing the firmware to the device itself. Now comes the tricky part of flashing the firmware to the device itself.
-  - Install a __Compact Installation__ of Tera Term, leaving everything as default. +  - Install a **Compact Installation** of Tera Term, leaving everything as default. 
-  - __Power off__ your DNS-323 and connect your serial adapter to the DNS-323 and your computer. +  - **Power off** your DNS-323 and connect your serial adapter to the DNS-323 and your computer.
  - Record which COM port you're serial adapter is on, we'll need that to connect to the device //(don't know what it is? check your device manager)//.   - Record which COM port you're serial adapter is on, we'll need that to connect to the device //(don't know what it is? check your device manager)//.
-  - Open Tera Term and select 'Serial' and change 'Port' to the COM port your serial adapter is on and hit 'OK'. //[[http://picasaweb.google.com/100894775614123215686/DNS323#5596092646728012738|Example]]// +  - Open Tera Term and select 'Serial' and change 'Port' to the COM port your serial adapter is on and hit 'OK'. //[[https://plus.google.com/photos/100894775614123215686/albums/5596040608459226961/5596092646728012738|Example]]// 
-  - Go to the 'Setup' menu and then to 'Serial Port...', match the settings as follows and hit 'OK': //[http://picasaweb.google.com/100894775614123215686/DNS323#5596092639770581410|Example]]//+  - Go to the 'Setup' menu and then to 'Serial Port...', match the settings as follows and hit 'OK': //[[https://plus.google.com/photos/100894775614123215686/albums/5596040608459226961/5596092639770581410|Example]]//
    * Baud rate: 115200     * Baud rate: 115200
    * Data: 8 bit     * Data: 8 bit
Line 44: Line 59:
    * Flow control: none     * Flow control: none
    * Transmit delay: 0 msec/char 0 msec/line     * Transmit delay: 0 msec/char 0 msec/line
-  - Power on your DNS-323 and **immediately enter** the following **key sequence**. ((I stationed my DNS-323 so I could have one hand on the power button and the other hand on the keyboard so when I turned the DNS-323 on I could __immediately__ hit the keys. **__It requires quick timing__.** Don't be afraid to __unplug the DNS-323 and try again__, so long as you keep your serial adapter connected to your computer and leave Tera Term open you can repeat this until you get it. If you __unplug your serial adapter__ or close Tera Term you'll need to start back at step 4.)) +  - Power on your DNS-323 and immediately (about 2 seconds) press **SPACE bar than 1** ((I stationed my DNS-323 so I could have one hand on the power button and the other hand on the keyboard so when I turned the DNS-323 on I could **immediately** hit the keys. ****It requires quick timing**.** Don't be afraid to **unplug the DNS-323 and try again**, so long as you keep your serial adapter connected to your computer and leave Tera Term open you can repeat this until you get it. If you **unplug your serial adapter** or close Tera Term you'll need to start back at step 4.  I had to use Spacebar + 1 key to get it to stop, I could hit he space bar and any other keys all day and it didn't break the autoboot. Spacebar + 1 worked form me on the first try.)). 
-   * **__Key Sequence__**: SPACE BAR then '1' (the number one key)+If the serial cable is correctly wired, uboot will tell you to press a key to stop boot sequence
  - You should be prompted with a **Marvel>>** command line at this point.   - You should be prompted with a **Marvel>>** command line at this point.
    * Type in and hit enter: **loadb k**     * Type in and hit enter: **loadb k**
-  - Go to '**File' -> 'Transfer' -> 'Kermit' -> 'Send...'** and navigate to your Cygwin home directory where the uKernel and uRamdisk files are. Select the __uKernel__ file first and hit 'Open'. __Once it is done__ you will be prompted with another **Marvel>>** command line. ((The screen should indicate it's waiting for a binary transfer at this point. Tera Term will now send the kernel to the device which will take some time. Once it's finished sending it will erase the old kernel and flash the new one you just sent it.))+  - In Tera Term go to '**File' -> 'Transfer' -> 'Kermit' -> 'Send...'** and navigate to your Cygwin home directory where the uKernel and uRamdisk files are. Select the **uKernel** file first and hit 'Open'. **Once it is done** you will be prompted with another **Marvel>>** command line. ((The screen should indicate it's waiting for a binary transfer at this point. Tera Term will now send the kernel to the device which will take some time. Once it's finished sending it will erase the old kernel and flash the new one you just sent it.))
  - Type in and hit enter: **loadb r**   - Type in and hit enter: **loadb r**
-  - Go to **'File' -> 'Transfer' -> 'Kermit' -> 'Send...'** and navigate to your Cygwin home directory where the uKernel and uRamdisk files are. Select the __uRamdisk__ file next and hit 'Open'. This will take longer than the kernel flash. __Once it is done__ you will be prompted with another **Marvel>>** command line. +  - Back in Tera Term go to **'File' -> 'Transfer' -> 'Kermit' -> 'Send...'** and navigate to your Cygwin home directory where the uKernel and uRamdisk files are. Select the **uRamdisk** file next and hit 'Open'. This will take longer than the kernel flash. **Once it is done** you will be prompted with another **Marvel>>** command line. 
-  - Reboot the machine.+  - Reboot the DNS-323. 
==== Done  ==== ==== Done  ====
At this point - assuming there were no errors - your DNS-323 should boot up with out problems with a default installation of either the Factory or Custom firmware you picked. You can leave the serial adapter connected ((Repeat the same process as we did in Tera Term to flash the DNS-323, except don't press any keys)) and check on the installation / boot-up sequence of the device to make sure everything is working OK. At this point - assuming there were no errors - your DNS-323 should boot up with out problems with a default installation of either the Factory or Custom firmware you picked. You can leave the serial adapter connected ((Repeat the same process as we did in Tera Term to flash the DNS-323, except don't press any keys)) and check on the installation / boot-up sequence of the device to make sure everything is working OK.
===== Completion ===== ===== Completion =====
If your re-flashing was a success you can now disconnect the serial adapter and put your DNS-323 back together! If your re-flashing was a success you can now disconnect the serial adapter and put your DNS-323 back together!
- 

Navigation

Personal Tools