problems compiling an out of tree driver for a xM on kernel 5.4.24

348 views
Skip to first unread message

kb2...@gmail.com

unread,
Feb 6, 2021, 10:50:47 AM2/6/21
to BeagleBoard
Has anyone else seen this error message when compiling an out of tree module?

make: Entering directory '/usr1/github.com.RoberCNelson.arm7-multiplatform/armv7-multiplatform/KERNEL'
  AR      /usr1/BeagleXmDrivers/built-in.a
  CC [M]  /usr1/BeagleXmDrivers/hello.o
cc1: error: cannot load plugin ./scripts/gcc-plugins/arm_ssp_per_task_plugin.so
   ./scripts/gcc-plugins/arm_ssp_per_task_plugin.so: undefined symbol: _Z9rtx_alloc8rtx_code
make[1]: *** [scripts/Makefile.build:266: /usr1/BeagleXmDrivers/hello.o] Error 1
make: *** [Makefile:1690: /usr1/BeagleXmDrivers] Error 2
make: Leaving directory '/usr1/github.com.RoberCNelson.arm7-multiplatform/armv7-multiplatform/KERNEL'
t

Mike

Jake

unread,
Mar 5, 2021, 9:12:00 AM3/5/21
to BeagleBoard
Hi! I'm having the same error when trying to compile a out of tree driver.
Have you found the solution? 
I'm also using the kernel from RobertCNelson/armv7-multiplatform.
Thanks!

Michael McCann

unread,
Mar 5, 2021, 10:53:33 AM3/5/21
to beagl...@googlegroups.com
Hi Jake,

Yes, I did find a solution! Using the cross development tools downloaded by Nelson's script makes things work correctly. This the script I'm using to build drivers:

CROSS_COMPILE_PATH=/usr1/github.com.RoberCNelson.arm7-multiplatform/armv7-multiplatform/dl/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
make -C $KERNEL_ROOT M=$(pwd) ARCH=arm CROSS_COMPILE=$CROSS_COMPILE_PATH

Mike

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/2678cbb0-2650-43b2-8055-6c98a4f81f6fo%40googlegroups.com.

jake.zi...@gmail.com

unread,
Mar 6, 2021, 2:11:15 PM3/6/21
to BeagleBoard
Hi Mike,

Thank you for your solution! This works flawlessly!

Jake

On Friday, March 5, 2021 at 8:53:33 AM UTC-7, Michael McCann wrote:
Hi Jake,

Yes, I did find a solution! Using the cross development tools downloaded by Nelson's script makes things work correctly. This the script I'm using to build drivers:

CROSS_COMPILE_PATH=/usr1/github.com.RoberCNelson.arm7-multiplatform/armv7-multiplatform/dl/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
make -C $KERNEL_ROOT M=$(pwd) ARCH=arm CROSS_COMPILE=$CROSS_COMPILE_PATH

Mike

On Fri, Mar 5, 2021 at 9:11 AM Jake <jake.z...@gmail.com> wrote:
Hi! I'm having the same error when trying to compile a out of tree driver.
Have you found the solution? 
I'm also using the kernel from RobertCNelson/armv7-multiplatform.
Thanks!

On Saturday, February 6, 2021 at 8:50:47 AM UTC-7, kb2...@gmail.com wrote:
Has anyone else seen this error message when compiling an out of tree module?

make: Entering directory '/usr1/github.com.RoberCNelson.arm7-multiplatform/armv7-multiplatform/KERNEL'
  AR      /usr1/BeagleXmDrivers/built-in.a
  CC [M]  /usr1/BeagleXmDrivers/hello.o
cc1: error: cannot load plugin ./scripts/gcc-plugins/arm_ssp_per_task_plugin.so
   ./scripts/gcc-plugins/arm_ssp_per_task_plugin.so: undefined symbol: _Z9rtx_alloc8rtx_code
make[1]: *** [scripts/Makefile.build:266: /usr1/BeagleXmDrivers/hello.o] Error 1
make: *** [Makefile:1690: /usr1/BeagleXmDrivers] Error 2
make: Leaving directory '/usr1/github.com.RoberCNelson.arm7-multiplatform/armv7-multiplatform/KERNEL'
t

Mike

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages