Tool/software: TI C/C++ Compiler
Hi
I've loaded SGK drivers, but it doesn't seem to work. How do I debug.
I am using the SDK version Ti processor SDK Linux RT am335x EVM 06.03.00.106 Linux x86- Install.bin 。 Drive used: / board support / extra drivers / ti-sgx-ddk-km-1.17.4948957
root@am335x-evm:/# pvrsrvctl --no-module --start
[ 1073.734091] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
PVR:(Error): SrvInit: PVRSRVInitSrvConnect failed (129) [0, ]
pvrsrvctl: SrvInit failed (already initialized?) (err=PVRSRV_ERROR_SRV_CONNECT_FAILED)
root@am335x-evm:/#
root@am335x-evm:/#
root@am335x-evm:/# lsmod
Module Size Used by
xfrm_user 36864 2
xfrm4_tunnel 16384 0
ipcomp 16384 0
xfrm_ipcomp 16384 1 ipcomp
esp4 20480 0
ah4 16384 0
af_key 36864 0
xfrm_algo 16384 5 xfrm_user,esp4,ah4,af_key,xfrm_ipcomp
usb_f_acm 16384 1
u_serial 20480 3 usb_f_acm
usb_f_ecm 16384 1
g_multi 16384 0
usb_f_mass_storage 45056 2 g_multi
usb_f_rndis 28672 2 g_multi
u_ether 20480 3 usb_f_ecm,g_multi,usb_f_rndis
libcomposite 53248 5 usb_f_ecm,usb_f_acm,usb_f_mass_storage,g_multi,usb_f_rndis
musb_dsps 20480 0
musb_hdrc 106496 1 musb_dsps
phy_am335x 16384 2
phy_generic 16384 1 phy_am335x
udc_core 28672 8 usb_f_ecm,usb_f_acm,usb_f_mass_storage,u_serial,musb_hdrc,u_ether,usb_f_rndis,libcomposite
phy_am335x_control 16384 1 phy_am335x
pm33xx 16384 0
wkup_m3_ipc 16384 1 pm33xx
wkup_m3_rproc 16384 1
remoteproc 49152 2 wkup_m3_rproc,wkup_m3_ipc
pvrsrvkm 401408 0
omap_aes_driver 24576 0
crypto_engine 16384 1 omap_aes_driver
omap_crypto 16384 1 omap_aes_driver
omap_sham 28672 0
ti_emif_sram 16384 1 pm33xx
at24 20480 0
rtc_omap 20480 2
musb_am335x 16384 0
omap_wdt 16384 0
sch_fq_codel 20480 3
uio_module_drv 16384 0
uio 20480 1 uio_module_drv
ftdi_sio 40960 0
usbserial 36864 1 ftdi_sio
usbcore 212992 3 ftdi_sio,musb_hdrc,usbserial
usb_common 16384 6 phy_am335x,udc_core,musb_hdrc,libcomposite,musb_dsps,usbcore
cryptodev 49152 0
root@am335x-evm:/#
root@am335x-evm:/#
root@am335x-evm:/# /etc/init.d/rc.pvr start
[ 1637.164120] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
PVR:(Error): SrvInit: PVRSRVInitSrvConnect failed (129) [0, ]
/usr/bin/pvrsrvctl: SrvInit failed (already initialized?) (err=PVRSRV_ERROR_SRV_CONNECT_FAILED)
root@am335x-evm:/# kmscube
### Display [0]: CRTC = 29, Connector = 31, format = 0x36314752
Mode chosen [1024x600] : Clock => 36000, Vertical refresh => 42, Type => 72
Horizontal => 1024, 1184, 1204, 1344, 0
Vertical => 600, 612, 615, 635, 0
### Primary display => ConnectorId = 31, Resolution = 1024x600
Using display 0x38730 with EGL version 1.5
EGL Version "1.5"
EGL Vendor "Mesa Project"
EGL Extensions "EGL_EXT_buffer_age EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_IMG_cl_image EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_WL_bind_wayland_display "
failed to create egl surface
failed to initialize EGL
root@am335x-evm:/# pvrsrvctl --start --no-module
[ 1655.844078] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
PVR:(Error): SrvInit: PVRSRVInitSrvConnect failed (129) [0, ]
pvrsrvctl: SrvInit failed (already initialized?) (err=PVRSRV_ERROR_SRV_CONNECT_FAILED)
root@am335x-evm:/# ldd pvrsrvctl
ldd: ./pvrsrvctl: No such file or directory
root@am335x-evm:/# ldd /usr/bin/pvrsrvctl
libsrv_init.so.1 => /usr/lib/libsrv_init.so.1 (0xb6eb6000)
libsrv_um.so.1 => /usr/lib/libsrv_um.so.1 (0xb6e72000)
libc.so.6 => /lib/libc.so.6 (0xb6d30000)
libdl.so.2 => /lib/libdl.so.2 (0xb6d1d000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb6cf4000)
librt.so.1 => /lib/librt.so.1 (0xb6cdd000)
libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb6cc3000)
/lib/ld-linux-armhf.so.3 (0xb6f06000)
libm.so.6 => /lib/libm.so.6 (0xb6c44000)
root@am335x-evm:/# dmesg | grep -i pvr
[ 15.535359] [drm] Initialized pvr 1.17.4948957 20110701 for 56000000.sgx on minor 1
[ 17.547645] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
[ 342.653240] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
[ 629.113366] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
[ 685.463993] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
[ 899.154072] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
[ 1073.734091] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
[ 1637.164120] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
[ 1655.844078] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
root@am335x-evm:/# modinfo pvrsrvkm.ko
modinfo: ERROR: Module pvrsrvkm.ko not found.
root@am335x-evm:/# modinfo /lib/modules/4.19.94-rt39-ga242ccf3f1/extra/pvrsrvkm.ko
filename: /lib/modules/4.19.94-rt39-ga242ccf3f1/extra/pvrsrvkm.ko
license: Dual MIT/GPL
author: Imagination Technologies Ltd. <gpl-support@imgtec.com>
license: Dual MIT/GPL
author: Imagination Technologies Ltd. <gpl-support@imgtec.com>
srcversion: 533BB7E5866E52F63B9ACCB
alias: of:N*T*Cti,am3352-sgx530C*
alias: of:N*T*Cti,am3352-sgx530
alias: of:N*T*Cti,am4376-sgx530C*
alias: of:N*T*Cti,am4376-sgx530
alias: of:N*T*Cti,dra7-sgx544C*
alias: of:N*T*Cti,dra7-sgx544
alias: of:N*T*Cti,am654-sgx544C*
alias: of:N*T*Cti,am654-sgx544
depends:
name: pvrsrvkm
vermagic: 4.19.94-rt39-ga242ccf3f1 preempt mod_unload modversions ARMv7 p2v8
parm: gPVRDebugLevel:Sets the level of debug output (default 0x7) (uint)
root@am335x-evm:/#
TISDK: ti-processor-sdk-linux-rt-am335x-evm-06.03.00.106-Linux-x86-Install.bin
In dtsi:
&sgx {
status = "okay";
};
file system:tisdk-rootfs-image-am335x-evm.tar.xz