USSoftwareAdjustments

From NLTiVo

Jump to: navigation, search

This howto is based on adjusting the Australian ozTiVo-image v1.4 beta (20050524) which should be available for download here.

First download the image and write it to your TiVo-harddrive, using this howto. Make sure you configure networking properly, so you can connect to the TiVo once the drive has been mounted (or you can make the adjustments when running the installer-cd, mounting the partition (/dev/hdx6) from the shell). Also make sure the correct ip-address for the emulator is entered (you can obtain it through the mailinglist).

Boot your TiVo and follow the guided setup. Use the correct ZIP-code and area-code for your provider (also obtainable through the mailinglist). Let the TiVo finish it's first indexing (takes a couple of hours).

Now we need to adjust the time-settings and our palmod-configuration file:

Download a special version of rdate (binary or source) and place it via ftp in /hack/bin/.

Now create a file named 'fixtivotime' in /var/hack/bin/ with the following content:

#!/bin/sh
# Stop time warp messages
touch /var/timestamp
# Set the time to time server with appropriate timezone offset
#/tvbin/settime `rtimetz -v 207.126.98.204 207.126.98.204 129.6.15.28 131.107.1.10`

# Now set hardware clock
#/tvbin/settime -rtc

# Let's do it all at once:
TZ=Europe/Amsterdam /var/hack/bin/rdate -vs 207.126.98.204 129.6.15.28

# A list of public time servers in case the ones above stops working:
#time-a.nist.gov         129.6.15.28     NIST, Gaithersburg, Maryland
#time-b.nist.gov         129.6.15.29     NIST, Gaithersburg, Maryland
#time-a.timefreq.bldrdoc.gov     132.163.4.101   NIST, Boulder, Colorado
#time-b.timefreq.bldrdoc.gov     132.163.4.102   NIST, Boulder, Colorado
#time-c.timefreq.bldrdoc.gov     132.163.4.103   NIST, Boulder, Colorado
#utcnist.colorado.edu    128.138.140.44  University of Colorado, Boulder
#time.nist.gov   192.43.244.18   NCAR, Boulder, Colorado
#time-nw.nist.gov        131.107.1.10    Microsoft, Redmond, Washington
#nist1.datum.com         66.243.43.21    Datum, San Jose, California
#nist1-dc.glassey.com    216.200.93.8    Abovenet, Virginia
#nist1-ny.glassey.com    208.184.49.9    Abovenet, New York City
#nist1-sj.glassey.com    207.126.98.204  Abovenet, San Jose, California
#nist1.aol-ca.truetime.com       207.200.81.113  TrueTime, AOL facility, Sunnyvale, California
#nist1.aol-va.truetime.com       205.188.185.33  TrueTime, AOL facility, Virginia
exit 0


Make sure 'fixtivotime' is executable (chmod +x).

Adjust the TiVo-crontab (/hack/etc/crontab) and make sure fixtivotime is run at 02:10 and 03:10 (at night), to handle Daylight Saving Time changes (the first is for summertime, the second for wintertime).

10 02 * * * fixtivotime
10 03 * * * fixtivotime

Replace 'ntpdate' by deleting it and creating a symlink to /var/hack/bin/fixtivotime. Replacement is needed, because this image contains a specially crafted version of 'ntpdate' to handle Australian time-zones. We are not going to use that:

[TiVo [p0] /]# rw
File system is now READ/WRITE.
[TiVo [p0] /]# cd /bin
[TiVo [p0] /bin]# mv ntpdate ntpdate.backup
[TiVo [p0] /bin]# ln -s /hack/bin/fixtivotime ntpdate
[TiVo [p0] /bin]# ro
File system is now READ ONLY.

Now make sure Palmod knows where to find your stations. Do the 'rw' trick from the command-line. Upload a working 'palmod.conf'-file to /etc/ on your TiVo (again obtainable through the mailinglist). Type 'ro' on the command-line. Reboot.

Hint: To increase the stability of your TiVo, I would recommend commenting all the services you are not going to use from rc.sysinit.author (in /etc/rc.d/). The less services you run, the more stable your TiVo will be.

Optional: comment the line: report-ip from rc.sysinit.author, to prevent receiving a message at every boot regarding the obtained ip-address.

Personal tools