Kodi Community Forum
[LINUX] Apple TV Crystalbuntu (Ubuntu Linux and Crystal HD) Disk Image for Apple TV - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: [LINUX] Apple TV Crystalbuntu (Ubuntu Linux and Crystal HD) Disk Image for Apple TV (/showthread.php?tid=74992)



- kkillebrew - 2010-10-28

davilla Wrote:xbmc.log

Looking at the log I see that the TV is reporting back that it is capable of 1360x768 only. But this is wrong because I run it in 1080p with other devices. I believe this does explain why at times the TV says "no signal" when it is syncing with the cable box and I have to turn it off and on a few times to get it to sync. With the ATV/XBMC it just immediately jumps to 720. Is there a way to ignore EDID and force XBMC into 1080p?

20:48:21 T:3043268448 M:195715072 NOTICE: Setup SDL
20:48:21 T:3043268448 M:195555328 INFO: Available videomodes (xrandr):
20:48:21 T:3043268448 M:195555328 INFO: Number of connected outputs: 1
20:48:21 T:3043268448 M:195555328 INFO: Output 'default' has 62 modes
20:48:21 T:3043268448 M:195555328 INFO: ID:0x15c Name:1360x768 Refresh:60.000000 Width:1360 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x15d Name:1280x768 Refresh:60.000000 Width:1280 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x15e Name:1280x720 Refresh:60.000000 Width:1280 Height:720
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x15f Name:1152x768 Refresh:55.000000 Width:1152 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x160 Name:1024x768 Refresh:85.000000 Width:1024 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x161 Name:1024x768 Refresh:75.000000 Width:1024 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x162 Name:1024x768 Refresh:70.000000 Width:1024 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x163 Name:1024x768 Refresh:60.000000 Width:1024 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x164 Name:1024x768 Refresh:87.000000 Width:1024 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x165 Name:960x720 Refresh:75.000000 Width:960 Height:720



- jdandc - 2010-10-28

Sam.Nazarko Wrote:Hey,

I'm sure many of you are hearing about the superior performance of CrystalHD with Linux in comparison to the Apple TV OS and want to try it for yourselves. I am posting a disk image that will allow you to do just that without needing any Linux knowledge at all Smile

I have optimised a Ubuntu 8.0.4 installation for you and have imaged it so you can easily restore it to a 4GB flash drive. However, please note that I have not minimalised this install much, it is OpenOffice short of a fully fledged Ubuntu desktop. I recommend that you remove the packages that you do not want and customise the installation to your preference.

Full Image Download (Sam Nazarko) ~ 780MB

