1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Upgrade Script for S2 Tivos

Discussion in 'TiVo Underground' started by Da Goon, Oct 20, 2007.

  1. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    Updated version attached (upgrade-2.x.zip, old version is upgrade.zip). It has been tested for upgrading from 6.2 to 6.2a or 6.3x, from 6.3x to 6.3x and 8.1a to 8.3, and should work for other SA sw updates (works for 8.3 to 9.1 update). The script has been updated, and will now work for upgrading from 3.1.5x to 6.3x. I don't have any S2.5 tivos, so I'm sure there may be a few things it's missing in regards to those units. It's just a simple shell script, nothing fancy, feel free to edit it all you want (but you better not sell it under ANY circumstances. period. Is that clear enough blhirsch?) :rolleyes:

    This script will edit installSw.itcl and run it for you. Then it will copy over the hacked kernel you've been using, and copy over startup scripts that it finds (.profile, test.conf, rc.sysinit.author, rc.runfirst, and rc.runlast). It also copies over /etc/group and /etc/passwd for cron. It will copy over backported drivers and your usb.map if you want also.

    The script no longer requires a configuration file. A few lines at the top of the script can be edited to include full hack directories or just specific files. It currently looks like this :
    Code:
    export hackdirs="/busybox /tivo-bin /hack /hacks /enhancements /TivoWebPlus /init /ptvupgrade /chainload"
    export hacks="/.profile /etc/rc.d/rc.sysinit.author /test.conf /etc/passwd /etc/group /etc/rc.d/rc.runfirst /etc/rc.d/rc.runlast"
    /tvbin/crypto -u -srp factory
    Just add anything else you'd need, and it will be copied if found. The crypto line sets the prom password to "factory", comment it out or edit it if you want.

    Ftp over the script somewhere on your tivo, remove dos line endings just in case with dos2unix upgrade.sh, and then set permissions with chmod 755 upgrade.sh. Run the script with ./upgrade.sh and answer any questions it asks as it goes along. When it finishes, double check things if you want, and then reboot when you're ready to install the new software.

    The script will set network settings in MFS if you want. If so, you will need to reboot one more time manually after the update for the changes to MFS to take effect. It will set a static ip of your choosing, as well as netmask, gateway, and dns addresses. You won't be prompted for this information if you're using a SA tivo.

    As always, YMMV and use at your own risk. As a wise man once said, "If it breaks your tivo, you own both halves" :D
     
  2. Nov 8, 2007 #2 of 67
    Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    WARNING : The only change that would need to be made by hand, is if the user is upgrading from 3.1.1x or 4.x software (not on the HR10). These software versions use different kernel builds. 3.1.1x uses a 2.4.4 kernel, and 4.x uses a 2.4.18 kernel, while 6.x and higher uses a 2.4.20 kernel. These differences make their respective kernel modules including usb drivers incompatible. If you are upgrading from 3.1.1x or 4.x to 6.x, you will need to manually install a 2.4.20 kernel (either 3.1.5 or 7.2.2-oth-K1 will work) before rebooting. Also make sure if this applies to you, to not copy over the same backported usb drivers that you have been using. You will need to manually install 2.4.20 drivers. Once again, this warning does NOT apply to HR10 users. For HR10 users or 6.x to 6.x users, regardless of software versions, the script should work as-is.

    -edit- with the 2.x version, if you are doing an upgrade that requires a new kernel, you can put a compatible kernel named vmlinux.px anywhere on your tivo, and the script will install it if needed.
     
  3. Nov 8, 2007 #3 of 67
    Soapm

    Soapm Active Member

    1,564
    0
    May 9, 2007
    So close,...
    Good, I'll try it when we get the replacement for 9.1
     
  4. Nov 9, 2007 #4 of 67
    MurrayW

    MurrayW Murray

    207
    0
    Aug 28, 2005
    Austin, TX
    Da Goon, Thanks for making this available for others. I purchased the slicer back in January and have downloads available to update it to the newest version. Since I already have paid for the slicer, are there any advantages of using your script vs. the slicer on my zippered HR10-250's running either 6.3c or 6.3d to update them to 6.3e?
    thanks,
    Murray
     
  5. Nov 9, 2007 #5 of 67
    Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    I have no idea of any advantages/disadvantages since I've never used the slicer or looked at it's code. One thing that would set it apart I would think is the use of a config file to specify certain things to be copied. I don't believe the slicer does anything like that.
     
  6. MurrayW

    MurrayW Murray

    207
    0
    Aug 28, 2005
    Austin, TX
    Da Goon,
    I think I will give this a try. I have a few questions about the configuration file:

    1. How do I create it? In windows, ftp it over then use the dos2unix command?
    2. What do I name it?
    3. Where do I put it?

    thanks,
    Murray
     
  7. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    1. However you want. On your pc, on the tivo, just as long as you strip dos line endings with dos2unix if needed.
    2. upgrade.conf (edited the OP, probably should have had that there huh? :p )
    3. anywhere on your tivo
     
  8. MurrayW

    MurrayW Murray

    207
    0
    Aug 28, 2005
    Austin, TX
    I used your script on my 2nd HR10 and everything seems to be working fine, but I did receive quite a few warnings about no space or directory.
    Code:
    Initializing First Activation Date
    
    
    Modifying bootparams to point to /dev/hda7
    
    Creating upgrade messages
    upgrade_721_mb.msg does not apply to 357
    upgrade_721_ptcm.msg does not apply to 357
    Flipping root, setting boot parameters to 'root=/dev/hda7 dsscon=true console=2,
    115200 upgradesoftware=false'
    
    OK, reboot the system to use the new root filesystem
    
    11/11:02:07:42: /tvbin/omicron-percei-8.itcl:  Attempting exit 0...
    Install script complete, continuing...
    
    Post upgrade insanity check
    
    Your new root and kernel partitions correctly
    moved to /dev/hda7 and /dev/hda6 Congratulations!
    
    Mounting new root /dev/hda7 on /install
    New root mounted, continuing.
    Copying hacked kernel...
    dd: /dev/hda6: No space left on device
    3+0 records in
    2+0 records out
    Trying again...
    dd: /dev/hda6: No space left on device
    3+0 records in
    2+0 records out
    
    Copying startup scripts, etc...
    find: /proc/1203: No such file or directory
    
    copying tools and other hacks
    cp: /install/busybox/[: No such file or directory
    cp: /install/busybox/[[: No such file or directory
    cp: /install/busybox/ash: No such file or directory
    cp: /install/busybox/awk: No such file or directory
    cp: /install/busybox/bunzip2: No such file or directory
    cp: /install/enhancements/varhacks/hack/bin/tivocid: No such file or directory
    
    Disabling firewall
    
    Do you need to copy over backport usb drivers? [y/n]
    y
    
    Alright, all done. Reboot for changes to take effect
    Enjoy the upgrade
    Is this anything I should worry about?
    Sorry to pester you so much! :(
    Murray
     
  9. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    Those error messages are 100% normal. [, ash, etc are all links to the busybox binary. They're copied first (alphabetical order) so technically the busybox binary wasn't there (yet) for them to be linked to. The error about not enough space is occurring during the kernel copy. It's normal also most likely due to bugs with older versions of mfstools. Nothing to worry about. :)
     
  10. MurrayW

    MurrayW Murray

    207
    0
    Aug 28, 2005
    Austin, TX
    My second HR10-250 went through the upgrade with your script successfully without any of those error messages -- either that or I didn't notice them at 4 AM. So I used the Da Goon script for 2 HR10's and the slicer for my other HR10. To answer a question I asked earlier, I would recommend the Da Goon script since your hacks are kept intact.

    thanks,
    Murray
     
  11. blueshoo

    blueshoo el guapo

    149
    0
    Jun 11, 2001
    Old Dominion
    Just wanted to say thanks, Goon. Was able to update a couple HR10-250's to 6.3e using your script and other information.
     
  12. Soapm

    Soapm Active Member

    1,564
    0
    May 9, 2007
    So close,...
    Went to 9.1a today. All's I can say is THANKS!!!

    Took about 20 minutes top.
     
  13. blueshoo

    blueshoo el guapo

    149
    0
    Jun 11, 2001
    Old Dominion
    Goon, not sure if it was the upgrade script, but on the two HR10-250's that were upgraded to 6.3e using the script, the TivoWebPlus auto-upgrade wasn't working. The /TivoWebPlus/.dist directory wasn't there (units had originally been Zippered/rbautch'd). Once I replaced the directory with the contents of the TWP upgrade tgz, the auto-upgrade feature worked fine again.

    Perhaps something to check out to make sure the script is catching 'hidden' directories.


    [edit: the error had been: sh: /TivoWebPlus/.dist/extract.sh: No such file or directory Error Updating Package ]
     
  14. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    hmm..never thought about that. I'll look into it.
     
  15. Soapm

    Soapm Active Member

    1,564
    0
    May 9, 2007
    So close,...
    Thanks for this post, I had this same trouble.
     
  16. frozn000

    frozn000 New Member

    5
    0
    Nov 4, 2007
    I have a HR10-250 fully modified. Please help me. I am having the hardest time getting these slices to work. Let me tell you what I have done. I downloaded the slices from the DVRUpgrade link that Da Goon posted on another post. I've put the 6.3e slices into /var/packages:

    GZcore-89631583-2.slice
    GZhpk-Series2-89631596-2.slice
    GZkernel-Series2-89631594-2.slice
    swsystem-89631609-2.slice
    utils-89631581-2.slice

    I have ran these commands while in the /var/packages directory:

    ./dbload ./GZcore*.slice
    ./dbload ./GZhpk*.slice
    ./dbload ./GZkernel*.slice
    ./dbload ./swsystem*.slice
    ./dbload ./utils*.slice

    When I run echo mls /SwSystem | tivosh

    all I see is:

    Directory of /SwSystem starting at ''

    Name Type FsId Date Time Size
    ---- ---- ---- ---- ---- ----
    6.3c-01-2-357 tyDb 146989 02/12/07 05:05 796
    ACTIVE tyDb 146989 02/12/07 05:05 796

    Please tell me why I can't get these slices to show up? What am I missing? How do I load the 6.3e-01-2-357 when I finally get it? I have been at this for months!
     
  17. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    Wow, 3 posts and a PM. Those are 6.3C slices. 6.3e slices are named:

    GZcore-105664607-2.slice
    GZhpk-Series2-105664885-2.slice
    GZkernel-Series2-105664862-2.slice
    swsystem-105665701-2.slice
    utils-105664588-2.slice
     
  18. allonon

    allonon Who ME?

    142
    0
    Nov 23, 2001
    campbell,...
    I'm trying to use the script to upgrade an HR10-250 and it won't read the keyboard input into the variable. At the first question about saving the network info, I hit "y"<enter>. It continues on like I did not enter a key. When I ctrl-c, I see the "y" being written to the screen.

    Could someone provide a hint or fix? thanks
     
  19. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    Sounds like a problem with your terminal program. If you're using windoze command prompt then type unset crlf before you telnet to your box.
     
  20. rmax

    rmax New Member

    54
    0
    Mar 10, 2005
    Humble, TX
    DaGoon,
    I am running your script tonight and trying to upgrade to 6.3f.
    I finally got the script to run and got the following error:
    Code:
    Enter the target sw version you wish to install
    6.3f-01-2-357
    You want to upgrade to 6.3f-01-2-357? {y/n}
    y
    Fixing installSw.itcl for ya
    Now running install script
    Install script complete, continuing...
    
    Post upgrade insanity check
    
    Your bootpage settings are screwed up somehow
    You'll need to fix it before rebooting or
    your tivo may be unhacked. Copying hacks anyways!
    Or at least we'll try to...
    Do you want to continue? {y/n}
    y
    Alright, let's go....
    
    Mounting new root /dev/hda4 on /install
    mount: mount point /install does not exist
    Failed to mount new root filesystem
    Buh-bye!

    Could you give me an idea where to start fixing the problem? Thanks,
    Randy
     

Share This Page