Series 1 LocationID
From TivoZA
If you have a series 1 TiVo and TiVo Inc only provides guide data for your state in the now shorter Location ID format of 4 characters instead of 5 characters as used by the series 1 or you need to use an alpha numeric postal code, this is the fix you will need. The below modifications will work on an off the shelf series 1 with no other modifications required but it will also work on a box full of hacks ;-)
There are two ways you can perform this fix. If you already have your TiVo setup and running and have network access to it then just perform the below steps from a telnet prompt. If you don't have network access to your TiVo or would like to make the below changes part of your permanent TiVo backup image feel free to perform the below steps while the TiVo hard drive is plugged into your PC.
| Table of contents |
Step 1: Gain access to your TiVo
If you are performing this process from telnet then open up a telnet session to your TiVo (I recommend using Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/)). If making the changes from the hard drive then mount your TiVo drive. For more information on how to do either of these see the Steve Jenkins - TiVo Network Hack How-To Guide (http://tivo.stevejenkins.com/network_cd.html)
If you have the drive mounted in your PC you can move onto the Step 2.
For those using a telnet session you will now need to put your TiVo into read/write mode, from the telnet prompt type the following:
mount -o remount,rw /
If using telnet, keep the session open as you will still be using it for the next couple of steps
Step 2: Installing emuProxyZA & DialConfig
Move to the location where you will store emuProxyZA & DialConfig. If using telnet this would be done as follows:
cd /etc
else if using a mounted hard drive you would move to the relative path as follows (assuming "/mnt/hda4" is the path you mounted your TiVo drive):
cd /mnt/hda4/etc
Now type:
wget tivoza.nanfo.com/downloads/emuProxyZA.gz gzip -d emuProxyZA.gz chmod 777 emuProxyZA wget tivoza.nanfo.com/downloads/DialConfig127.tcl chmod 777 DialConfig127.tcl
Note: If you don't have wget on your TiVo you can download it here (http://tivoza.nanfo.com/downloads/wget.gz).
You could also just download the files you need from the Downloads section of this site and either FTP them across to your TiVo if you are performing the telnet option or if you have the TiVo hard disk in your PC copy the files to a cd, floppy or a drive that can be mounted and then copy them onto your TiVo hard drive from there. Don't forget to perform the gzip and chmod steps, they are still necessary.
Step 3: Running emuProxyZA & DialConfig
This step and step 4 requires editing of files on your TiVo, if you not sure how to do this it is also explained in Steve Jenkins guide under section "2.12 Creating rc.sysinit.author on partitions 4 and 7" (http://tivo.stevejenkins.com/network_cd.html#_Toc101001766).
If you don't have an editor on your TiVo or are uncomfortable editing the files in this method you can either go the long route and mount the drive in your PC and edit the files from there, alternatively you could just FTP the files across to your PC and make the changes then FTP the files back to the TiVo (I suggest making backups before editing). Make sure to use a editor (such as TextPad (http://www.textpad.com/)) that supports UNIX files, Windows Notepad and WordPad will change the end of line characters and your file will be useless. Make a backup of the files you are editing before you edit them.
You now need to add emuProxyZA & DialConfig to your startup script so that they will automatically run when you boot up your TiVo.
Open the file "/etc/rc.d/rc.sysinit.author" in an editor (if using a mounted drive this must be relative to your base path i.e. "/mnt/hda4/etc/tclient.conf"). Editing this from telnet could be done as follows:
joe /etc/rc.d/rc.sysinit.author
You need to add the following two lines to the bottom of the opened file (NB: Replace M8Z2J8 below with the postal code that you wish to use):
/etc/DialConfig127.tcl & /etc/emuProxyZA -s 204.176.49.2 -r2 -t -z M8Z2J8 &
Note: if you don't have the file "/etc/rc.d/rc.sysinit.author", then just edit the file "/etc/rc.d/rc.sysinit" and add the above lines at the end of that file, just before the line:
echo "rc.sysinit is complete"
Step 4: Make TiVo perform its request through emuProxyZA
Open the file "/etc/tclient.conf" in an editor (if using a mounted drive this must be relative to your base path i.e. "/mnt/hda4/etc/tclient.conf"). Editing this from telnet could be done as follows:
joe /etc/tclient.conf
Look for a line beginning with 127, such as the below (it doesn't matter what the rest of the line looks like just so long as it begins with 127):
127::204.176.49.2:80:::
If you find the line, comment it out (i.e. add a # in front of it) so it now looks as follows:
#127::204.176.49.2:80:::
If you didn't find the line that is not a problem, just continue on.
Now add a new line to the end of the file, the line should appear as follows:
127::127.0.0.1:8000::::
Note: if you later want to stop your calls going through emuProxyZA, just replace the 127.0.0.1:8000 with 204.176.49.2:80 in the added line above.
Step 5: Relinquish access back to your TiVo
If you performed the above steps while having your TiVo drive plugged into your computer, you can return to reinstalling the drive into your TiVo or making whatever other changes needed making.
If you performed the changes via telnet access you are now done editing the required files so can put your TiVo back in read only mode and exit the telnet prompt. This can be done as follows:
mount -o remount,ro / exit
Step 6: Perform guided setup
You now need to perform a C&DE ("Clear and Delete Everything") to remove any old settings and guide data:
Go to Messages & Setup -> System Reset -> Clear and Delete everything -> press 3 thumbs down then Enter.
If you choose not to perform the C&DE (not recommended) you will need to reboot the TiVo, as editing the above files will only take effect after a reboot:
Go to Messages & Setup -> System Reset -> Restart the Recorder -> press 3 thumbs down then Enter.
Once the TiVo has finished the Clear & Delete (or Restart) you will be able to perform the Guided Setup.
If you chose not to C&DE you will have to manually select repeat guided setup from the Menu as follows:
Go to Messages & Setup -> System Reset -> Repeat Guided Setup -> press 3 thumbs down then Enter.
Troubleshooting
- If the below troubleshooting tips do not lead you to a working solution, take a look at the emuProxyZA in Canada (http://tivoza.nanfo.com/forum/viewtopic.php?t=15) forum topic where you can ask questions as well as post your trace files (explained below).
- If your TiVo freezes after rebooting, check the changes you made to the file "/etc/rc.d/rc.sysinit.author" in Step 3. If you didn't end the added lines an & (ampersand) this will not allow the processes to act as a background thread and will cause your TiVo to hang at this step.
- If you get the error message "Failed. No dial-in number chosen" one option that has been proven to work is to use a DialConfig setting of 101 instead of 127. To do this you would follow the above instruction but with the following differences (i.e. wherever 127 was replace it with 101):
- Step 2: Download (i.e. wget) DialConfig101.tcl
- Step 3: Add the line '/etc/DialConfig101.tcl &'
- Step 4: Comment out the existing line beginning with 101 and replace it with the following:
101::127.0.0.1:8000::::
- If after performing the above steps you still can't get headend data for your state, you may not be connecting through emuProxyZA. To check that you are connecting through emuProxyZA, from the TiVo telnet prompt type the following (Remember to change M8Z2J8 to your zip code):
ps ax (look for the emuProxyZA pid in the list returned) kill pid (replace pid with the emuProxyZA pid from above e.g. kill 154) /etc/emuProxyZA -s 204.176.49.2 -ds -dc -t -r2 -d2 -z M8Z2J8
The above step will allow you to view the debug output in your telnet session when making a call to emuProxyZA. Perform another call to the TiVo mothership and see what emuProxyZA shows on the telnet prompt. If nothing is showing then its not making its request through emuProxyZA, take another look at step 3 and step 4 above.
- Running emuProxyZA with the -ds -dc parameters as above will create trace files of your requests sent and the responses received, these can be very useful in debugging. If you are still having problems have a look in your TiVo's '/tmp' directory, there should now be a couple of trace files there (e.g. ep1Request.log, ep1Response.log, etc). The "Troubleshooting connectivity problems" page provides more details on how to debug your TiVo connection when using emuProxyZA.
Thanks/Credit: Hack5190: majority of the testing d0ugmac1 & n4zmz: concept of this fix


