Kodi Community Forum
XBMC CrystalHD branch on a USB stick - 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: XBMC CrystalHD branch on a USB stick (/showthread.php?tid=64634)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


- m_lopez_h - 2009-12-21

Ok, so I downloaded the image, restored it to a USB disk and successfully booted Linux on the Apple TV. Problem is I got stuck at the Ubuntu login screen and didn't know how to get to xbmc.

Is XBMC supposed to automatically run at boot? Am I supposed to connect a keyboard/mouse to the AppleTV and login with username/password?


- cck197 - 2009-12-21

m_lopez_h Wrote:Is XBMC supposed to automatically run at boot? Am I supposed to connect a keyboard/mouse to the AppleTV and login with username/password?

Something has gone wrong, it's supposed to boot straight into XBMC automatically. My guess is XBMC exited immediately which is why you're seeing the login screen.

SSH in using the user xbmc password xbmc

The XBMC log is here: .xbmc/temp/xbmc.log

Post it on pastebin.com and I'll take a look.


- gangsta75 - 2009-12-21

Worked perfectly!
Audio (analog) + screen size + remote + subtitles!

I've used dd on OSX to create live distro on my usb transcend HD.

many thanks to Davilla and cck197 again.


- derelicte - 2009-12-22

this may be a dumb question, but how can I tell if xmbc is using the crystal hd card? a bd rip was stutter city. dvds play ok, but the cpu utilization was ~30%.

I don't see anything in the log mentioning the crystal hd card.

thanks for your image cck197!


- cck197 - 2009-12-22

Doesn't sound right:

Code:
lspci -v | grep Broadcom
02:00.0 Multimedia controller: Broadcom Corporation Unknown device 1612 (rev 01)
    Subsystem: Broadcom Corporation Unknown device 2612

grep CrystalHD .xbmc/temp/xbmc.log | head -n 3
18:15:09 T:2879347600 M: 91987968   DEBUG: CrystalHD: Input Thread Started...
18:15:09 T:2870954896 M: 91963392   DEBUG: CrystalHD: Output Thread Started...
18:15:09 T:2852334480 M: 91840512   DEBUG: CrystalHD: Opened Broadcom Crystal HD



- jessesn - 2009-12-22

After installing the cck197's image onto a USB stick. I'm getting XBMC to come up, but I don't think the Broadcom card is coming up or even being detected. Any idea if I did something wrong? I don't think there's too much I could have done to screw up the installation.

Code:
xbmc@atv:~/.xbmc/temp$ lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port (rev 03)
00:07.0 Performance counters: Intel Corporation Unknown device 27a3 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1)
02:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

Code:
xbmc@atv:~/.xbmc/temp$ grep CrystalHD xbmc.log
22:53:12 T:2953685904 M:140767232   ERROR: CrystalHD: Failed to open Broadcom Crystal HD
22:53:12 T:2953685904 M:140767232   ERROR: CrystalHD: Failed to open decoder
22:53:12 T:2953685904 M:140767232   ERROR: DVDVideoCodecCrystalHD: Failed to open Broadcom Crystal HD

Also a separate question how do we re-launch xbmc if it crashes? If I just execute xbmc I get a "could not open display" error, which makes sense, but I'm not sure how to get the xbmc to export to the primary ATV display.

Thanks for Davilla and the rest of the XBMC dev team and cck197 for all their efforts!


- jessesn - 2009-12-22

It appears for my the cause of my XBMC crashes are the due failing to initialize the CrystalHD card.

