Black Hole
May contain traces of nut
This applies specifically to CF users with the beta version of ir, but all beta programme participants should be aware. You can tell if you are a potential beta programme participant by whether you have installed the opkg-beta package (see WebIF >> Package Management >> Installed). You can tell if you are actually participating in the beta programme by whether any packages in your package list shows in red with a "β" suffix.
For more information about beta participation, see here: https://hummy.tv/forum/threads/beta-participation.7785/
1. If you have the beta 1.20 version of ir installed, running fix-flash-packages to repair "disabled" packages following a crash will remove the ir package (whether it needed to or not) and not replace it (because the correct version is no longer available).
2. If you remove the opkg-beta package in the näive belief this will allow the non-beta version of ir to be substituted, fix-flash-packages will now be unable to find the correct version of any* beta package (including, potentially, webif), and end up removing those beta packages without replacing them. Two of us have done this and ended up rebuilding our CFs from scratch (not including firmware update, of course). The only packages actually affected by this are ir and webif, and measures set out below can recover the situation without a complete rebuild.
* fix-flash-packages operates on the subset of packages which completely or partially install to flash memory rather than HDD. It is only that subset which is referred to here.
The reasons for this problem are a coincidence of several factors: the first is that an update to the beta ir was unsuccessful and removed, but actually it should have been reverted and updated. Sadly, God (@af123) doesn't seem to be around to fix things.
The second is that it has been mooted for some time that there is no longer any need to disable Flash packages on crash (as a protective measure), and it should be made at least a user option to turn off, but has never been implemented.
A third has not been mentioned before this episode: fix-flash-packages needs to be more intelligent in what it does - at the time it was written (and for entirely understandable reasons) it was a blunt instrument and has remained so.
What You Can Do About It
The following has been updated in the light of further consideration and other contributions below.
Unfortunately, I no longer have a test subject on which to trial remedies. However, on the basis of contributions from @/df and @MymsMan I recommend the following:
1. Do not summarily uninstall package opkg-beta. To do so requires preparation in the form of force-downgrading any installed beta packages affected by fix-flash-packages (ie ir and webif) to their non-beta versions, see 3 below.
2. To circumvent the actual problem without uninstalling opkg-beta, it is only necessary to download and install the latest version of the beta ir package which currently exists in the repo. On the command line (see * below):
Having downloaded 1.19 (the wget command above) it will not be necessary to do so again should you need to reinstall it again - it's there in /mod/tmp (unless you deleted it):
Subsequent checks for available updates might report ir version 1.20 - that is erroneous, and a symptom of the problem.
3. Only if you wish to uninstall opkg-beta, or if you have knackered your WebIF by uninstalling opkg-beta and then running fix-flash-packages:
It is not necessary to uninstall opkg-beta, but if you wish to do so (or have already done so!) instructions for force-downgrading ir and webif are here:
From there, if you wish, reinstall opkg-beta and reinstate any beta packages except ir. The beta package database still thinks the latest beta ir is 1.20, which is not available, so to install the beta 1.19 version of ir proceed as per 2 (above).
Please report success or failure if you have to do any of these.
Relevant discussion in other threads:
* Command line: Obtain a command prompt by using a Telnet client (eg PuTTY) to access the HDR-FOX's IP address, or (if you have the webshell package installed) using a regular web browser via WebIF >> Diagnostics >> Command Line. If prompted for a PIN, the default PIN for the HDR-FOX is "0000" (but is user-customisable in the menus). If presented with a menu, option "cli" results in a plain command prompt. For more information see https://wiki.hummy.tv/wiki/Telnet.
For more information about beta participation, see here: https://hummy.tv/forum/threads/beta-participation.7785/
1. If you have the beta 1.20 version of ir installed, running fix-flash-packages to repair "disabled" packages following a crash will remove the ir package (whether it needed to or not) and not replace it (because the correct version is no longer available).
2. If you remove the opkg-beta package in the näive belief this will allow the non-beta version of ir to be substituted, fix-flash-packages will now be unable to find the correct version of any* beta package (including, potentially, webif), and end up removing those beta packages without replacing them. Two of us have done this and ended up rebuilding our CFs from scratch (not including firmware update, of course). The only packages actually affected by this are ir and webif, and measures set out below can recover the situation without a complete rebuild.
* fix-flash-packages operates on the subset of packages which completely or partially install to flash memory rather than HDD. It is only that subset which is referred to here.
The reasons for this problem are a coincidence of several factors: the first is that an update to the beta ir was unsuccessful and removed, but actually it should have been reverted and updated. Sadly, God (@af123) doesn't seem to be around to fix things.
The second is that it has been mooted for some time that there is no longer any need to disable Flash packages on crash (as a protective measure), and it should be made at least a user option to turn off, but has never been implemented.
A third has not been mentioned before this episode: fix-flash-packages needs to be more intelligent in what it does - at the time it was written (and for entirely understandable reasons) it was a blunt instrument and has remained so.
What You Can Do About It
The following has been updated in the light of further consideration and other contributions below.
Unfortunately, I no longer have a test subject on which to trial remedies. However, on the basis of contributions from @/df and @MymsMan I recommend the following:
1. Do not summarily uninstall package opkg-beta. To do so requires preparation in the form of force-downgrading any installed beta packages affected by fix-flash-packages (ie ir and webif) to their non-beta versions, see 3 below.
2. To circumvent the actual problem without uninstalling opkg-beta, it is only necessary to download and install the latest version of the beta ir package which currently exists in the repo. On the command line (see * below):
Important: In the above command, the two ticks following "wget -U" are literally two separate ' characters, not a speech mark ".Code:cd /mod/tmp wget -U '' http://hpkg.tv/hdrfoxt2/beta/ir_1.19_mipsel.opk opkg install ir_1.19_mipsel.opk
Having downloaded 1.19 (the wget command above) it will not be necessary to do so again should you need to reinstall it again - it's there in /mod/tmp (unless you deleted it):
Code:
cd /mod/tmp
opkg install ir_1.19_mipsel.opk
Subsequent checks for available updates might report ir version 1.20 - that is erroneous, and a symptom of the problem.
3. Only if you wish to uninstall opkg-beta, or if you have knackered your WebIF by uninstalling opkg-beta and then running fix-flash-packages:
It is not necessary to uninstall opkg-beta, but if you wish to do so (or have already done so!) instructions for force-downgrading ir and webif are here:
On the command line (see * below):To do this you need to download the pre-beta version (wget) package file and install the package file (opgk --force-downgrade) - the --force-depends may or may not be needed but wont hurt.
You can download to any writable directory, I suggest /mod/tmp
Important: In the above commands, the two ticks following "wget -U" are literally two separate ' characters, not a speech mark.Code:cd /mod/tmp wget -U '' http://hpkg.tv/hdrfoxt2/base/webif_1.4.8-8_mipsel.opk opkg --force-downgrade --force-depends install webif_1.4.8-8_mipsel.opk wget -U '' http://hpkg.tv/hdrfoxt2/base/ir_1.17_mipsel.opk opkg --force-downgrade --force-depends install ir_1.17_mipsel.opk
From there, if you wish, reinstall opkg-beta and reinstate any beta packages except ir. The beta package database still thinks the latest beta ir is 1.20, which is not available, so to install the beta 1.19 version of ir proceed as per 2 (above).
Please report success or failure if you have to do any of these.
Relevant discussion in other threads:
* Command line: Obtain a command prompt by using a Telnet client (eg PuTTY) to access the HDR-FOX's IP address, or (if you have the webshell package installed) using a regular web browser via WebIF >> Diagnostics >> Command Line. If prompted for a PIN, the default PIN for the HDR-FOX is "0000" (but is user-customisable in the menus). If presented with a menu, option "cli" results in a plain command prompt. For more information see https://wiki.hummy.tv/wiki/Telnet.
Last edited: