Re: [beagleboard] Re: problems compiling an out of tree driver for a xM on kernel 5.4.24

2021-03-06 Thread jake . ziangwang
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 > 
> 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 .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beagleboard/2678cbb0-2650-43b2-8055-6c98a4f81f6fo%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/adbc4e60-3af7-4c75-a12d-6d14b92e73c6o%40googlegroups.com.


Re: [beagleboard] Re: problems compiling an out of tree driver for a xM on kernel 5.4.24

2021-03-05 Thread Michael McCann
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  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 beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/2678cbb0-2650-43b2-8055-6c98a4f81f6fo%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CACmz4mByYxr-oG%2BeLeWbT4BBZ8FnZip11gL_h2rUCoDtDNMkCQ%40mail.gmail.com.


[beagleboard] Re: problems compiling an out of tree driver for a xM on kernel 5.4.24

2021-03-05 Thread Jake
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/2678cbb0-2650-43b2-8055-6c98a4f81f6fo%40googlegroups.com.