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. temp357

    temp357 New Member

    269
    0
    Feb 18, 2004
    Does this script work with the hr10-250 for upgrading from 3.1.5f to 6.3f? I tried the upgrade2 script on my zippered drive and got the following error. Any help would be greatly appreciated.


    ~~~~~~~~~~~~~~~
    357-TiVo# ./upgrade.sh
    Success - Determining current partition setup and making sure it makes sense - c
    ontinuing...
    Current kernel/root partitions are 3 and 4
    Directory of /SwSystem starting at ''

    Name Type FsId Date Time Size
    ---- ---- ---- ---- ---- ----
    3.1.5f-01-2-357 tyDb 3180 09/29/06 23:56 700
    6.3f-01-2-357 tyDb 154979 02/10/08 11:15 780
    ACTIVE tyDb 3180 09/29/06 23:56 700

    Enter the full name of the software version you wish to install
    6.3f-01-2-357
    find: WARNING: Hard link count is wrong for /: this may be a bug in your filesys
    tem driver. Automatically turning on find's -noleaf option. Earlier results ma
    y have failed to include directories that should have been searched.
    Found kernel - /ptvupgrade/misc/vmlinux.px
    This kernel will not work. you need a 2.4.20 kernel.
    Fatal Error - Determining upgrade path to take - exiting...
    357-TiVo#
     
  2. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    Apparently not. My bad. I've fixed the script and updated the attachment. It should work now.
     
  3. temp357

    temp357 New Member

    269
    0
    Feb 18, 2004
    Thanks,
    New challenges now. Here's what i get with the new updated script.

    ~~~~~~~~~~~~~~~~~~
    357-TiVo# ./upgrade.sh
    Success - Determining current partition setup and making sure it makes sense - c
    ontinuing...
    Current kernel/root partitions are 3 and 4
    Directory of /SwSystem starting at ''

    Name Type FsId Date Time Size
    ---- ---- ---- ---- ---- ----
    3.1.5f-01-2-357 tyDb 3180 09/29/06 23:56 700
    6.3f-01-2-357 tyDb 154979 02/10/08 11:15 780
    ACTIVE tyDb 3180 09/29/06 23:56 700

    Enter the full name of the software version you wish to install
    6.3f-01-2-357
    02/24:06:27:24: /tvbin/installSw-new.itcl: Bad arguments to installSw:
    Fatal Error - Executing modified installSw.itcl - exiting...
    357-TiVo#
     
  4. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    Note to self : don't consume alcohol while coding. Fixed it. I left out the argument for installSw.itcl. Attachment fixed.
     
  5. temp357

    temp357 New Member

    269
    0
    Feb 18, 2004
    Ok,
    So this time i messed it up. I got all the way to copying the USB drivers and setting the IP address. I made a mistake typing the address and rebooted. it's updating to 6.3f right now, will i have to pull the drive and zipper it again?

    Thanks for your help Da Goon!

    Here's where it left off...

    ~~~~~~~~~~~~~~~~~

    357-TiVo# cd /enhancements
    357-TiVo# chmod 755 upgrade.sh
    357-TiVo# ./upgrade.sh
    Success - Determining current partition setup and making sure it makes sense - c
    ontinuing...
    Current kernel/root partitions are 3 and 4
    Directory of /SwSystem starting at ''

    Name Type FsId Date Time Size
    ---- ---- ---- ---- ---- ----
    3.1.5f-01-2-357 tyDb 3180 09/29/06 23:56 700
    6.3f-01-2-357 tyDb 154979 02/10/08 11:15 780
    ACTIVE tyDb 3180 09/29/06 23:56 700

    Enter the full name of the software version you wish to install
    6.3f-01-2-357
    02/24:20:44:48: /tvbin/installSw-new.itcl: id of /SwSystem/ACTIVE is 44090086
    02/24:20:44:48: /tvbin/installSw-new.itcl: id of /SwSystem/6.3f-01-2-357 is 115
    422985
    02/24:20:44:48: /tvbin/installSw-new.itcl: Installing "6.3f-01-2-357".
    02/24:20:44:48: /tvbin/installSw-new.itcl: Removing old package files
    02/24:20:44:49: /tvbin/installSw-new.itcl: Getting packages from database
    02/24:20:45:05: /tvbin/installSw-new.itcl: Executing jpm install of utils-1-1.c
    pio
    02/24:20:45:08: /tvbin/installSw-new.itcl: Executing updateroot /dev/hda /insta
    ll /var/packages
    Path prefix is /var/utils/
    Sha1hash passed for updatekernel
    Sha1hash passed for checkkernel.tcl
    Sha1hash passed for messagelib.tcl
    Sha1hash passed for buildskeleton
    Sha1hash passed for SwInstall.tcl
    Sha1hash passed for builddev

    Searching /etc/fstab for current root

    Old root is on /dev/hda4, new one goes on /dev/hda7

    Creating new filesystem on /dev/hda7

    Mounting new root filesystem on /install

    Installing module core
    Installing module hpk-Series2
    Installing module kernel-Series2
    Building basic filesystem skeleton on /install


    Checking /install/etc/fstab

    newroot is 7, copying fstab from fstab.alternate
    Creating symlinks for /install/etc files
    Dismounting /install and checking its integrity


    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 brev=0x100A dsscon=tru
    e console=2,9600'

    OK, reboot the system to use the new root filesystem

    02/24:20:47:47: /tvbin/installSw-new.itcl: Attempting exit 0...
    Success - Executing modified installSw.itcl - continuing...
    Success - Checking integrity of install - continuing...
    Success - Mounting new root partition - continuing...
    4096+0 records in
    4096+0 records out
    ./upgrade.sh: dirname: command not found
    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
    Do you wanna copy usb drivers? {y/n}
    y
    tar: Removing leading `/' from member names
    tar: Removing leading `/' from member names
    tar: /platform/lib/modules/usbcore.o: Cannot stat: No such file or directory
    tar: /platform/lib/modules/ehci-hcd.o: Cannot stat: No such file or directory
    tar: /platform/lib/modules/usb-ohci.o: Cannot stat: No such file or directory
    tar: Error exit delayed from previous errors
    cp: /platform/etc/hotplug/usb.map: No such file or directory
    Do you need to set network settings in MFS? {y/n}
    y
    Enter your tivo ip
    192.168.1.171^H^[[D^H
    Enter subnet mask
    255.255.255.0
    Enter gateway (router)
    192.168.1.17
    [1]+ Stopped ./upgrade.sh
    357-TiVo# ./upgrade.sh
    Fatal Error - Determining current partition setup and making sure it makes sense
    - exiting...
    357-TiVo# sync
    357-TiVo# reboot
     
  6. dm999

    dm999 New Member

    36
    0
    Oct 26, 2002
    JCP -...
    Da Goon,

    I've gotten the 6.3f slices down onto my Zippered HR10-250. Just want to verify I have all the stops down right before pulling the trigger:

    1. Read through the tweak.sh and list all the directories/files created/updated by the script.

    2. Verify all of above are captured/copied in upgrade.sh

    3. Run upgrade.sh

    4. Run SuperPatch-6.3f found here

    5. Reboot

    Thanks,

    Trace
     
  7. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    Superpatch after rebooting not before.
     
  8. sooner

    sooner New Member

    22
    0
    Jun 18, 2004
    Norman, OK
    I've got a S2 standalone (TCD24004A) and current software version is 4.0.1b-02-2-240. Just to clarify before I get started on my upgrade, is there anything special I need to do before using the upgrade script? Do I need to worry about losing usb connectivity after the upgrade? Do I need to backup my drivers?

    Any kernel concerns? BTW, does the "240" on the end of my current version of software refer to kernel 2.40 ?

    Thanks in advance for any and all help!

    - Chris
     
  9. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    Yep, the kernel you've been using is linux version 2.4.18 and all future sw versions use linux kernel version 2.4.20. You'll need to put a killhdinitrd'd 3.1.5 or 7.2.2-oth-K1 kernel somewhere on your tivo and name it vmlinux.px. If you don't do that, the script will refuse to run.

    Backing them up won't do much good since they're incompatible with your new kernel. You will lose connectivity if your usb adapter is dependant upon backported drivers (see the backport usb package readme if you're unsure). My script won't do anything about this, since there's several files involved and sometimes people put them in weird places. You'll need to install them manually if required. A serial cable is a tivo hacker's best friend. Get/make one if you don't already have one.

    See above. The "240" references your model/tivo service number. 'uname -r' will tell you your linux kernel version.
     
  10. sooner

    sooner New Member

    22
    0
    Jun 18, 2004
    Norman, OK
    Thanks for all your help Da Goon!

    I finally got to a point where I can run your script - but it is exiting due to a

    "Fatal error - Determining current partition setup and making sure it makes sense
    - exiting..."

    After looking through some previous posts - I guess you need to know the following.....the result of cat /etc/fstab is:

    tivo:/var/tmp$ cat /etc/fstab
    # Copyright (c) 2001 TiVo Inc.
    /dev/hda4 / ext2 ro 1 1
    /dev/hda9 /var ext2 rw 1 2
    /dev/hda8 swap swap defaults 0 0

    tivo:/var/tmp$ bootpage -p /dev/hda
    root=/dev/hda7 dsscon=true console=2,115200 BASH_ENV=`mount$IFS-n$IFS/dev/hda16$
    IFS/mnt;echo$IFS/mnt/runmonte`

    tivo:/var/tmp$ bootpage -a /dev/hda
    3
    tivo:/var/tmp$ bootpage -b /dev/hda
    6

    What should I do next?

    Again, thanks in advance for all the help!
     
  11. dm999

    dm999 New Member

    36
    0
    Oct 26, 2002
    JCP -...
    Sucessfully upgraded 2 Zippered HR10-250's!!!! :D:D:D

    Da Goon, mucho kudos!!!!:up::up::up::up:
     
  12. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    Awesome.
     
  13. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    Wow...BASH_ENV??? You've got a REALLY old exploit there. I honestly never used it, and the checks in my script are basically there to avoid trying to do a software upgrade if the box has been hacked that way, since I'm not exactly sure how to deal with it. Lemme think about it ..watch your pm box.
     
  14. sooner

    sooner New Member

    22
    0
    Jun 18, 2004
    Norman, OK
    Da Goon, thanks for your help through PM! I finally was able to use your script to upgrade from 4.01 to 9.1. Your bootpage utility suggestions helped me get through your "partcheck" function. I had to manually set root to /dev/hda4. But later after running /tvbin/installSw-new.itcl, the bootpage info did not update to make /dev/hda7 root. So I had to manually change bootpage to /dev/hda7 and rerun your script without executing the "partcheck" function (or else it would have bombed).

    There was one other modification I had to make to your script. I had to supply an updated 2.4.20 kernel which I obtained from dvrupgrade.com's LBA48 Boot CD version with Enhancements. I grabbed the file in \S2_KERNE\7_2.2_0\VMLINUX_.GZ. Your script looks within that file for a string "version 2.4.20-TiVo". However, the kernel I obtained from that CD only had the string "version 2.4.20". So I just took out the check for the "-TiVo" part of the string and it worked fine.

    Bottom-line - I'm now upgraded all the way to 9.1 and can once again download program guide data. Hacks were retained and BASH access through serial connection was retained since I already BASH setup through rc.sysinit.author (and that of course was kept). And all my recordings were kept as well. Great Success!!

    I did lose USB connectivity which was to be expected - so the serial connection was a must. I wanted to upgrade to TiVo's Wireless G USB network adaptor anyway.

    And that brings me to a final question I'm sure anyone could answer for me - I am assuming that with the TiVo Wireless G USB network adaptor (and now that I'm up to version 9.1 on my Series2 SA), I can connect at USB 2.0 speed now, right? I'm not just limited to a USB 1.1 speed? Just want to make sure.
     
  15. bluerose98

    bluerose98 New Member

    2
    0
    Mar 8, 2008
    I am new to this but how to upload the script to Tivo I have an Tivo Series 2 DT Digital Video Recorder i don't know what name brand. I bought mine from Big lots for $70 thats all i can tell you. You may pm me if you like to explain this to me thanks
     
  16. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    You hack your prom first, then modify your kernel, then you actually hack the software. Then, you use ftp to move it over assuming you've installed tivoftpd. Much much much reading is in order if you wish to accomplish any of these things. My script is most definitely NOT the starting point.
     
  17. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    Cool. Thanks for useful feedback. Your situation has given me a few things to try with the script. Glad you got it working.
     
  18. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    Yes you'll get 2.0 speeds with the tivo brand adapter. However, since you're running 9.1, wireless adapters can sometimes be a ***** to get working. You have 2 options (for ANY wireless dongle).

    1. Use replace_initrd to neuter a 9.1 kernel or build one from scratch (9.1 source code was posted recently - tivo.com/linux), and use monte to "chainload" it. This would be in conjunction with the stock usb drivers.
    2. Use older drivers (7.3.1 maybe?) with your older killhdinitrd'd kernel.

    I've tried both options, had limited success with #2, but #1 has worked every time.
     
  19. sooner

    sooner New Member

    22
    0
    Jun 18, 2004
    Norman, OK
    Da Goon, I couldn't tell if you were implying I may also have trouble with my TiVo USB wireless adaptor or just any other brand but TiVo. But sure enough I am having trouble with the TiVo wireless adaptor. Every time I plug it into the USB port, it connects to my wireless network and then TiVo immediately reboots itself. If I leave it plugged in, I get an endless reboot cycle. Once I unplug it, the TiVo reboots normally.

    This is what is displayed through my serial connection when I plug in the TiVo adaptor:

    Code:
    hub.c: port 1, portstatus 501, change 1, 480 Mb/s
    hub.c: port 1, portstatus 501, change 0, 480 Mb/s
    hub.c: port 1, portstatus 501, change 0, 480 Mb/s
    hub.c: port 1, portstatus 501, change 0, 480 Mb/s
    hub.c: port 1, portstatus 501, change 0, 480 Mb/s
    hub.c: port 1, portstatus 511, change 0, 480 Mb/s
    hub.c: port 1, portstatus 511, change 0, 480 Mb/s
    hub.c: port 1, portstatus 503, change 10, 480 Mb/s
    usb.c: USB device 2 (vend/prod 0xa5c/0xbd11) is not claimed by any active driver.
    hub.c: port 2, portstatus 100, change 0, 12 Mb/s
    hub.c: port 3, portstatus 100, change 0, 12 Mb/s
    hub.c: port 4, portstatus 100, change 0, 12 Mb/s
    hub.c: port 5, portstatus 100, change 0, 12 Mb/s
    Switching to OHCI
    hub.c: port 1, portstatus 101, change 1, 12 Mb/s
    hub.c: port 1, portstatus 101, change 0, 12 Mb/s
    hub.c: port 1, portstatus 101, change 0, 12 Mb/s
    hub.c: port 1, portstatus 101, change 0, 12 Mb/s
    hub.c: port 1, portstatus 101, change 0, 12 Mb/s
    hub.c: port 1, portstatus 103, change 10, 12 Mb/s
    hub.c: port 2, portstatus 100, change 0, 12 Mb/s
    hub.c: port 3, portstatus 100, change 0, 12 Mb/s
    hub.c: port 1, portstatus 501, change 1, 480 Mb/s
    hub.c: port 1, portstatus 501, change 0, 480 Mb/s
    hub.c: port 1, portstatus 501, change 0, 480 Mb/s
    hub.c: port 1, portstatus 501, change 0, 480 Mb/s
    hub.c: port 1, portstatus 501, change 0, 480 Mb/s
    hub.c: port 1, portstatus 511, change 0, 480 Mb/s
    hub.c: port 1, portstatus 511, change 0, 480 Mb/s
    hub.c: port 1, portstatus 503, change 10, 480 Mb/s
    hub.c: port 2, portstatus 100, change 0, 12 Mb/s
    hub.c: port 3, portstatus 100, change 0, 12 Mb/s
    hub.c: port 4, portstatus 100, change 0, 12 Mb/s
    hub.c: port 5, portstatus 100, change 0, 12 Mb/s
    hub.c: port 1, portstatus 100, change 3, 12 Mb/s
    hub.c: port 2, portstatus 100, change 0, 12 Mb/s
    hub.c: port 3, portstatus 100, change 0, 12 Mb/s
    hub.c: port 1, portstatus 100, change 2, 12 Mb/s
    hub.c: port 2, portstatus 100, change 0, 12 Mb/s
    hub.c: port 3, portstatus 100, change 0, 12 Mb/s
    Unable to handle kernel paging request at virtual address 00000018, epc == 8003eebc, ra == 800d1cd0
    Oops in /build/sandbox-b-7-2-2-mr-release-mips-other/b-7-2-2-mr/os/linux-2.4/arch/mips/mm/fault.c::do_page_fault, line 395:
    $0 : 00000000 9001fc00 818ebcc0 818ebcc0 00000000 00000000 00000000 0000002c
    $8 : a9fe4615 80b3e08c 00000000 00110806 00010800 8037cef0 7fd7f640 06040001
    $16: 00000000 8141c760 00000060 80b3e060 802b4080 8037cec8 00000806 00000000
    $24: 00000000 00000000                   8037c000 8037cda8 02a3b16c 800d1cd0
    Hi : 00000000
    Lo : 00000000
    epc  : 8003eebc    Tainted: P
    Status: 9001fc03
    Cause : 00000008
    Process SystemServices (pid: 169, stackpage=8037c000)
    Stack:    00000000 8013d48c 800d1a2c 804780f8 800d1cd0 8141c760 00000060
     80b3e060 802b4080 8037cec8 818ebc60 8141c760 800d244c 800d2438 8037cea8
     8013d48c 8037cea8 00008b21 80ca4200 8141c760 818ebc62 0000002a 800d69f4
     800d0f8c 818ca63c 10143860 8141c760 80ca4200 8141c760 80ca4200 801235e8
     801235b0 0102069b 00000005 804b2500 818ca620 00000000 0000002a 02c5bfc8
     80031fe0 ...
    
    Trace: 8003eebc 800d1cd0 800d244c 800d69f4 801235e8 800ce094 800ce2f0 80045020
           800c2b88
    Code: 27bd0018  27bdffe8  afbf0010 <8c820018> 00021382  30420001  1440000a  8fbf0010  c0830014
    Kernel panic: Die called
    
     Core of 0 bytes written
    Panic logged
    Rebooting in 1 seconds..
    Does this give anybody enough of a clue as to what is going on? Kernel problems I take it? I also have my log files from /var/log if those are needed to ascertain the problem.
     
  20. Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    That's what I was expecting to happen. From the usb backport readme :
    This applies to 9.1 also. You should be running an older kernel (3.1.5 or 7.2.2-oth-K1), since they are compatible with killhdinitrd. When your box loads the native 9.1 drivers, it will crash every time. As I said before, you have 2 options to work around this if you are using any wireless dongle. Either find older drivers from some 7.x source (usbcore.o,usb-ohci.o, and usb-cdc.o I believe), or use monte to load a 9.x kernel of some kind without changing drivers.
     

Share This Page