This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Enable Streamline on Note 4

Samsung seem to have recently released open-source kernel for Lollipop for Note 4 with r5p0 driver.

I am using a free version of DS-5 v20.1

I am following instructions from links below to build gator library and kernel with support for Streamline -

Using DS-5 Streamline with Mali on Samsung Galaxy Note 3 & 10.1

ARM Information Center   (link points you to DS5 v14 documentation but I am referring to v20 doc

I build gator.ko is along with the kernel.

After flashing the newly built kernel - when I try to run gatord on it - I hit the following error

root@treltektt:/ # gatord&

gatord&

[1] 10584

root@treltektt:/ # Unable to load (insmod) gator.ko driver:

  >>> gator.ko must be built against the current kernel version & configuration

  >>> See dmesg for more details

Looking at dmesg I see following --

<6>[ 4608.789927] [c1] MobiCore mcd: b02|VALIDATOR [ERROR]: SPID - 0x00000000 GAF structure checksum is invalid!

<6>[ 4608.789954] [c1] MobiCore mcd: b02|VALIDATOR [ERROR]: SPID - 0x00000000 GAF structure checksum equals 0x00, please check if it is correctly

<6>[ 4608.789967] [c1] MobiCore mcd: b02|VALIDATOR [ERROR]: SPID - 0x00000000 calculated in this kernel.

<6>[ 4608.789980] [c1] MobiCore mcd: b02|VALIDATOR [ERROR]: SPID - 0x00000000 GAF checksum invalid

<6>[ 4608.789992] [c1] MobiCore mcd: b02|VALIDATOR [ERROR]: SPID - 0x00000000

<6>[ 4608.790003] [c1] MobiCore mcd: b02|VALIDATOR [ERROR]: SPID - 0x00000000

<6>[ 4608.794734] [c1] MobiCore mcd: b02|VALIDATOR [ERROR]: SPID - 0x00000000 ===============================================================================

<6>[ 4608.794751] [c1] MobiCore mcd: b02|VALIDATOR [ERROR]: SPID - 0x00000000 The kernel binary has been changed.

<6>[ 4608.794768] [c1] MobiCore mcd: b02|VALIDATOR [ERROR]: SPID - 0x00000000 The platform/kernel binaries should be synchronized for running Secure Storage.

<6>[ 4608.794783] [c1] MobiCore mcd: b02|VALIDATOR [ERROR]: SPID - 0x00000000 Please use the same version of platform/kernel binaries.

<6>[ 4608.794800] [c1] MobiCore mcd: b02|VALIDATOR [ERROR]: SPID - 0x00000000 ===============================================================================

<6>[ 4608.796053] [c1] MobiCore mcd: b02|VALIDATOR [ERROR]: SPID - 0x00000000

<6>[ 4608.796066] [c1] MobiCore mcd: b02|VALIDATOR [ERROR]: SPID - 0x00000000

<6>[ 4608.796078] [c1] MobiCore mcd: b02|VALIDATOR [WARN ]: SPID - 0x00000000 Sec Driver::set_config()

If needed - I can attach my .config file used to building the kernel.

I am using the gator.ko file built out of the same kernel which I have flashed onto my device - hence I dont know where this issue is coming from.

Any help in debugging this issue will be greatly appreciated.

Thanks

Parents
  • Hi sidxavier1,

    Sometimes the error message given by gatord when launched is not accurate. There are a few things to try first to figure out the actual problem:

    • Has gator.ko been successfully insmodded?
      • Running gatord with gator.ko in the same directory, is sufficient for this... however it may prove useful to do the insmod separately to see if it errors at that stage
      • What does lsmod return?
      • Do you have the correct permissions set for both gator.ko and gatord?
    • Are the files corrupted?
      • It may be worth running md5sum on the gatord and gator.ko on the device, and check it to the binaries you built on your host machine, to make sure that it didnt corrupt during transfer
    • Are the files in an executable location?
      • You cannot run gatord from /sdcard/ for example. We recommend /system/ however /data/ is also a valid location among others that are of type ext filesystem
      • Does said path have rw access, or is it ro?

    I have noticed before on some devices that the /system partition by default is perfectly sized and there is very little to no spare space on that partition... copying the gatord and gator.ko into this location couldnt fit in this space, but still left an entry, so without checking md5sum or even just the filesizes, it appears as if you have a valid set of files to run. Please double check this isnt the case for you. If it is, you can instead copy them to /data/ for example.

    I personally have not tried to use Gator with the Samsung Galaxy Note 4 with Android 5.x so I cannot guarantee that this will work as is. There may be additional fixes required to get it functioning, and functioning correctly (Sometimes it can 'run' but if the integration is wrong, the data will return zeros or garbage values).

    If I do manage to get it working, I will let you know, and similarly if you do, please let others know.

    Kind Regards,

    Michael McGeagh

Reply
  • Hi sidxavier1,

    Sometimes the error message given by gatord when launched is not accurate. There are a few things to try first to figure out the actual problem:

    • Has gator.ko been successfully insmodded?
      • Running gatord with gator.ko in the same directory, is sufficient for this... however it may prove useful to do the insmod separately to see if it errors at that stage
      • What does lsmod return?
      • Do you have the correct permissions set for both gator.ko and gatord?
    • Are the files corrupted?
      • It may be worth running md5sum on the gatord and gator.ko on the device, and check it to the binaries you built on your host machine, to make sure that it didnt corrupt during transfer
    • Are the files in an executable location?
      • You cannot run gatord from /sdcard/ for example. We recommend /system/ however /data/ is also a valid location among others that are of type ext filesystem
      • Does said path have rw access, or is it ro?

    I have noticed before on some devices that the /system partition by default is perfectly sized and there is very little to no spare space on that partition... copying the gatord and gator.ko into this location couldnt fit in this space, but still left an entry, so without checking md5sum or even just the filesizes, it appears as if you have a valid set of files to run. Please double check this isnt the case for you. If it is, you can instead copy them to /data/ for example.

    I personally have not tried to use Gator with the Samsung Galaxy Note 4 with Android 5.x so I cannot guarantee that this will work as is. There may be additional fixes required to get it functioning, and functioning correctly (Sometimes it can 'run' but if the integration is wrong, the data will return zeros or garbage values).

    If I do manage to get it working, I will let you know, and similarly if you do, please let others know.

    Kind Regards,

    Michael McGeagh

Children