PDA

View Full Version : Running Fixup on new DirecTivo


okleydokley
10-08-2001, 02:02 AM
Please help...
I just got my new direct Tivo (Phillips) from CC for $99 with a $100 rebate... (pretty good deal if I can get it to work)...
Well I have been spending the last few days learning Linux (JOY!!!)...
So far I have backed up the original drive (took about 15 minutes...), Added a hard drive (took about 5 minutes), and attempted to run fixup02c (has taken about 15 hours of dedicated time and I am not done yet)...
I am not running a command prompt; I make all changes by removing the HD and placing it into my computer and using the Tivo boot CD to load.

I am able to mount partition 7 and modify rc.sysinit to auto-run fixup02c (which I have already run a chmod 777 and a chattr +i on..) I have also modified TClient-lib.itcl so that fixup will auto-run every time it attempts to dial.
Neither of these changes seemed to do anything...

I am not able to mount partition 4. I get the error:::
you must specify the filesystem type

ANY help or possible direction would be great, I am getting closer and closer to the 30 day nag, and will soon have a very large useless hard drive in my new Tivo...

P.S.
Sorry that this is my first post, I try to read more then ask, and I usually ask questions at the underground.. it seems like the dealdatabase is much more knowledgeable on DirecTivo though...

P.P.S.
I really want to thank anyone involved with documented help on hacking Tivo, DSS, EMU, and my original (now BS) H card, without you I would still be watching my clearmax 2000.....

P.P.P.S. PGM Rules!!!

Electron
10-08-2001, 09:57 AM
I am sure you have read the thread:
http://www.dealdatabase.com/forum/showthread.php?s=&threadid=4165&perpage=15&pagenumber=1

You have to be close.

Did you make the inital call already?
or did you modify fixup02c to take care of this.

on your information screen what is the status of
last call? ( Failed or successful )
and the value of account status? ( 1,2,3,4,5 )


Let me know where you stored the fixup file. ( the full path and file name)

Partition 4 is not important.

We will get it going!!!

Electron

snOOc
10-08-2001, 10:55 AM
Hey electron (fellow DssLounger), My account status says
"5: Lifetime Service". As long as fixup runs everytime a call is made, I should have no problems, right? What do the account status numbers mean? By the way, your posts, along with many others' posts have been most helpful in this great testing adventure... Thanks for your time.:cool:

okleydokley
10-08-2001, 01:20 PM
Election,
Thanks for the quick reply...
I tried all this without ever making a call, but got very frustrated when it would not seem to work, (even after I changed fixup to status 7) so I finally just let the darn thing call home... I put an old F card in at the time (I hope that made them wonder)...
Now the status says 0 - Unknown, press tivo button, but the unit is working correctly...

last successful call is Saturday night.
Last call attempt is Sunday night.

I stored the Fixup02 file all over the place trying to get it to work, but the one I am pointing to is in
/dev/hdc7 /var/hack

I know that partition 7 is correct, because if I edit TClient and stick fixup in the wrong place then the whole thing errors out when it tries to make a call..

Thank you again for the help, This is as much fun as the first H card I programmed, I just wish I could get my wife to understand the hobbyist point of view.. She keeps telling me that it is all good an well, but I need to channel my efforts into a way to make an honest buck.. ;)

Electron
10-08-2001, 06:02 PM
snOOc

You should be fine, The account status number changes to reflect your subscription level, I don't remember right off what the values are, 1 thru 5 I think. You can play with the value and it changes the sub level, Since we are not really calling in it dosent really matter. ( dbobj $sobj set ServiceState 5 is the one you change )


okleydokley,

You have to be close, Have you forced a call to see if it updates?
I always put my Fixup02c.tcl in /var/tmp, But It should work like you are doing it. ( /dev/hdc9 is the var partition )

Also I use chmod +x on fixup02c.tcl to make it executable
then chattr +i on fixup02c.tcl to make it immuttable.

Did you add the .tcl on the file? ( It may not be needed but I always add it)

After you force a call the last successful call display should show the current date and time. You can do this over and over with no problems.

I also add /var/tmp/fixup02c.tcl
as the next to last line in my rc.sysinit file to make it run on bootup.

By the way my wife bitches about my hobby also but you should hear her when their is an ecm and theres no sat!!

Electron

yngdiego
10-08-2001, 11:30 PM
I'm just about in the same boat as the original poster. I got the scripts hacked and installed. I can now initiate a call (w/o phone cord) and it comes back as successful.

