[SOLVED] Asus RT-N12_D1 r33215M mega NTP issue

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
davidasis
DD-WRT Novice


Joined: 19 Jul 2019
Posts: 8

PostPosted: Thu Jul 29, 2021 12:23    Post subject: [SOLVED] Asus RT-N12_D1 r33215M mega NTP issue Reply with quote
Hi, I have installed dd-wrt v3.0-r33215M mega (08/25/17) on this AP (Asus RT-N12_D1), but time setting/NTP client is not working. I tried set time manually by Commands, command: date 072921182021, but Apply its show this viz.image.

Can you help me please?



ddwrt.jpg
 Description:
 Filesize:  25.69 KB
 Viewed:  1968 Time(s)

ddwrt.jpg


Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14102
Location: Texas, USA

PostPosted: Thu Jul 29, 2021 14:43    Post subject: Reply with quote
Some configuration details might help. We have no idea what specific mode(s) you have configured on this device. Is it set up as a wireless client, wireless client bridge, repeater, repeater bridge, or standard gateway mode? It would also be a good idea to upgrade at some point. That is an old, pre-KRACK fix build; also pre-Fragattack fix.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Thu Jul 29, 2021 15:38    Post subject: Re: Asus RT-N12_D1 r33215M mega NTP issue Reply with quote
davidasis wrote:
Hi, I have installed dd-wrt v3.0-r33215M mega (08/25/17) on this AP (Asus RT-N12_D1), but time setting/NTP client is not working. I tried set time manually by Commands, command: date 072921182021, but Apply its show this viz.image.

That error screen looked like as if the WEBUI had crashed....

When you typed that 'date 07291182021' into the textbox, did you have an extra new line at the end?

Do you have recursive DNS enabled?
Did you enter a time server by DNS name?

I got the following error when trying your command:
Code:

date: invalid date '07291182021'


Please type 'date --help' to learn about the proper syntax.


BTW, my router's WEBUI also crashed when I was about to test your command-line ... Smile


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
davidasis
DD-WRT Novice


Joined: 19 Jul 2019
Posts: 8

PostPosted: Thu Jul 29, 2021 16:46    Post subject: Reply with quote
Hi,
mode is wifi AP, WAN enabled, Operating Mode is gateway,
I tried new commnad, this: 'date 07291182021' its same and wrote sh: eval: line 1: date 07291182021: not found.
With command date: invalid date '07291182021' is same and wrote sh: eval: line 1: date:: not found.

But I did not have set correctly Network Setup in Setup/Basic setup. After Apply I have now time automatically from NTP Client. But these commands still not working.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14102
Location: Texas, USA

PostPosted: Thu Jul 29, 2021 17:06    Post subject: Reply with quote
Again, that build is old and has issues; most likely especially with the commands input box via the webUI. You should always test such commands via telnet / ssh. And again, please consider upgrading; flash and report in the appropriate build thread; do not use the router database for "latest release" information, look in the Broadcom forum for build release threads.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
davidasis
DD-WRT Novice


Joined: 19 Jul 2019
Posts: 8

PostPosted: Thu Jul 29, 2021 19:16    Post subject: Reply with quote
Can you please guide me to the correct build for these wifi device? I don't want to apply the wrong build, I'm not so experienced.

thanks
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14102
Location: Texas, USA

PostPosted: Thu Jul 29, 2021 21:22    Post subject: Reply with quote
Current build is 47097; User has reported all is well with his in this thread: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=329803

https://wiki.dd-wrt.com/wiki/index.php/Asus_RT-N12

https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2021/07-29-2021-r47097/broadcom_K3X/

The wiki states to use the generic dd-wrt.v24-XXXXX_NEWD-2_K3.x_mega.bin file for upgrades, as evidenced in the report in the thread linked above. Please flash and report so that others can see your post. Unfortunately, we don't constantly update recommended build information on every device; it is up to the user to figure this out.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Fri Jul 30, 2021 11:56    Post subject: Reply with quote
davidasis wrote:
Hi,
mode is wifi AP, WAN enabled, Operating Mode is gateway,
I tried new commnad, this: 'date 07291182021' its same and wrote sh: eval: line 1: date 07291182021: not found.
With command date: invalid date '07291182021' is same and wrote sh: eval: line 1: date:: not found..... But these commands still not working.

Code:
date --help

Usage: date [OPTIONS] [+FMT] [[-s] TIME]

Display time (using +FMT), or set time

   -u      Work in UTC (don't convert to local time)
   [-s] TIME   Set time to TIME
   -d TIME      Display TIME, not 'now'
   -D FMT      FMT (strptime format) for -s/-d TIME conversion
   -r FILE      Display last modification time of FILE
   -R      Output RFC-2822 date
   -I[SPEC]   Output ISO-8601 date
         SPEC=date (default), hours, minutes, seconds or ns

Recognized TIME formats:
   @seconds_since_1970
   hh:mm[:ss]
   [YYYY.]MM.DD-hh:mm[:ss]
   YYYY-MM-DD hh:mm[:ss]
   [[[[[YY]YY]MM]DD]hh]mm[.ss]

You should use "-s" to set time, I believe. And I'm not sure whether your time string was in correct format... no harm trying other formats.

What is your Setup -> Basic Setup -> Time Settings -> Server IP/Name? Is it Blank? Or did you input a non-reachable NTP server? If you are just not sure, leave it blank! Then reboot router to see whether it works.

Per kernel-panic69 said, you are using a really old build (33xxx). That build's date command might be different from the one I am using though unlikely.


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
davidasis
DD-WRT Novice


Joined: 19 Jul 2019
Posts: 8

PostPosted: Fri Jul 30, 2021 12:45    Post subject: Reply with quote
kernel-panic69: thanks for links, but I have a other questions:
which specific file is for my device Asus RT-N12_D1 (because version D1 is not in the list of links)?
Can I upload this new version via the web interface (Administration/Firmware upgrade)?

Thanks Smile
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Fri Jul 30, 2021 13:20    Post subject: Reply with quote
davidasis wrote:
Hi,
mode is wifi AP, WAN enabled, Operating Mode is gateway,
I tried new commnad, this: 'date 07291182021' its same and wrote sh: eval: line 1: date 07291182021: not found.
With command date: invalid date '07291182021' is same and wrote sh: eval: line 1: date:: not found.

I found an old thread... its build is much more older than yours! Smile

DD-WRT Forum :: View topic - Can't manually set the date/time on 17670 - Please help
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=151727&sid=88e063fc513e5172d0672f0430027f68

Another one involving more recent builds:

DD-WRT Forum :: View topic - date --date command doesn't work?
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=995482

Someone was using the same method as yours and claimed that it worked! DD_WRT SVN revision 13064M ...

DD-WRT set date manually - ITek Blog
https://itekblog.com/dd-wrt-set-date-manually/

Maybe the date command in older builds are really different... Well.... Smile


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14102
Location: Texas, USA

PostPosted: Fri Jul 30, 2021 14:26    Post subject: Reply with quote
kernel-panic69 wrote:
The wiki states to use the generic dd-wrt.v24-XXXXX_NEWD-2_K3.x_mega.bin file for upgrades, as evidenced in the report in the thread linked above.

Yes, you use the webUI to flash it. The only other option is via ssh/telnet if for some reason that does not work.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
davidasis
DD-WRT Novice


Joined: 19 Jul 2019
Posts: 8

PostPosted: Fri Jul 30, 2021 21:53    Post subject: Reply with quote
Hi folks! So update complete, everything works including language Czech. Thank you for your help Smile
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Sun Aug 08, 2021 11:35    Post subject: Reply with quote
davidasis wrote:
Hi folks! So update complete, everything works including language Czech. Thank you for your help Smile

A post that might have interested you, involving setting time manually with curl + date commands:

Setting time using HTTP without NTP server nor service
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327369

I forgot about it when you talked about the date command. Smile


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum