[LINUX] Problems compiling crystalhd branch

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
Post: #61
csbook Wrote:I have bcmFilePlayFW.bin in /usr/lib but it doesn't seem to make much difference being there. Is there a step I'm missing to get this picked up?

"bcmFilePlayFw.bin", not "bcmFilePlayFW.bin"


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
andrereis Offline
Junior Member
Posts: 30
Joined: Sep 2009
Reputation: 0
Post: #62
davilla Wrote:Strange, how can you have two files with the exact name in the same place ? Ahh, I see "w" vs "W" at the end. Needs to be "bcmFilePlayFw.bin"
I guess it would be problematic in ATV's native system, as it is typically case-insensitive HFS.

Quote:No matches to anything I have Smile
I gotta hack into your computer one of these days, try and get a hold of all that good stuff you've been keeping to yourself =P

I just hope Broadcom doesn't pull the rug under our feet (arrington's crunchpad style). Cheers
Edit: it's late, and I now realize it wouldn't make any sense for such a thing to happen, nor does it bear any resemblance to what happened to the CrunchPad. My bad Smile
(This post was last modified: 2009-12-01 04:00 by andrereis.)
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
Post: #63
andrereis Wrote:I just hope Broadcom doesn't pull the rug under our feet (arrington's crunchpad style). Cheers
Edit: it's late, and I now realize it wouldn't make any sense for such a thing to happen, nor does it bear any resemblance to what happened to the CrunchPad. My bad Smile

I see no sign of this, big corporate just moves slow.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
csbook Offline
Member
Posts: 59
Joined: Aug 2008
Reputation: 0
Post: #64
davilla Wrote:"bcmFilePlayFw.bin", not "bcmFilePlayFW.bin"

That did it, thanks!
find quote
agehring Offline
Junior Member
Posts: 29
Joined: Nov 2009
Reputation: 0
Post: #65
** Never Mind - Fixed **

Following the instructions from README.ubuntu

# sudo apt-get build-dep xbmc
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Build-Depends dependency for xbmc cannot be satisfied because no available versions of package debhelper can satisfy version requirements

What did I fubar?

sources.list additions:

deb http://ppa.launchpad.net/team-xbmc/hardy-ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/team-xbmc/hardy-ppa/ubuntu hardy main

deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu hardy main

deb http://ppa.launchpad.net/xbmc-addons/ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/xbmc-addons/ppa/ubuntu hardy main

** Don't put stable and SVN ***
deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu hardy main


deb http://ppa.launchpad.net/team-xbmc/previ...ble/ubuntu hardy main
deb-src http://ppa.launchpad.net/team-xbmc/previ...ble/ubuntu hardy main
(This post was last modified: 2009-12-01 11:46 by agehring.)
find quote
cake Offline
Junior Member
Posts: 35
Joined: Nov 2009
Reputation: 2
Post: #66
I used the "manual" line..
find quote
agehring Offline
Junior Member
Posts: 29
Joined: Nov 2009
Reputation: 0
Post: #67
I can't seem to get the nvidia stuff working...

When I start XBMC it complains the it needs hardware...

No module on modprobe...

Compile complains: No rule to make target `arch/x86/kernel/asm-offsets.c (for 190)

So, what should be installed?
find quote
andrereis Offline
Junior Member
Posts: 30
Joined: Sep 2009
Reputation: 0
Post: #68
(from the other crystalhd thread)
andrereis Wrote:- Apple Remote button holds (press and hold) recognized by LIRC
- A decent keymap for the Apple Remote, something that works like Plex does. There are so many things wrong with the way it's currently set up, I won't even begin to discuss them here.

A bit of a follow-up on this. Running 'irw' shows that holding down a button on my remote generates the correct "repeat" codes, so the only thing that's missing is getting XBMC to recognize those events.

I'm a bit surprised to see that the latest keymaps and Lircmaps in svn don't yet have a decent config for the Apple Remote. Doesn't anyone use this thing around here?
find quote
andrereis Offline
Junior Member
Posts: 30
Joined: Sep 2009
Reputation: 0
Post: #69
agehring Wrote:I can't seem to get the nvidia stuff working...
I'm somewhat confused. By nvidia stuff you mean the restricted driver? On a clean boot of Ubuntu 8.04 in the AppleTV, the system suggests that you install the restricted module, and doing so works perfectly. It'll fetch version 163.something, which works fine.

Quote:When I start XBMC it complains the it needs hardware...
What hardware, the Broadcom card or something NVidia-related?

Quote:Compile complains: No rule to make target `arch/x86/kernel/asm-offsets.c (for 190)
What are you trying to compile here, when this error occurs? Broadcom module, nvidia module?
(This post was last modified: 2009-12-02 05:53 by andrereis.)
find quote
csbook Offline
Member
Posts: 59
Joined: Aug 2008
Reputation: 0
Post: #70
davilla Wrote:1) yes. kernel version related, a double free of a semaphore. older kernels don't care, newer ones will panic.

I took a stab at patching the driver for Ubutnu 9.04 since that's what I'm running. I noticed an extra mpc_unlock_irq in bc_link_dioq_fetch_wait() and by fixing that I don't have any more panics.

