AC66U B1 switching from Freshtomato to Merlin

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

fced

Occasional Visitor
Hello,
My AC66U B1 is actually on Freshtomato, latest version, and i am experimenting problems with a device which sometimes don't recognize the 100/50 Mo connection, and i would like to know it switching from Freshtomato to Merlin could be done without problems (from the web upgrade section of Freshtomato)...
I already bricked a TP-Link router trying to revert from DDWRT to factory to install OpenWRT, and i would ike to avoid bricking this one.
Thanks
Ced
 

bbunge

Very Senior Member
You may want to flash back to stock Asus firmware first, do a hard factory reset, min config, flash Merlin 386.1 beta 1, another hard factory reset then configure. Be aware you may have to format the /jffs after flashing Merlin.
 

rlj2

Regular Contributor
Hello,
My AC66U B1 is actually on Freshtomato, latest version, and i am experimenting problems with a device which sometimes don't recognize the 100/50 Mo connection, and i would like to know it switching from Freshtomato to Merlin could be done without problems (from the web upgrade section of Freshtomato)...
I already bricked a TP-Link router trying to revert from DDWRT to factory to install OpenWRT, and i would ike to avoid bricking this one.
Thanks
Ced
I bricked a tp-link router once also switching between firmwares. Asus routers arent near as easy to brick (impossible almost?). but as bbunge mentioned it will be safer, and have a cleaner new install.
 

jsbeddow

Senior Member
In my experience, it us sometimes necessary to flash to the @john9527 Fork build (if your router is supported, that is) as the file size is smaller, then move to stock current Asus or Merlin firmware. This seems to work even when a direct move to the current Asus or Merlin builds are rejected within the FreshTomato GUI. Perhaps not always a "must", but a useful workaround when needed.
 

fced

Occasional Visitor
Thank you for your answers i will try this, i thought switching from tomato to another was possible without returning to stock firmware.

Do I need Asus firmware upgrade tool to do this (i used it to install freshtomato)?
 

fced

Occasional Visitor
You may want to flash back to stock Asus firmware first, do a hard factory reset, min config, flash Merlin 386.1 beta 1, another hard factory reset then configure. Be aware you may have to format the /jffs after flashing Merlin.
Hello,
Apologies, it took me some time to answer..
Why should i format /jffs partition ? To be honest i never touched it, and i also have read somewhere touching /jffs partition on an Asus AC66U B1 could brick the router...

In my experience, it us sometimes necessary to flash to the @john9527 Fork build (if your router is supported, that is) as the file size is smaller, then move to stock current Asus or Merlin firmware. This seems to work even when a direct move to the current Asus or Merlin builds are rejected within the FreshTomato GUI. Perhaps not always a "must", but a useful workaround when needed.
Is this a special release of Merlin firmware made by john9527? If yes, is there a thread with its functionalities somewhere ?

Thanks
 

john9527

Part of the Furniture
Is this a special release of Merlin firmware made by john9527? If yes, is there a thread with its functionalities somewhere ?
Sticky in this forum
 

fced

Occasional Visitor
Hello,
Is there a way to set an sheduled PPPOE reconnection each day on Merlin firmware as it is on Freshtomato / Tomato firmwares ?
With the webif if possible ...
 

RMerlin

Asuswrt-Merlin dev
Create a cron job that issues a 'service "restart_wan 0' command.
 

fced

Occasional Visitor
Create a cron job that issues a 'service "restart_wan 0' command.
Thank you, but how, and where, is there a Cron script section in the Web interface of Merlin ? I haven 't see anything like that... Or do you mean with SSH ?
Could you please post the exact syntax ? i am really not this familiar with cron script, i used them a little to shedule a software restart on set-top boxes, but never on a router, i always done this with the Sheduled section of Tomato...
To be honest, Merlin firmware is not like Tomato firmwares, and i am a bit lost to find anything i need with it...
 

fced

Occasional Visitor
I found this on another topic :
Code:
service restart_wan
Using SSH to connect to the router is not a problem, but, how to create a cron script to shedule a PPPOE reconnect each day at 09h54 AM ? and where to create or save this cron script ?
Could someone post me the cron script please ...

Edit : Is this correct (reconnect ppoe each day at 09h45AM)?
Code:
cru a 0 09 * * * service restart_wan +45
 
Last edited:

ColinTaylor

Part of the Furniture
You need to create an /jffs/scripts/init-start user script like this:
Code:
#!/bin/sh
cru a RestartWan "45 09 * * * service restart_wan"
 

RMerlin

Asuswrt-Merlin dev
restart_wan requires a unit parameter. It must be:

Code:
service "restart_wan 0"
 

fced

Occasional Visitor
You need to create an /jffs/scripts/init-start user script like this:
Code:
#!/bin/sh
cru a RestartWan "45 09 * * * service restart_wan"

Thank you, for your answers,
Here is the content of my /jffs partition (i never touched it) :
Code:
[email protected]_B1-F600:/jffs# ls
addons          configs         scripts         usericon
cert.tgz        nmp_cl_json.js  syslog.log
[email protected]_B1-F600:/jffs#

If I am correct, i must create a subolder named "init-start" in /jffs/scripts/ and then put a text file with the script you sent me ?

Code:
#!/bin/sh
cru a RestartWan "45 09 * * * service restart_wan 0"
 

ColinTaylor

Part of the Furniture
If I am correct, i must create a subolder named "init-start" in /jffs/scripts/ and then put a text file with the script you sent me ?

Code:
#!/bin/sh
cru a RestartWan "45 09 * * * service restart_wan 0"
No, you create a file called init-start that is the script.
 

ColinTaylor

Part of the Furniture
restart_wan requires a unit parameter. It must be:

Code:
service "restart_wan 0"
Is the requirement for the unit parameter on the wan service a recent change? I thought the parameter was only mandatory for the wan_if service?
 

RMerlin

Asuswrt-Merlin dev
Is the requirement for the unit parameter on the wan service a recent change? I thought the parameter was only mandatory for the wan_if service?

You might be right, I can't remember for sure as I haven't used that command in ages.
 

fced

Occasional Visitor
Thank you very much,
Is this correct :
Code:
Last login: Mon Jan 11 17:59:33 on ttys000
[email protected] ~ % ssh [email protected]
[email protected]'s password:
ASUSWRT-Merlin RT-AC68U 384.19_0 Fri Aug 14 19:17:44 UTC 2020

[email protected]_B1-F600:/jffs/scripts# ls -l
-rw-rw-rw-    1 ced      root            63 Jan 12 18:03 init-start

[email protected]_B1-F600:/jffs/scripts# vi init-start

#!/bin/sh
cru a RestartWan "45 09 * * * service restart_wan 0"

By the way, i tried to connect to the router with several Ftp/ssh clients (Filezilla, Transmit, RBrowser), but no one worked and i had to create the init-start with Vim, and then chmod it, does anybody know if there is a FTP client on Mac which is compatible with Merlin routers, or a way to enable simple ftp connect to the router (ftp server, without ssh key) ?
 
Last edited:

ColinTaylor

Part of the Furniture
FTP can be enabled in the GUI. EDIT: IIRC you're restricted to read/write USB storage only.

The script looks good but you need to make it executable:
Code:
chmod 755 /jffs/scripts/init-start

Enable custom scripts in the router's GUI (Administration - System).
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top