[LINUX] How do I complile Broadcom Crystal HD driver on Ubuntu Karmic?
#76
Thanks a bunch! That solved it - I am now able to build revision 1.0.3. The newest revision from github still fails though...

Code:
atv@atv:~/dev/crystalhd-new/driver/linux$ make
make -C /lib/modules/2.6.24-25-generic/build SUBDIRS=/home/atv/dev/crystalhd-new/driver/linux modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-25-generic'
  CC [M]  /home/atv/dev/crystalhd-new/driver/linux/crystalhd_lnx.o
In file included from /home/atv/dev/crystalhd-new/driver/linux/crystalhd_hw.h:32,
                 from /home/atv/dev/crystalhd-new/driver/linux/crystalhd_cmds.h:37,
                 from /home/atv/dev/crystalhd-new/driver/linux/crystalhd_lnx.h:51,
                 from /home/atv/dev/crystalhd-new/driver/linux/crystalhd_lnx.c:20:
/home/atv/dev/crystalhd-new/driver/linux/../../include/flea/DriverFwShare.h:93:7: error: no newline at end of file
cc1: warnings being treated as errors
/home/atv/dev/crystalhd-new/driver/linux/crystalhd_lnx.h:92: warning: ‘chddev’ declared inline after being called
/home/atv/dev/crystalhd-new/driver/linux/crystalhd_lnx.h:92: warning: previous declaration of ‘chddev’ was here
make[2]: *** [/home/atv/dev/crystalhd-new/driver/linux/crystalhd_lnx.o] Error 1
make[1]: *** [_module_/home/atv/dev/crystalhd-new/driver/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-25-generic'
make: *** [all] Error 2

But I guess that is as expected as it is work in progress... Once again, thanks!
Reply
#77
pouldam Wrote:Thanks a bunch! That solved it - I am now able to build revision 1.0.3. The newest revision from github still fails though...

Code:
atv@atv:~/dev/crystalhd-new/driver/linux$ make
make -C /lib/modules/2.6.24-25-generic/build SUBDIRS=/home/atv/dev/crystalhd-new/driver/linux modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-25-generic'
  CC [M]  /home/atv/dev/crystalhd-new/driver/linux/crystalhd_lnx.o
In file included from /home/atv/dev/crystalhd-new/driver/linux/crystalhd_hw.h:32,
                 from /home/atv/dev/crystalhd-new/driver/linux/crystalhd_cmds.h:37,
                 from /home/atv/dev/crystalhd-new/driver/linux/crystalhd_lnx.h:51,
                 from /home/atv/dev/crystalhd-new/driver/linux/crystalhd_lnx.c:20:
/home/atv/dev/crystalhd-new/driver/linux/../../include/flea/DriverFwShare.h:93:7: error: no newline at end of file
cc1: warnings being treated as errors
/home/atv/dev/crystalhd-new/driver/linux/crystalhd_lnx.h:92: warning: ‘chddev’ declared inline after being called
/home/atv/dev/crystalhd-new/driver/linux/crystalhd_lnx.h:92: warning: previous declaration of ‘chddev’ was here
make[2]: *** [/home/atv/dev/crystalhd-new/driver/linux/crystalhd_lnx.o] Error 1
make[1]: *** [_module_/home/atv/dev/crystalhd-new/driver/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-25-generic'
make: *** [all] Error 2

But I guess that is as expected as it is work in progress... Once again, thanks!

don't use github, use svn trunk at crystalhd-for-osx, it has both osx and linux source code.
Reply
#78
Thanks, that solved it :-)

After having build and installed the new driver and libraries I wiped my old XBMC build and rebuilt from scratch. However, having rebooted my ATV, when I start a movie it chrashes...

Ubuntu syslog (movie launched at 01:16:38): http://pastebin.com/22dRdVTc

XBMC log (build was not a debug build, so I am afraid it is of no use): http://pastebin.com/eC593p2r

I really appreciate your help.
Reply
#79
pouldam Wrote:Thanks, that solved it :-)

After having build and installed the new driver and libraries I wiped my old XBMC build and rebuilt from scratch. However, having rebooted my ATV, when I start a movie it chrashes...

Ubuntu syslog (movie launched at 01:16:38): http://pastebin.com/22dRdVTc

XBMC log (build was not a debug build, so I am afraid it is of no use): http://pastebin.com/eC593p2r

I really appreciate your help.

your syslog does not jive with xbmc.log

Quote:Jun 30 01:16:38 atv kernel: [ 444.793405] crystalhd 0000:02:00.0: App PIB:0 0 420 2 780 438 6fc 0 0 0
Jun 30 01:16:38 atv kernel: [ 444.860316] Invalid Line Number[-2139062144]
Jun 30 01:16:38 atv kernel: [ 444.900171] Invalid Line Number[-2139062144]
Jun 30 01:16:38 atv kernel: [ 444.940500] crystalhd 0000:02:00.0: MISSING 3 PICTURES
Jun 30 01:16:44 atv kernel: [ 451.347979] crystalhd 0000:02:00.0: Entering chd_dec_close
Jun 30 01:16:44 atv kernel: [ 451.347990] crystalhd 0000:02:00.0: Closing user[0] handle

you opened a video file, it played and you stopped Smile
Reply
#80
Hmmm... I have now tested on a fresh-built debug build of XBMC. It still crashes to desktop as soon as a try to start a movie. Debug log here: http://pastebin.com/wX1tkwmW
Reply
#81
pouldam Wrote:Hmmm... I have now tested on a fresh-built debug build of XBMC. It still crashes to desktop as soon as a try to start a movie. Debug log here: http://pastebin.com/wX1tkwmW

You have a crash log for it ?

Looks like the width is borked ?

Width: 1788
Height: 1080
Reply
#82
davilla Wrote:You have a crash log for it ?

Looks like the width is borked ?

Width: 1788
Height: 1080

Sure: http://pastebin.com/uxtjHSX6
Reply
#83
pouldam Wrote:Sure: http://pastebin.com/uxtjHSX6

Quote:0x0832eee6 in fast_memcpy (to=0xa8c4d000, from=0xb4c38ff8, len=269488096) at fastmemcpy.c:346

"len=269488096", I don't think so Smile that's 0x10100FE0 and it looks suspiciously like Y plane data.

Also

Quote:0x0888aa03 in CMPCOutputThread::CopyOutAsNV12 (this=0x9ed94f0,
pBuffer=0xa041b40, procOut=0xaa44da00, w=269488144, h=269488144,
stride=1920) at CrystalHD.cpp:657

w=269488144 and h=269488144. 269488144 is 0x10101010 and that's Y plane data as black.

I have one video that does something similar and I'm poking at it with a stick. Stay tuned.
Reply
#84
davilla Wrote:"len=269488096", I don't think so Smile that's 0x10100FE0 and it looks suspiciously like Y plane data.

Also



w=269488144 and h=269488144. 269488144 is 0x10101010 and that's Y plane data as black.

I have one video that does something similar and I'm poking at it with a stick. Stay tuned.

Hi, any news om this? BTW, I just tried building rev 31633 on my ATV and it still chrashes when I open the movie discussed above. I tried another movie which did not crash XBMC. I even got sound, but only a black screen. As a curiosity I got the subtitles, but when a line of subtitles had been displayed it would not disappear, which resulted in a stack of subtitle lines being rendered on top of each other...

All of this on ATV running Ubuntu Hardy, first generation of the Crystal HD card and the newest Crystal driver from SVN.

UPDATE: Tried to restart the second movie. Now it displays fine and subtitles are working... go figure :-)
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] How do I complile Broadcom Crystal HD driver on Ubuntu Karmic?0