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)



- Bagheera - 2010-10-20

Hi,
sry to bother you, but im a complete idiot with this linux based stuff Wink

Well my goal is simply to update pins image (XBMC + Crystal Drivers). I did some search and found this "how-to":
http://forum.xbmc.org/showpost.php?p=571919&postcount=668

Well i dont understand it but i guess i'll figure it out somehow Big Grin
But the posts says "don't run this on stock atv". I have a stock atv with an USB stick with Pins image to boot XBMC. Do i need to mod the ATV somehow to run an update?!

If im complete wrong, could anyone be so nice to help me out: How should i do this update (xbmc & Crystal Drivers)

Again: sorry to bother you, but i dont want to brick my ATV Wink


- thnmnt - 2010-10-20

bagheera - if you're booting into linux from the thumb drive and everything looks good, then go ahead and follow that link- it will work. by Stock atv they mean booting into the original atv(osx) - that obviously wouldn't work for updating!

you'll want to make the following changes though since crystalhd drivers have been updated since that guide:

instead of:
Code:
svn checkout http://crystalhd-for-osx.googlecode.com/svn/trunk crystalhd-r156
cd crystalhd-r156/crystalhd/linux_lib/libcrystalhd

do:
Code:
svn checkout http://crystalhd-for-osx.googlecode.com/svn/trunk/
cd trunk/crystalhd/linux_lib/libcrystalhd

the rest is the same as the guide.


- pkolkkal - 2010-10-20

mrhyde69 Wrote:thx, here's what blkid outputs

You copypasted the old pastebin, but I'm sure you'll manage anyhow Smile


- fl0w - 2010-10-20

fl0w Wrote:xbmc.log : http://pastebin.com/gAXrzmTW
dmesg : http://pastebin.com/FnQ9TQPj
Also, XBMC crashes after few seconds of playback with 1080p
Playback is not smooth with 720p

1080p and 720p smooth issues were due to swap not used, I corrected it.
Green overlay is still present Sad

Crystal HD + MythTV = same issue : http://www.gossamer-threads.com/lists/mythtv/dev/453116

What is required if I want to submit a bug to crystalhd-for-osx?


- frumpy_uk - 2010-10-20

grey Wrote:hey guys,

didn't anyone of you experienced a kinda "grey out" image when using linux on aTV?

don't know how to explain... say the colours are not saturated enough or something...
frumpy_uk Wrote:I've experienced a strange issue since day 1 on linux on the atv (pin87a on internal disk), the brightness fluctuates seemingly randomly in the gui. Fine while playing movies, so never bothered reporting it. Is that similar to your issue?
In case anyone has similar issues, check your display first. I have a Sony Bravia which had a bunch of automatic image "enhancements" switched on in settings. It was this which was causing the problems for me. Switched em all off, seems to be sorted now.


- davilla - 2010-10-21

fl0w Wrote:Help me Sad
Using latest XBMC build from repository and latest Crystal HD drivers from crystalhd-for-osx svn

What do you have renderer set to, auto, arb or glsl ?


- JDizzy - 2010-10-21

thnmnt Wrote:bagheera - if you're booting into linux from the thumb drive and everything looks good, then go ahead and follow that link- it will work.

Followed the guide and actually updated XBMC and CrystalHD on my stick. Everything was working great afterwards for a couple hours then things started to go down hill.
Now I reboot with the stick and linux comes up fine but XBMC gets caught in an endless loop trying to boot. (you see the little x on screen, then it starts booting XBMC again).
I was originally running Pins image and think I am not using the entire 8GB that is on the stick due the image only using part of the stick initially. I have a 8GB stick and am pretty sure I have run out of room.

Is it possible to check if there is more room, and then somehow use it?
or....
If I was to plug an external USB hard drive into the ATV, could I use the same guide and install the update on it? (or would it only use what was needed and I would eventually run out of room?) The drive is 1TB.

I'm at a loss and really don't like the standalone ATV.


- davilla - 2010-10-21

JDizzy Wrote:Followed the guide and actually updated XBMC and CrystalHD on my stick. Everything was working great afterwards for a couple hours then things started to go down hill.
Now I reboot with the stick and linux comes up fine but XBMC gets caught in an endless loop trying to boot. (you see the little x on screen, then it starts booting XBMC again).
I was originally running Pins image and think I am not using the entire 8GB that is on the stick due the image only using part of the stick initially. I have a 8GB stick and am pretty sure I have run out of room.

