Ubuntu Karmic Koala on AppleTV with Broadcom Crystal HD decoder

UPDATE! – Karmic Koala uses a newer kernel which wont make the bcm driver work, use Ubuntu 8.04 Hardy in step 4, and your driver will work :) Confirmed 1080p playback on Apple TV with hardy! :D

1. build patchstick with http://code.google.com/p/atvusb-creator/
2. boot atv with patchstick
3. Partition sda as per instructions:

http://code.google.com/p/atv-bootloader/wiki/PartitioningLinux

4. Download netboot http://no.archive.ubuntu.com/ubuntu/dists/karmic/main/installer-i386/current/images/netboot/netboot.tar.gz
4. Run netboot as per instructions under Netboot Install:

http://code.google.com/p/atv-bootloader/wiki/BootingLiveCD

5. Install karmic with sda4 = / and sda5 = swap
5.1 Remember to select sda4 as root filesystem with ext3 NOT ext4
6. Modify boot_linux.sh with something like the following:

mount /dev/sda4 /tmp/
kexec --load /tmp/vmlinuz --initrd=/tmp/initrd.img --command-line="root=/dev/sda4 initrd=initrd.img vga=normal vesa video=vesafb"
umount /tmp/
kexec -e

7. WORKING UBUNTU WOOHOO

8. Download linux bcm70012 from:

http://www.norco.net.cn/DownNews_Show.asp?ID=215

Making system ready:
aptitude install build-essential unrar
unrar e bcm70012_linux_01142009.rar
cd bcm70012_linux_01142009
mv bcm70012_linux_01142009 bcm70012_linux_01142009.tar
tar xf bcm70012_linux_01142009.tar
dpkg -i bcm70012kmod-source_0.9.30_all.deb
apt-get -f install
dpkg -i bcm70012kmod-source_0.9.30_all.deb
cd /usr/src/
m-a -t a-i bcm70012kmod
cd -
dpkg -i --force-all gst-broadcom-70012_0.9.30_lpia.deb

22. WORKING bcm70012 !! WOHOO

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Reddit
  • Twitter
  • Slashdot
  • StumbleUpon

Tags: , , , , , , , , , , ,

16 Responses to “Ubuntu Karmic Koala on AppleTV with Broadcom Crystal HD decoder”

  1. MrDingle Says:

    Seems the broadcom driver doesnt really work with karmic after all, but it will work with ubuntu hardy! (and the instructions are the same)

  2. Compile xbmc with broadcom crystalhd support on linux | dingleberry.me Says:

    [...] Install Ubuntu 8.04 Hardy on your box, if you are going to use an AppleTV you can follow the guide here: http://dingleberry.me/2009/11/ubuntu-karmic-koala-on-appletv-with-broadcom-crystal-hd-decoder/ [...]

  3. Poul Says:

    Thanks for this guide! Where does boot_linux.sh live and what is the purpose with the modifications?

  4. MrDingle Says:

    Hi, it lives on the recoverypartition if i remember correctly and the purpose is for loading the ubuntu kernel and initramfs since karmic uses grub2 which isnt supported. As previously stated though, you shouldnt use karmic if you’re planning on using crystalhd as the leaked crystalhd driver only works under ubuntu hardy (8.04)

  5. Poul Says:

    Ah, so it is not required for Hardy – thanks for clarifying! Furthermore, do you know if these two guides are recommended/required for the Hardy install:
    http://code.google.com/p/atv-bootloader/wiki/UpdateAudioDriver

    http://code.google.com/p/atv-bootloader/wiki/UpdateNvidiaDriver

  6. MrDingle Says:

    I havnt used those two guides. What i did was install ubuntu hardy with gnome desktop (regular ubuntu). After install is complete and it boots into gnome you can choose to install nvidia drivers from the restricted drivers thingy which pops up in the top right corner somewhere. That works perfectly. To get the sound working you have to unmute the channel. Check this guide, it has all you need: http://code.google.com/p/atv-bootloader/wiki/PostMythbuntuHardy

  7. jmez Says:

    Looks like a good, easy to follow guide to installing linux on the box. I’m a bit curious about something though. Would it be possible to make an image for a linux/xbmc ‘live’ usb stick or hdd? Boot the ATV with it in, linux+xbmc, remove and you’re back? I understand how to backup what’s on it and how one would restore, but i’m not sure it’s worth the trouble yet with the work in progress.

    I don’t really know what’s going on when you boot with the patchstick, but it sure seems like you’re already running linux at that point. Why not start up xbmc?

  8. MrDingle Says:

    Anything is possible ;)

  9. David Says:

    So, this is going to completely remove the normal ATV software? Gone is the normal iTunes syncing and rental/download options?

  10. MrDingle Says:

    yup, unfortunately. But you can restore it (which will remove linux+xbmc) with the restore partition thingy. Its also possible to make it coexist and for instance only boot into linux with a special usbstick..

  11. David Says:

    If someone complied this build for OS X could it then be used with launcher? Why is Ubuntu needed?

  12. bender222 Says:

    I am stuck after the install. I have edited the boot_linux.sh and kexec prints out that it is loading linux with vesafb but then it just freezes but I hear the hdd utilization.

  13. MrDingle Says:

    bender222: use hardy instead of karmic, it uses grub v1 which will get booted automatically ( plus the broadcom driver for linux doesnt work (apparently) on versions later than hardy.)

  14. bender222 Says:

    I understood tht i was. I used the linux and nitrd files from the netboot folder that the googlecode linked in the tutrial

  15. MrDingle Says:

    osx lib/kext is out! :)

    http://dingleberry.me/2010/01/crystalhd-appletv-osx-kext-lib-is-ready-for-download/

  16. Greg Waters Says:

    Thanks for the information. XBMC is the best media player..Ever!

Leave a Reply