BUT my service state has a '0' and says press the tivo button. In my Fixup script it DOES set the ServiceState to 5.

So what's going on?

I've edited the scripts by putting the Tivo drive in my PC and mounting the partitions. So I can't telnet in and check the current running values.

What can I do?

Also, it is still trying to call once a day..it looks like the fixup script sets the 'nextcall [expr ($now) + 7 *86400]' which would seem to me to be more than 1 day away?

snOOc
10-08-2001, 11:45 PM
remove the "#" (pound sign, without quotes) from the line and change it from "5" to "7" (without quotes)

for some help, see the following entire thread:
http://dealdatabase.com/forum/showthread.php?s=&threadid=4006

yngdiego
10-09-2001, 12:52 AM
Do you mean set "Complete" or "ServiceState" to 7? My "Complete" is currently 7, and "ServiceState" is 5.

snOOc
10-09-2001, 11:51 AM
Do you mean set "Complete" or "ServiceState" to 7? My "Complete" is currently 7, and "ServiceState" is 5.

That is what I meant, sorry. You have that right.

okleydokley
10-09-2001, 02:06 PM
Ok, I guess there are some problems with my unit.. I finally made myself a serial cable and setup the command prompt information. This worked just fine, but the unit will still not run Fixup. (I have now loaded fixup to about 4 directories, and have rc.sysinit pointing to each copy without success.

For some reason Last Call Status is Blank.
My unit will not let me force a call, it says system updating, check status above. It has tried to make calls, and updates the attempted time, but last successful call is still last Saturday when I actually let the unit test call in.
Should I try resetting some information, or restoring some information? I finally got all my Season Passes set up and would rather not loose them, but am willing to try anything...

How do I run fixup from the command prompt? I have tried exec fixup02c.tcl, but it says “no job control in this shell”.

Thanks again…

Wankel
10-09-2001, 02:55 PM
okleydokley, et al.
Question, does your Bash come up " Bash 2.02# " (on a D'Tivo-DSR6000 - minus the quotes) or somthing like that? I'm running Tera Term for my term prog. (in Windows) and I get the prompt, then after the unit fully starts up it seems that I loose my Bash. I hit enter, etc.. and the term just sits there. The only way I can get a Bash again is w/ a full restart of the DSR6000, and I get Bash (briefly) then I'm back to square one.

I'm sure I'm overlooking something, anyone have a suggestion. I've searched thru all the info that I can find. I used Dylan's bootdisk for the A drive setup at the bottom (right after the [ echo: etc.....] in the rc.sysinit file, I typed in:
exec < /dev/ttyS3 >& /dev/ttyS3; bash --login

Then did all the regular stuff to leave, umount, etc.. With me getting bash, I assume that I at least did that right.

Thanks for your time,

Wankel



:confused:

Devestator
10-09-2001, 03:15 PM
I just caught this problem last night, it was because I wasn't mounting the /var/ partition and was putting the fixup file in the tivo root /var/tmp (which actually exists), you need to be sure to be putting this file on the /dev/hdx9 partition (x=b, c, or d. b=primary slave, c=secondary master, d=secondary slave)

okleydokley
10-09-2001, 03:45 PM
Wankel,
Yes, My Bash comes up as Bash 2.02#. I can continue to use it for as long as I am connected. I followed the directions exactly from tivo hack faq, except that I only modify partition 7, 4 is unavailable.
(I have a hard time working with the prompt though, nothing lines up, and I cannot see what I am typing. Also, basic commands don't work (LS, chmod, edit....))

Devestator, Election;
I cannot make any modifications to partition 9, it says that there is no space available. all my changes are to the partition 7. the /var/ dir is located there.. is this correct? I don't know. Partition 9 does not even have a /var directory, or a /tmp directory.

winter
10-09-2001, 03:46 PM
Originally posted by okleydokley
How do I run fixup from the command prompt? I have tried exec fixup02c.tcl, but it says “no job control in this shell”.
You should be able to just type the filename and it should execute ("fixup02c.tcl"), I had the same problem and it was quite bizarre - I created the file with a windows editor and transferred it by mounting the dtivo drive on a regular pc booted with a linux cd. The script file would not execute from a bash prompt.

Then I transferred the file using zmodem from ProcComm Plus while connected to the dtvio via the serial cable, I used rz -a to receive ascii files (like these tcl scripts) and rz -b for binary files (like the ls command). After that I did "chmod +x fixup02c.tcl" and then it executed fine. If you cant run it from the bash prompt then it definitely wont work when its invoked from other scripts (e.g. TClient, etc)

Hope that helps

winter
10-09-2001, 03:49 PM
Originally posted by okleydokley
Wankel,
Yes, My Bash comes up as Bash 2.02#. I can continue to use it for as long as I am connected. I followed the directions exactly from tivo hack faq, except that I only modify partition 7, 4 is unavailable.

This is normal for virgin units, partition 4 isnt used

Download Tivo_DevBin from here Link (http://pvrhack.sonnik.com/tivo/download.asp) then you will have all the regular unix commands (ls, etc) that are missing.

Also if you havent already get a copy of chattr that has been compiled for dtivo and put that on your machine too.

Devestator
10-09-2001, 04:42 PM
Does partition 9 actually mount at all? Mine had plenty of space that's kind of odd.

Devestator, Election;
I cannot make any modifications to partition 9, it says that there is no space available. all my changes are to the partition 7. the /var/ dir is located there.. is this correct? I don't know. Partition 9 does not even have a /var directory, or a /tmp directory.

Wankel
10-09-2001, 05:11 PM
Originally posted by okleydokley
Wankel,
Yes, My Bash comes up as Bash 2.02#. I can continue to use it for as long as I am connected. I followed the directions exactly from tivo hack faq, except that I only modify partition 7, 4 is unavailable.
(I have a hard time working with the prompt though, nothing lines up, and I cannot see what I am typing. Also, basic commands don't work (LS, chmod, edit....))

Devestator, Election;
I cannot make any modifications to partition 9, it says that there is no space available. all my changes are to the partition 7. the /var/ dir is located there.. is this correct? I don't know. Partition 9 does not even have a /var directory, or a /tmp directory.

Thanks everyone for the replies, I'll give it another shot with this new info.

Thanks again!

Wankel
P.S. okleydokley, is that when you type commands, what you are typing does not show on your term. - mine too. I'm going to download those other files to see if that sets me straight. Take care.

jasongt
10-09-2001, 05:20 PM
Originally posted by winter


This is normal for virgin units, partition 4 isnt used

Download Tivo_DevBin from here Link (http://pvrhack.sonnik.com/tivo/download.asp) then you will have all the regular unix commands (ls, etc) that are missing.

Also if you havent already get a copy of chattr that has been compiled for dtivo and put that on your machine too.


Where do you uncompress this file at on the tivo drive? Also do you have to do anything else after uncompressing to use these tools?

Thanks,
Jason

winter
10-09-2001, 05:36 PM
Originally posted by jasongt
Where do you uncompress this file at on the tivo drive? Also do you have to do anything else after uncompressing to use these tools?


Being much more of a PC-weenie than a Linux user I decompressed it on the PC first (WinZip will handle both gz and tar files apparently). Then I just binary xfer'd them all to the dtivo at once (set your speed to 115200 first so it wont take so long). I saw that gzip was already on the tivo but I didnt know how to untar it so I stuck with the approach that worked for me.

I placed all the files in /var/hack (a directory you create) which is added to the PATH variable automatically by the .bashrc script that is posted elsewhere (which I also highly recommend). Its worth the time to get your environment all spiffy before you start hacking (I learned the hard way).

Here's another useful command that I had to search long and hard for:

mount -o remount,rw /

It allows you to remount hdx7 as a rw drive instead of ro so you can have your way with it while the dtivo is running

winter
10-09-2001, 05:39 PM
I couldn't find where I had gotten my .bashrc from (wanted to link to it) so I'm going to copy and paste it below, my apologies to the author for not giving credit. This is placed in your root directory and automatically executes when the bash prompt is launched, as you can see it adds both /var/devbin and /var/hack to the existing path so you can access any tools you download there so as not to confuse them with tivo binaries
====

#
# bash shell startup commands
#
# set faster speed
stty 115200
#
# set normal communication parameters
stty sane
#
# set the search path to search new directories
PATH=$PATH":/var/devbin:/var/hack"
#
# set the prompt to display current working directory
PS1="\w\\$ "
#
# set the terminal to ansi for apps that need screen control
TERM="ansi"
#
# set the ls command to always display long mode and color tags
alias ls='ls --color -l'
#
# go to my working directory
cd /var/hack

jasongt
10-09-2001, 07:46 PM
Does the .bashrc file have to be added to any other files to make it recognized or just create it and place it in the root dir of the hdc7 partition.

Thanks,
Jason

winter
10-09-2001, 08:14 PM
Originally posted by jasongt
Does the .bashrc file have to be added to any other files to make it recognized or just create it and place it in the root dir of the hdc7 partition.

Just create it and place it in the root directory. Apparently its a std initiatization file that bash looks for when you spawn a new bash process.

jasongt
10-09-2001, 10:00 PM
Ok I have bash but I can not find the /var/hack dir it says it does not exist but if I boot the drive using the cd I go straight to it. It is on partition 7 do I have to do anything special to access it?

Thanks,
Jason

winter
10-09-2001, 10:23 PM
/var/hack and /var/devbin are both directories that you create to keep your hacking stuff (scripts) and binary tools separate from dtivo's stuff. Just mkdir them.

Once you are able to get a bash prompt from within the dtivo over the serial cable (as opposed to mounting the drive in an external pc) I would stick with that can not go back - there is no point in moving the drive back and forth - its better to just work from within the tivo unit itself.

For anybody that needs the pinout of the serial cable for the dtivo unit its here:
Link (http://www.pineaus.com/HOWTO/Tivo-DSL-HOWTO.html)
I lucked out and found out that my ProntoRemote cable is already constructed this way so I didnt have to make one. Apparently they can be bought directly from tivo.com as well.

jasongt
10-09-2001, 10:28 PM
I understand that you put the utilities in these directories but what I am saying is when on the pc side you create the hack dir below the var dir. Do you have to do anything to make it accessible from the tivo side like chmod it or chattr it or anything like that? Because I created them and can only acces them from the pc when I put back in hte tivo they do not work.

Thanks,
Jason

winter
10-09-2001, 10:37 PM
Originally posted by jasongt
I understand that you put the utilities in these directories but what I am saying is when on the pc side you create the hack dir below the var dir. Do you have to do anything to make it accessible from the tivo side like chmod it or chattr it or anything like that? Because I created them and can only acces them from the pc when I put back in hte tivo they do not work.


Hmmm....I'm not sure what you're doing wrong - you dont need to chmod or chattr them. Are you sure you are creating the directories in the right places accounting for where you mounted the tivo drive when in the pc (ex: /mnt ). Why dont you create them from the tivo instead?

jasongt
10-09-2001, 10:44 PM
Ok I just created them in tivo I am going to look for them in the pc now. Ok I found them on the PC on hdc9 in the root dir. So when I am in the tivo and I cd /var/hack then I am on partition 9

That does not sound right does it?


Thanks,
Jason

winter
10-09-2001, 10:53 PM
Nope, that sounds fine, here's what my mount command shows when I'm in ditvo:

/var/hack# mount
/dev/hda7 on / type ext2 (ro)
/dev/hda9 on /var type ext2 (rw)
/proc on /proc type proc (rw)
/var/hack#



So /var comes from hda9

jasongt
10-09-2001, 10:55 PM
ok this is starting to make more sense now :) How do I setup file transfer over the serial connection? Of course I will have to do that on the pc I guess first.

Thanks,
Jason

okleydokley
10-11-2001, 01:39 PM
Thank you all for your help!!!
I was finally able to run fixup via the bash prompt.
I still cannot make it run automatically, the unit says it is being updated and to check status.
This problem will have to wait, at least I can run it from my laptop whenever I want..
Thanks again..

--OK

1010
10-14-2001, 03:10 AM
I am tryingg to run

chmod +x on fixup02c.tcl to make it executable .

when i type {chmod +x fixup02c.tcl } i get a message (operation not permitted).


I have run {chattr +i fixup02c.tcl} with no problem.

In the forums i have seen running chmod 1st then chattr 2nd.

Is this my problem?


Thanks for all the help and this great forum

1010

winter
10-14-2001, 09:45 AM
Originally posted by 1010
I am tryingg to run

chmod +x on fixup02c.tcl to make it executable .

when i type {chmod +x fixup02c.tcl } i get a message (operation not permitted).


I have run {chattr +i fixup02c.tcl} with no problem.

In the forums i have seen running chmod 1st then chattr 2nd.

Is this my problem? I believe so, the file cannot be immutable otherwise you cant make any changes to it including chmod. Try chattr -i, then chmod then chattr +i again

Mishap64
10-29-2001, 11:38 AM
Is there a way to check and see if fixup02c.tcl is excutable with a PC and/or a bash prompt.

Thanks

genericuser
11-01-2001, 03:55 PM
with a bash prompt type:

ls -l (ell ess dash ell)

that will show a full directory listing.

rwxr-xr-x that is what you want to see for your fixup02.tcl file (notice the x as in executable).