Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ERROR: "ntb_register_device" [/root/work/switchtec-kernel/ntb_hw_switchtec.ko] undefined!" message #91

Open
JackKimUSA opened this issue Jul 27, 2020 · 2 comments

Comments

@JackKimUSA
Copy link

Hello,

  • OS Version
    root@hwlabpi-sj:~/work/switchtec-kernel# cat /etc/os-release
    PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="10"
    VERSION="10 (buster)"
    VERSION_CODENAME=buster
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/"
    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

  • Kernel Version
    root@hwlabpi-sj:~/work/switchtec-kernel# uname -r
    5.4.51-v7l+

  • Whe I ran the make command, it has error messages as below:
    root@hwlabpi-sj:~/work/switchtec-kernel# make
    make -C /lib/modules/5.4.51-v7l+/build M=$PWD modules
    make[1]: Entering directory '/usr/src/linux-headers-5.4.51-v7l+'
    Building modules, stage 2.
    MODPOST 2 modules
    ERROR: "ntb_register_device" [/root/work/switchtec-kernel/ntb_hw_switchtec.ko] undefined!
    ERROR: "ntb_link_event" [/root/work/switchtec-kernel/ntb_hw_switchtec.ko] undefined!
    ERROR: "ntb_db_event" [/root/work/switchtec-kernel/ntb_hw_switchtec.ko] undefined!
    ERROR: "ntb_unregister_device" [/root/work/switchtec-kernel/ntb_hw_switchtec.ko] undefined!
    make[2]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
    make[1]: *** [Makefile:1622: modules] Error 2
    make[1]: Leaving directory '/usr/src/linux-headers-5.4.51-v7l+'
    make: *** [Makefile:26: modules] Error 2

Thank you.
Best Regards,
Jack Kim

@carolsheng
Copy link

Hey, how did you solve this issue? I met the same one here.

@kelvin-cao
Copy link
Collaborator

Did you have CONFIG_NTB set (=m or =y) in your kernel configuration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants