== Vonage/Grandstream HT802 Factory Unlock #$$WARNING:$$ This is an advanced topic and will void your warranty! Neither SDF, the authors, contributors or sources linked within this file will be liable for your own actions. Proceed with caution!# #WARNING 2: This page is provided for information only. Under no circumstances should these instructions be used for any illegal purpose or in violation of any contract or user agreement.# Vonage branded models of the Grandstream HT802 come loaded with a factory-locked firmware which does not allow for user configuration. These models will not permit admin login with the standard Grandstream default login of admin/admin. Removing the Vonage settings will require the following tools and abilities: * A philips-head screwdriver * A computer with a USB port * A USB-Serial adapter such as a PL2303 or FTDI and male jumper wires * Terminal software cabaple of interacting with a serial console (screen or minicom) * Basic hardware hacking knowledge (think raspberry pi GPIO) * Common sense * An adventurous spirit === Step one: Disassembly and mainboard access * Puncture or remove the sticker on the bottom of the device that says "Warranty void if removed". WARNING: This will void your warranty * Use a philips-head screwdriver to remove the single screw in the center of the bottom of the case * Carefully unclip and remove the top of the case. The clips are very secure, and may require some gentle force to remove. * The devices mainboard should now be exposed, you will see the components, including the serial headers labelled below: image::http://sdf.org/tutorials/images/ht802_pinout.jpg[alt="HT802 Pinout",width=600] Image courtesy of dslreports.com user https://www.dslreports.com/forum/r31157705-[toro] === Step two: Connect to the serial terminal * Using male jumper wires, connect the serial headers on the mainboard to the appropriate pins of your USB to serial adapter: Note: Male jumper wires _should_ slip into the through-holes on the mainboard's header. _Do not_ force anything or you may risk damage to the board. ** RX to TX ** TX to RX ** GND to GND ** DO NOT allow the USB to serial adapter's +5v wire to come into contact with the mainboard, as this may cause damage to the device. * Connect the USB to serial adapter to your computer's USB port * Use a serial terminal program to access they USB serial port, e.g.: ---- screen /dev/ttyUSB0 115200 ---- * Carefully plug the HT802 into its power source. If you have everything connected properly, you will see boot messages printed to your terminal window. If you do not see this, disconnect everything and start over, carefully. === Step three: Apply unlock and flash firmware * Wait for the device to finish boothing. Once it is complete, you should see a root command prompt, indicated by the '#' character. * Type the following commands, in order. If at any point you recieve an error, stop, and carefully check your work. + ---- cd /tmp dd if=/dev/mtd1 of=/tmp/fact-old.img wget http://shriver.sdf.org/misc/ht802unlock chmod +x ht802unlock ./ht802unlock flash_erase /dev/mtd1 cat /tmp/fact-new.img > /dev/mtd1 flash_eraseall /dev/mtd2 ---- * Note: the ht802unlock file is a small program that reads the file fact-old.img and creates a fact-new.img with the Vonage settings removed. * At this point you may wish to pause and backup the two files fact-old.img and fact-new.img. Having these will allow you to restore to the factory firmware. You can save these files by doing the following: ** First, determin the PID of the web server that the firmware is running, using: + ---- ps w ---- ** Kill the webserver process: + ---- kill $PID ---- ** Start a new webserver in the /tmp directory: + ---- httpd -h /tmp -p 80 ---- ** Using a web browser on your computer, access and download the following files: + ---- http://grandstream_ip_address/fact-old.img http://grandstream_ip_address/fact-new.img ---- * Finally, reboot the device: ---- reboot -f ---- When your HT802 reboots, you will be able to access the web interface using the device's ip address. The default login admin/admin will allow you to configure the device without factory restrictions. These instructions have been adapted from https://www.dslreports.com/forum/r31158266-[this post] on dslreports.com