WNDR3400v2 web page modifications

6 posts / 0 new
Last post
Daniel Yount
Daniel Yount's picture
WNDR3400v2 web page modifications

I downloaded the router firmware source and compiled it. But

I can only change the images I cant change the names of the

files add a directory or change much of anything. To make sure

I could modify it, I did change the image while keeping the same

name of the file and that worked. What do I need to do with the

original firmware to get it to register new directories and or files.

 

Here is the URL where I downloaded the original source code.

http://support.netgear.com/app/answers/detail/a_id/2649/~/gpl-open-sourc...

 

Any pointers on modifying the original web pages will be helpful as well as understanding how the CGI stuff works.

 

Daniel Yount
Daniel Yount's picture
UPDATE:

UPDATE:
I now have gotten it to take my html files. I have to put them in the target directory www. But still cant override index.htm file.

- I can -
* add directory in that part of the tree.
* add html files of my own.

- I cant -
* change the default html file.
* execute bash CGI files.

Once I can do that, then I am good on making my own GUI space controls.
Was not for sure which httpd is being compiled and used in the tree.
As a few exit in the source and well as one prebuilt one.

Daniel Yount
Daniel Yount's picture
SECOND UPDATE:

SECOND UPDATE:
Bricked my router. While editing the Makefile's to stop the copy to target
It kept my web server page changes, It compiled , it installed , it even
booted up and looked ok from the LED lights. But I could no longer get to
the web server nor could I reboot the router and hold reset to get the TFTP server going. Although the telnet and DNS port are up. Logging into telnet gets me a dead socket connection.

So then I had to take it apart , which I found the 6 pin serial port connections on pinout J41 also had a spot for a 12 pin JTAG on pinout 14. Looked into the JTAG software none really existed for my router and many different types existed although did not have a lot of parts resistors and printer port connector but just no software for it. So looked into the serial connector, I have a USB to serial port connector but it is the 5v DB9 , reading on it says I need to connect a MAXIM3232 to convert the voltages down to 3.3v RS323 from a 5v. Ordered the parts and waiting for them to come in. The serial version has more parts but the software is just a simple 8n1 tty connection.

Daniel Yount
Daniel Yount's picture
Got my parts for the serial

Got my parts for the serial port. Put it together on breadboard for now, had some garbled text from loose connections. Would not be a problem if I made a custom PCB board. Will do that once I get this process down.

I can see the boot up log and then hit enter to login to prompt and do "ls" command and move around the directories. I can plug in my USB stick to the back and mount and read it. One of the files is the original firmware. Where do I place this file for it to replace it with the current firmware?

Daniel Yount
Daniel Yount's picture
After reading some of the de

After reading some of the de-brick routines on here I found one that worked. When it boots up it gives you an option to stop in the middle of the server startup and then the final one to get console prompt. But the one that got me to boot and start tftpd was to hold down CTRL-C then turn on the router,keep holding it for a few seconds. This dropped me to the CFE> prompt.I then typed tftpd and it said started... then on the PC I sent the tftp original firmware and it then said programmed. rebooted on its own and was back to original firmware.

Kbs
Kbs's picture
Did you able to launch your

Did you able to launch your own website from the router instead of router configuration page?