newracom / nrc7292_sw_pkg

NRC7292 Software Package for Host mode (Linux OS)
http://www.newracom.com/product
GNU General Public License v2.0
58 stars 27 forks source link

Can't build driver on Pi4 64bit #54

Closed esteimle closed 2 years ago

esteimle commented 2 years ago

I'm trying to build the driver from here: /nrc7292_sw_pkg/package/host/src/nrc (I just checked out from git yesterday).

My kernel version is Linux raspberrypi4 5.15.67-v8+ #1584 SMP PREEMPT Mon Sep 12 13:06:37 BST 2022 aarch64 GNU/Linux

It gets pretty far but gets stuck when it can't find some functions such as _raw_spin_unlock. I see they get created in the nrc.mod.c during the build though. So far I haven't found much about this while searching other than another forum saying it might be an RPI4 kernel bug. Any idea what might cause this?

  LD [M]  /home/pi/work/newah/nrc7292_sw_pkg/package/host/src/nrc/nrc.o
  MODPOST /home/pi/work/newah/nrc7292_sw_pkg/package/host/src/nrc/Module.symvers
ERROR: modpost: "_raw_spin_unlock" [/home/pi/work/newah/nrc7292_sw_pkg/package/host/src/nrc/nrc.ko] undefined!
ERROR: modpost: "__const_udelay" [/home/pi/work/newah/nrc7292_sw_pkg/package/host/src/nrc/nrc.ko] undefined!
ERROR: modpost: "__rcu_read_unlock" [/home/pi/work/newah/nrc7292_sw_pkg/package/host/src/nrc/nrc.ko] undefined!
ERROR: modpost: "cpu_hwcap_keys" [/home/pi/work/newah/nrc7292_sw_pkg/package/host/src/nrc/nrc.ko] undefined!
ERROR: modpost: "__rcu_read_lock" [/home/pi/work/newah/nrc7292_sw_pkg/package/host/src/nrc/nrc.ko] undefined!
ERROR: modpost: "arm64_const_caps_ready" [/home/pi/work/newah/nrc7292_sw_pkg/package/host/src/nrc/nrc.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:133: /home/pi/work/newah/nrc7292_sw_pkg/package/host/src/nrc/Module.symvers] Error 1
make[2]: *** Deleting file '/home/pi/work/newah/nrc7292_sw_pkg/package/host/src/nrc/Module.symvers'
make[1]: *** [Makefile:1814: modules] Error 2
make[1]: Leaving directory '/home/pi/linux-dc0f752f772617d43912718917bace425753e80c'
make: *** [Makefile:61: modules] Error 2