How to get back nocat: Captive Portal feature, which was retired in FreshTomato-ARM 2018.4

Discussion in 'Tomato Firmware' started by tbrautaset, Oct 11, 2018.

?

Anyone using Captive Portal?

  1. Oh yes, it's so cool to have internet cafe solution with a great welcome page at home !

    4 vote(s)
    36.4%
  2. Absolutely silly, do not need anything like that!

    7 vote(s)
    63.6%
  1. tbrautaset

    tbrautaset Network Newbie Member

    This thread may help others who want to make changes at their own, when features like in my case were retired.

    What I've done so far is following this HOW TO COMPILE FRESH TOMATO on Debian 9.x / 64bit

    Ok, tools are configured and the source code is downloaded. How do I add what's removed and compile it so I get my own 2018.4 version with this feature? In my case, this was nocat: Captive Portal.

    Can anyone help to create a simple recipe that contains how to add this feature and how to compile so I end up with a .trx file that can be used?
     
  2. Sean B.

    Sean B. LI Guru Member

    I would suggest as the easy, and certainly simplest, way is to clone the FreshTomato source via git from here . Then either checkout the last version which included nocat, or if there's updates you want from after that version then revert the commit in which nocat was removed.
     
    Last edited: Oct 12, 2018 at 5:32 AM
  3. Yim Sonny

    Yim Sonny Serious Server Member

    This might be a very simple task for one of the developers who work with this stuff. You might want to ask how much of a donation they would consider accepting for the time spent on your custom job. I bring this up because I also have several items that I would like to have customized into the firmware and have considered asking this same question for my own projects.
     
  4. tbrautaset

    tbrautaset Network Newbie Member

    Did as you wrote and and downloaded from the correct repo, regardless of whether I do not see the difference, except that the first one only has mips compiled from the same source code ?


    Created a directory and downloaded what I'm assuming is 2018.3, and when the feature was removed and the 2018.4 source code to look for differences:

    git clone https://bitbucket.org/kille72/freshtomato-arm/commits/878f26dd69b9af677ef55632d315ba21f3bd31ce 2018.3 \ - \ 2018.06.22

    git clone https://bitbucket.org/kille72/freshtomato-arm/commits/741eab041884191e31e810ee55a3681334422027 Retiring \ Captive \ Portal \ feature \ - \ 2018.08.07

    git clone https://bitbucket.org/kille72/freshtomato-arm/commits/bede7f78930737a152d9adb7e82d8706f1f67dd3 2018.4 \ - \ 2018.09.10


    Anyone who knows how to get the right configuration for make, so can build this for Asus RT-AC3200 model ?
     
  5. AndreDVJ

    AndreDVJ LI Guru Member

    Looking at these three commands, you did exactly the opposite of what Sean advised...
    • First of all, you need to clone a repository using Git.
    Code:
    git clone https://bitbucket.org/kille72/freshtomato-arm.git
    • Then you need to checkout the correct branch for your router
    Code:
    git checkout shibby-arm7
    • Then you need to get into ~/release/src-rt-7.x.main/src/ and compile the ac3200z target.
    I don't really know the correct sequence to have the image versioned correctly, so I'm unable to help you at this point.

    The easiest thing to do is to undo the change manually, because the nocatsplash source code is still in the tree. If you found the change, then I assume you know what the git diff in there is telling you.

    In fact, I am assuming lots of things, because TomatoUSB building is a major PITA on its own. Resolving configuration and compilation issues you must research a little.

    My only advice is to not issue git commands against your local repository without knowing exactly what you're doing.
     
    tbrautaset and Sean B. like this.
  6. Sean B.

    Sean B. LI Guru Member

    I would strongly suggest checking out the captive portal options that you can use via optware/entware-ng rather than your current courses of action.
     
    tbrautaset likes this.
  7. Sean B.

    Sean B. LI Guru Member

    @tbrautaset , after taking a look at the source, reinstating nocat turned out to take no more than the addition of " NOCAT=y " in 2 lines inside of 1 makefile. I went ahead and ran a build of 2018.5 AIO with NoCat enabled, you can download it here if you'd like. I must state that, while nothing during the build process indicated anything abnormal, I cannot test this firmware file as I do not have an RT-AC3200. Therefor if you use it, you are expressly doing so at your own risk.
     
    M_ars, tbrautaset and Yim Sonny like this.
  8. tbrautaset

    tbrautaset Network Newbie Member

    Starting a conversation, to not bother everyone in this thread;).
     
  9. Justio

    Justio Networkin' Nut Member

    :(
     
  10. Yim Sonny

    Yim Sonny Serious Server Member

    I believe that the apple sized hole in your head has suddenly been elevated to a whole new significance.
     
  11. tbrautaset

    tbrautaset Network Newbie Member

    Much possible, it has :D
     
  12. tbrautaset

    tbrautaset Network Newbie Member

    After trying Sean B.'s .trx I hope to know how it was made, started a conversation.

    Meanwhile, tried compiling different commits, but I always get these messages when trying to make ac3200z, ac3200e is ok, but I use AIO


    checking for restartable system calls... configure: error: in `release/src-rt-6.x.4708/router/mysql':
    configure: error: cannot run test program while cross compiling
    See `config.log' for more details
    Makefile:472: recipe for target 'config.status' failed
    make[5]: *** [config.status] Error 1
    make[5]: Leaving directory 'release/src-rt-6.x.4708/router/mysql'
    Makefile:2266: recipe for target 'mysql' failed
    make[4]: *** [mysql] Error 2
    make[4]: Leaving directory 'release/src-rt-6.x.4708/router'
    Makefile:123: recipe for target 'all' failed
    make[3]: *** [all] Error 2
    make[3]: Leaving directory 'release/src-rt-7.x.main/src'
    Makefile:1087: recipe for target 'bin' failed
    make[2]: *** [bin] Error 2
    make[2]: Leaving directory 'release/src-rt-7.x.main/src'
    Makefile:1106: recipe for target 'z' failed
    make[1]: *** [z] Error 2
    make[1]: Leaving directory 'release/src-rt-7.x.main/src'
    Makefile:1185: recipe for target 'ac3200z' failed
    make: *** [ac3200z] Error 2


    or


    glib.texi:111: raising the section level of @subsection which is too low
    glib.texi:168: raising the section level of @subsection which is too low
    glib.texi:221: raising the section level of @subsection which is too low
    glib.texi:239: raising the section level of @subsection which is too low
    glib.texi:269: raising the section level of @subsection which is too low
    glib.texi:293: raising the section level of @subsection which is too low
    glib.texi:323: raising the section level of @subsection which is too low
    glib.texi:374: raising the section level of @subsection which is too low
    glib.texi:398: raising the section level of @subsection which is too low
    Makefile:273: recipe for target 'glib.info' failed
    make[7]: *** [glib.info] Error 1
    make[7]: Leaving directory 'release/src-rt-6.x.4708/router/glib/docs'
    Makefile:693: recipe for target 'all-recursive' failed
    make[6]: *** [all-recursive] Error 1
    make[6]: Leaving directory 'release/src-rt-6.x.4708/router/glib'
    Makefile:390: recipe for target 'all' failed
    make[5]: *** [all] Error 2
    make[5]: Leaving directory 'release/src-rt-6.x.4708/router/glib'
    Makefile:1933: recipe for target 'glib/stamp-h1' failed
    make[4]: *** [glib/stamp-h1] Error 2
    make[4]: Leaving directory 'release/src-rt-6.x.4708/router'
    Makefile:123: recipe for target 'all' failed
    make[3]: *** [all] Error 2
    make[3]: Leaving directory 'release/src-rt-7.x.main/src'
    Makefile:1087: recipe for target 'bin' failed
    make[2]: *** [bin] Error 2
    make[2]: Leaving directory 'release/src-rt-7.x.main/src'
    Makefile:1106: recipe for target 'z' failed
    make[1]: *** [z] Error 2
    make[1]: Leaving directory 'release/src-rt-7.x.main/src'
    Makefile:1185: recipe for target 'ac3200z' failed
    make: *** [ac3200z] Error 2


    Have tried to do as AndreDVJ and Sean B. informed me :

    git clone https://bitbucket.org/kille72/freshtomato-arm.git
    git checkout shibby-arm7

    Edited Makefile : sed -i -e 's/BTCLIENT=/NOCAT=y BTCLIENT=/g'

    Entered release/src-rt-7.x.main/src, ran make ac3200z, possible i lack some parameters such as image version? What more than make ac3200z?

    Errors I get is similar to those in this thread, but my path includes sbin ...
     
    Last edited: Oct 17, 2018 at 1:26 PM
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice