Hi there,
I am using the Community Edition of Streamline and am connecting to an EXYNOS5422 with a ARM Mail-T628 on board.
I'm trying to view the Mali counters for the GPU, but I cannot see the option in my Streamline counter configuration. When I try to add the Mali Midgard via "Add counters from a template", it says that my target does not support them.
Can I get some information on which configs I should be turning on? I suppose I may have missed something, but I turned on :
~$ zcat /proc/config.gz | grep MALI
CONFIG_MALI_MIDGARD=y
# CONFIG_MALI_TIMELINE_DISABLED is not set
CONFIG_MALI_GATOR_SUPPORT=y
# CONFIG_MALI_MIPE_ENABLED is not set
CONFIG_MALI_MIDGARD_DVFS=y
CONFIG_MALI_MIDGARD_ENABLE_TRACE=y
# CONFIG_MALI_DEVFREQ is not set
CONFIG_MALI_EXPERT=y
# CONFIG_MALI_DEBUG_SHADER_SPLIT_FS is not set
CONFIG_MALI_PLATFORM_FAKE=y
# CONFIG_MALI_PLATFORM_DEVICETREE is not set
CONFIG_MALI_PLATFORM_THIRDPARTY=y
CONFIG_MALI_PLATFORM_THIRDPARTY_NAME="5422"
# CONFIG_MALI_DEBUG is not set
# CONFIG_MALI_NO_MALI is not set
# CONFIG_MALI_TRACE_TIMELINE is not set
# CONFIG_MALI_SYSTEM_TRACE is not set
# CONFIG_MALI_GPU_TRACEPOINTS is not set
Should I try turning on all of the configs for Mali?
Hi Prateekmohan1,
I will try and answer some of the points you have made:
"It doesn't really mention anything about the build time option you described (ie. "GATOR_WITH_MALI_SUPPORT=MALI_MIDGARD DDK_DIR=".../path/to/Mali_DDK_kernel_files"). Can you explain that to me again? Perhaps that is why it is not working."
In the gator github entry there is a file called Readme.md. There should be a seperate section in that readme labelled Mali GPU hopefully that will give you some more information. But Pete is right the Streamline documentation online is also a good source of information.
"Thanks dynamic, I tried that but I got the same error as I posted below. Another thing I'm wondering is what the <kernel_build_dir> is in the command
"make -C <kernel_build_dir> M=`pwd` ARCH=arm CROSS_COMPILE=<...> modules""
make -C <kernel_build_dir> M=`pwd` ARCH=arm CROSS_COMPILE=<...> modules""
Where are you passing the DDK_DIR information have you edited the makefile instead? I wouldn't copy the kernel files over to the directory I would just specify the path just in case anything is missing?
Are you using the stock hardkernel provided kernel on your OdroidXU4? If you are I can take a quick look and see if there is anything sticks out as to why you would be seeing issues?
Kind regards,
Stephen
Thanks for the detailed reply Stephen - appreciate it.
I in fact got it working, and for others with this problem, I was building my kernel into a different directory than the source. Normally, if you just run the "make" command in the kernel source, it will build it in the same directory. I was building it in a separate directory which was causing issues when gator was being built.
After you build it in the same directory and the kernel successfully builds the way that I built gator.ko (that worked) was:
make -C /home/prateekmohan/EEE598/build/ M=`pwd` ARCH=arm CROSS_COMPILE=arm-eabi- GATOR_WITH_MALI_SUPPORT=MALI_MIDGARD KCFLAGS="-I/home/prateekmohan/EEE598/odroid-kernel/drivers/gpu/arm/midgard/" MALI_DIR_MIDGARD="/home/prateekmohan/EEE598/odroid-kernel/drivers/gpu/arm/midgard/" modules
The directory I bolded should be your kernel source directory. Because you have built the kernel in the same directory it has all the files that gator requires to build gator.ko.
Thanks for all the help guys! Really appreciate it!