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

Enhance Your Hacked Tivo With This Script

Discussion in 'TiVo Underground' started by rbautch, Jul 21, 2005.

  1. turkey

    turkey New Member

    2
    0
    Jan 18, 2007
    when running Zipper on a Samsung SIR-S4040R, which I should add is new to me. A friend gave it to me and I've not added it to Tivo service. Anyway, I have a Stand-Alone TIVO and my Service number starts with 140, which Zipper says is not supported at this time. Is there a random Service Number I can enter? Or what info is the Zipper looking for? I know the answer is probably obvious, but I'm stumped.
     
  2. JWThiers

    JWThiers Smartypants

    2,611
    0
    Apr 12, 2005
    Cocoa, Florida
    Its on the back of the DTivo.
     
  3. JWThiers

    JWThiers Smartypants

    2,611
    0
    Apr 12, 2005
    Cocoa, Florida
    Also if you are planning to do MRV between the Dtivo and SA the SA also needs to have the Superpatch applied in order to see the Dtivo.
     
  4. Jimbob_wat

    Jimbob_wat New Member

    12
    0
    Nov 20, 2006
    I am trying to find the network-delete.tcl and net-launch.sh on a newly zippered drive that is still attache to host PC so i can start networking properly. I am doing this while it is still attached to PC. I do not possess a serial cable at this time and am unable to see drive once installed in TIVO.
    Note there is no enhancement directory either.
    Where do i find above files?
     
  5. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    They are in the /hacks directory contained in an archive called rbautch_files.tgz. They won't run unless your drive is in the tivo.
     
  6. Jimbob_wat

    Jimbob_wat New Member

    12
    0
    Nov 20, 2006
    Thank you, I see several people having the same problems. I have been at office re-downloading all files and scripts. Have burned a new Zipper disk using imgburn and magiciso after verifying all zips are in order. Viewed ISO before burn and all extensions look good.
    Will go home now and try.
     
  7. Jimbob_wat

    Jimbob_wat New Member

    12
    0
    Nov 20, 2006
    I have tried both new Zipper CD's. Verified before disconnecting from PC that IP settings were in the sysinit file. line read
    tivosh /hacks/network.tcl 192.168.1.151 192.168.1.1

    What do I do now? I don't understand why all of a sudden the problem is solved only by using a serial cable.

    thanks for all your help
     
  8. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    There might be some interactions going on with PTVnet. Did you remove the PTVnet installation when the script asked you? Also post the contents of your rc.sysinit.author file.
     
  9. JWThiers

    JWThiers Smartypants

    2,611
    0
    Apr 12, 2005
    Cocoa, Florida
    I'm not sure what caused your other problems but russ seems to be helping, But if you don't have network access to your tivo, you have 2 choices for making changes to fix the problem.

    One is to use a serial cable to access the tivo to troubleshoot (with actual data from a running unit) and make corrections that will fix the unit. This can be done with any computer that (mac, pc linux, bsd, sun, etc) also has a serial port and telnet software. The fixes can be verified simply by rebooting and seeing if the problem went away. if it doesn't simple plug in and serial again. and you can also see live the actual boot log data being generated to look for obvious errros and changes as they happen. You can also the access the log.

    The other is to remove the drive from you tivo and put it in a machine that uses linux to make the look at log files to get troubleshooting information, make changes to correct the problem. Then shut down the linux box to remove the drive from it reinstall it in the tivo, restart to verify the fix. If it doesn't work do the process all over again.

    I don't know about you, but the $10 you pay to buy (and you can also build one yourself and save a few $) is well worth it when you consider the hassle and time you have to go thru if you don't have a serial cable. Every post I give the same advice in my sig, get a serial cable it will pay for itself the first time you lose network access. And everyone will lose it at some time. Maybe not yet, maybe not tomorrow or next week or next month, but sometime.
     
  10. Jimbob_wat

    Jimbob_wat New Member

    12
    0
    Nov 20, 2006
    JW I will definitely order a cable. I get that you should have one for future, just curious as to why for a fresh install you would need one.

    Rbauch i don't recall the script asking for me to remove the PTVnet. It goes through installing the image, then installs new kernel, then asks for IP.

    I will put the drive back in and post the sysint file. I will have to transpose as their is no printer attached to PC that i am using.
     
  11. Jimbob_wat

    Jimbob_wat New Member

    12
    0
    Nov 20, 2006
    #!/bin/bash
    export PATH=./:.:/utils:/bin:/sbin:/tvbin:/tivobin:/busybox
    export TIVO_ROOT=
    export MFS_DEVICE=/dev/hda10
    tnlited 23 /bin/bash -login &
    tivoftpd
    fakecall.tcl
    route add -host 204.176.49.2 gw 127.0.0.1
    route add -net 204.176.49.0 gw 127.0.0.1 netmask 255.255.255.0
    /bin/bash </dev/ttyS2&> /dev/ttyS2&
    echo
    if [ -e /firstboot_flat ]; then
    mount -o remount,rw /
    if rm -rf /firstboot_flag; then
    tivosh /hacks/network.tcl 192.168.1.151 192.168.1.1
    mount -o remount,ro /
    reboot
    fi
    fi



    Is it possible the usb drivers are not loading properly?
     
  12. Jimbob_wat

    Jimbob_wat New Member

    12
    0
    Nov 20, 2006
    oops that is a typo on firstboot_flag, it is flag not flat.
     
  13. lew

    lew Active Member

    3,965
    3
    Mar 12, 2002
    Check your box of old stuff. Some of the old digital camera used the same cable to D/L pictures, try any cable that is serial on one end and mini phono on the other. Do you have an old serial mouse and anything with the mini stereo jack? You can just cut the two cables and splice the wires together. Wrap and tape will work since all you want to do is read the console. You'll need a better cable if you want to transfer large files.



     
  14. Jimbob_wat

    Jimbob_wat New Member

    12
    0
    Nov 20, 2006
    made cable. setup a modem type for connecting to other computer, ran thru hyperterminal, changed baud and getting nothing.
    Do i have to do anything on a newly zippered harddrive before i remove from pc.
     
  15. Bluewookie

    Bluewookie New Member

    161
    0
    Sep 24, 2003
    Verify your Hyperterminal connection settings.

    I don't remember all of the specifics, but baud rate should be 115200.
     
  16. Lord Vader

    Lord Vader Dark Lord ofthe Sith

    1,087
    0
    Aug 29, 2004
    The...
    And sometimes you need to hit "enter" once or twice to generate the bash prompt.
     
  17. doconeill

    doconeill Unix Guru

    239
    0
    Dec 13, 2002
    West of Boston
    I'm not entirely sure what the source of /busybox/wipelogs is that is called from cron, but there is a very simple but fatal error in that script.

    The script does three things:

    1) move /var/log/cronlog-main out of /var/log to save it
    2) Remove all the files in /var/log
    3) move /var/log/cronlog-main back into /var/log

    If you run this manually, you will see that afterwards the only file in /var/log in cronlog-main - and it will remain that way indefintely for all the syslog-controlled log files (log files from other programs may show up in time).

    The fatal part is that if you use "df" to see how much space is in /var before and after running wipelog, you'll discover that you reclaim VERY LITTLE space. This is because syslog still has all those files open for writing, and it CONTINUES to log to those files until either:

    1) The TiVo reboots (schedule, manual, or crash)
    2) syslog receives a "HUP" signal

    This means that /var continues filling up despite clearing the logs.

    This is not a big deal if you are rebooted on a scheduled basis, preferably shortly after wipelogs is called if you care about these log files at all, since the reboot will allow the space to be reclaimed. But if you are not rebooting for whatever reason, this isn't helping you.

    A simple fix is to add a single line at the end of the script:

    kill -HUP `cat /var/run/syslogd.pid`

    This forces syslog to close all open files and reopen them.

    Alternately to zero out all the files, including the non-syslog files, without causing issues to the logging of other programs, for each file should have /dev/null copied to it, ala:

    cp /dev/null tvlog

    much like we were doing recently due to the stream problem. This has the effect of resetting the end of file pointer to 0 without requiring the close/open operation.

    The following script excerpt should work in place of the "rm":

    for file in /var/log/*; do
    cp /dev/null $file
    done
     
  18. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Very interesting. I'll incorporate your suggestions in the next version. Thanks.
     
  19. SKDude

    SKDude New Member

    14
    0
    Feb 3, 2006
    I removed the enhancements dir and then I was able to run the enhancement script, and I now have all the goodies I was looking for. Thanks for the help along the way.
     
  20. JWThiers

    JWThiers Smartypants

    2,611
    0
    Apr 12, 2005
    Cocoa, Florida
    Your Welcome
     

Share This Page