Is it possible to check if there is more room, and then somehow use it?
or....
If I was to plug an external USB hard drive into the ATV, could I use the same guide and install the update on it? (or would it only use what was needed and I would eventually run out of room?) The drive is 1TB.

I'm at a loss and really don't like the standalone ATV.

ssh in and check dmesg or .xsession_errors


- fl0w - 2010-10-21

davilla Wrote:What do you have renderer set to, auto, arb or glsl ?

Hi davilla Smile
It's set to auto
Edit: working with GLSL, why didn't I test this setting! Big Grin
Thanks anyway

Edit2: BTW, which setting is the best? ARB or GLSL? I just read that bicubic/lanczos shader is not supported by ARB


- JDizzy - 2010-10-21

davilla Wrote:ssh in and check dmesg or .xsession_errors

Thanks!
I checked .xsession_errors and it said I was out of disk space. It reference a crash log that didn't get written due to the condition.

I deleted the skin I had loaded onto the stick and now it boots again with the default Confluence skin. Is there an easy way to utilize the entire stick?

Quote:Here is what "df" shows on 8GB stick:

Filesystem Size Used Avail Use% Mounted on
/dev/sdb3 2.4G 2.1G 126M 95% /
varrun 122M 72K 122M 1% /var/run
varlock 122M 0 122M 0% /var/lock
udev 122M 52K 122M 1% /dev
devshm 122M 0 122M 0% /dev/shm

I wouldn't mind blowing off osx and installing stick image but am apprehensive. If I killed ATV the wife would do same to me!

Would process below be a good way to go? (it seems fairly straight forward)
Just not sure if this is installing image to internal ATV HDD, or external and also the part about 'change the entry' (that can be done using ssh "sudo nano /mnt/com.apple.boot.plist" and then editing?)
Any help appreciated!

Quote:Originally Posted by liquidinsect
Since I wasn't getting much help here I figured this out with trial and error and decided to spell it out for anyone else wondering the same thing. Here is how I was able to write the image to a blank hard drive:

-Boot up your ATV with the image written to a USB stick first

-Log in via SSH and run:
sudo dd if=/dev/sdb of=/dev/sda

-Once that is done reboot for the ATV to update the list of partitions

-Back in SSH run:
sudo fsck.hfsplus /dev/sda2
sudo mount /dev/sda2 /mnt
sudo nano /mnt/com.apple.boot.plist

-Change the entry with /dev/sdb3 to /dev/sda3

-Remove the USB stick and reboot. You should be running completely off HDD now. If you have problems (like I did) try running dd if=/dev/zero of=/dev/sda to blow away any partitions that may have been on the drive previous and start the whole process over.



- davilla - 2010-10-21

JDizzy Wrote:Thanks!
I checked .xsession_errors and it said I was out of disk space. It reference a crash log that didn't get written due to the condition.

I deleted the skin I had loaded onto the stick and now it boots again with the default Confluence skin. Is there an easy way to utilize the entire stick?



I wouldn't mind blowing off osx and installing stick image but am apprehensive. If I killed ATV the wife would do same to me!

Would process below be a good way to go? (it seems fairly straight forward)
Just not sure if this is installing image to internal ATV HDD, or external and also the part about 'change the entry' (that can be done using ssh "sudo nano /mnt/com.apple.boot.plist" and then editing?)
Any help appreciated!

There are several threads about expanding the linux partition. Should not be hard to find.


- fl0w - 2010-10-21

Is there any way to get subtitles in correct position automatically? when I play a 4:3 video then a 16:9 video I have to change the position every time, very annoying.
For example, VLC or The KMPlayer have the ability to position subtitles correctly and automatically.


- davilla - 2010-10-22

fl0w Wrote:Is there any way to get subtitles in correct position automatically? when I play a 4:3 video then a 16:9 video I have to change the position every time, very annoying.
For example, VLC or The KMPlayer have the ability to position subtitles correctly and automatically.

This would be a good example of a thread jack Smile


- fl0w - 2010-10-22

davilla Wrote:This would be a good example of a thread jack Smile

okay I'll create a topic, but FYI I'm running Crytalbuntu so it's still in the subject...


- davilla - 2010-10-22

fl0w Wrote:okay I'll create a topic, but FYI I'm running Crytalbuntu so it's still in the subject...

"any way to get subtitles in correct position automatically", that's a xbmc general question. You will get a much better response by posting outside a thread specific topic.