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

DS-5: Install gator.ko error: unknown symbol

Note: This was originally posted on 29th August 2013 at http://forums.arm.com

Hi all,

I tried to install gator.ko compiled from the latest version of DS-5 v5.15 on galaxy tab 10.1, but it failed. My host machine runs win8 and the target device is galaxy tab 10.1 wifi with cm 10.1. (which I compiled following the instructions listed here http://wiki.cyanogen...uild_for_p4wifi ) However, when I tried to install gator.ko on galaxy tab 10.1 using "insmod gator.ko", the following error appears:

the following error: init_module '/sdcard/gator.ko' failed (No such file or directory)

Then I entered dmesg command in the terminal and the error message is as follows:

gator: Unknown symbol perf_event_release_kernel (err 0)
gator: Unknown symbol perf_event_create_kernel_counter (err 0)

But as I read the kernel code of galaxy tab 10.1 (p4wifi), I could find the corresponding definition of these two functions and they have already been exported by macros such as EXPORT_SYMBOL_GPL. Could anyone help me? Thank you! :)
Parents
  • Note: This was originally posted on 30th August 2013 at http://forums.arm.com


    I have run "cat /proc/kallsyms | grep perf_event_create_kernel_counter", and the output is empty. I went down to /proc and find kallsyms is 0 byte.


    I assume you did an ls of /proc and saw that kallsyms is 0 bytes?  Most files in the proc filesystem show empty even if they really aren't.  For example, one Linux machine I have access to shows this

    > ls -l /proc/kallsyms
    -r--r--r-- 1 root root 0 Aug 29 23:05 /proc/kallsyms

    But when I cat it, I get results

    > cat /proc/kallsyms
    0000000000000000 D irq_stack_union
    0000000000000000 D __per_cpu_start
    ffffffff810001c8 t run_init_process
    ffffffff810001c8 T _stext
    ffffffff810001e8 T do_one_initcall
    ffffffff810002f4 t match_dev_by_uuid
    ffffffff8100031f T name_to_dev_t
    ffffffff81000670 t init_linuxrc
    ffffffff81001000 T set_personality_ia32
    ffffffff810010a1 t start_thread_common.constprop.4
    ...

    Do you get any results when you say cat /proc/kallsyms?


    However, I have checked and found I did built kernel with CONFIG_PERF_EVENTS. Could you please offer more advice regarding where went wrong?


    How are you compiling gator.ko?  Can you please share the output of the compile?

    Try building the gator.ko kernel module with the same toolchain you're using to build the kernel.  I've seen issues where if the toolchains are different the module may not load or run correctly.

    Also the gcc provided by the Android NDK does not always work correctly.  Please also try using the gcc distributed with DS-5.
Reply
  • Note: This was originally posted on 30th August 2013 at http://forums.arm.com


    I have run "cat /proc/kallsyms | grep perf_event_create_kernel_counter", and the output is empty. I went down to /proc and find kallsyms is 0 byte.


    I assume you did an ls of /proc and saw that kallsyms is 0 bytes?  Most files in the proc filesystem show empty even if they really aren't.  For example, one Linux machine I have access to shows this

    > ls -l /proc/kallsyms
    -r--r--r-- 1 root root 0 Aug 29 23:05 /proc/kallsyms

    But when I cat it, I get results

    > cat /proc/kallsyms
    0000000000000000 D irq_stack_union
    0000000000000000 D __per_cpu_start
    ffffffff810001c8 t run_init_process
    ffffffff810001c8 T _stext
    ffffffff810001e8 T do_one_initcall
    ffffffff810002f4 t match_dev_by_uuid
    ffffffff8100031f T name_to_dev_t
    ffffffff81000670 t init_linuxrc
    ffffffff81001000 T set_personality_ia32
    ffffffff810010a1 t start_thread_common.constprop.4
    ...

    Do you get any results when you say cat /proc/kallsyms?


    However, I have checked and found I did built kernel with CONFIG_PERF_EVENTS. Could you please offer more advice regarding where went wrong?


    How are you compiling gator.ko?  Can you please share the output of the compile?

    Try building the gator.ko kernel module with the same toolchain you're using to build the kernel.  I've seen issues where if the toolchains are different the module may not load or run correctly.

    Also the gcc provided by the Android NDK does not always work correctly.  Please also try using the gcc distributed with DS-5.
Children
No data