seud0nym / tch-gui-unhide

Modify Telstra-branded Technicolor devices to access hidden features
GNU General Public License v3.0
119 stars 15 forks source link

Adblock extra 'unable to complete setup' #181

Closed sumeetkpatel closed 7 months ago

sumeetkpatel commented 9 months ago

On the Gen3 modem I am getting this: Firmware Version: 20.4.0428-MR1-RA

root@CobraXh:/tmp/run/mountd/sda1/telstra/unhide# sh tch-gui-unhide-xtra.adblock setup
>> Determining installed and current versions of required packages...
>> Latest adblock version is 1.0.0-2
4.1.5-8 but only version 4.1 is supported - unable to complete setup

Any way to progress?

seud0nym commented 9 months ago

A new package called adblock-fast has been added to the repository, and it confused the version detection, which was just looking for package names starting with adblock.

I have committed a fix. Please download again and retry.

BTW: You really should consider upgrading your firmware to 21.4.0439. It is significantly more stable.

sumeetkpatel commented 9 months ago

I started over.

Currently: Firmware Version: 21.4.0439-MR2.1-RA I tried adblock before unhide and it sent it into a boot loop. I've reflashed from scratch and back to a working 21.4.0439-MR2.1-RA unhide but without adblock. Should I try to run adblock again post unhide or just wait until this is better supported?

Here is the log right before it went into boot loop

root@CobraXh:/tmp/run/mountd/sda1/telstra/pse# sh tch-gui-unhide-xtra.adblock setup
>> Determining installed and current versions of required packages...
>> Downloading coreutils v9.4
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   865  100   865    0     0   1761      0 --:--:-- --:--:-- --:--:--  1761
>> Installing coreutils v9.4
Installing coreutils (9.4) to root...
Configuring coreutils.
>> Downloading coreutils-sort v9.4
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 79390  100 79390    0     0   197k      0 --:--:-- --:--:-- --:--:--  197k
>> Installing coreutils-sort v9.4
Installing coreutils-sort (9.4) to root...
Configuring coreutils-sort.
>> Downloading ca-bundle v20230311-1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  121k  100  121k    0     0  55648      0  0:00:02  0:00:02 --:--:-- 55648
>> Installing ca-bundle v20230311-1
Upgrading ca-bundle on root from 20190110-2 to 20230311-1...
Configuring ca-bundle.
>> Downloading ca-certificates v20230311-1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  131k  100  131k    0     0  60313      0  0:00:02  0:00:02 --:--:-- 60313
>> Installing ca-certificates v20230311-1
Installing ca-certificates (20230311-1) to root...
Configuring ca-certificates.
>> Downloading adblock v4.1.5-8
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 20795  100 20795    0     0  13111      0  0:00:01  0:00:01 --:--:-- 13103
>> Installing adblock v4.1.5-8
Installing adblock (4.1.5-8) to root...
Configuring adblock.
>> Fixing adb_fetchparm global configuration option
>> adblock daily update has been scheduled to execute at 1:07am every day
>> Setup complete
root@CobraXh:/tmp/run/mountd/sda1/telstra/pse#
seud0nym commented 9 months ago

A boot loop isn't usually a boot loop. It is usually caused by an executable doing a core dump, and these devices are configured to automatically reboot on a core dump. There will be a core dump file in /root which will indicate which program caused the issue (unless you have since done a reset).

Anyway, I have installed adblock multiple times on 21.4 without issue, so I am not sure what caused it.

Yes, you should re-run the adblock setup. If you are concerned about it happening again, you can run the following command (in the same directory that extracted tch-gui-unhide):

sh reboot-on-coredump -off

After adblock is setup, you will need to re-run the tch-gui-unhide install to pick up the additional adblock card.

seud0nym commented 9 months ago

I have been able to reproduce the core dump/boot loop issue. I am working on a fix.

seud0nym commented 9 months ago

I have found the problem. The adblock package has a dependency on the full coreutils sort (instead of the cut-down sort provided by BusyBox on these devices). I have been trying to build a 64-bit version, and I thought it was working, but it wasn't. It was sort that was core dumping and causing the issue. I have reverted to a 32-bit version (which does run on the Gen 3) and it seems to be fixed now.

stale[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.