n0pin wrote:I once faced this problem too. Everytime I tried to upgrade new firmware when using DD-WRT, it came back after reboot. Even webrevert images DD-WRT provides didn't work.
I solved this problem by using SCP to copy firmware image (beware, sometimes you need to use stripped image, depends on router) to /tmp folder on router. Then I issued this command (image.bin is name of the firmware file I uploaded):
Read the instructions at the beginning of the patch file - there are lots of caveats.
Note: I did the port & lost interest in it. Haven't tested failsafe mode or upgrading via web to a newer build. I kept missing patches which caused the kernel to crash, so I had to flash via tftp.
This is the patch I used to enable kernel dubugging symbols or whatever its called in Linux
--- a/target/linux/generic/config-3.3 2013-11-04 19:48:31.000000000 -0400
+++ b/target/linux/generic/config-3.3 2013-11-05 03:32:08.000000000 -0400
@@ -1272,8 +1272,8 @@
# CONFIG_JME is not set
CONFIG_JOLIET=y
# CONFIG_JUMP_LABEL is not set
-# CONFIG_KALLSYMS is not set
-# CONFIG_KALLSYMS_ALL is not set
+CONFIG_KALLSYMS=y
+CONFIG_KALLSYMS_ALL=y
# CONFIG_KARMA_PARTITION is not set
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_GZIP is not set