OGLES libs mpc5121

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OGLES libs mpc5121

Jump to solution
1,417 Views
moidom
Contributor II

Hi,

 

According AN3793 (3D graphics on the ADS5121..), OpenGL sdk, and OpenGL ES libs are provided with the app note... I found the SDK in the freescale sources but not the libs (I didn't found them in ltib either)

 

AFAIK, there are people on this forum using them.  Does anybody know how to get them?

 

Regards,

 

Moises

 

 

0 Kudos
1 Solution
558 Views
moidom
Contributor II

 

>>Solved:

 >>http://www.freescale.com/webapp/sps/utils/SingleFa q.jsp?FAQ-28978.xml

 

After applied these kernel modifications recomended for ltib version 20081208 I have new erros with my ltib version 20090603:

Load service:

[root@freescale /]# etc/init.d/rc.pvr start[   29.526994] dbgdrv: module license 'unspecified' taints kernel.[   29.721065] _IORemapWrapper: mapping 1048576 bytes uncached from 0x80000000 to 0xe5280000[   29.730753] _IORemapWrapper: mapping 8388608 bytes uncached from 0x20000000 to 0xe5400000[   29.741728] _IORemapWrapper: mapping 4 bytes uncached from 0x80000f08 to 0xe509ef08[   29.750109] _IORemapWrapper: mapping 2097152 bytes uncached from 0x20800000 to 0xe5c80000[   29.759342] _IORemapWrapper: mapping 2097152 bytes uncached from 0x20a00000 to 0xe5f00000[   29.768681] _IORemapWrapper: mapping 2097152 bytes uncached from 0x20c00000 to 0xe6180000[   29.794033] _IORemapWrapper: mapping 256 bytes uncached from 0x80000c00 to 0xe50a0c00[   29.802609] _IORemapWrapper: mapping 8 bytes uncached from 0x2000012c to 0xe50a212c[   29.812578] _IORemapWrapper: mapping 4 bytes uncached from 0x80000f08 to 0xe50b0f08[   29.870399] CLCDC_Init: major device 250[   29.874903] ==========================================================================[   29.886060] * MBX Driver, ALT Software Inc.                                          *[   29.894531] * Build 13, March 12, 2009                                               *[   29.903320] ==========================================================================[   29.911966] Kernel: VERMAGIC_STRING = 2.6.24.6 preempt mod_unload[   29.919009] Kernel: CONFIG_MODULE_UNLOAD supported[   29.924504] Setting up driver for:                   fb0[   29.929021] DIU Framebuffer start:                   0x 1a01000[   29.934500] DIU Framebuffer virtual:         0xc1a01000[   29.939720] DIU Framebuffer size:                    2359296 bytes[   29.945120] ==========================================================================[   29.954007] bits_per_pixel:    24[   29.958008] width:             1024[   29.961748] height:            768[   29.965995] red.length:        8[   29.969910] green.length:      8[   29.973753] blue.length:       8[   29.978914] AllocContiguousMemory: pLinAddr: dec00000 -- dma: 1ec00000 -- size: 2359296[   29.988081] AllocContiguousMemory: pLinAddr: de800000 -- dma: 1e800000 -- size: 2359296[   29.996608] AllocContiguousMemory: pLinAddr: de400000 -- dma: 1e400000 -- size: 2359296[   30.121453] CAMERA_Init: major device 249[   30.128587] AllocContiguousMemory: pLinAddr: df280000 -- dma: 1f280000 -- size: 524288[   30.137136] AllocContiguousMemory: pLinAddr: df300000 -- dma: 1f300000 -- size: 524288[   30.146036] AllocContiguousMemory: pLinAddr: df380000 -- dma: 1f380000 -- size: 524288Loaded PowerVR consumer services.

 


Run example:

 

[root@freescale /]# ./OGLESHelloTriangle[  602.842781] _IORemapWrapper: mapping 2359296 bytes uncached from 0x01a01000 to 0xc1a01000Error: eglInitialize() failed.

 

 

Have anybody had similar problems with ltib2009??

 

Regards,

 

Moises

View solution in original post

0 Kudos
4 Replies
558 Views
moidom
Contributor II

Ok, sorry, the libraries and modules come with the ltib.

 

Now, my problem is that when I start the service I have an error regarding modules loading:

 

[root@freescale /]# etc/init.d/rc.pvr start[   52.500634] dbgdrv: module license 'unspecified' taints kernel.[   52.698131] Unable to handle kernel paging request for data at address 0x00000100[   52.705561] Faulting instruction address: 0xc0073a30[   52.710509] Oops: Kernel access of bad area, sig: 11 [#1][   52.715894] PREEMPT MPC5121 ADS[   52.719024] Modules linked in: pvr(P) dbgdrv(P)[   52.723548] **bleep**: c0073a30 LR: e5086a0c CTR: c00739e4[   52.728508] REGS: df10fd50 TRAP: 0300   Tainted: P         (2.6.24.6)[   52.734935] MSR: 00001032 <ME,IR,DR>  CR: 22008244  XER: 20000000[   52.741021] DAR: 00000100, DSISR: 20000000[   52.745109] TASK = df9da3c0[1634] 'modprobe' THREAD: df10e000[   52.750671] GPR00: 00000000 df10fe00 df9da3c0 c03ab280 000000d0 ffffffff e5086a0c c03ab2c4[   52.759016] GPR08: df806900 e5095c04 00000019 c03ab280 82008248 1001c814 00000000 0000002d[   52.767363] GPR16: 0000002c e5349e94 dfb78e40 00000000 000001ea 000001ea df10e000 e5095a2c[   52.775709] GPR24: e52ec85c e5201000 e5095a20 00000100 000000d0 c03ab2c4 00009032 df10fe00[   52.784229] Call Trace:[   52.786665] [df10fe00] [c0137274]  (unreliable)[   52.791185] [df10fe20] [e5086a0c][   52.794576] [df10fe50] [e50928c8][   52.797967] [df10fe80] [e5097074][   52.801357] [df10fea0] [c0049dd8][   52.804748] [df10ff40] [c0010428][   52.808138] --- Exception: c01Instruction dump:[   52.812660] 7fc000a6 57c0045e 7c000124 83630044 3bab0044 7cc802a6 38a0ffff 7fa7eb78[   52.820397] 2f9b0000 419e0058 801d000c 5400103a <7d3b002e> 912b0044 7fc00124 73808000[   52.828312] ---[ end trace 9c547fbff236defa ]---etc/init.d/rc.pvr: line 111:  1634 Segmentation fault      /sbin/modprobe -q pvr

 

 

I think problem is owing to modules were compiled against a different kernel. I am using ltib (kernel 2.6.24) with the modules that come with the ltib ( pvr.ko, dbgdrv,..)

 

Has anybody successfully load the pvr service with the ltib version 'Release 1 20090603' ?

 

Regards,

 

Moises

0 Kudos
558 Views
moidom
Contributor II
0 Kudos
559 Views
moidom
Contributor II

 

>>Solved:

 >>http://www.freescale.com/webapp/sps/utils/SingleFa q.jsp?FAQ-28978.xml

 

After applied these kernel modifications recomended for ltib version 20081208 I have new erros with my ltib version 20090603:

Load service:

[root@freescale /]# etc/init.d/rc.pvr start[   29.526994] dbgdrv: module license 'unspecified' taints kernel.[   29.721065] _IORemapWrapper: mapping 1048576 bytes uncached from 0x80000000 to 0xe5280000[   29.730753] _IORemapWrapper: mapping 8388608 bytes uncached from 0x20000000 to 0xe5400000[   29.741728] _IORemapWrapper: mapping 4 bytes uncached from 0x80000f08 to 0xe509ef08[   29.750109] _IORemapWrapper: mapping 2097152 bytes uncached from 0x20800000 to 0xe5c80000[   29.759342] _IORemapWrapper: mapping 2097152 bytes uncached from 0x20a00000 to 0xe5f00000[   29.768681] _IORemapWrapper: mapping 2097152 bytes uncached from 0x20c00000 to 0xe6180000[   29.794033] _IORemapWrapper: mapping 256 bytes uncached from 0x80000c00 to 0xe50a0c00[   29.802609] _IORemapWrapper: mapping 8 bytes uncached from 0x2000012c to 0xe50a212c[   29.812578] _IORemapWrapper: mapping 4 bytes uncached from 0x80000f08 to 0xe50b0f08[   29.870399] CLCDC_Init: major device 250[   29.874903] ==========================================================================[   29.886060] * MBX Driver, ALT Software Inc.                                          *[   29.894531] * Build 13, March 12, 2009                                               *[   29.903320] ==========================================================================[   29.911966] Kernel: VERMAGIC_STRING = 2.6.24.6 preempt mod_unload[   29.919009] Kernel: CONFIG_MODULE_UNLOAD supported[   29.924504] Setting up driver for:                   fb0[   29.929021] DIU Framebuffer start:                   0x 1a01000[   29.934500] DIU Framebuffer virtual:         0xc1a01000[   29.939720] DIU Framebuffer size:                    2359296 bytes[   29.945120] ==========================================================================[   29.954007] bits_per_pixel:    24[   29.958008] width:             1024[   29.961748] height:            768[   29.965995] red.length:        8[   29.969910] green.length:      8[   29.973753] blue.length:       8[   29.978914] AllocContiguousMemory: pLinAddr: dec00000 -- dma: 1ec00000 -- size: 2359296[   29.988081] AllocContiguousMemory: pLinAddr: de800000 -- dma: 1e800000 -- size: 2359296[   29.996608] AllocContiguousMemory: pLinAddr: de400000 -- dma: 1e400000 -- size: 2359296[   30.121453] CAMERA_Init: major device 249[   30.128587] AllocContiguousMemory: pLinAddr: df280000 -- dma: 1f280000 -- size: 524288[   30.137136] AllocContiguousMemory: pLinAddr: df300000 -- dma: 1f300000 -- size: 524288[   30.146036] AllocContiguousMemory: pLinAddr: df380000 -- dma: 1f380000 -- size: 524288Loaded PowerVR consumer services.

 


Run example:

 

[root@freescale /]# ./OGLESHelloTriangle[  602.842781] _IORemapWrapper: mapping 2359296 bytes uncached from 0x01a01000 to 0xc1a01000Error: eglInitialize() failed.

 

 

Have anybody had similar problems with ltib2009??

 

Regards,

 

Moises

0 Kudos
558 Views
jingfeng
Contributor I

i meet the same question

[root@freescale /]# /etc/init.d/rc.pvr start

[   23.066174] dbgdrv: module license 'unspecified' taints kernel.

[   23.257024] Unable to handle kernel paging request for data at address 0x00000100

[   23.264450] Faulting instruction address: 0xc0071c4c

[   23.269400] Oops: Kernel access of bad area, sig: 11 [#1]

[   23.274785] PREEMPT MPC5121 ADS

[   23.277915] Modules linked in: pvr(P) dbgdrv(P)

[   23.282439] NIP: c0071c4c LR: e51cfa0c CTR: c0071c00

[   23.287398] REGS: df0c9d50 TRAP: 0300   Tainted: P         (2.6.24.6)

[   23.293826] MSR: 00001032 <ME,IR,DR>  CR: 22008244  XER: 20000000

[   23.299912] DAR: 00000100, DSISR: 20000000

[   23.304000] TASK = df9fa780[1534] 'modprobe' THREAD: df0c8000

[   23.309562] GPR00: 00000000 df0c9e00 df9fa780 c0317280 000000d0 ffffffff e51cfa0c c03172c4

[   23.317908] GPR08: df9bd7e0 e51dec04 00000005 c0317280 82008248 1001c814 00000000 0000002d

[   23.326254] GPR16: 0000002c e51c9e94 dfafa560 00000000 000001ea 000001ea df0c8000 e51dea2c

[   23.334601] GPR24: e516c85c e5081000 e51dea20 00000100 000000d0 c03172c4 00009032 df0c9e00

[   23.343120] Call Trace:

[   23.345557] [df0c9e00] [c0135494]  (unreliable)

[   23.350077] [df0c9e20] [e51cfa0c]

[   23.353468] [df0c9e50] [e51db8c8]

[   23.356858] [df0c9e80] [e1076074]

[   23.360249] [df0c9ea0] [c0047ff0]

[   23.363640] [df0c9f40] [c000fe1c]

[   23.367030] --- Exception: c01Instruction dump:

[   23.371551] 7fc000a6 57c0045e 7c000124 83630044 3bab0044 7cc802a6 38a0ffff 7fa7eb78

[   23.379287] 2f9b0000 419e0058 801d000c 5400103a <7d3b002e> 912b0044 7fc00124 73808000

[   23.387203] ---[ end trace f22895cf56465484 ]---

/etc/init.d/rc.pvr: line 111:  1534 Segmentation fault      /sbin/modprobe -q pvr

[root@freescale /]#

please tell me how to solve ?thank you

0 Kudos