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)



- pklee - 2010-08-10

pklee Wrote:hello. total linux noob here and i'm using pin87a's img. I got the image to the usb drive but when i boot it hangs at "Begin: Waiting for root file system... ..." then i get the following error.

Check root = bootarg cat /proc/cmdline or missing modules, devices: cat /proc/modules ls /dev
Alert! /dev/sdb3 does not exist. Dropping to Shell

anybody know how i fix this?

Looks like i'm running in this same error http://forum.xbmc.org/showpost.php?p=566738&postcount=621 but i'm referencing the correct drive in my command. i'm using osx to run this.
sudo dd if=atv-usbboot-xbmcbuntu-crystalhd-hdmi-28256-R3.img of=/dev/disk2 bs=4096

i checked disk utility and it's populating with disk2, the original partition on the stick was referenced as disk2s2.

I'm totally lost...Huh


- defiler - 2010-08-10

Thank you Sam / Frumpy / Master - I've downloaded the new CrystalHD driver, and installed it as per the instructions. It's still doing exactly the same thing.

I'm going to try updating to svn32246 and see if that helps anything.

Update:

Nnngggg! None of the newer builds appear to have CrystalHD in them. I know someone said the latest doesn't, so I'm guessing that's everything later than 31718.

Now, I understand that one of my movies (2001) is crapping out because of a known bug - that's fair enough. The ones with the artefacts across the screen, though, have not cleaned up by using the latest crystalhd drivers. This is the info the driver is giving me at the command-line:

Code:
root@AppleTV:~# modinfo crystalhd
filename:       /lib/modules/2.6.24-28-generic/kernel/drivers/video/broadcom/crystalhd.ko
alias:          crystalhd
license:        GPL
description:    Broadcom Crystal HD Decoder Driver
author:         Prasad Bolisetty <[email protected]>
author:         Naren Sankar <[email protected]>
srcversion:     803303751EFA43C4AAED9F3
alias:          pci:v000014E4d00001615sv*sd*bc*sc*i*
alias:          pci:v000014E4d00001612sv*sd*bc*sc*i*
depends:
vermagic:       2.6.24-28-generic SMP mod_unload 586

Code:
root@AppleTV:~# dmesg | grep crystalhd
[   55.174886] Loading crystalhd v3.5.0
[   56.086708] crystalhd 0000:02:00.0: Starting Device:0x1612
[   56.086765] crystalhd 0000:02:00.0: bar0:0x22400000-0x00010000  bar2:0x22000000-0x00400000
[   56.086802] crystalhd 0000:02:00.0: i2o_addr:0xd1220000   Mapped addr:0xd1280000

Is it worth me trying to snip one of these videos down to a 2-3 minute clip so that one of the devs can see the problem first-hand?


- dongioia - 2010-08-10

Sam.Nazarko Wrote:Yeah but doing that will take away your CrystalHD support as it will install a build that does not have CrystalHD functionality. You can however update your driver. Bleeding edge:

Code:
mkdir crystalHD
svn checkout http://crystalhd-for-osx.googlecode.com/svn/trunk/
cd crystalhd/linux_lib/libcrystalhd
make
sudo make install
cd ../../driver/linux
autoconf
./configure
make
sudo make install
sudo modprobe crystalhd
cd
rm -rf crystalHD

Does someone know the differences between the above svn repository and
Quote:git://git.wilsonet.com/crystalhd.git/
?


- tooshna - 2010-08-10

Philmatic Wrote:All you need is a atv-boot enabled thumb-drive, and a second thumb-drive with JUST the IMG file on it, NOT A RESTORED VERSION OF THE IMAGE. It should literally be pin87a's IMG file on the root of a thumb-drive.

Then you need to mount the thumb-drive with the IMG file and cd into the directory, the following should then work.

Code:
sudo dd if=atv-usbboot-xbmcbuntu-crystalhd-hdmi-28256-R3.rar of=/dev/sda
Then when you're done, change the com.apple.Boot.plist parameter to /dev/sda3 and reboot. You should be golden...

Can someone tell me where I am going wrong with the following code:
(I discovered that my usb drive came up as sdd sdd1 & sdd2, not sure why there is 3. I formatted it as FAT32 and simply copied pins .img file onto the usb.)

Code:
login as root/root
cd/mnt/
su
mkdir usbflash
ls /mnt/
mount /dev/sdd1 /mnt/usbflash
sudo dd if=atv-usbboot-xbmcbuntu-crystalhd-hdmi-28256-R3.img of=/dev/sda

