Results 1 to 11 of 11

Thread: tvapppatch.tcl

  1. #1
    Join Date
    May 2004
    Posts
    247

    tvapppatch.tcl

    Here is tvapppatch.tcl v1.8, an alternative to the superpatch family of patchers.

    It was written to read a separate patch file (tvapppatches.tcl), which makes it easier to update by hand (no diffs needed). Only the patch file needs to be edited to add new patches. The patch file uses the same array format as superpatch, to make things easy.

    It can also be called from a script, by using the '-confirm no' option. You can point it to different tivoapp files and patchfiles, and specify a patch version to use (to patch a tivoapp with a different version than the running one). Note: it will only leave a backup of your tivoapp file around if you are patching the running tivoapp.

    usage: tvapppatch.tcl [-help]|[-p <patchfile>][-t <tivoappfile>][-v <sw version>][-confirm yes|no][-remount yes|no][verbose yes|no]

    By default, it will patch the running tivoapp, and look for the patch file to be in the same directory as tvapppatch.tcl.

    The format of the tvapppatches.tcl file is pretty simple. You can have a different patch selector and array for each version of TiVo software. A patch selector and array looks like this:
    Code:
    if { [regexp {^9\.3\.2a-} $sw] } {set patcha "patch_9.3.2a"}
    array set patch_9.3.2a {
    0x0aa2d54 "14400026 10400026"
    0x07329c0 "00008021 24100001"
    0x05a86a0 "104000aa 100000aa"
    }
    Optionally, each patch array can have an associated array giving patch descriptions. Descriptions are only shown with the -verbose yes option:
    Code:
    if { [regexp {^9\.3\.2a-} $sw] } {set patchd "desc_9.3.2a"}
    array set desc_9.3.2a {
    0x0aa2d54 "30 second skip"
    0x07329c0 "backdoors"
    0x05a86a0 "encryption"
    }
    For release 1.8, Red_Dog added the ability to put descriptions in the patch line, thusly:
    Code:
    if { [regexp {^6\.3e-} $sw] } {set patcha "patch_6.3e"}
    array set patch_6.3e {
    0x0063d2ec "3c060001 38c60003	Replace Full with Zoom in 4:3 TV type"
    0x00a6a030 "50530001 50930001	Single Press Aspect Ratio Change (1of2)"
    0x00a69fdc "10600008 10000013	Single Press Aspect Ratio Change (2of2)"
    0x00a6a134 "24072710 240709c4	Aspect ratio display time (2.5 sec)"
    }
    tvapppatch.tcl Version History:
    1.1 Initial release
    1.2 Added more flexible options, ability to specify version for patching, looks for tivoapppatches.tcl in the same directory in which tvapppatch.tcl resides
    1.3 Added option to not remount /, a missing fconfigure (thanks for both, Jamie), improved logic for determining whether we're patching the running tivoapp.
    1.4 Improved error reporting, general cleanup, fixed missing ".
    1.5 Added verbose and help options, allow renaming of script, support for patch descriptions, more cleanup and error checking.
    1.6 Added some help text, fixed a scope issue. (thx to dah31)
    1.7 Made location check case insensitive (case must still match in patch and description arrays in tvapppatches.tcl)
    1.8 Added one line patch entries (thx to Red_Dog)

    tvapppatches.tcl Version History:
    1.0 Supports TiVo Series 2 software 9.3.2 and 9.3.2a
    1.1 Added support for patch descriptions
    1.1a Added 6.2, 6.2a, and 11.0 patches (untested, from StanSimmons)
    1.1b Changed all hex to lower case.
    1.2 Example one line patch/comment

    This is released into the public domain.

    The support thread is here.
    Attached Files Attached Files
    Last edited by mike_s; 03-10-2010 at 12:49 PM. Reason: patch to 1.8, patches to 1.2

  2. #2
    Join Date
    May 2004
    Posts
    247

    placeholder

    placeholder

  3. #3
    Join Date
    Nov 2003
    Posts
    36

    Thumbs up

    Thanks for this.

    This patch clarifies the invalid parameter error messages (and fixes the verbose one), fixes a scoping error (I think) when run without the -verbose yes option, and fixes a punctuation error.

    --
    Dave Norman
    dah31
    Attached Files Attached Files

  4. #4
    Join Date
    May 2004
    Posts
    247
    Quote Originally Posted by dah31 View Post
    This patch...
    The support thread is here.

    It appears you ran diff backwards:
    Code:
    --- tvapppatch.tcl	2009-01-07 22:49:16.578125000 -0500
    +++ tvapppatch.tcl.orig	2009-01-07 16:46:08.781250000 -0500

  5. #5
    Join Date
    Nov 2003
    Posts
    36

    Red face

    Quote Originally Posted by mike_s View Post
    The support thread is here.
    Ah, I missed that.

    It appears you ran diff backwards:
    Code:
    --- tvapppatch.tcl	2009-01-07 22:49:16.578125000 -0500
    +++ tvapppatch.tcl.orig	2009-01-07 16:46:08.781250000 -0500
    And that. Thanks!

  6. #6
    Join Date
    Jan 2002
    Posts
    236

    Patches for 6.2x and 11.0

    Attached are the patch files for 6.2x and 11.0

    These are untested, but pulled from superpatch and related threads.

    ETA: I've tested the v11 patches and they work fine.
    ETA: I've added the XM Audio Record patches for v6.2x (from the Sonoshift.tcl thread)
    Attached Files Attached Files
    Last edited by StanSimmons; 01-14-2009 at 03:19 PM.

  7. #7
    Join Date
    Jan 2004
    Location
    Chebeague Island, Maine
    Posts
    812
    Would it be possible for someone to add the patch descriptions to the file, particularly for 6.2 and 6.2a? That would be most helpful!
    David R. Hill............... TivoWeb Hack Manager
    Chebeague Island........From the land of champions:
    Casco Bay..................The Boston Red Sox
    Maine........................The New England Patriots
    58.5 gig HDR-112 since October, 2000
    240 gig, 306 hours since January, 2004 (same machine)
    120 gig DSR6000 DirecTiVo

    "There are 10 kinds of people -- those who count in binary and those who don't."

  8. #8
    Join Date
    Jul 2002
    Location
    Texas
    Posts
    102

    Patch Descriptions using single array

    I wanted to put the patch descriptions in the same array (and line) as the patch itself.
    The v1.7 code already supports this except for verbose=yes mode.
    The extra characters after the new value were ignored by the v1.7 code.

    I made changes to the “ The following patches will be applied:" section of code to properly print ‘same line’ descriptions while being still compatible with the other ‘patchd’ method.

    I attached the new code and a sample patch.
    Attached Files Attached Files

  9. #9
    Join Date
    Jan 2004
    Location
    Chebeague Island, Maine
    Posts
    812
    Thanks Red_Dog! It must be true that good things come to those who wait!
    David R. Hill............... TivoWeb Hack Manager
    Chebeague Island........From the land of champions:
    Casco Bay..................The Boston Red Sox
    Maine........................The New England Patriots
    58.5 gig HDR-112 since October, 2000
    240 gig, 306 hours since January, 2004 (same machine)
    120 gig DSR6000 DirecTiVo

    "There are 10 kinds of people -- those who count in binary and those who don't."

  10. #10
    Join Date
    Dec 2010
    Posts
    1

    thanx Mike

    Mike, really thanks for sharing all this. will be helpful for all relevant persons onwards......................

  11. #11
    Join Date
    May 2007
    Posts
    449
    ..........
    Attached Images Attached Images
    Last edited by Soapm; 08-31-2013 at 07:42 PM. Reason: Wrong thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •