XBMC on Tegra2 development: Porting XBMC for Linux to NVIDIA Tegra 2 ARM SoC platform

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
vane.xbmc Offline
Member
Posts: 70
Joined: Feb 2010
Reputation: 0
Location: Spain
Post: #41
McGeagh Wrote:well, it should be yes...
its possible that since last ES test, something got added or changed, which broke it for ES.
Ill put it on my todo list, but that list is very extensive so dont hold your breath.

I understand.

I have just changed BGRA to RGBA and it compiles but I get an issue with X server when I try to run XBMC. It is described here: http://developer.nvidia.com/tegra/forum/...mment-5531.

Also, I ran xbmc.bin instead of xbmc as you said before in this thread because of the complaint about 24 bits.

Regards,
Vanesa.
find quote
McGeagh Offline
Team-XBMC ARM Developer
Posts: 175
Joined: Oct 2008
Reputation: 0
Location: Cambridge, UK
Post: #42
Without spending too much time on this, try doing the following:

via ssh, do the following:
export DISPLAY=:0
xinit -- -layout=HDMI &
(replacing HDMI with CRT if your hooked up via VGA)

This should boot x (takes a while) and then u can bring up a terminal in that GUI and launch ./xbmc.bin

Does that work?

¤ [McGeagh] ¤
find quote
vane.xbmc Offline
Member
Posts: 70
Joined: Feb 2010
Reputation: 0
Location: Spain
Post: #43
McGeagh Wrote:export DISPLAY=:0
xinit -- -layout=HDMI &
Does that work?

I have a serial connection with tegra2 and I have also started the X server with xinit. If I do this, I get a xterm in the HDMI display but I can not use the mouse or keyboard so I use the serial port to run xbmc.

If I run XBMC starting the X server with xinit I get this: http://pastebin.com/HDL0JjPE (I have to stop it with Ctrl + C).

Regards,
Vanesa.
find quote
McGeagh Offline
Team-XBMC ARM Developer
Posts: 175
Joined: Oct 2008
Reputation: 0
Location: Cambridge, UK
Post: #44
hmm, invalid gui shader doesnt look good, whats your xbmc.log say?

id love to look into this, but i really dont have the time atm. (by that, i mean im working on something else with my TG2 so cant test this as its a ballache to set it up for xbmc to test, then back again for what im currently working on)

¤ [McGeagh] ¤
find quote
vane.xbmc Offline
Member
Posts: 70
Joined: Feb 2010
Reputation: 0
Location: Spain
Post: #45
McGeagh Wrote:whats your xbmc.log say?

Here is the log: http://pastebin.com/2s7eqhtZ

GL_VENDOR and others are NULL. I remember this error on beagleboard. The problem was the flag SDL_OPENGL in WinSystemEGL.cpp, but this issue is solved en Dharma in this way:

#if (HAS_GLES == 2)
int options = 0;
#else
int options = SDL_OPENGL;
#endif

Regards,
Vanesa.
find quote
McGeagh Offline
Team-XBMC ARM Developer
Posts: 175
Joined: Oct 2008
Reputation: 0
Location: Cambridge, UK
Post: #46
well theres your problem....
"ERROR: EGL Error: Could not create surface"
EGL is failing to get set up correctly. It cant create a surface...
Did you compile natively or crosscompiled?
Since you are launching xbmc through a terminal, have you exported DISPLAY to be :0 ?
Can you test an example GLES app to see if it works?
This seems like a system issue, not XBMC

¤ [McGeagh] ¤
find quote
vane.xbmc Offline
Member
Posts: 70
Joined: Feb 2010
Reputation: 0
Location: Spain
Post: #47
McGeagh Wrote:EGL is failing to get set up correctly. It cant create a surface...
Did you compile natively or crosscompiled?
natively
McGeagh Wrote:Since you are launching xbmc through a terminal, have you exported DISPLAY to be :0 ?
Yes

McGeagh Wrote:Can you test an example GLES app to see if it works?
This seems like a system issue, not XBMC
A strange thing has happened:
I was able to run this example:
./nvtest ./gles2_gears --Twinsys x11 -1
provided by tegra inside L4T (it displays the same as glxgears).
I was able to run it with and without X server running, but with X server the gears were much slower than without X server, so when XBMC seemed that it did't found GL, I suppossed X server was not able to use OpenGL and I thought module tegra_drv.so from /usr/lib/xorg/modules/drivers should be loaded and it was not being loading.

The strange thing is that NOW (after installing XBMC dependencies) ./nvtest ./gles2_gears --Twinsys x11 -1 give me this:
>>> EGL failed to create window surface! Exiting..

I am going to install the system again, but it will take me a few hours... Sad

Regards,
Vanesa.
(This post was last modified: 2011-01-25 19:28 by vane.xbmc.)
find quote
vane.xbmc Offline
Member
Posts: 70
Joined: Feb 2010
Reputation: 0
Location: Spain
Post: #48
vane.xbmc Wrote:The strange thing is that NOW (after installing XBMC dependencies) ./nvtest ./gles2_gears --Twinsys x11 -1 give me this:
>>> EGL failed to create window surface! Exiting..

Forget it, I missconfigured xserver. I have changed xorg.conf and I can run XBMC successfully.

Thanks for your help, if you want me to test something for you on XBMC on Tegra, just ask me.

Regards,
Vanesa.
find quote
vane.xbmc Offline
Member
Posts: 70
Joined: Feb 2010
Reputation: 0
Location: Spain
Post: #49
Hi all,

after some tests I've concluded that OpenMax is no t working well in XBMC Dharma on Tegra2. fps are higher if I don't use openmax to decode and it can't decode some formats. I'm trying to compile this branch: https://github.com/Phaeodaria/xbmc-tegra2/ but I found the following error trying to compile:

/home/ubuntu/xbmc-tegra2/xbmc/cores/VideoRenderers/OverlayRenderer.cpp:292: undefined reference to 'OVERLAY::COverlayTextureGL::COverlayTextureGL(CDVDOverlayImage*)'
/home/ubuntu/xbmc-tegra2/xbmc/cores/VideoRenderers/OverlayRenderer.cpp:294: undefined reference to 'OVERLAY::COverlayTextureGL::COverlayTextureGL(CDVDOverlaySpu*)'
/home/ubuntu/xbmc-tegra2/xbmc/cores/VideoRenderers/OverlayRenderer.cpp:296: undefined reference to 'OVERLAY::COverlayGlyphGL::COverlayGlyphGL(CDVDOverlaySSA*,double)'
collect2: ld returned 1 exit status

I've not found anything on google about this error. Do you know what is the problem and/or what is the state of this branch for tegra2.

Regards,
Vanesa.
find quote
davilla Online
Team-XBMC Developer
Posts: 10,399
Joined: Feb 2008
Reputation: 58
Post: #50
you might try trunk, tg2 code was merged in and issues fixed recently.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
Post Reply