Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
344 stars 52 forks source link

Request Support for TG-1 (VANT-5) iiNet/Internode #723

Open fru1tl00p opened 5 years ago

fru1tl00p commented 5 years ago

Would be great if this old modem could run tech-nginx-gui too!

Will test if I can get a basic setup working in the meantime.

Just started investigating this modem and can't get many opkg packages to run, I think it's a libc incompatibility. It has openwrt AA, brcm63xx MIPS.

See this thread for more details: https://github.com/kevdagoat/hack-technicolor/issues/2

kevdagoat commented 5 years ago

Did you manage to unbrick?

Sent from Mail for Windows 10

From: fru1tl00p Sent: Friday, 19 July 2019 5:32 PM To: Ansuel/tch-nginx-gui Cc: Subscribed Subject: [Ansuel/tch-nginx-gui] Request Support for TG-1 (VANT-5)iiNet/Internode (#723)

Would be great if this old modem could run tech-nginx-gui too! Will test if I can get a basic setup working in the meantime. Just started investigating this modem and can't get many opkg packages to run, I think it's a libc incompatibility. It has openwrt AA, brcm63xx MIPS. See this thread for more details: kevdagoat/hack-technicolor#2 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

fru1tl00p commented 5 years ago

Nope, but pretty sure I can TFTP it tomorrow.

kevdagoat commented 5 years ago

Keep in mind that tftp doesn’t fix a broken libc install in the rootfs data partition, it only replaces the base firmware image

Sent from Mail for Windows 10

From: fru1tl00p Sent: Friday, 19 July 2019 5:39 PM To: Ansuel/tch-nginx-gui Cc: Kevdagoat; Comment Subject: Re: [Ansuel/tch-nginx-gui] Request Support for TG-1 (VANT-5)iiNet/Internode (#723)

Nope, but pretty sure I can TFTP it tomorrow. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

fru1tl00p commented 5 years ago

Ah ok... well could be hosed then... I thought you couldn't make permanent changes to the base filesystem?

kevdagoat commented 5 years ago

Exactly. But you have made changes to the files that get overlaid over the firmware

Sent from my iPhone

On 19 Jul 2019, at 5:42 pm, fru1tl00p notifications@github.com wrote:

Ah ok... well could be hosed then... I thought you couldn't make permanent changes to the base filesystem?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

nutterthanos commented 5 years ago

How the hell could you manage to make changes to the files that get overlaid over the firmware?

FrancYescO commented 5 years ago

have you tried to just install the GUI? install log? errors? if the latest version is still based on 15.53.8141 i think the backport will be just too hard..

brucbr commented 4 years ago

I have the VANT-5 router, will be rooting it again soon (I am struggling to get the boot plan working to keep root).

I'll let you know if the gui works. I'll upload installer debug log and the debug zip (after 2 hours of running)

brucbr commented 4 years ago

Unable to connect to port 80! Is nginx not working? Yes.

Okay, That log was useless. The errors for whatever reason are not present. However when I try to start nginx manually nginx: [emerg] unknown directive "init_worker_by_lua" in /etc/nginx/nginx.conf:35

Also, this successfully setup the bootplan for me so yay.

FrancYescO commented 4 years ago

is this a dual bank device? if yes next build of this GUI will use bank_1 firmware space as overlay

btw, post your stock /etc/nginx/nginx.conf file the error you posted should came from here, when instaling used the debug flag when calling rootdevice

brucbr commented 4 years ago

Yes the device is dual bank. Removed nginx conf posted.

brucbr commented 4 years ago

I just realised you said stock. I took a look at the original nginx conf, it doesn't contain the directive. Everything in it is in the init_by_lua instead. Removing SSL aswell due to the fact that the nginx build doesn't support it.

The build of nginx for the router seems quite lacking in some aspects.

Removed error_log, init_by_lua_worker, all ssl related entries and most assistance related entries. The speed of serving the pages is quite slow however.

brucbr commented 4 years ago

No cards are present(Just the site background, no boxes or anything. Except for log in top corner and buttons in other top corner, none of which work) I'll post the install log here

brucbr commented 4 years ago
Root Script: Installing in progress...
Root Script Start rooting
Root Script Setting root flag
Root Script Reset unlock bit
Root Script Save root password if modified
Root Script Setting & Enabling Dropbear SSH Server
Root Script Restarting Dropbear SSH Server
Root Script Executing /etc/modgui_scripts/01_prereq.sh
Root Script Disabling watchdog...
Root Script Checking Free RAM...
Root Script Executing /etc/modgui_scripts/02_specific.sh
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
Root Script Executing /etc/modgui_scripts/03_various.sh
Root Script Enabling hardware serial console...
Root Script Fixing sysupgrade if needed...
Root Script Restoring and enabling few transformer mappers...
md5sum: can't open '/rom/usr/share/transformer/mappings/device2/Device.map': No such file or directory
md5sum: can't open '/usr/share/transformer/mappings/device2/Device.map': No such file or directory
Root Script Creating custom GUI utils symlinks...
Root Script Add checkversion to cron...
Root Script Executing /etc/modgui_scripts/04_config.sh
Root Script Check original config
Root Script Unlocking web interface if needed
Root Script Check if variant_friendly_name set
Root Script Remove https check
Root Script Check driver setting
Root Script Check Dropbear config file
Root Script Restarting Dropbear SSH Server...
Root Script Check eco paramaters
Root Script Add app-extension var in modgui uci config
Root Script Add new web options
Root Script New DHCPRelay Option
Root Script Suppressing wansensing logs
Root Script Suppressing syslog (avoid ledfw spam)
uci: Entry not found
uci: Entry not found
Root Script Create new option for led definitions
Root Script Creating and checking real version
Root Script Implementing WoL
Root Script Apply new xDSL options
Root Script Adding fast cache options
Root Script Checking if wan_mode option exists...
Root Script Checking DoSprotect kernel modules...
Root Script Checking mobiled libs...
Root Script Adding missing mobiled scripthelpers lib...
mv: can't rename '/tmp/scripthelpers.lua': No such file or directory
cmp: /rom/etc/init.d/mobiled: No such file or directory
Root Script Checking if intercept is enabled and disabling if it is...
Root Script Disabling coredump reboot...
Root Script Restoring nginx additional options if needed...
Root Script Adding missing voicednd rule if needed
Root Script Doing various checks and generating hashes...
Root Script Update branch detected: STABLE
Root Script: Detected low flash space device...
Root Script GUI hash set: 96693ff1aa292617d86a642d89a24937
Root Script Resetting version info...
Root Script Decrypting any encrypted password present in config
Root Script Executing /etc/modgui_scripts/05_app.sh
Root Script Trafficmon inizialization
Root Script Move Aria2 dir
Root Script Reinstalling Telstra GUI if needed...
Root Script Executing /etc/modgui_scripts/06_network.sh
IspConfigHelper Detecting ISP and cleanup...
IspConfigHelper Checking detected ISP and setting CWMP...
IspConfigHelper Restarting dnsmasq if needed...
Root Script Adding ipoe in network config...
Root Script Removing default loopback DNS Servers...
Root Script Purify WAN network config...
Root Script Fix DNS bug, make sure odhcp is enabled
Root Script Enabling odhcpd on boot
Root Script Checking and fixing dnsmasq daemon naming...
Root Script Sync DHCP configuration for new GUI
Root Script Attempt to clean the wansensing script from hardcoded interfaces...
Root Script Cleaning cups firewall rule...
Root Script Apply CVE 2019-11477 workaround
Root Script Checking atmdevice interface naming...
Root Script Restarting dnsmasq if needed...
Root Script Executing /etc/modgui_scripts/99_postreq.sh
Root Script Applying modifications
Root Script Resetting cwmp and watchdog
Root Script Process done.
Root Script Restarting transformer
start-stop-daemon: warning: killing process 15149: No such process
Root Script Stopping nginx
Root Script Restarting nginx...
FrancYescO commented 4 years ago

can be a good starting point.. logread | grep err after opening the GUI how much free space do you have after install? df -h does /etc/init.d/transformer restart give errors?

brucbr commented 4 years ago

Free Space:

Filesystem                Size      Used Available Use% Mounted on
rootfs                   31.5M      9.3M     22.2M  30% /
/dev/root                13.8M     13.8M         0 100% /rom
/dev/mtdblock2           31.5M      9.3M     22.2M  30% /overlay
overlayfs:/overlay/bank_1
                         31.5M      9.3M     22.2M  30% /

Transformer Restart:

start-stop-daemon: warning: killing process 15927: No such process

Attached is logread logread.txt

brucbr commented 4 years ago

Hi, just wanted to check if there was any progress into finding out the issue? I assume it has to do with the /dev/root usage being 100%. But I don't know anything, so yeah...

If I didn't provide something that you needed, please let me know.

brucbr commented 4 years ago

Hello @FrancYescO,

Just wanted to know if it was possible to get the GUI working on this device. If not could you please let me know.

Thanks

FrancYescO commented 4 years ago

You already found the fix needed, so yes is possible, this just needed to be included somehow in the main code


From: brucbr notifications@github.com Sent: Wednesday, June 24, 2020 7:22:21 AM To: Ansuel/tch-nginx-gui tch-nginx-gui@noreply.github.com Cc: Francesco M francyesc0@hotmail.it; Mention mention@noreply.github.com Subject: Re: [Ansuel/tch-nginx-gui] Request Support for TG-1 (VANT-5) iiNet/Internode (#723)

Hello @FrancYescOhttps://github.com/FrancYescO,

Just wanted to know if it was possible to get the GUI working on this device. If not could you please let me know.

Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Ansuel/tch-nginx-gui/issues/723#issuecomment-648592639, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABC43AOETTXMDARM3CICHRTRYGEQ3ANCNFSM4IFEGJDA.

brucbr commented 4 years ago

Okay