Slashdot Mirror


Blowing TiVo's Lid

An anonymous reader writes "Taking things apart is just plain fun, but there's also a lot to learn about how to build a foolproof Linux-based appliance. Break out your Torx drivers and take a closer look at TiVo's inner Linux workings. Examining the TiVo system reveals how one company made the transition from desktop operating system to embedded system."

89 comments

  1. didn't i read this 2.5 weeks ago?!? by H8X55 · · Score: 4, Informative

    didn't i read this 2.5 weeks ago?!?

    first posted on slashdot 7/6/05 - dang!

    1. Re:didn't i read this 2.5 weeks ago?!? by confusion · · Score: 1

      Someone is cruising through IBM's developer site and stuffing slashdot with "new and interesting" stories.

      It is a pretty good article though, and I did miss it the first time 'round, so it's all good.

      Jerry
      http:www.cyvin.org

    2. Re:didn't i read this 2.5 weeks ago?!? by leshert · · Score: 4, Funny

      you're supposed to throw a royal fit when something like that happens.

      are you new around here? ;)


      I realize you're trying to make a joke (emphasis on trying), but what's funnier is watching some kid with a user id of 650339 ask a guy with a user id of 14388 if he's new...

    3. Re:didn't i read this 2.5 weeks ago?!? by H8X55 · · Score: 0

      wow - i wish you had mod points today.

    4. Re:didn't i read this 2.5 weeks ago?!? by TheGavster · · Score: 1

      Hey man, not everyone can get first post ...

      --
      "Because Science" is one step from "Because old book". Try "Because of my experiment testing my falsifiable assertion".
    5. Re:didn't i read this 2.5 weeks ago?!? by Teun · · Score: 1

      Yep I'm sure, it would have made you shut up in this topic :-)

      --
      "The likes of Facebook and WhatsApp are free to those whose privacy is of zero value."
    6. Re:didn't i read this 2.5 weeks ago?!? by Neoncow · · Score: 3, Funny
      I realize you're trying to make a joke (emphasis on trying), but what's funnier is watching some kid with a user id of 650339 ask a guy with a user id of 14388 if he's new...

      Ummm.. This happens all the time!
      You must be new here.

      =)

    7. Re:didn't i read this 2.5 weeks ago?!? by H8X55 · · Score: 1

      no it wouldn't have, but he could have modded me down instead of replying.

      i thought it was a great joke, taking everything into consideration... my asking if the first was new around here - look at my UID! Look at his! Sarcasm? Anyone? Ah well, i've still got karma to burn ;)

    8. Re:didn't i read this 2.5 weeks ago?!? by H8X55 · · Score: 1

      You're right!

      It was funny after all!

      But still not as funny as a guy with a UID of 802085 asking a guy with a user id of 40509 the same question...

      Again. Sarcasm?

      We do these same jokes in every topic.

      Are you more familiar with the Soviet Russia threads?

      I'll try (emphasis on try) to incorporate one of those next time for you.

      Lighten up dude, it's Sunday. ;)

    9. Re:didn't i read this 2.5 weeks ago?!? by leshert · · Score: 1

      We do these same jokes in every topic.

      Yes. You do.

      Are you more familiar with the Soviet Russia threads?

      More familiar, no.

      As familiar, yes.

      My familiarity meter is fulled pegged on both.

      *sigh*

      At least the "naked and petrified" meme died out. Only, what, three more years to go on "soviet russia" (which was funny when I first heard it 15 years ago) and "you must be new here".

      Lighten up dude, it's Sunday. ;)

      You should see me when I'm serious. Deadpad humor is pretty much the only kind that works, anyway, although on Slashdot bedpan humor seems more common.

    10. Re:didn't i read this 2.5 weeks ago?!? by leshert · · Score: 1

      Yes. Meta-humor is teh r0xx0r.

      Apparently.

    11. Re:didn't i read this 2.5 weeks ago?!? by MacJedi · · Score: 5, Funny
      sheesh, you kids!

      now where are my dentures...

      --
      2^5
    12. Re:didn't i read this 2.5 weeks ago?!? by hawk · · Score: 1
      > didn't i read this 2.5 weeks ago?!?

      No. That's just when your tivo recorded it, and now you're reading it at your leisure.

      :)

      hawk

    13. Re:didn't i read this 2.5 weeks ago?!? by Atario · · Score: 1

      Good thing they did repeat it, though: it reminds me -- I need to reinstall my Torx drivers.

      --
      "A great democracy must be progressive or it will soon cease to be a great democracy." --Theodore Roosevelt
  2. Cool by JaymoFish · · Score: 0, Redundant

    Cool :o.

  3. Not that I care.... by rolfwind · · Score: 1

    Not that I care too much, but wouldn't something like this be breaking the DMCA (assuming you are in the good old US of A)?

    1. Re:Not that I care.... by jtdennis · · Score: 2, Informative

      it didn't talk about extracting or decrypting video, so no. It just voids your warranty.

      --
      -- "Freedom is the right of all sentient beings" -Optimus Prime
    2. Re:Not that I care.... by ocelotbob · · Score: 1

      Nope. Init scripts and the like are not an access control measure, thus you can hack away at it. Now, publishing a program to crack the tivo's encrypted video files would be a violation, but cracking open the case and having a looksee isn't.

      --

      Marxism is the opiate of dumbasses

    3. Re:Not that I care.... by Anonymous Coward · · Score: 0

      Wouldn't distributing FOSS software without also making source code available be a violation of the software license?

  4. Persistant news by lisany · · Score: 1

    I guess this is still news....

    1. Re:Persistant news by TodPunk · · Score: 1

      I guess this is still news....

      "Read it again, for the first time"

      --
      This forum Sig is licensed under the LGPL.
  5. repost by Anonymous Coward · · Score: 0

    yeah, this is a repost.

  6. Summary of the article by Rosco+P.+Coltrane · · Score: 5, Funny

    - I owns TiVo box, I want to open it, I make a photo

    - Oh, a hard-disk. Let's pull it off and mount it on a regular PC

    - See here how I can use bzip2 to make a backup of the drive, BUT BUT! also to restore the backup onto the drive! Shit I'm geeky...

    - Ok so now I tinker a bit and I find a bunch of partitions

    - I mount the partitions and notice a bunch of init scripts

    - I also notice a bunch of custom programs, written in whatever language does the job, but I decide it looks like a big mess

    - I insert a phrase saying that I'm not interesting in modifying the thing, just study it. You never know with these lawyers...

    - I conclude with vague statements about Linux philosophies

    (- Additionally, I post a black-and-white photo of me showing my long hair. That's how geeky I am!)

    --
    "A door is what a dog is perpetually on the wrong side of" - Ogden Nash
    1. Re:Summary of the article by sud_crow · · Score: 1

      - Oh, a hard-disk. Let's pull it off and mount it on a regular PC

      Actually, he mounted it in a Mac Mini to see the partition table. Then he moved it to a Linux box (dont know if PPC or x86) to "study" it.

      --
      no sig
    2. Re:Summary of the article by Ziggy7273 · · Score: 1

      How could he mount a 3.5" drive in a 2.5" mac mini slot?

    3. Re:Summary of the article by LarsG · · Score: 1

      By using a 2.5"->3.5" converter or one of the nifty USB to IDE thingies?

      --
      If J.K.R wrote Windows: Puteulanus fenestra mortalis!
    4. Re:Summary of the article by Evil_Way · · Score: 1
      By using a 2.5"->3.5" converter
      We call those "compressors".
    5. Re:Summary of the article by Anonymous Coward · · Score: 1, Insightful
      By using a 2.5"->3.5" converter

      We call those "compressors".


      He also could have started with an IDE to USB2 external enclosure, and left it connected to the Mini running whatever the whole time.

      I have to seriously question his investigative methodologies. For example, Peter appears to have completely disregarded the significant body of pre-existing work, and as such, has come to erroneous conclusions about system functionality and limitations. For starters, had he done cursory research into the community's progress, he surely would not have come to the conclusion that a hardware hack was necessary.

      I'd wonder what he'd think if he got his hands on a ReplayTV drive.
    6. Re:Summary of the article by nospmiS+remoH · · Score: 1

      iLube

      --
      !hoD
  7. Deja Vu All Over Again by Whafro · · Score: 4, Insightful

    It's amazing how frequently I have these experiences of deja vu while reading Slashdot.

    1. Re:Deja Vu All Over Again by Rosco+P.+Coltrane · · Score: 1

      Neo, what did you just say?

      --
      "A door is what a dog is perpetually on the wrong side of" - Ogden Nash
    2. Re:Deja Vu All Over Again by Anonymous Coward · · Score: 0

      instant replay button.... oooh.

    3. Re:Deja Vu All Over Again by lxt · · Score: 4, Funny

      The Matrix clearly not running Linux then...

    4. Re:Deja Vu All Over Again by Whafro · · Score: 1

      wow, and little did I realize that everyone on slashdot would associate "deja vu" with the Matrix...

    5. Re:Deja Vu All Over Again by mattyrobinson69 · · Score: 1

      no, the matrix obviously runs windows - its tries to be cleaver, has many bugs (de ja vous) and its not secure (neo and co)

    6. Re:Deja Vu All Over Again by Qa32 · · Score: 1

      wtf is this guy modded for 4 and that Insightful. Holy shit!!!!

    7. Re:Deja Vu All Over Again by PakProtector · · Score: 1

      The 'Deja Vu' sense you get in the Matrix is not a bug. It's an artifact caused when the machines that run the Matrix make an alteration to something nearby the person who experience the 'Deja Vu.' I would hazard to guess it occurs because it's apparently not possible for them to make such massive changes in real time while the simulation is running, so they make the change and then 'play back' from a few moments ago, which causes the 'Deja Vu'.

      Although, why some entity with enough processing power and intelligence to design a simulation completely capable of fooling the human brain can't make a real-time edit, I don't know.

      --

      Edward@Tomato - /home/Edward/ man woman
      man: no entry for woman in the manual.
      "Qua!?"

    8. Re:Deja Vu All Over Again by Planesdragon · · Score: 1

      Although, why some entity with enough processing power and intelligence to design a simulation completely capable of fooling the human brain can't make a real-time edit, I don't know.

      Because they wanted a constant resistance, to channel and control the inevitable saviors. Worked pretty well, too--of all the failings with the Matrix sequels, explaining the Matrix itself isn't one of them.

    9. Re:Deja Vu All Over Again by PakProtector · · Score: 1

      Yes, but you'd want constant resistance, not a full blown rebellion. You think they could have made it just a bit more subtle.

      --

      Edward@Tomato - /home/Edward/ man woman
      man: no entry for woman in the manual.
      "Qua!?"

  8. Conversation in my home by Anonymous Coward · · Score: 5, Funny

    Me: Hey Son, bring my toolbox.
    Son: What is it this time?
    Me: Dont worry. The Tivo box is gonna be alright.
    Son: Mamaaaaaaaaaaaaaaaa. Dad is gonna blew something again. This time it is Tivo
    Me:I will just open and see.
    Wife: (looks at me)
    Me: Ok, forget it.

    1. Re:Conversation in my home by Anonymous Coward · · Score: 0

      I love engrish...

  9. "Desktop operating system?" by Anonymous Coward · · Score: 0
    Examining the TiVo system reveals how one company made the transition from desktop operating system to embedded system.


    Since when is Linux by default a desktop operating system? Calling it a server OS would be somewhat more appropriate but even then Linux doesn't really specialize in any markets even though it has been more successful in some so far.

    Linus itself has stated that he tries to keep it useful for anything there's interest for and considers it as the one of the main reasons for Linux's success. There are quite a few embedded solutions based on Linux already out there so TiVo certainly needed to make no transition from the desktop to embedded.
  10. re: "transition" by ltwally · · Score: 2, Insightful
    "...how one company made the transition from desktop operating system to embedded system."
    So, what he's saying here is that linux has stronger roots in GUI's than it has in the embedded area. Hmm... interesting. Linux has been doing the embedded thing for some years now, and quite successfully... while you still read articles devoted to why linux still isn't ready for prime-time desktop useage.

    Basically, what I'm getting at is this: I automatically lose interest in an article when its opening statement is ignorant about the topic. The author's opening line made the rest of his entire arguement null-and-void, as far as I'm concerned. Claiming that linux has more successful roots in the desktop GUI market than it does in the embedded market is one of the more ignorant things he could have said.
    --



    /dev/random
  11. Somebody loves IBM by gonzo-wireless · · Score: 0

    I know the weekends are always slow here, but, who turned this one into "link to IBM" day? For those that havn't realised, this 'news' article and the one before both come from our friends at IBM. Maybe they need their own /. icon?..

  12. DUPE, BABY! IT'S A DUPE! by Anonymous Coward · · Score: 0

    N/T

  13. Tivo Feels Fear!!! by DigitalDwarf · · Score: 1

    You know that right now thousands of Tivo Boxes are feeling the cold dead stare of there Geek masters and know that they might be the next!!! (Shiver!!!)

    --
    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -Albert Einstein
  14. Basic profit by spudchucker · · Score: 1

    1 Google stock quotes?
    2 FreeBSD an unknown giant?
    3 The inside of a TiVo
    4 ...?
    5 Profit?
    6 goto 1

  15. open source? by v1 · · Score: 0

    Since it's written based on Linux, isn't there some obligation to provide source code? Is it available anywhere?

    --
    I work for the Department of Redundancy Department.
    1. Re:open source? by Anonymous Coward · · Score: 2, Informative
    2. Re:open source? by Anonymous Coward · · Score: 0

      linux source is available .. that doesn't mean that tivo has to disclose their own proprietary code ...

      look at realplayer for linux .. just an installer .. same for flash. Just because it says linux somewhere in a description doesn't mean it's open source and gpl'd

    3. Re:open source? by mattyrobinson69 · · Score: 1

      im not sure, but if they dont modify and gpl'd code (such as the kernel) they dont have to release changes - there's plenty of commercial software available on linux which does not have to release the code (as glibc is lgpl, not gpl), for example the browser i am using now - opera.

    4. Re:open source? by Anonymous Coward · · Score: 0
    5. Re:open source? by Bemopolis · · Score: 1

      Jeezuz, if only there were a network of interconnected computers and a way to search them...

      http://www.tivo.com/linux/

      Sheesh -- If you're going to act like a n00b then give me your lower Slashdot number as bounty.

      Bemopolis

      --
      "I guess the moral of the story is, don't paint your airship with rocket fuel." -- Addison Bain
    6. Re:open source? by iabervon · · Score: 3, Informative
      The license for the Linux kernel says:
      NOTE! This copyright does *not* cover user programs that use kernel services by normal system calls - this is merely considered normal use of the kernel, and does *not* fall under the heading of "derived work".


      The license for glibc says:
      We use this license for certain libraries in order to permit linking those libraries into non-free programs.


      TiVo's obligation is to provide source so that you can put together the base system that the TiVo software runs on (meaning that taking it apart is not particularly necessary), but they only have to include changes they made to the base system, not complete programs they wrote (and they probably chose supported hardware, formats, and so forth, so that they wouldn't have to write special drivers).
    7. Re:open source? by carnifex0 · · Score: 1

      Bemopolis:
      Sheesh -- If you're going to act like a n00b then give me your lower Slashdot number as bounty.

      What's considered a low number? And what is such a thing worth?

      (I keed, I keed)

    8. Re:open source? by zztzed · · Score: 2, Funny

      What's considered a low number?

      Not 120168. ;)

  16. Re: "transition" by imsabbel · · Score: 4, Insightful

    Er...
    Linux was created by Torvards for use on his home pc...
    I would call that pretty strong roots in desktop...

    --
    HI O WISE PRINCE. WHT TOOK U SO DAM LONG?
  17. More Info by CowboyRobot · · Score: 2, Informative

    This article: http://acmqueue.com/modules.php?name=Content&pa=sh owpage&pid=53 includes a lot more info about the history of tivo, specifically in regard to how it relies on open source software

    --
    every stain tells a story
  18. Original Slashdot Story by echocharlie · · Score: 2, Informative

    This story was first posted back on July 6 when the article was first released.

  19. Something useful? by dledeaux · · Score: 3, Interesting

    This article is a birds eye view of TiVo. It barely scratches the surface of the inner workings of the unit. He touches on things that people have known about for years.

    What I would love to see is someone totally hack a TiVo, and come up with their own distro that is capable of running MythTV.

    Yes, it may seem a little redundant, but with the future of TiVo up in the air, a lot of customers may have nothing but useless doorstops one day and having an alternate TiVo distro would be a great way to save them and keep them running. After all, why dedicate a PC to the task when you can have an embedded unit doing what it was designed to do.

    1. Re:Something useful? by Buran · · Score: 1

      "Tivo is dying!" ... again? Is that anything like "Oh no, Apple is dying!" ... again? People have said that for years and Apple's debt-free with tons of cash in the bank.

    2. Re:Something useful? by Anonymous Coward · · Score: 0

      Unlike Apple, Tivo does not enjoy the protection of a reality distortion field.

    3. Re:Something useful? by Anonymous Coward · · Score: 0

      He said the future is up in the air, he didn't say they were dead. Nor did he say beleaguered.

      I agree that the future is up in the air. Big industries own bigger chunks of the government than smaller industries. The television industry is possibly the biggest there is, and therefore owns more government than anyone else. They can pretty much write and enforce any law they want at any time.

      On what does this hungry giant feast? Advertising dollars. Tivo lets you skip commercials. Thusly, their future is anything but certain. Even if they do still exist many years from now, will it even be similar in functionality to what it started out as?

      I don't have a Tivo, primarily because I hate rebates. Yet, I also wonder how long they will be able to retain enough functionality to be worth the money. They've already changed from what they started out as. I don't think anyone questions if there will be more change, the question is how much more change.

    4. Re:Something useful? by Anonymous Coward · · Score: 0

      I think it would be cool if someone was able to 'hack' a Tivo so it would work in Canada. (HINT HINT Tivo)

  20. News Flash! by 93+Escort+Wagon · · Score: 3, Funny

    It's official - even CmdrTaco doesn't read Slashdot!

    --
    #DeleteChrome
    1. Re:News Flash! by slashdotnickname · · Score: 0, Troll

      It's official - even CmdrTaco doesn't read Slashdot!

      And why should he? Have you seen the crap that gets passed as funny or insightful here? CmdrTaco, like all successful people with busy lives, would doubtfully find any use in a +5 funny post.

  21. Re: "transition" by flithm · · Score: 2

    I have to agree with you. Just because the guy made one comment about a company going from "desktop operating system to embedded system" doesn't null and void the entire article!

    I mean really, it's no trivial matter to create a custom piece of hardware from scratch, make it run Linux, and make people have no idea that they're not just using another random hardware device.

    Claiming that linux has more successful roots in the desktop GUI market than it does in the embedded market is one of the more ignorant things he could have said.

    I would say putting words in the authors mouth and misrepresenting him would be one of the more ignorant things a person could do.

    The article author never said "desktop GUI market" he just said "desktop market." So relax! If you think it's so easy to build a Linux distro from scratch for an embedded device, then let's see you do it!

  22. Old old old news by JWSmythe · · Score: 4, Insightful


    God, this is old news...

    I upgraded my TiVo about ... ummm ... 2 years ago, maybe? I had read the stuff on *how* to do it before that. I just hadn't wanted to break a perfectly good box.

    Even my journal on here covers more than his did.

    http://slashdot.org/~JWSmythe/journal/98940

    http://slashdot.org/~JWSmythe/journal/99310

    http://slashdot.org/~JWSmythe/journal/99319

    I've done lots more than this. I have 3 TiVo's upgraded, hacked, and working now. Two are at my house, one at my girlfriends. It's nice when people give you "broken" boxes, just to find out they weren't all that broken. One did have a completely failed modem, but that was easy enough to deal with. (Hmm, how do you do a fresh install with no modem? Magic. hehe)

    If he would have read up a little on the subject before making himself look like a complete freakin' moron, there are two pairs of boot/root partitions. 3/4 and 6/7 . They do this for upgrades. If you're using the 3/4 pair, the upgrade gets installed into the 6/7 pair. things that must survive through upgrades are kept in /var (partition 9). He completely missed the purpose of the MFS partitions. Those are the interesting ones, which the audio/video is actually stored. Hmmm. Imagine that. Dissecting a PVR, and actually wondering where the V goes. :)

    It's very likely to have a boot/root pair empty, or just to confuse our winner a little more, both of them populated, but having different versions of the OS in them.

    And... He did his examinations of the partitions the hardest way possible. There are plenty of boot CD's, which give support for the TiVo partition table (ya, ya, apple), and a few other customizations, to make things easy.

    Oh, and his comment saying S2 is worse that S1 for hacking is just stupid.

    God, I hope he didn't actually get paid to write that crap.

    --
    Serious? Seriousness is well above my pay grade.
  23. Re: "transition" by Anonymous Coward · · Score: 0

    Linus created Linux the OS and Kernel. The GUI was an ad-hoc solution built on X.

    If you want to answer the question of whether or not Linux is better on desktop or embedded, you should probably ask the question, "On which can I distribute binaries?"

  24. For people who don't watch low-def TV by callipygian-showsyst · · Score: 2, Interesting

    you can see the inside of a HD TiVo.

  25. Dish PVR by WatertonMan · · Score: 1

    Now if just someone would publish something on the Dish PVR. I'm sure it's written in Java, and judging by when the hard drive spins up late at night, I'm betting its running Linux with a late night Cron task cleaning things up.

    1. Re:Dish PVR by Torg · · Score: 1

      Yes the DishPVR runs Linux. It is a 2.4 kernel and they use XFS.

      1) Take its drive out and put it in a Linux box
      2) Mount the partitions of the hard drive (its formatted with XFS) /dev/hdc1 /mnt/DN/download xfs defaults,noatime,nodiratime 0 0 /dev/hdc5 /mnt/DN/root xfs defaults,noatime,nodiratime 1 1 /dev/hdc6 /mnt/DN?next_root xfs defaults,noatime,nodiratime 0 0 /dev/hdc8 /mnt/DN?video xfs defaults,noatime,nodiratime 0 0

      Yes like the TiVo boxes a Dishnet PVR used pivot root (hdc5 and hdc6). Most of the hack stuff is in python. Go mount, play, hack, whatever you want.

      Look up

      pythonshell.py: A telnet shell for the box ( command line python).
      telnetd-wrapper.py: The telnet server (runs bash, It really just stripes out CR, but hey it works).
      python-bash.py: Your bash shell

      (Obvious links to hacked software omitted intentionally).

    2. Re:Dish PVR by WatertonMan · · Score: 1

      Interesting. If you can mount it though I assume you can copy the MPEG-2 files?

      Too bad there's not a XFS driver for the Mac.

  26. So sad by saikou · · Score: 2, Funny

    What I don't understand is why he even bothered with this type of activity. Given a mountain of knowledge about Tivos, including partitions and OS dissection on the net, why not build on that? Simple search is not good enough? What's going to be next, "our expert have dissected a frog and found out this squishy part to be its stomach! Hooray!" published in medical magazines?

  27. Leapfrog + Tivo by Louie's+Demise · · Score: 1

    using the Leapfrog wireless A/V transmitter http://www.smarthome.com/7656.html and wireless internet, I have done some wonderful tings with my tivo... The leapfrog has a wonderful picture but does not support HD. It broadcasts through a cinder block wall very well. It also broadcasts outside my house. The tivo box stays where the Coax connection is. ;)

  28. Tivo for the rest of the planet by peu · · Score: 1

    I wish the day that someone posts the necesary mod to use the Tivo outside the NTSC system or just english PAL.

    I want PAL-N for Argentina !

  29. Some corrections... by Zzyzygy · · Score: 1

    Linus created Linux the OS and Kernel.

    Are you sure about that? My Linux (the kernel) history is a bit rusty, but I was under the impression that Linus only created the kernel. At the risk of overstating the obvious, Linux the operating system ("GNU/Linux" as it is sometimes referred to) is a compilation of the kernel and third party utilities.

    The GUI was an ad-hoc solution built on X.

    I'd hardly call it ad hoc; X11 with a window manager is anything but.

    If you want to answer the question of whether or not Linux is better on desktop or embedded, you should probably ask the question, "On which can I distribute binaries?"

    This statement is disingenuous. Being "better" on the desktop has nothing to do with the target platform.

    I do embedded development, using ...yep... Linux as both my development box and the embedded OS target (both Geode and XScale processors). Linux is not "better" or "worse" running in either context.

    -Scott

    --
    My other sig is a Glock