It then comes up with the error: device or resource is busy


- matbor - 2010-08-10

@Sam.Nazarko

Thanks for the fantastic work, quick question any chance you can update you first post telling where to download your image with complete instructions on how to update to the latest xbmc svn build !? Be easy i'm a novice Laugh Maybe a link to this http://forum.xbmc.org/showpost.php?p=577311&postcount=738 if that is the way you recommend to update!


- davilla - 2010-08-10

dongioia Wrote:Does someone know the differences between the above svn repository and
?

Don't read the forums much do you Smile

The git tree is the "official" upstream source for Linux driver/lib.
The svn tree is the "official" upstream source for OSX driver/lib but it also contains the Linux driver/lib.

Right now the two trees are stable and in sync. Sometime they get out of sync with the git tree or the svn tree being more up to date.


- MasterOe - 2010-08-10

i'm not able to download the 31718 version any more ....No


- davilla - 2010-08-10

MasterOe Wrote:i'm not able to download the 31718 version any more ....No

Allow me to be your search-bitch Smile http://forum.xbmc.org/showpost.php?p=582147&postcount=893


- MasterOe - 2010-08-10

davilla Wrote:Allow me to be your search-bitch Smile http://forum.xbmc.org/showpost.php?p=582147&postcount=893

easy to say Huh , but it's not easy to find the correct thread Wink

thanks for the information that "ceros started to cleanup the ppa mess."

means i'm have to stay at the R28256 Oo


- defiler - 2010-08-10

MasterOe Wrote:means i'm have to stay at the R28256 Oo

To be honest, from where I'm sitting 28256 is the best bet for now. It's been the most successful at HD playback for me. Once CrystalHD is re-added to the PPA downloads, I'll be looking at updating again, because clearly there'll be a load of other improvements.


Writing disk image to blank hard drive - liquidinsect - 2010-08-11

Hello all,

I really appreciate the work that has been done on this project. I am trying to figure out how to install this image to a seperate hard drive (one without the ATV OS) so I can remove my USB drive and keep the ATV OS drive untouched. I've written the image directly to a hard drive using physdiskwrite and it seems to work for the most part except for a few things. I changed what I thought were all the entries pointing to /dev/sdb* but I think I may have missed some. When it boots up I get some errors about modules not being loaded correctly, which in turn keeps X from starting among other things. Is there a script or something I'm missing that's hard coded to point to /dev/sdb* ?


- pklee - 2010-08-11

pklee Wrote:Looks like i'm running in this same error http://forum.xbmc.org/showpost.php?p=566738&postcount=621 but i'm referencing the correct drive in my command. i'm using osx to run this.
sudo dd if=atv-usbboot-xbmcbuntu-crystalhd-hdmi-28256-R3.img of=/dev/disk2 bs=4096

i checked disk utility and it's populating with disk2, the original partition on the stick was referenced as disk2s2.

I'm totally lost...Huh

Any help with this? I even tried using the usb mount tool for windows on the first page. I first restored the original bootsector but i'm still geting the same error during the boot process Sad please help


- tuckbodi - 2010-08-11

pklee Wrote:Any help with this? I even tried using the usb mount tool for windows on the first page. I first restored the original bootsector but i'm still geting the same error during the boot process Sad please help

Did you unmount the partition in Disk Utility? If you did, and you have the correct drive called out in the dd command, then it possibly might be you don't have a big enough stick. If you're using a 4gb then try a bigger one (i.e. 8gb).


- MasterOe - 2010-08-11

liquidinsect Wrote:Hello all,

I really appreciate the work that has been done on this project. I am trying to figure out how to install this image to a seperate hard drive (one without the ATV OS) so I can remove my USB drive and keep the ATV OS drive untouched. I've written the image directly to a hard drive using physdiskwrite and it seems to work for the most part except for a few things. I changed what I thought were all the entries pointing to /dev/sdb* but I think I may have missed some. When it boots up I get some errors about modules not being loaded correctly, which in turn keeps X from starting among other things. Is there a script or something I'm missing that's hard coded to point to /dev/sdb* ?


everthing you should know is in this thread, i read it two times until i get it to work...

you have to edit the com.apple.boot.plist


Re-image pin's image co-existant with aTV OS? - frumpy_uk - 2010-08-11

ignore, I'm an idiot