PDA

View Full Version : Buggered lib files, how can transfer new ones?


petestrash
03-18-2008, 12:30 PM
I was playing around with TiVo (unfortunately the wife's one) and managed to bugger up some of the library files while trying to get cvs to work for TWP updates.

TiVo still seems to run ok, but telnet, TWP, FTP and most other hacks won't start.

Thankfully the TiVo itself and Endpad seems to be ok.

The problem I am faced with is how to replace the bad lib files with good one's (which I have).

[TiVo [] ~]# wget
wget: error in loading shared libraries
libc.so: invalid ELF header
[TiVo [] ~]# rz
rz: error in loading shared libraries
libc.so: invalid ELF header
[TiVo [] ~]# ps ax
ps: error in loading shared libraries
libc.so: invalid ELF header
[TiVo [] ~]#

Ftp won't run, rz via a serial cable won't run, wget won't run.

Any other method someone can think of?

(other than pulling the drive :eek: )

Thanks,

Peter.

jt1134
03-18-2008, 04:12 PM
mfs_dumpobj and mfs_uberexport? Maybe you could use them to peek at /SwModule and dump the files from mfs.

PortlandPaw
03-20-2008, 12:00 PM
I'll bet you put in an export statement setting LD_LIBRARY_PATH to something it shouldn't be. Assuming you can get in somehow, try setting it to /hack/lib or /lib or just remove the export statement from wherever you put it.

petestrash
03-20-2008, 12:20 PM
Thanks for the advice.

I finally worked it out last night. Since I used this TiVo for playing before it become the wife's I actually found another copy of libc.so on the drive.

Copy still didn't work, but I was able to change the LD_LIBRARY_PATH to where the spare file was. then copy worked and I could overwrite the dud file. Then a reboot and all my hacks are back.

I buggered it up trying to get cvs working on my S1, using PortlandPaw's instructions from this Post (http://www.dealdatabase.com/forum/showpost.php?p=293431&postcount=4), Don't actually know what happened.

But I now have cvs running from the command line.

I put it in /bin, so it's in the path.

After a full restart TWP logs still says it won't start cvsupdate.

I'll post this issue to the TWP thread.

Peter.