Code:
md5 hash: d4cb24bca0042e84425ab23454a5bab4
download:
[url=http://www.surfanddestroy.org/resources/xbmc-r28256-crystalHD-1.0.3-alsa-1.019-nvidia100.14.19-hardy-cust_machkernel-2.6.24.27.rar]http://www.surfanddestroy.org/resources/xbmc-r28256-crystalHD-1.0.3-alsa-1.019-nvidia100.14.19-hardy-cust_machkernel-2.6.24.27.rar[/url]
[url=http://quickupload.net/gqtmqe24q0ey/xbmc-r28256-crystalHD-1.0.3-alsa-1.019-nvidia100.14.19-hardy-cust_machkernel-2.6.24.27-quickupload.net.rar.html]http://quickupload.net/gqtmqe24q0ey/xbmc-r28256-crystalHD-1.0.3-alsa-1.019-nvidia100.14.19-hardy-cust_machkernel-2.6.24.27-quickupload.net.rar.html[/url]
[url=http://stmlabs.com/resources/xbmc-r28256-crystalHD-1.0.3-alsa-1.019-nvidia100.14.19-hardy-cust_machkernel-2.6.24.27.rar]http://stmlabs.com/resources/xbmc-r28256-crystalHD-1.0.3-alsa-1.019-nvidia100.14.19-hardy-cust_machkernel-2.6.24.27.rar[/url]
Here are the key features of the disk image:
  • XBMC R28256 - latest SVN build from XBMC repository

  • Crystal HD Driver 1.0.3 - latest stable version (r26)

  • ALSA 1.0.19 - which has been configured to offer sound over HDMI

  • Customised mach_kernel - meaning that Linux is booted directly which is a little faster and the boot process is more streamlined.

  • Linux 2.6.24-27 kernel - for compiling ALSA drivers (one of the functions was not backported to 2.6.24-26, so had to update), as well as NVIDIA drivers.

  • NVIDIA 100.14.19 Drivers - so that HDMI audio is not broken, also fixed two issues:
    1. Turned off TurboCache - to conserve memory
    2. Turned off DynamicTwinView to fix issues with refresh rate
Advantages over native Apple TV OS:
  • 1080p output support (aTV OS will only allow a resolution of 1280x720p then upscaled to 1920x1080p)
  • 23.976p refresh rate
  • Better CrystalHD performance than aTV OS at this point of writing
  • Snappier interface
For your reference:
  • The SSH username and password is xbmc, xbmc. This can be changed via ssh with command "passwd"
  • For sound output over HDMI in XBMC with ALSA 1.0.19, use custom device: "plughw:0,3". This has been done already, so for those planning to use HDMI sound, no change is necessary in audio settings. Remember to configure what codecs your receiver is compatible with.
  • To verify the detection of the Crystal HD card, enter the following command through SSH:
    Code:
    "lspci | grep Broadcom"
    if the card is detected, then the expected output will be:

    Code:
    02:00.0 Multimedia controller: Broadcom Corporation Unknown device 1612 (rev 01)

  • If you update the Linux kernel, you must recompile the mach_kernel from atv-bootloader source by putting in the new initrd.gz and vmlinuz from "/boot", else aTV will not boot the new kernel. Darwin Cross Tools are required for compiling atv-bootloader (included). You'll then want to install the new headers and modules.
  • I have disabled video thumbnail generation and file information extraction. This is because the subversion build included has issues with this feature. Having this setting enabled will cause performance issues.
How to restore the disk image:

Note: Use a high speed flash drive for optimal performance.

If you are restoring to a hard drive, and it will be the only mass storage device connected to aTV, you will need to modify com.apple.boot.plist kernel parameters, for they assume that the installation is located at /dev/sdb2.

Under Linux:

Linux will let you natively image your USB without third party utilities. After downloading the image, extract it with:

then write it to USB with:

Code:
sudo dd if=xbmc-r28256-crystalHD-1.0.3-alsa-1.019-nvidia100.14.19-hardy-cust_machkernel-2.6.24.27.img of=device bs=4096
substituting device with the location of the drive to restore to. If this is the only USB device connected, it will be /dev/sdb.

Under Windows:

You can restore the disk image (after extracting) with USB Image Tool, nab the latest version from here. Extract the archive and run the application as an Administrator.

It is important you run it as an administrator as it is necessary to restore the image in Device Mode for correct functionality

Note: To regain full access to your USB in Windows at a later date, restore this 512 byte bootsector

Minimalised Disk Image by pin87a ~ 650MB

This is a minimal version of my disk image. It means that there is not a Ubuntu desktop, and it uses the XBMC live package.

Code:
download:
[url=http://quickupload.net/eqjrcnh1gfwm/atv-usbboot-xbmcbuntu-crystalhd-hdmi-28256-R3-quickupload.net.rar.html]http://quickupload.net/eqjrcnh1gfwm/atv-usbboot-xbmcbuntu-crystalhd-hdmi-28256-R3-quickupload.net.rar.html[/url]
[url=http://www.surfanddestroy.org/resources/atv-usbboot-xbmcbuntu-crystalhd-hdmi-28256-R3.rar]http://www.surfanddestroy.org/resources/atv-usbboot-xbmcbuntu-crystalhd-hdmi-28256-R3.rar[/url]
[url=http://meaninglesswebsite.com/atv-usbboot-xbmcbuntu-crystalhd-hdmi-28256-R3.rar]http://meaninglesswebsite.com/atv-usbboot-xbmcbuntu-crystalhd-hdmi-28256-R3.rar[/url]
[url=http://stmlabs.com/resources/atv-usbboot-xbmcbuntu-crystalhd-hdmi-28256-R3.rar]http://stmlabs.com/resources/atv-usbboot-xbmcbuntu-crystalhd-hdmi-28256-R3.rar[/url]
Features:
  • Minimal Ubuntu 8.0.4
  • atvclient (http://wiki.github.com/Evinyatar/atvclient/)
  • crystalhd 1.0.3 (http://code.google.com/p/crystalhd-for-osx/)
  • alsa 1.0.19 (needed for hdmi audio)
  • Nvidia Driver - 100.14.19 (only driver that allows hdmi audio to work properly)
  • XBMC svn r28256
  • xbmc-live (used to auto-launch xbmc, auto adjust volume levels, etc..)
  • powersaved (auto-throttle cpu to minimize heat)
  • custom mach_kernel (2.6.24-28-generic) for atv-bootloader (allows atv-bootloader to load ubuntu directly)

Just like my image it includes atvclient, crystalHD, ALSA, functional Nvidia drivers, r28256 of XBMC, cpu throttling and a custom mach_kernel (mine uses older kernel though). The same imaging methods apply. The SSH username and password are the same, as is all other information under the reference heading.

Requires 4GB (or larger) usb drive. Image is slightly undersized so it should fit on all 4GB drives.

-----

I should be done with a new version of atv-win in a couple of months, allowing you to customise the software you want to install like the Mac version, and allowing custom scripts. Check my twitter for updates.

Enjoy!
How do you update the Pin87a build with nightly versions for the ATV ?
Currently have Dharma beta3 but when I click stop, it requires a reboot to select another media file to watch.
Also, large files take a long time to display, but when they do, playback is great.
I didnt have this issue on the previous ATV build, before I used the LIVE update.


- davilla - 2010-10-28

kkillebrew Wrote:Looking at the log I see that the TV is reporting back that it is capable of 1360x768 only. But this is wrong because I run it in 1080p with other devices. I believe this does explain why at times the TV says "no signal" when it is syncing with the cable box and I have to turn it off and on a few times to get it to sync. With the ATV/XBMC it just immediately jumps to 720. Is there a way to ignore EDID and force XBMC into 1080p?

20:48:21 T:3043268448 M:195715072 NOTICE: Setup SDL
20:48:21 T:3043268448 M:195555328 INFO: Available videomodes (xrandr):
20:48:21 T:3043268448 M:195555328 INFO: Number of connected outputs: 1
20:48:21 T:3043268448 M:195555328 INFO: Output 'default' has 62 modes
20:48:21 T:3043268448 M:195555328 INFO: ID:0x15c Name:1360x768 Refresh:60.000000 Width:1360 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x15d Name:1280x768 Refresh:60.000000 Width:1280 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x15e Name:1280x720 Refresh:60.000000 Width:1280 Height:720
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x15f Name:1152x768 Refresh:55.000000 Width:1152 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x160 Name:1024x768 Refresh:85.000000 Width:1024 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x161 Name:1024x768 Refresh:75.000000 Width:1024 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x162 Name:1024x768 Refresh:70.000000 Width:1024 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x163 Name:1024x768 Refresh:60.000000 Width:1024 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x164 Name:1024x768 Refresh:87.000000 Width:1024 Height:768
20:48:21 T:3043268448 M:195555328 INFO: Pixel Ratio: 1.000000
20:48:21 T:3043268448 M:195555328 INFO: ID:0x165 Name:960x720 Refresh:75.000000 Width:960 Height:720

Your TV's EDID is borked, a common problem. There are existing threads in this forum about configuring a custom EDID and of course google knows all.


- davilla - 2010-10-28

Leander Wrote:I believe I am experiencing the same problem. However, if I wait long enough (between 2 and 3 minutes), the system will become responsive again, but then the screen will just display a snow pattern.
I have also assumed that this is a problem between the TV and the Nvidia driver/hardware. I'm running Dharma b3 on "Crystalbuntu" on a 160GB ATV, with a 70012 CrystalHD (driver revision 171) with a Panasonic TX-P42G20E television.

@davilla: do you mean that this should already be fixed in Dharma b3? Or that it was fixed after b3 and the fix will be in b4?

There were issues with "adjust refresh" in beta3. BUT if you HDTV does strange things when changing the refresh rate, there's nothing XBMC can do. That's an issue between the video driver and the HDTV.


- fl0w - 2010-10-28

Is Logitech Harmony supported out of the box with Crystalbuntu on AppleTV?


- docentore - 2010-10-29

fl0w Wrote:Is Logitech Harmony supported out of the box with Crystalbuntu on AppleTV?

yes, but best is to set it as Plex


- rolandb5 - 2010-10-29

docentore Wrote:yes, but best is to set it as Plex
Harmony support out of the box? I only see the Apple remote.


- docentore - 2010-10-29

mine works


- fl0w - 2010-10-29

docentore Wrote:yes, but best is to set it as Plex

Plex?


- simonp - 2010-10-29

I couldn't find anything referring to Harmony Remote support in the settings when I switched to crystalbuntu. There was such a setting in XBMC for OS X.

To get it working:

In the harmony software, setup the remote for use with the "Plex" app.

On the Linux/AppleTV you need to recompile and install atvclient using an altered source file.

Code:
sudo apt-get install git-core libusb-dev pkg-config
git clone git://github.com/Evinyatar/atvclient.git
cd atvclient

Get this file here: http://pastebin.com/download.php?i=ZSwp7snn
and rename it to atvclient.cpp
Then:

Code:
cp atvclient.cpp src/atvclient.cpp
./configure && make
sudo make install
sudo /etc/init.d/atvclient restart
cd ..

This is what it took for me with a Harmony 880 remote.


Resizing media partition on ATV - moonwalker - 2010-10-29

Hello,
First of all thanks to all the people who have helped build such a wonderful media expierence!
I've got everything working! Except for one thing.No
Please, (i've tried everything) help me with resizing my linux media partition on the ATV.
My internal drive is 160 GB. I understand I have to use the ATV bootloader stick to telnet in to my ATV.
I need a step to step guide how to use parted (patched?) to enlarge the media partition (sda3).
Thank you !!Smile


- rolandb5 - 2010-10-29

simonp Wrote:Get this file here: http://pastebin.com/download.php?i=ZSwp7snn
and rename it to atvclient.cpp
Then:

Being a total linux rookie, how do a either download that file and rename that via ssn or upload such a file from my mac/windows to the appletv (ftp?)


xbmc crash on stop of HD video - mrhyde69 - 2010-10-29

just like the title says...xbmc restarts (crashes) when a HD video is stopped, either manually or @ the end of the video. I'm running Pin's image from the internal hdd.

XBMC r34731

xbmc_crashlog-20101029_021414.log
xbmc.log

any suggestions would be greatly appreciated


- fl0w - 2010-10-29

simonp Wrote:I couldn't find anything referring to Harmony Remote support in the settings when I switched to crystalbuntu. There was such a setting in XBMC for OS X.

To get it working:

In the harmony software, setup the remote for use with the "Plex" app.

On the Linux/AppleTV you need to recompile and install atvclient using an altered source file.

Code:
sudo apt-get install git-core libusb-dev pkg-config
git clone git://github.com/Evinyatar/atvclient.git
cd atvclient

Get this file here: http://pastebin.com/download.php?i=ZSwp7snn
and rename it to atvclient.cpp
Then:

Code:
cp atvclient.cpp src/atvclient.cpp
./configure && make
sudo make install
sudo /etc/init.d/atvclient restart
cd ..

This is what it took for me with a Harmony 880 remote.

but i don't want to compile XBMC, thanks anyway Big Grin

someone tried to replace the internal HDD for a SSD? Is it faster when you run Crystalbuntu from the internal HDD?


- kkillebrew - 2010-10-29

davilla Wrote:Your TV's EDID is borked, a common problem. There are existing threads in this forum about configuring a custom EDID and of course google knows all.

Something is screwy. When I turn off EDID modes in xorg.conf and log a verbose X startup session there are no validated 1920x1080 modes available. EDID modes show 1920x1080 available in X but they don't show up in XBMC. When I add a custom mode line in xorg.conf to match the supposed EDID modes listed in the X log all I get is the scrolling starting X loop. There must be some mode line that will work because other devices work at 1080. I'm beginning to suspect a basic incompatibility between the Nvidia chip and this LG TV (model LB425B).

The upside of all this is that my wife is so sick of me jacking with the ATV and the LG TV in our bedroom that she has given her blessing to buy a new flatscreen LED so I'll stop.