However, all I get now is the audio playing and a video update every 30 seconds or so. The log is packed with crystalhd timeouts:

http://pastebin.com/m194c1623
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
Post: #71
csbook Wrote:I took a stab at patching the driver for Ubutnu 9.04 since that's what I'm running. I noticed an extra mpc_unlock_irq in bc_link_dioq_fetch_wait() and by fixing that I don't have any more panics.

However, all I get now is the audio playing and a video update every 30 seconds or so. The log is packed with crystalhd timeouts:

http://pastebin.com/m194c1623

your patch would be more interesting to seeSmile


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
Philmatic Offline
Fan
Posts: 459
Joined: Nov 2009
Reputation: 1
Location: Santa Barbara, CA
Post: #72
Evinyatar Wrote:I just set up a new session type for XBMC, so instead of going into a gnome desktop at logon it goes straight into XBMC. You can choose the session at the logon prompt. No memory hogging desktop environments for me.
Just create a simple script /usr/bin/launch-xbmc containing:
Code:
#!/bin/sh
/usr/local/bin/xbmc --standalone
Chmod 755 it. Then create the file /usr/share/xsessions/xbmc.desktop:
Code:
[Desktop Entry]
Encoding=UTF-8
Name=XBMC
Comment=XBMC
Exec=/usr/bin/launch-xbmc
Icon=
Type=Application

In the logon screen click 'Options' and 'Select session'. Choose XBMC from the list et voila.

This works perfectly, is there anyway to make this log in automatically?

EDIT: Nevermind, combining the following with Evinyatar's solution above boots me directly in XBMC from a cold boot. Perfect!

http://wiki.xbmc.org/?title=HOW-TO_insta...ptional.29

ATV-Bootloader -> Unbuntu -> Xfce (Auto Login) -> XBMC

YAY!

I couldn't figure out how to compile the Crystal HD trunk correctly (I'm a Windows/Visual Studio dev), but even with Ubuntu 8.04 and XBMC 9.11b1, the skin is fluid, DVD ISO's load in half the time and I can safely say I haven't have this perfect of a XBMC install since the XBox builds.

I also have to give it up for Jezz_X and his wonderful work on Confluence, it is an absolute beauty on the ATV. No sluggishness at all!
(This post was last modified: 2009-12-02 10:05 by Philmatic.)
find quote
Evinyatar Offline
Member
Posts: 58
Joined: Feb 2008
Reputation: 0
Location: Belgium
Post: #73
I set up two accounts; one for xbmc and one for myself. The xbmc account has XBMC as the default session, mine Gnome. In the 'Sessions' administration tool xbmc is set to log on after 10 seconds. That way I can still easily log into gnome without too much clicking, and XBMC launches automatically if I don't.
find quote
csbook Offline
Member
Posts: 59
Joined: Aug 2008
Reputation: 0
Post: #74
davilla Wrote:your patch would be more interesting to seeSmile

Code:
--- ../../bcm70012_linux_01142009/linux_release_generic/Driver/bc_link_misc.c   2009-01-14 15:00:45.000000000 -0500
+++ bc_link_misc.c      2009-12-02 08:02:08.000000000 -0500
@@ -681,6 +681,7 @@

                bc_link_wait_on_event(&ioq->event, (ioq->count>0), 1000, rc, 0);
                if(rc == 0){
+                        mpc_lock_irq(&ioq->lock,flags);
                        break;
                }else if(rc == -EINTR){
                        MPCLOG(MPCLOG_INFO,"Cancelling fetch wait\n");
find quote
agehring Offline
Junior Member
Posts: 29
Joined: Nov 2009
Reputation: 0
Post: #75
andrereis Wrote:I'm somewhat confused. By nvidia stuff you mean the restricted driver? On a clean boot of Ubuntu 8.04 in the AppleTV, the system suggests that you install the restricted module, and doing so works perfectly. It'll fetch version 163.something, which works fine.

I did a netboot install of 8.04 - at the time the only "package" I installed was the openssh. Then I installed xfce "after the fact". When I try and start XBMC, it complains that I don't have hardware acceleration.

I played with the nvidia drivers (nvidia-glx-legacy, nvidia-glx and nvidia-glx-new) with no success. I did get the nvidia-glx to load (according to lsmod, but xbmc still complained about no hardware acceleration.


andrereis Wrote:What hardware, the Broadcom card or something NVidia-related?
I think the Broadcom is OK, at least according to dmesg (although I see a CDisconnect right after the connect). My issue seems to be solely with the nvidia drivers...


andrereis Wrote:What are you trying to compile here, when this error occurs? Broadcom module, nvidia module?

I had tried installing the nvidia-190 drivers, and compiling the module in /usr/src/nvidia-190.68(? / recalling from memory). The error is received when trying to do a "make module"

While I had success compiling the CrystalHD source according the guide posted elsewhere, I'm going to start over - Does anyone have some sort of guide to a base install of Ubuntu 8.04 on a ATV via netboot? (I've 'googled' it..., no / poor results).

Or at least a guide to getting the nvidia stuff setup after a netboot install...
find quote
Post Reply