Code:
23:40:00 T:3052447584 M:144723968  NOTICE: DVDPlayer: Opening: smb://tv/30 Rock/30.Rock.S04E01.720p.HDTV.X264.mkv
23:40:00 T:2968492944 M:144723968   DEBUG: thread start, auto delete: 1
23:40:00 T:3052447584 M:144723968 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:40:00 T:2953640848 M:144723968   DEBUG: thread start, auto delete: 0
23:40:00 T:2953640848 M:144723968  NOTICE: Creating InputStream
23:40:00 T:2953640848 M:144723968   DEBUG: CFileSMB::Open - opened tv/30 Rock/30.Rock.S04E01.720p.HDTV.X264.mkv, fd=10000
23:40:00 T:2953640848 M:144723968    INFO: CDVDFactorySubtitle::GetSubtitles, searching subtitles
23:40:00 T:2953640848 M:144723968   DEBUG: CacheSubtitles: START
23:40:00 T:2953640848 M:144723968   DEBUG: CacheSubtitles: Checking for common subirs...
23:40:00 T:2953640848 M:144723968   DEBUG: CacheSubtitles: Done (time: 30 ms)
23:40:00 T:2953640848 M:144723968   DEBUG: CacheSubtitles: Searching for subtitles...
23:40:00 T:2953640848 M:144723968   DEBUG: OpenDir - Using authentication url smb://tv/30%20Rock
23:40:00 T:2953640848 M:144723968   DEBUG: CacheSubtitles: Done (time: 13 ms)
23:40:00 T:2953640848 M:144723968   DEBUG: CacheSubtitles: END (total time: 43 ms)
23:40:00 T:2953640848 M:144723968    INFO: CDVDFactorySubtitle::GetSubtitles, searching subtitles done
23:40:00 T:2953640848 M:144723968  NOTICE: Creating Demuxer
23:40:00 T:2953640848 M:144723968   DEBUG: SECTION:LoadDLL(special://xbmc/system/players/dvdplayer/avutil-50-i486-linux.so)
23:40:00 T:2953640848 M:144723968   DEBUG: Loading: /usr/share/xbmc/system/players/dvdplayer/avutil-50-i486-linux.so
23:40:00 T:2953640848 M:144683008   DEBUG: SECTION:LoadDLL(special://xbmc/system/players/dvdplayer/avcodec-52-i486-linux.so)
23:40:00 T:2953640848 M:144683008   DEBUG: Loading: /usr/share/xbmc/system/players/dvdplayer/avcodec-52-i486-linux.so
23:40:01 T:2953640848 M:142073856   DEBUG: SECTION:LoadDLL(special://xbmc/system/players/dvdplayer/avformat-52-i486-linux.so)
23:40:01 T:2953640848 M:142073856   DEBUG: Loading: /usr/share/xbmc/system/players/dvdplayer/avformat-52-i486-linux.so
23:40:03 T:2953640848 M:141561856   DEBUG: Open - probing detected format [matroska]
23:40:03 T:2953640848 M:141561856   DEBUG: Open - av_find_stream_info starting
23:40:03 T:2953640848 M:141467648   DEBUG: Open - av_find_stream_info finished
23:40:03 T:2953640848 M:141467648    INFO: ffmpeg[B00CFB90]: Input #0, matroska, from 'smb://tv/30 Rock/30.Rock.S04E01.720p.HDTV.X264.mkv':
23:40:03 T:2953640848 M:141467648    INFO: ffmpeg[B00CFB90]:   Duration: 00:21:15.84, start: 0.000000, bitrate: N/A
23:40:03 T:2953640848 M:141467648    INFO: ffmpeg[B00CFB90]:     Stream #0.0(eng): Video: h264, yuv420p, 1280x720, PAR 1:1 DAR 16:9, 23.98 tbr, 1k tbn, 47.95 tbc
23:40:03 T:2953640848 M:141467648    INFO: ffmpeg[B00CFB90]:     Stream #0.1: Audio: ac3, 48000 Hz, 6 channels, s16
23:40:03 T:2953640848 M:141467648  NOTICE: Opening video stream: 0 source: 256
23:40:03 T:2953640848 M:141467648  NOTICE: Creating video codec with codec id: 28
23:40:03 T:2953640848 M:141467648    INFO: Trying Broadcom Crystal HD Decoder...
23:40:03 T:2953640848 M:141467648   DEBUG: FactoryCodec - Video:  - Opening
23:40:03 T:2953640848 M:141561856   ERROR: CrystalHD: Failed to open Broadcom Crystal HD

I re-opened up my AppleTV to try to re-seat the Mini-PCI card, but this didn't seem to help. Attached is a picture of my install in case anyone sees anything out of the ordinary.

Image


- davilla - 2009-12-22

jessesn Wrote:After installing the cck197's image onto a USB stick. I'm getting XBMC to come up, but I don't think the Broadcom card is coming up or even being detected. Any idea if I did something wrong? I don't think there's too much I could have done to screw up the installation.

Code:
xbmc@atv:~/.xbmc/temp$ lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port (rev 03)
00:07.0 Performance counters: Intel Corporation Unknown device 27a3 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1)
02:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

Stop, do not pass go, lspci does not show the Broadcom card. You would see

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


- jessesn - 2009-12-22

Davilla thanks for the response. I suppose this means my card is defective?


- davilla - 2009-12-22

jessesn Wrote:Davilla thanks for the response. I suppose this means my card is defective?

Unfortunately, yes. If it's in the socket and screwed down, it's been inserted correctly as you can't screw it down if the alignment is off.

lspci will always show any device that has a working pci(e) bus interface regardless of if there's a driver attached or not. Since your card does not show up in lspci, Linux does not see it.


- cck197 - 2009-12-22

jessesn Wrote:Also a separate question how do we re-launch xbmc if it crashes? If I just execute xbmc I get a "could not open display" error, which makes sense, but I'm not sure how to get the xbmc to export to the primary ATV display.

You can restart XBMC without rebooting by running

Code:
sudo /etc/init.d/gdm restart



- m_lopez_h - 2009-12-22

m_lopez_h Wrote:Ok, so I downloaded the image, restored it to a USB disk and successfully booted Linux on the Apple TV. Problem is I got stuck at the Ubuntu login screen and didn't know how to get to xbmc.

Is XBMC supposed to automatically run at boot? Am I supposed to connect a keyboard/mouse to the AppleTV and login with username/password?

Nevermind got it working. Not sure if the problem was due to not having the crystal hd card installed the first time I ran Linux or just a random crash. 720p plays back smoothly (haven't tried 1080p yet) but SD content seems to have alot of macroblock artifacts.


- davilla - 2009-12-22

m_lopez_h Wrote:Nevermind got it working. Not sure if the problem was due to not having the crystal hd card installed the first time I ran Linux or just a random crash. 720p plays back smoothly (haven't tried 1080p yet) but SD content seems to have alot of macroblock artifacts.

SD content should be vectored to ffmpeg for software decoding. Depends on which crystalhd rev. Remember, crystahd branch is a development branch and some breakage is expected to occur.


- cck197 - 2009-12-22

davilla Wrote:SD content should be vectored to ffmpeg for software decoding. Depends on which crystalhd rev. Remember, crystahd branch is a development branch and some breakage is expected to occur.

I actually did another build last night if anyone is interested, it seems like video start up much faster now. I'm amazed I can build random revisions and it be this stable!

To update, ssh into your Apple TV and run this command:

Code:
cd /; wget -O - http://s150912529.onlinehome.us/quack/xbmc_r25946.tar.gz | sudo tar zxvf -



- davilla - 2009-12-22

cck197 Wrote:I actually did another build last night if anyone is interested, it seems like video start up much faster now. I'm amazed I can build random revisions and it be this stable!

I do try to keep the branch more or less stable Smile

Video start up is much faster now, only one firmware download instead of downloading firmware each time the crystalhd is uses to play video content. Saves 3-4 seconds.