Hi friends!
I'm many-years Linux user and it is not my first Opened router. It was never easy, but at least once succeed.
So, I have Netgear DG834GT router and started to mess around with it. Based on really good written howto (wiki.openwrt.org/toh/netgear/dg834gt) I've uploaded Backfire (downloads.openwrt.org/backfire/10.03.1/brcm63xx/openwrt-DG834GT_DG834PN-squashfs-cfe.bin) onto.
Everything went ok - it booted up and I was able to do some changes in config etc. But... When router was offline (nothing connected to eth1 aka WAN) I was able to connect to LuCI. When i put ethernet cable to WAN, i got "external" IP and was unable to connect to the web interface (internet works).
Didn't want to annoy about asking such a trivial question I started to messing around. Tried to change some stuff about DHCP, do this (wiki.openwrt.org/toh/netgear/dg834gt#assigning_a_wan_port_with_dhcp) and finally upgrade to Barrier Breaker...
As stated in the wiki:
Barrier Breaker 14.07 appears to work too.
Yeah, it works... barely... The web interface is almost useless*, so I decided to downgrade. Through the Web interface, it was impossible (Bad gateway, too long response...).
*changing root's password was a pain!
Failsafe failed - triggering "reset button" enters router into failsafe (blinking LEDs), but I was unable to connect.
So I tried over ssh.
Here (techtrickszone.com/2017/05/02/openwrt-firmware-upgradation-with-ssh-command-with-piture/) is information to use WinSCP - I know scp and I'm Linux user - let's check if it works - yeah! it works.
So i copied the previous image to /tmp.
Stall.
Scp stalled or I was unable to log in over ssh. Tried (askubuntu.com/questions/82984/why-does-scp-get-stalled-how-do-i-resolve-it#82988)
scp -l 512 openwrt-DG834GT_DG834PN-squashfs-cfe.bin root@192.168.1.1:/tmp
and it didn't help a lot...
I made conclusion - it is because out of ram. So I found this (wiki.openwrt.org/doc/howto/generic.sysupgrade)
One has actually 752+6636 KiB of free memory available.
quickest and safest way to free up, some RAM is to delete the opkg packages file:
rm -r /tmp/opkg-lists/
drop caches:
sync && echo 3 > /proc/sys/vm/drop_caches
prevent wireless drivers to be loaded at next boot and then reboot:
rm /etc/modules.d/*80211* rm /etc/modules.d/*ath9k* rm /etc/modules.d/b43* reboot
The wireless drivers, usually take up quite some amount of RAM and are not required (unless you are connected via wireless of course ;-)), so an easy way to free up some RAM is to delete the symlinks in etc/modules.d so these are not loaded into memory at the next reboot.
After doing so I was able to scp image and start sysupgrade:
mtd -r writer /tmp/image
- didn't work.
sysupgrade -v /tmp/filename-of-downloaded-sysupgrade.bin
- hung once. I've tried again and left it over the night (but disconnected) - we'll see tomorrow
What can I do if it fails? If not, how to solve the first problem - being unable to connect to web interface after connecting WAN.
P.S. I'm able to solder RS - no problem for me - if it is necessary.
(Last edited by e-san on 15 Feb 2018, 21:10)