Open JackKimUSA opened 4 years ago
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
Hey, how did you solve this issue? I met the same one here.
Did you have CONFIG_NTB set (=m or =y) in your kernel configuration?
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