This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SGX problem

Other Parts Discussed in Thread: ASH

Hi,

I am using Beagle xm C Rev board and i am trying to integrate SGX. Here i am facing problem. Please kindly help me in this regard.

I am using AM35x-OMAP35x-LINUX-PSP-04.02.00.07 kernel and Graphics_SDK_setuplinux_4_06_00_03.bin .I followed all the steps in the
Graphics SDK Quick installation and user guide.

kernel is booting up but when its trying to get sgx version i am getting below errors:

running firstboot...
/dev/mem opened.
Memory mapped at address 0x4037e000.
Before: Address target 0x48004B48, target&Mask 0x48004000 (virt addr 0x4037eb48)
After Value at address target=0x48004B48 (virt_addr=0x4037eb48): read_result=0x0
Written 0x2; readback 0x2
/dev/mem opened.
Memory mapped at address 0x4038e000.
Before: Address target 0x48004B10, target&Mask 0x48004000 (virt addr 0x4038eb10)
After Value a[    4.138763] Unhandled fault: external abort on non-linefetch (0x1018) at 0x400e1014
t address target=0x48004B10 (virt_addr=0x4038eb10): read_result=0x0
Written 0x1; readback 0x1
/dev/mem opened.
Memory mapped at address 0x401ad000.
Before: Address target 0x48004B00, target&Mask 0x48004000 (virt addr 0x401adb00)
After Value at address target=0x48004B00 (virt_addr=0x401adb00): read_result=0x0
Written 0x2; readback 0x2
Bus error

When the script reboots , it installs the drivers with below error

chmod: /dev/pvrsrvkm: No such file or directory
[   99.035552] Unhandled fault: external abort on non-linefetch (0x1008) at 0xc8f88014
[   99.043609] Internal error: : 1008 [#1]
[   99.047607] last sysfs file: /sys/devices/SGX/drm/card0/dev
[   99.053375] Modules linked in: pvrsrvkm drm
[   99.057739] CPU: 0    Not tainted  (2.6.37 #14)
[   99.062622] PC is at OSReadHWReg+0x0/0xc [pvrsrvkm]
[   99.067749] LR is at SysFinalise+0x84/0x100 [pvrsrvkm]
[   99.073089] pc : [<bf049764>]    lr : [<bf0544f8>]    psr: a0000013
[   99.073089] sp : c6bcbde8  ip : c6382a80  fp : c63f6000
[   99.084991] r10: bf05c21c  r9 : bf04abd0  r8 : bf05e7d8
[   99.090423] r7 : c8f88000  r6 : 00000000  r5 : bf05e6bc  r4 : bf05e7d8
[   99.097198] r3 : 00004000  r2 : bf04a724  r1 : 00000014  r0 : c8f88000
[   99.103973] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   99.111389] Control: 10c5387d  Table: 863e8019  DAC: 00000015
[   99.117340] Process pvrsrvinit (pid: 666, stack limit = 0xc6bca2f0)
[   99.123840] Stack: (0xc6bcbde8 to 0xc6bcc000)
[   99.128356] bde0:                   00000001 00000001 bf05e7d8 c8f0e000 c8f0d000 c8f0e000
[   99.136871] be00: 00000044 bf043650 00000000 bf050794 c8f0d000 c6bcbe78 c6bbea00 bf04f5d0
[   99.145355] be20: 0000029a c6bcbe78 c01c6744 c6acd8c0 401c6440 bf04ad44 c63f6000 c6bbea00
[   99.153839] be40: c6acd8c0 0000001c c6bcbe78 0000001c c6acd8c0 bf002ff0 0000029a 401c6440
[   99.162353] be60: 00000040 0000e200 00000001 00000080 bec62b5c c63f607c 00000044 0000001c
[   99.170837] be80: bec62b90 00000008 bec62b88 00000008 00000001 c0a23080 00693ce1 00000001
[   99.179321] bea0: 00000000 00000000 00000000 c63f4bc0 00000000 00000000 60000013 c6bca000
[   99.187805] bec0: 00000000 406d2000 c6bc623c 406d1000 c6bbbdc4 c0091ac0 00000001 00000000
[   99.196319] bee0: 00000000 bf0481a0 00000000 00000000 00000000 c63f4bc0 c6bca000 00000000
[   99.204803] bf00: c6ba7840 00000003 00000003 bec62b5c c6bca000 00000000 00000000 c00e34e4
[   99.213287] bf20: 00000000 c00e3be8 c6bbbdf8 c09372f8 c6bbbdf8 60000013 406d1000 c6bbbdf4
[   99.221801] bf40: c0040c28 c6bca000 c6bbbdf8 c03a3640 00000001 00000000 c01eb794 c03a3b58
[   99.230285] bf60: c6bbbdf4 00000000 00000000 bec62b5c 401c6440 00000003 c6ba7840 c6bca000
[   99.238769] bf80: 00000000 c00e3c78 00000003 00000000 bec62b5c 401c6440 00000003 00000036
[   99.247283] bfa0: c0040c28 c0040a80 bec62b5c 401c6440 00000003 401c6440 bec62b5c 0000001c
[   99.255767] bfc0: bec62b5c 401c6440 00000003 00000036 00000014 00000000 00000014 00000000
[   99.264251] bfe0: 00000001 bec62b38 400a6ad4 4024eddc 20000010 00000003 00000000 00000000
[   99.272888] [<bf049764>] (OSReadHWReg+0x0/0xc [pvrsrvkm]) from [<bf0544f8>] (SysFinalise+0x84/0x100 [pvrsrvkm])
[   99.283477] [<bf0544f8>] (SysFinalise+0x84/0x100 [pvrsrvkm]) from [<bf043650>] (PVRSRVFinaliseSystem+0x18/0x50 [pvrsrvkm])
[   99.295074] [<bf043650>] (PVRSRVFinaliseSystem+0x18/0x50 [pvrsrvkm]) from [<bf050794>] (PVRSRVInitSrvDisconnectBW+0x4c/0x7c [pvrsrvkm])
[   99.307861] [<bf050794>] (PVRSRVInitSrvDisconnectBW+0x4c/0x7c [pvrsrvkm]) from [<bf04f5d0>] (BridgedDispatchKM+0xe8/0x140 [pvrsrvkm])
[   99.320465] [<bf04f5d0>] (BridgedDispatchKM+0xe8/0x140 [pvrsrvkm]) from [<bf04ad44>] (PVRSRV_BridgeDispatchKM+0x174/0x1d8 [pvrsrvkm])
[   99.333099] [<bf04ad44>] (PVRSRV_BridgeDispatchKM+0x174/0x1d8 [pvrsrvkm]) from [<bf002ff0>] (drm_ioctl+0x288/0x388 [drm])
[   99.344543] [<bf002ff0>] (drm_ioctl+0x288/0x388 [drm]) from [<c00e34e4>] (vfs_ioctl+0x20/0x3c)
[   99.353485] [<c00e34e4>] (vfs_ioctl+0x20/0x3c) from [<c00e3be8>] (do_vfs_ioctl+0x510/0x554)
[   99.362152] [<c00e3be8>] (do_vfs_ioctl+0x510/0x554) from [<c00e3c78>] (sys_ioctl+0x4c/0x6c)
[   99.370849] [<c00e3c78>] (sys_ioctl+0x4c/0x6c) from [<c0040a80>] (ret_fast_syscall+0x0/0x30)
[   99.379608] Code: e3a00001 e12fff1e e3a00000 e12fff1e (e7900001)
[   99.386016] ---[ end trace f0c5bc362c9e47f6 ]---
[   99.393432] [drm:drm_release] *ERROR* Device busy: 1
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/BeagleBox:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X.Org X Server 1.9.0
Release Date: 2010-08-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.35-30-generic-pae i686
Current Operating System: Linux BeagleBox 2.6.37 #14 Wed Nov 28 17:05:36 IST 2012 armv7l
Kernel command line: console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootwait rootdelay=1 rootfstype=ext3 vram=16M omapfb.debug=n omapdss.debug=n mpurate=720 mem=128M omapy
Build Date: 10 May 2012  03:04:02PM
 
Current version of pixman: 0.18.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/usr/local/XSGX/var/log/Xorg.0.log", Time: Fri Dec 31 17:02:58 1999
(++) Using config file: "/usr/local/XSGX/etc/xorg.conf"
(==) ServerLayout "Server Layout"
(**) |-->Screen "Screen" (0)
(**) |   |-->Monitor "<default monitor>"
(**) |   |-->Device "Video Device"
(==) No monitor specified for screen "Screen".
        Using a default monitor configuration.
(**) |-->Input Device "Keyboard"
(**) |-->Input Device "Main Touch Screen"
(==) Not automatically adding devices
(==) Not automatically enabling devices
(WW) The directory "/usr/local/XSGX/share/fonts/X11/TTF/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/local/XSGX/share/fonts/X11/OTF/" does not exist.
        Entry deleted from font path.
(==) FontPath set to:
        /usr/local/XSGX/share/fonts/X11/misc/,
        /usr/local/XSGX/share/fonts/X11/Type1/,                                                                           
        /usr/local/XSGX/share/fonts/X11/100dpi/,                                                                          
        /usr/local/XSGX/share/fonts/X11/75dpi/                                                                            
(==) ModulePath set to "/usr/local/XSGX/lib/xorg/modules"                                                                 
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libextmod.so                                                     
(II) Module extmod: vendor="X.Org Foundation"                                                                             
        compiled for 1.9.0, module version = 1.0.0                  +-----------------------------+                       
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libdbe.so  |                             |                       
(II) Module dbe: vendor="X.Org Foundation"                          |  Cannot open /dev/ttyUSB1!  |                       
        compiled for 1.9.0, module version = 1.0.0                  |                             |                       
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libglx.so  +-----------------------------+                       
(II) Module glx: vendor="X.Org Foundation"                                                                                
        compiled for 1.9.0, module version = 1.0.0                                                                        
(==) AIGLX enabled                                                                                                        
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/librecord.so                                                     
(II) Module record: vendor="X.Org Foundation"                                                                             
        compiled for 1.9.0, module version = 1.13.0                                                                       
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libdri.so                                                        
(II) Module dri: vendor="X.Org Foundation"                                                                                
        compiled for 1.9.0, module version = 1.0.0                                                                        
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libdri2.so                                                       
(II) Module dri2: vendor="X.Org Foundation"                                                                               
        compiled for 1.9.0, module version = 1.2.0                                                                        
(II) Loading /usr/local/XSGX/lib/xorg/modules/drivers/pvr_drv.so                                                          
(II) Module PVR: vendor="X.Org Foundation"                                                                                
        compiled for 1.9.0, module version = 1.7.15929                                                                    
(II) Loading /usr/local/XSGX/lib/xorg/modules/input/evdev_drv.so                                                          
(II) Module evdev: vendor="X.Org Foundation"                                                                              
        compiled for 1.9.0, module version = 2.3.2                                                                        
(II) pvr: Driver for PowerVR chipsets: PowerVR SGX                                                                        
(--) using VT number 2                                                                                                    

(WW) Falling back to old probe method for pvr   

Regards,

Prabha

  • Hi Prabha,

    Could you provide me a link to the tutorial which you are follow?

    BR

    Tsvetolin Shulev

  • Hi,

    Have you made sure to run the omap-demo script?

    http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide#Step_2_:_soc_demo_script_verification

    Also please share your complete bootup & execution logs(commands/scripts you would have run).

    Thanks,

    Prathap.

  • Hi Pratap,

    Thanks for replying back.

    Yes, the script runs the omap-demo script.

    Please find the attachment of bootup and execution log.

    Thanks,

    Prabha

    4401.bootlog-xm.txt

  • Hi Shulev,

    I am following the given below link.

    http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide

    http://processors.wiki.ti.com/index.php/SGXDbg

    Also attaching the bootlog.

    6087.bootlog-xm.txt

    Regards,

    Prabha

  • Hi Prabha,

    From the logs you provided, it looks like there is a problem writing to the SGX functional CM_FCLKEN_SGX (0x48004B00) & interface clock registers on your board.

    Can you please comment out the running of omap-demo script as part of init script?. Allow the linux to boot & at command prompt do the steps one by one manually & see where things are going wrong.

    Using devmem , can you provide the dump of the feature status register - 0x4800244C(CONTROL_FEATURE_OMAP_STATUS Register) once the linux boots up.

    Also write to the registers one by one using devmem as below -

    /etc/init.d/devmem2 0x48004B48 w 0x2
    /etc/init.d/devmem2 0x48004B10 w 0x1
    /etc/init.d/devmem2 0x48004B00 w 0x2

    First check whether you can read all registers (for this you can use devmem without the w option ie for eg devmem2 0x48004B48 would give the value of the register).

    Then try writing one by one & see where its failing. You can also refer to TRM for understanding more on these registers if required.

    Thanks,

    Prathap.

  • Hi Prathap,

    Sorry for the late reply.

    As you said i commented the omap-demo script and allowed teh linux to boot. And at the command prompt i issued below given commands:

    BusyBox v1.20.1 (2012-11-20 16:59:59 IST) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    # ls
    # /etc/init.d/devmem2 0x4800244C
    /dev/mem opened.
    Memory mapped at address 0x4034d000.
    Before: Address target 0x4800244C, target&Mask 0x48002000 (virt addr 0x4034d44c)
    After Value at address target=0x4800244C (virt_addr=0x4034d44c): read_result=0x5C00


    # /etc/init.d/devmem2 0x48004B48
    /dev/mem opened.
    Memory mapped at address 0x4015e000.
    Before: Address target 0x48004B48, target&Mask 0x48004000 (virt addr 0x4015eb48)
    After Value at address target=0x48004B48 (virt_addr=0x4015eb48): read_result=0x0

    # /etc/init.d/devmem2 0x48004B10
    /dev/mem opened.
    Memory mapped at address 0x40107000.
    Before: Address target 0x48004B10, target&Mask 0x48004000 (virt addr 0x40107b10)
    After Value at address target=0x48004B10 (virt_addr=0x40107b10): read_result=0x0

    # /etc/init.d/devmem2 0x48004B00
    /dev/mem opened.
    Memory mapped at address 0x40106000.
    Before: Address target 0x48004B00, target&Mask 0x48004000 (virt addr 0x40106b00)
    After Value at address target=0x48004B00 (virt_addr=0x40106b00): read_result=0x0

    # /etc/init.d/devmem2 0x48004B48 w 0x2
    /dev/mem opened.
    Memory mapped at address 0x40143000.
    Before: Address target 0x48004B48, target&Mask 0x48004000 (virt addr 0x40143b48)
    After Value at address target=0x48004B48 (virt_addr=0x40143b48): read_result=0x0
    Written 0x2; readback 0x2

    # /etc/init.d/devmem2 0x48004B10 w 0x1
    /dev/mem opened.
    Memory mapped at address 0x403f0000.
    Before: Address target 0x48004B10, target&Mask 0x48004000 (virt addr 0x403f0b10)
    After Value at address target=0x48004B10 (virt_addr=0x403f0b10): read_result=0x0
    Written 0x1; readback 0x1

    # /etc/init.d/devmem2 0x48004B00 w 0x2
    /dev/mem opened.
    Memory mapped at address 0x40206000.
    Before: Address target 0x48004B00, target&Mask 0x48004000 (virt addr 0x40206b00)
    After Value at address target=0x48004B00 (virt_addr=0x40206b00): read_result=0x0
    Written 0x2; readback 0x2

    # /etc/init.d/devmem2 0x50000014
    /dev/mem opened.[ 1281.884277] Unhandled fault: external abort on non-linefetch (0x1018) at 0x40361014

    Memory mapped at address 0x40361000.
    Before: Address target 0x50000014, target&Mask 0x50000000 (virt addr 0x40361014)
    Bus error
    #

    I am getting error when i am trying to read 0x50000014 location.

    Regards,

    Prabha

                                                                                        

  • Hi Prathap,

    One additional input same code is working fine for REV C beagleboard and read of 0x50000014 is working fine in Rev C4.

    1. I tried to understand what register "0x50000014" (SGX register register memory map from DM3730-TRM-pdf) and whether there is any change in register memory map between Rev C4 and xM. It has for all registers (0x48004B48, 0x48004B10, 0x48004B10), except 0x50000014

    (Please provide links to relevant pdf to understand what the specific register is about)

    2. Any reference links/blogs you can provide where SGX is working fine in Beagle board xM

    Regards

    Prabha

  • Hi Prabha,

    Thanks for the additional inputs. Appreciate it.

    0x50000014 is the SGX Revision register. It will provide the SGX core version present on the board.

    For eg on my 3730 EVM setup, the dump is as follows -

    # /etc/init.d/devmem2 0x50000014
    /dev/mem opened.
    Memory mapped at address 0x40329000.
    Value at address 0x50000014 (0x40329014): 0x10205

    But i am seeing the problem with the dump of  CONTROL_FEATURE_OMAP_STATUS register (0x4800244C) on your board. It should give value of 0x0 for 13-14 bit.  It means SGX is available with full speed clock. I am getting the expected value on my 3730 EVM setup as below -

    # /etc/init.d/devmem2 0x4800244C
    /dev/mem opened.
    Memory mapped at address 0x40447000.
    Value at address 0x4800244C (0x4044744c): 0xC00

    Can you please check the values for 13-14 bit on your Rev C4 and xM setups? The details of this register( CONTROL_FEATURE_OMAP_STATUS) is  available in the 3730 TRM.

    Thanks,

    Prathap.

  • Hi Prathap,

    Thanks for the reply.

    I had one more xM board. So i tried the same on that board.

    I am getting the value on my another xM board setup as below:

    #  /etc/init.d/devmem2 0x4800244C
    /dev/mem opened.
    Memory mapped at address 0x4038e000.
    Before: Address target 0x4800244C, target&Mask 0x48002000 (virt addr 0x4038e44c)
    After Value at address target=0x4800244C (virt_addr=0x4038e44c): read_result=0xE00

    # /etc/init.d/devmem2 0x48004B48 w 0x2
    /dev/mem opened.
    Memory mapped at address 0x401f0000.
    Before: Address target 0x48004B48, target&Mask 0x48004000 (virt addr 0x401f0b48)
    After Value at address target=0x48004B48 (virt_addr=0x401f0b48): read_result=0x3
    Written 0x2; readback 0x2


    #  /etc/init.d/devmem2 0x48004B10 w 0x1
    /dev/mem opened.
    Memory mapped at address 0x403de000.
    Before: Address target 0x48004B10, target&Mask 0x48004000 (virt addr 0x403deb10)
    After Value at address target=0x48004B10 (virt_addr=0x403deb10): read_result=0x0
    Written 0x1; readback 0x1


    #  /etc/init.d/devmem2 0x48004B00 w 0x2
    /dev/mem opened.
    Memory mapped at address 0x402e6000.
    Before: Address target 0x48004B00, target&Mask 0x48004000 (virt addr 0x402e6b00)
    After Value at address target=0x48004B00 (virt_addr=0x402e6b00): read_result=0x0
    Written 0x2; readback 0x2

    # cat /etc/init.d/sgxrevision.txt
    /dev/mem opened.
    Memory mapped at address 0x401c0000.
    Before: Address target 0x50000014, target&Mask 0x50000000 (virt addr 0x401c0014)
    After Value at address target=0x50000014 (virt_addr=0x401c0014): read_result=0x10205

    With the old board i am getting same error(Bus error ) and value of 0x4800244C register is 5C00

    I searched in the TRM guide for the CONTROL_FEATURE_OMAP_STATUS register,but i didn't get any details in that pdf.I am reffering sprugn4r.pdf.

    1.Is 0x4800244C register is a read only register?

    How to resolve this? Am i missing any patches?

    I am facing one new problem with my new board.

    I have compiled my Garphic SDk with make ARCH=arm OMAPES=5.x SUPPORT_XORG=1 all and make ARCH=arm OMAPES=5.x SUPPORT_XORG=1  install
    option.

    When boot the board i am getting following error:

    [    4.746307] [drm] Initialized drm 1.1.0 20060810
    [    4.963867] pvrsrvkm: Unknown symbol drm_pvr_dev_remove (err 0)
    [    4.973358] pvrsrvkm: Unknown symbol drm_pvr_dev_add (err 0)
    modprobe: 'extra/pvrsrvkm.ko': unknown symbol in module or invalid parameter

    I am using AM35x-OMAP35x-LINUX-PSP-04.02.00.07 kernel and Graphics_SDK_setuplinux_4_06_00_03.bin sdk. And also in the release note i have seen that X11 is supported.

    Please help me in this regard.

    Thanks,

    prabha


  • Hi Prathap,

    pvrsrvkm: Unknown symbol drm_pvr_dev_remove (err 0) issue is solved. But i am getting some other error as given below:

    (==) pvr(0): DPMS enabled
    (==) pvr(0): Direct rendering enabled
    (EE) pvr(0): PVRDisplayCommandNoArgs: drmCommandWrite failed (-22)
    (EE) pvr(0): PVRDisplayScreenInitFinalize: PVRDisplayCommandNoArgs failed (-22)
    (==) RandR enabled

    I followed SGXDbg link and copied below line in my xorg.conf and restarted the X again.

    Section ServerFlags

           Option          "BlankTime"     "30"
           Option          "StandbyTime"   "30"
           Option          "SuspendTime"   "30"
           Option          "OffTime"       "60"
    1323.xlog.txt
    http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/447/1447.config.txt<br />0005.xorgconf.txt

    EndSection.

    But i am not getting any display in my HDMI port.

    Please find the attachment of config file,xorg.conf and xlog for your reference.

    Thanks and regards,

    Prabha


  • Hi Prabha,

    Good to know that you were able to solve the commonly encountered problems by following the sgxdbg instructions.

    From your logs(xlog.txt), its clear that the 3D demo is running. No issues with SGX or Xorg driiver from the logs you provided.

    Can you check if the HDMI display is working fine on that board by running any fbdev unit test application?

    I am providing some check points for cross checking/reference. These are also present in the user guide.

    * To check if system is fine/ready to run X apps, make sure you see the log 
    (==) pvr(0): Direct rendering enabled
    on running the omap-demo script (This is there in the logs you provided). * Also check lsmod. It should show the output as below(2 modules inserted successfully)- # lsmod Module Size Used by pvrsrvkm 165296 2 drm 128254 3 pvrsrvkm * Also check if X is running - issue ps -eaf command on the board and make sure X is running - root 2136 1 1 07:47 tty2 00:00:05 /usr/local/XSGX/bin/X -verbose If its not running then drm module might not have inserted properly. In this case issue depmod -a command on the board Linux command prompt and reboot the board.
    Once the board comes up, run the omap-demo script. * Now issue following commands - export LD_LIBRARY_PATH=/usr/local/XSGX/lib export DISPLAY=:0

    * Check xorg.conf to be present under /usr/local/XSGX/etc

     * Now the system is ready to run any X-app. One can run unit test application as shown - # /usr/local/XSGX/bin/glxgears 193 frames in 5.0 seconds = 38.411 FPS 192 frames in 5.0 seconds = 38.355 FPS 193 frames in 5.0 seconds = 38.428 FPS

    You can also check by issuing cat /proc/interrupts. This should show SGX interrupts increasing continously when running any 3D demo or unit test app.
    If you see all the above points are fine, then first make sure that the HDMI display is working fine on that board by running any framebuffer (fbdev) application.

    Thanks,

    Prathap.

  • Hi Prathap,

    I followed all the steps you have mentioned.

    I ran the default image came with the board. With that image i verified that HDMI display is working fine. I ran framebuffer application also.

    But with the framebuffer application i am not getting any display.

    But in the minicom i can see only

    The framebuffer device was opened successfully.
    1024x768, 16bpp
    The framebuffer device was mapped to memory successfully.

    # ps
    PID USER VSZ STAT COMMAND
    1 root 2712 S init
    2 root 0 SW [kthreadd]
    3 root 0 SW [ksoftirqd/0]
    4 root 0 SW [kworker/0:0]
    5 root 0 SW [kworker/u:0]
    6 root 0 SW< [khelper]
    47 root 0 SW [irq/72-serial i]
    49 root 0 SW [irq/73-serial i]
    51 root 0 SW [irq/74-serial i]
    53 root 0 SW [irq/80-serial i]
    180 root 0 SW [sync_supers]
    182 root 0 SW [bdi-default]
    184 root 0 SW< [kblockd]
    196 root 0 SW< [omap2_mcspi]
    207 root 0 SW [khubd]
    210 root 0 SW [kseriod]
    218 root 0 SW< [twl4030-irqchip]
    219 root 0 SW [twl4030-irq]
    243 root 0 SW< [kmmcd]
    330 root 0 SW< [rpciod]
    332 root 0 SW [kworker/0:1]
    342 root 0 SW [kswapd0]
    343 root 0 SW [fsnotify_mark]
    344 root 0 SW< [aio]
    345 root 0 SW< [nfsiod]
    346 root 0 SW< [crypto]
    359 root 0 SW< [dsi]
    468 root 0 SW< [kpsmoused]
    471 root 0 SW [irq/376-twl4030]
    472 root 0 SW [kworker/u:2]
    486 root 0 SW< [kondemand]
    487 root 0 SW< [kconservative]
    497 root 0 SW< [usbhid_resumer]
    515 root 0 SW [mmcqd/0]
    520 root 0 SW [kjournald]
    550 root 2712 S /sbin/syslogd -m 0
    552 root 2712 S /sbin/klogd
    568 daemon 1596 S portmap
    583 dbus 2344 S dbus-daemon --system
    605 root 4264 S /usr/sbin/connmand -n
    610 root 3028 S /usr/sbin/ntpd
    623 root 2076 S /usr/sbin/dropbear
    648 root 2716 S -sh
    649 root 2716 S /sbin/getty -L tty0 38400 vt100
    672 root 0 SW [flush-179:0]
    723 root 16388 S /usr/local/XSGX/bin/X -verbose -config /usr/local/XS
    732 root 0 SW< [pvr_timer]
    737 root 0 SW< [pvr_workqueue]
    745 root 2716 R ps
    # export LD_LIBRARY_PATH=/usr/local/XSGX/lib
    # export DISPLAY=:0
    # /usr/local/XSGX/bin/glxgears
    284 frames in 5.0 seconds = 56.629 FPS
    283 frames in 5.0 seconds = 56.497 FPS
    283 frames in 5.0 seconds = 56.491 FPS
    283 frames in 5.0 seconds = 56.490 FPS
    283 frames in 5.0 seconds = 56.495 FPS
    (II) Keyboard: Close

    # (II) Main Touch Screen: Close
    (II) pvr(0): [DRI2] Setup complete
    (II) pvr(0): [DRI2] DRI driver: pvr
    (II) EXA(0): Driver allocated offscreen pixmaps
    (II) EXA(0): Driver registered support for the following operations:
    (II) Solid
    (II) Copy
    (II) Composite (RENDER acceleration)
    (II) UploadToScreen
    (==) pvr(0): DPMS enabled
    (==) pvr(0): Direct rendering enabled
    (EE) pvr(0): PVRDisplayCommandNoArgs: drmCommandWrite failed (-22)
    (EE) pvr(0): PVRDisplayScreenInitFinalize: PVRDisplayCommandNoArgs failed (-22)
    (==) RandR enabled
    (EE) AIGLX error: dlopen of /usr/local/XSGX/lib/dri/pvr_dri.so failed (/usr/local/XSGX/lib/dri/pvr_dri.so: cannot open shared object file: No such file or directory)
    (EE) AIGLX: reverting to software rendering
    (II) AIGLX: Screen 0 is not DRI capable
    (II) AIGLX: Loaded and initialized /usr/local/XSGX/lib/dri/swrast_dri.so
    (II) GLX: Initialized DRISWRAST GL provider for screen 0
    (**) Keyboard: always reports core events
    (**) Keyboard: Device: "/dev/input/event0"
    (II) Keyboard: Found 9 mouse buttons
    (II) Keyboard: Configuring as mouse
    (**) Keyboard: YAxisMapping: buttons 4 and 5
    (**) Keyboard: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    (**) Main Touch Screen: always reports core events
    (**) Main Touch Screen: Device: "/dev/input/event1"
    (II) Main Touch Screen: Found keys
    (II) Main Touch Screen: Configuring as keyboard


    0005.fb1.c

    Kindly help me how to proceed further.

    Regards,

    prabha

  • Hi Prabha,

    Thanks for the info. Need some clarification.

    Are you mentioning that you are able to get the HDMI display working fine with standalone framebuffer application using the uImage that came with the board but not with the uImage you built? If so what is the difference between the 2 images? Are you building the kernel with defconfig? Can you check if the frame buffer/HDMI display is enabled in your kernel build through menuconfig?

    As i mentioned earlier this is not a SGX problem. You need to get the standalone framebuffer HDMI display working fine first & then only try running SGX apps.

    In this case, please raise a separate query/issue mentioning that you are not able to get the frame buffer HDMI display working on your board so that the frame buffer driver experts can take a look & provide you the right pointers.

    Thanks,

    Prathap.

  • Hi Pratap,

    i ran the frame buffer application from minicom. Is that correct? i rechecked my config with the default image .

    As you can see from the below log Frame buffer is enabled:

    lt)
    [ 0.119110] omapdss CORE: clk ick, rate 83000000
    [ 0.119140] omapdss CORE: clk dss1_fck, rate 96000000
    [ 0.119171] omapdss CORE: clk dss2_fck, rate 13000000
    [ 0.119171] omapdss CORE: clk tv_fck, rate 54000000
    [ 0.119201] omapdss CORE: clk video_fck, rate 96000000
    [ 0.119262] omapdss CORE: initial ctx id 0
    [ 0.177215] OMAP DSS rev 2.0
    [ 0.177368] OMAP DISPC rev 3.0
    [ 0.177398] OMAP VENC rev 2
    [ 0.177886] OMAP DSI rev 1.0
    [ 0.178466] omapdss CORE: bus_match. dev display0/generic_panel, drv venc
    [ 0.178863] omapdss CORE: bus_match. dev display1/venc, drv venc
    [ 0.178924] omapdss CORE: driver_probe: dev display1/venc, drv venc
    [ 0.178924] omapdss VENC: init_display
    [ 0.341094] omapdss CORE: probe done for device display1
    [ 0.341125] omapdss CORE: save context
    [ 0.341552] omapdss CORE: bus_match. dev display0/generic_panel, drv generic_panel
    [ 0.341613] omapdss CORE: driver_probe: dev display0/generic_panel, drv generic_panel
    [ 0.341613] omapdss DPI: init_display
    [ 0.341705] omapdss CORE: restore context
    [ 0.395782] omapdss CORE: save context
    [ 0.395874] omapdss CORE: restore context
    [ 0.450469] omapdss CORE: save context
    [ 0.450531] omapdss CORE: restore context
    [ 0.505187] omapdss CORE: save context
    [ 0.505218] omapdss CORE: probe done for device display0
    [ 0.505249] omapdss CORE: bus_match. dev display1/venc, drv generic_panel
    [ 0.505584] omapdss CORE: bus_match. dev display0/generic_panel, drv sharp_ls_panel
    [ 0.505615] omapdss CORE: bus_match. dev display1/venc, drv sharp_ls_panel
    [ 0.506805] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [ 0.510345] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
    [ 0.511077] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
    [ 0.511688] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
    [ 0.512268] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a OMAP UART3

    OMAPFB: omapfb_init
    [ 2.673980] OMAPFB: omapfb_probe
    [ 2.674041] fbcvt: 1024x768@60: CVT Name - .786M3-R
    [ 2.674072] omapdss DSI: dsi_pll_calc
    [ 2.674987] omapdss DPI: dpi_set_timings
    [ 2.674987] OMAPFB: create 3 framebuffers
    [ 2.675018] OMAPFB: fb_infos allocated
    [ 2.675018] OMAPFB: allocating 8388608 bytes for fb 0
    [ 2.677124] ehci-omap ehci-omap.0: GetStatus port:2 status 001803 0 ACK POWER sig=j CSC CONNECT
    [ 2.677154] hub 1-0:1.0: port 2: status 0501 change 0001
    [ 2.726470] OMAPFB: allocated VRAM paddr 87000000, vaddr c9000000
    [ 2.726470] OMAPFB: allocating 4194304 bytes for fb 1
    [ 2.752105] OMAPFB: allocated VRAM paddr 87800000, vaddr ca000000
    [ 2.752136] OMAPFB: allocating 4194304 bytes for fb 2
    [ 2.777770] OMAPFB: allocated VRAM paddr 87c00000, vaddr ca800000
    [ 2.777770] OMAPFB: region0 phys 87000000 virt c9000000 size=8388608
    [ 2.777801] OMAPFB: region1 phys 87800000 virt ca000000 size=4194304
    [ 2.777801] OMAPFB: region2 phys 87c00000 virt ca800000 size=4194304
    [ 2.777801] OMAPFB: fbmems allocated
    [ 2.777893] OMAPFB: check_fb_var 0
    [ 2.777893] OMAPFB: max frame size 8388608, line size 2048
    [ 2.777923] OMAPFB: xres = 1024, yres = 768, vxres = 1024, vyres = 768
    [ 2.777923] OMAPFB: set_fb_fix
    [ 2.777984] OMAPFB: check_fb_var 1
    [ 2.777984] OMAPFB: max frame size 4194304, line size 2048
    [ 2.777984] OMAPFB: xres = 1024, yres = 768, vxres = 1024, vyres = 768
    [ 2.778015] OMAPFB: set_fb_fix
    [ 2.778076] OMAPFB: check_fb_var 2
    [ 2.778076] OMAPFB: max frame size 4194304, line size 2048
    [ 2.778076] OMAPFB: xres = 1024, yres = 768, vxres = 1024, vyres = 768
    [ 2.778076] OMAPFB: set_fb_fix
    [ 2.778106] OMAPFB: fb_infos initialized
    [ 2.778869] hub 1-0:1.0: state 7 ports 3 chg 0004 evt 0000
    [ 2.778930] hub 1-0:1.0: port 2, status 0501, change 0000, 480 Mb/s
    [ 2.779998] OMAPFB: set_par(0)
    [ 2.779998] OMAPFB: set_fb_fix
    [ 2.779998] OMAPFB: apply_changes, fb 0, ovl 0
    [ 2.780029] OMAPFB: setup_overlay 0, posx 0, posy 0, outw 1024, outh 768
    [ 2.780029] OMAPFB: paddr 87000000, vaddr c9000000
    [ 2.780059] omapdss MANAGER: omap_dss_mgr_apply(lcd)
    [ 2.780181] omapdss CORE: restore context
    [ 2.780212] omapdss MANAGER: configure_manager(0)
    [ 2.780242] omapdss MANAGER: configure_manager(1)
    [ 2.780273] omapdss CORE: save context
    [ 2.780395] OMAPFB: pan_display(0)
    [ 2.780426] OMAPFB: setcmap
    [ 2.780426] OMAPFB: setcmap
    [ 2.786071] Console: switching to colour frame buffer device 128x48
    [ 2.786102] OMAPFB: pan_display(0)
    [ 2.786102] OMAPFB: setcmap
    [ 2.791412] OMAPFB: setcmap
    [ 2.792633] OMAPFB: framebuffers registered
    [ 2.792633] OMAPFB: apply_changes, fb 0, ovl 0
    [ 2.792663] OMAPFB: setup_overlay 0, posx 0, posy 0, outw 1024, outh 768
    [ 2.792663] OMAPFB: paddr 87000000, vaddr c9000000
    [ 2.792694] OMAPFB: apply_changes, fb 1, ovl 1
    [ 2.792694] OMAPFB: setup_overlay 1, posx 0, posy 0, outw 1024, outh 768
    [ 2.792694] OMAPFB: paddr 87800000, vaddr ca000000
    [ 2.792724] OMAPFB: apply_changes, fb 2, ovl 2
    [ 2.792724] OMAPFB: setup_overlay 2, posx 0, posy 0, outw 1024, outh 768
    [ 2.792724] OMAPFB: paddr 87c00000, vaddr ca800000
    [ 2.792755] omapdss OVERLAY: check_overlay 0: (0,0 1024x768 -> 1024x768) disp (1024x768)
    [ 2.792755] OMAPFB: create_framebuffers done
    [ 2.792755] omapdss MANAGER: omap_dss_mgr_apply(lcd)
    [ 2.792785] omapdss OVERLAY: check_overlay 0: (0,0 1024x768 -> 1024x768) disp (1024x768)
    [ 2.792816] omapdss CORE: restore context
    [ 2.792877] omapdss MANAGER: configure_overlay(0)
    [ 2.792877] omapdss DISPC: dispc_setup_plane 0, pa 87000000, sw 1024, 0,0, 1024x768 -> 1024x768, ilace 0, cmo0
    [ 2.792907] omapdss DISPC: calc_rot(0): scrw 1024, 1024x768
    [ 2.792907] omapdss DISPC: offset0 0, offset1 0, row_inc 1, pix_inc 1
    [ 2.792938] omapdss DISPC: 0,0 1024x768 -> 1024x768
    [ 2.792938] omapdss DISPC: fifo(0) low/high old 960/1023, new 960/1023
    [ 2.792968] omapdss DISPC: dispc_enable_plane 0, 1
    [ 2.792968] omapdss CORE: save context
    [ 2.793060] omapdss MANAGER: omap_dss_mgr_apply(tv)
    [ 2.793090] omapdss CORE: restore context
    [ 2.793121] omapdss CORE: save context
    [ 2.793151] OMAPFB: mgr->apply'ed
    [ 2.793701] omapdss CORE: restore context
    [ 2.793731] omapdss DSI: PLL init
    [ 2.793762] omapdss DSI: PLL init done
    [ 2.793762] omapdss DISPC: onoff 0 rf 0 ieo 0 ipc 0 ihs 0 ivs 0 acbi 0 acb 0
    [ 2.793792] omapdss DSI: DSI clock info found from cache
    [ 2.793792] omapdss DSI: dsi_pll_set_clock_div()
    [ 2.793823] omapdss DSI: DSI Fint 1857142
    [ 2.793823] omapdss DSI: clkin (dss2_fck) rate 13000000, highfreq 0
    [ 2.793823] omapdss DSI: CLKIN4DDR = 2 * 392 / 7 * 13000000 / 1 = 1456000000
    [ 2.793853] omapdss DSI: Data rate on 1 DSI lane 728 Mbps
    [ 2.793853] omapdss DSI: Clock lane freq 364000000 Hz
    [ 2.793853] omapdss DSI: regm3 = 13, dsi1_pll_fclk = 112000000
    [ 2.793853] omapdss DSI: regm4 = 0, dsi2_pll_fclk = 0
    [ 2.794006] omapdss DSI: PLL config done
    [ 2.794006] omapdss DISPC: lck = 112000000 (1)
    [ 2.794006] omapdss DISPC: pck = 56000000 (2)
    [ 2.794067] omapdss DISPC: xres 1024 yres 768
    [ 2.794097] omapdss DISPC: pck 56000
    [ 2.794097] omapdss DISPC: hsw 32 hfp 48 hbp 80 vsw 4 vfp 15 vbp 3
    [ 2.794097] omapdss DISPC: hsync 47297Hz, vsync 59Hz
    [ 2.795806] OMAPFB: create sysfs for fbs
    [ 2.795837] OMAPFB: create sysfs for fbs
    [ 2.796508] regulator_init_complete: incomplete constraints, leaving VAUX3 on
    [ 2.796722] regulator_init_complete: incomplete constraints, leaving VDAC on
    [ 2.797485] twl_rtc twl_rtc: setting system clock to 2000-01-01 00:06:08 UTC (946685168)
    [ 2.797607] omap_vout omap_vout: probed for an unknown device
    [ 2.798370] Warning: unable to open an initial console.
    [ 2.798400] Waiting 1sec before mounting root device...
    [ 2.841033] ehci-omap ehci-omap.0: port 2 high speed
    [ 2.841064] ehci-omap ehci-omap.0: GetStatus port:2 status 001005 0 ACK POWER sig=se0 PE CONNECT
    [ 2.903533] usb 1-2: new high speed USB device using ehci-omap and address 2
    [ 2.966094] ehci-omap ehci-omap.0: port 2 high speed
    [ 2.966125] ehci-omap ehci-omap.0: GetStatus port:2 status 001005 0 ACK POWER sig=se0 PE CONNECT
    [ 3.020782] mmc0: new high speed SDHC card at address b368
    [ 3.021697] mmcblk0: mmc0:b368 USD 7.46 GiB
    [ 3.024780] mmcblk0: p1 p2
    [ 3.060516] usb 1-2: udev 2, busnum 1, minor = 1
    [ 3.060516] usb 1-2: New USB device found, idVendor=0424, idProduct=9514
    [ 3.060546] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [ 3.061370] usb 1-2: usb_probe_device
    [ 3.061370] usb 1-2: configuration #1 chosen from 1 choice
    [ 3.061676] usb 1-2: adding 1-2:1.0 (config #1, interface 0)
    [ 3.062103] hub 1-2:1.0: usb_probe_interface
    [ 3.062103] hub 1-2:1.0: usb_probe_interface - got id
    [ 3.062133] hub 1-2:1.0: USB hub found
    [ 3.062377] hub 1-2:1.0: 5 ports detected
    [ 3.062377] hub 1-2:1.0: compound device; port removable status: FRRRR
    [ 3.062408] hub 1-2:1.0: individual port power switching
    [ 3.062408] hub 1-2:1.0: individual port over-current protection
    [ 3.062774] hub 1-2:1.0: TT per port
    [ 3.062774] hub 1-2:1.0: TT requires at most 8 FS bit times (666 ns)
    [ 3.062805] hub 1-2:1.0: power on to power good time: 100ms
    [ 3.063232] hub 1-2:1.0: local power source is good
    [ 3.063262] hub 1-2:1.0: enabling power on all ports
    [ 3.064788] drivers/usb/core/inode.c: creating file '002'
    [ 3.161560] hub 1-2:1.0: port 1: status 0101 change 0001
    [ 3.263031] usb 1-2: link qh256-0001/c6b84e00 start 1 [1/0 us]
    [ 3.263092] hub 1-2:1.0: state 7 ports 5 chg 0002 evt 0000
    [ 3.263610] hub 1-2:1.0: port 1, status 0101, change 0000, 12 Mb/s
    [ 3.349151] usb 1-2.1: new high speed USB device using ehci-omap and address 3
    [ 3.466735] usb 1-2.1: udev 3, busnum 1, minor = 2
    [ 3.466766] usb 1-2.1: New USB device found, idVendor=0424, idProduct=ec00
    [ 3.466766] usb 1-2.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [ 3.467590] usb 1-2.1: usb_probe_device
    [ 3.467620] usb 1-2.1: configuration #1 chosen from 1 choice
    [ 3.469909] usb 1-2.1: adding 1-2.1:1.0 (config #1, interface 0)
    [ 3.470428] usbtest 1-2.1:1.0: usb_probe_interface
    [ 3.470428] usbtest 1-2.1:1.0: usb_probe_interface - got id
    [ 3.471466] drivers/usb/core/inode.c: creating file '003'
    [ 3.471649] hub 1-2:1.0: state 7 ports 5 chg 0000 evt 0002
    [ 3.807647] EXT3-fs: barriers not enabled
    [ 3.809051] kjournald starting. Commit interval 5 seconds
    [ 3.812103] EXT3-fs (mmcblk0p2): using internal journal
    [ 3.812286] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
    [ 3.812438] VFS: Mounted root (ext3 filesystem) on device 179:2.
    [ 3.814849] devtmpfs: mounted
    [ 3.814941] Freeing init memory: 188K
    [ 9.458709] [drm] Initialized drm 1.1.0 20060810
    [ 10.170166] [drm] Initialized pvrsrvkm 1.7.867897 Wed December 12 IST 2012 for SGX on minor 0
    [ 10.598480] OMAPFB: pan_display(0)
    [ 10.598480] OMAPFB: setcmap
    [ 10.598510] OMAPFB: setcmap

    To which mailing list i have to raise this query? and can you tell me how to test the standalone Frame buffer application?

    Regards,

    prabha

  • Hi Prabha,

    Your observation so far is that the frame buffer HDMI display works fine with prebuilt uImage and does not work with the uImage you have built right?

    As mentioned earlier , you can try running SGX apps only after you confirm that the standalone framebuffer HDMI display is working fine using any frame buffer sample or test application that you know to be working fine.

    If you are seeing issues with the standalone framebuffer sample or test application itself or want to get more details on it, please raise it as a separate query/issue in the same forum just like the one you have raised on SGX.  This will grab the attention of frame buffer driver experts & can help you to get right pointers.

    Thanks,

    Prathap.

  • Sorry for this late  intrusion,

    You say you have managed to operate a Beagle xm Rev C board using the TI AM35x-OMAP35x-LINUX-PSP-04.02.00.07. May I ask how you managed this? We have tried the stock PSP and it does not work/recognise the xM Rev C board. Looking at the specific code, x-load, u-boot etc, it only seems to support the original xM release and not the Rev C.

    Any Guideance on how to get the PSP to work with a xM Rev C board would be very kusc appreciated.

    Dave

  • prabha janardhan said:

    Hi Prathap,

    pvrsrvkm: Unknown symbol drm_pvr_dev_remove (err 0) issue is solved. But i am getting some other error as given below:

     

     

    Gidday Prabha,

    Did you resolve the bus error issue when trying to read the SGX version? What extra steps did you need to do to turn on the SGX?

     

    Thanks in advance

     

    Joshua