[LINUX] Problems compiling crystalhd branch

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
davilla Offline
Team-XBMC Developer
Posts: 10,399
Joined: Feb 2008
Reputation: 58
Post: #481
drewjacks0n Wrote:Anyone having problems compiling the CrystalHD branch for linux?

http://pastebin.com/vWaFPTq3

It seem's that Jarod Wilson's improvements to the crystalhd_lnx.c file have broken it for me on Ubuntu 8.04

The last revision before he made the changes still builds correctly.

Know issue. The git tree is following kernel.org. The svn tree at crystalhd-for-osx contains both osx and linux source code. Use the tag at 1.0.3 as svn trunk is unstable right now...


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
drewjacks0n Offline
Member
Posts: 62
Joined: May 2008
Reputation: 0
Post: #482
Hi Davilla-

thanks for your info. I have checked the 1.0.3 tag from your svn repo. It has built and installed correctly.

Out of curiousity, just how far "behind" is the git tree?

Thank you sir!

NOW: AppleTV+CrystalHD PREVIOUS: HTPC and XBOX (both loudly running XBMC)
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,399
Joined: Feb 2008
Reputation: 58
Post: #483
drewjacks0n Wrote:Hi Davilla-

thanks for your info. I have checked the 1.0.3 tag from your svn repo. It has built and installed correctly.

Out of curiousity, just how far "behind" is the git tree?

Thank you sir!

git tree is tracking kernel.org, var/function name changes, some structure changes to match the "current" kernel flavor. Nothing regarding code or features has been done in git tree.

svn tree has new features being added thus the reason for pulling from the stable tag. http://code.google.com/p/crystalhd-for-osx/updates/list shows the action.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
jodeman Offline
Member
Posts: 75
Joined: May 2004
Reputation: 0
Post: #484
agehring Wrote:** 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

I know it's been a while since you fixed this, but I'm having the same issue and I'm hoping you can help me. I've tried every combination of the above ppa's and I get the same error. Do you know if there's anything else I need to do as well?

Thank you for your time.
find quote
adn77 Offline
Member+
Posts: 4
Joined: Oct 2010
Reputation: 0
Post: #485
Hi,

sorry if this is not the right place to post... it seemed the best place.

I checked out the latest crystalhd from the repository.
Installing the libs worked fine but compiling the driver always gives me this error:

Code:
make -C /lib/modules/2.6.35.7/build SUBDIRS=/usr/local/src/chd/trunk/crystalhd/driver/linux modules
make[1]: Entering directory `/usr/src/linux-2.6.35.7'
  CC [M]  /usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_lnx.o
  CC [M]  /usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_misc.o
  CC [M]  /usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_cmds.o
  CC [M]  /usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_hw.o
  CC [M]  /usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_linkfuncs.o
  CC [M]  /usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_fleafuncs.o
  CC [M]  /usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_flea_ddr.o
/usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_flea_ddr.c: In function 'crystalhd_flea_ddr_pll_config':
/usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_flea_ddr.c:152: error: implicit declaration of function 'msleep_interruptible'
make[2]: *** [/usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_flea_ddr.o] Error 1
make[1]: *** [_module_/usr/local/src/chd/trunk/crystalhd/driver/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.35.7'
make: *** [all] Error 2

I am not a programmer, but "msleep_interruptible" should be exported by the kernel, shouldn't it?
I figured, there is some missing include or sth.

Any hint is appreciated!

Alex
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,399
Joined: Feb 2008
Reputation: 58
Post: #486
adn77 Wrote:Hi,

sorry if this is not the right place to post... it seemed the best place.

I checked out the latest crystalhd from the repository.
Installing the libs worked fine but compiling the driver always gives me this error:

Code:
make -C /lib/modules/2.6.35.7/build SUBDIRS=/usr/local/src/chd/trunk/crystalhd/driver/linux modules
make[1]: Entering directory `/usr/src/linux-2.6.35.7'
  CC [M]  /usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_lnx.o
  CC [M]  /usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_misc.o
  CC [M]  /usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_cmds.o
  CC [M]  /usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_hw.o
  CC [M]  /usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_linkfuncs.o
  CC [M]  /usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_fleafuncs.o
  CC [M]  /usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_flea_ddr.o
/usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_flea_ddr.c: In function 'crystalhd_flea_ddr_pll_config':
/usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_flea_ddr.c:152: error: implicit declaration of function 'msleep_interruptible'
make[2]: *** [/usr/local/src/chd/trunk/crystalhd/driver/linux/crystalhd_flea_ddr.o] Error 1
make[1]: *** [_module_/usr/local/src/chd/trunk/crystalhd/driver/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.35.7'
make: *** [all] Error 2

I am not a programmer, but "msleep_interruptible" should be exported by the kernel, shouldn't it?
I figured, there is some missing include or sth.

Any hint is appreciated!

Alex

which repository ? You should be using the git tree at http://git.wilsonet.com/crystalhd.git/ or my svn tree at http://code.google.com/p/crystalhd-for-o.../#svn/tags . The git tree is "upstream".

Any source in the kernel is very stale right now.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
adn77 Offline
Member+
Posts: 4
Joined: Oct 2010
Reputation: 0
Post: #487
Hi Scott, thanks for your prompt reply.

Quote:which repository ? You should be using the git tree at http://git.wilsonet.com/crystalhd.git/ or my svn tree at http://code.google.com/p/crystalhd-f...owse/#svn/tags . The git tree is "upstream".

Any source in the kernel is very stale right now.

I tried both, the latest from GIT and several revisions from your SVN r156,r157,r161 (r157 is supposed to work with my bcm70015).

They all give me the error "implicit declaration of function 'msleep_interruptible'".

I run my own kernel (2.6.35.7) and as far as my research goes, this function should be exported by the linux kernel... any missing modules?

Alex
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,399
Joined: Feb 2008
Reputation: 58
Post: #488
adn77 Wrote:Hi Scott, thanks for your prompt reply.



I tried both, the latest from GIT and several revisions from your SVN r156,r157,r161 (r157 is supposed to work with my bcm70015).

They all give me the error "implicit declaration of function 'msleep_interruptible'".

I run my own kernel (2.6.35.7) and as far as my research goes, this function should be exported by the linux kernel... any missing modules?

Alex

ok, driver make is set to flag all warnings as errors, kernel gods must have moved msleep_interruptible to a different include. Your task is to find which include and add it to crystalhd_flea_ddr.c . That should fix the make. Post you findings here so we can update the source trees.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
adn77 Offline
Member+
Posts: 4
Joined: Oct 2010
Reputation: 0
Post: #489
Well, if I'd known a bit more about "C", I might have fixed it before in a second...
In fact the following inlude is missing in crystalhd_flea_ddr.c:

Code:
#include <linux/delay.h>

Oddly enough it exists in a bunch of other files...

Thanks for the pointer, and of course for all the great work. You rock my ATV!

Alex
find quote
guano Offline
Junior Member
Posts: 6
Joined: Oct 2010
Reputation: 0
Post: #490
Hey,
I can't get my new BCM70015 to work under Arch, I've tried the community packages (which seem to be using the git repository), and compiling both the git and the svn repos. Any way I've done it the result is the same, if i try to load the crystalhd module I get two messages in dmesg:
crystalhd: module is from the staging directory, the quality is unknown, you have been warned.
Loading crystalhd 0.9.27

And that's it, which is a bit weird, especially since that's an old version if I'm not mistaken.
if I do lspci my broadcom device pops up as 'Broadcom Corporation Device 1615'.
It seems to be working fine for others so I'm not sure what I'm doing wrong.

I'd be grateful for any help, and thanks alot for all the work you are putting in to this!
find quote
Post Reply