Re: rtai testsuite make issue (magma kernel)

bhargavb <[email protected]> Fri, 28 Apr 2017 15:01:14 +0530
Newsgroups gmane.linux.real-time.rtai
Message-ID <CA+bpL9+gRJNh-uqsPQ7pqbj1d2-qF0DSHRSf1SyKENTG6GvPCw@mail.gmail.com>
When I did manually do insmod of all modules in /usr/realtime/modules, then
am able to insmod the kernel module, I have tried.

So, even though I did sudo make install in rtai folder, it seems the
modules insertion got missed out.

On Fri, Apr 28, 2017 at 1:46 PM, bhargavb <[email protected]> wrote:

> Dear Paolo,
>
> I am using the magma, branch now.
> I could build testsuite and run all tests in the testsuite succesfully,
> with no errors. (sudo make, sudo make install in rtai source is done
> succesfully).
>
> Still, I am missing something.
>
> *When I am trying to compile a kernel module (Attached Makefile, source,
> complete error log), getting below error (.ko file is formed though):*
>
>
>
>
>
>
>
>
>
> *- - - - - - Building modules, stage 2.MODPOST 1 modulesWARNING:
> "rt_task_delete" [/home/bhargavb/2/p1_rtai.ko] undefined!WARNING:
> "rtf_destroy" [/home/bhargavb/2/p1_rtai.ko] undefined!WARNING:
> "stop_rt_timer" [/home/bhargavb/2/p1_rtai.ko] undefined!WARNING:
> "rt_task_make_periodic" [/home/bhargavb/2/p1_rtai.ko] undefined! - - -- - -*
>
> *Note: *
> When I placed Module.symvers file from /usr/realtime/modules to my current
> directory of new kernel module build, I am not getting above errors, and
> .ko file is formed, but insmod shows the error saying undefined symbols
> found, cannot insert.
>
> Kindly guide.
>
> Thanks and regards,
> Bhargav
>
> On Fri, Apr 28, 2017 at 12:52 PM, Paolo Mantegazza <
> [email protected]> wrote:
>
>> You are likely working with something that is not up to date.
>> I do not see any 3.16 patch in the supported stable RTAI version (aka
>> Vulcano CVS), where there are patches for 3.10.32, 3.14.44, 3.18.20 and
>> 4.1.18.
>>
>> Paolo.
>>
>>
>> On 04/28/2017 05:47 AM, bhargavb wrote:
>>
>> Thank you for the responses.
>>
>> I realized lately that I have not built rtai source (make menuconfig,
>> make, install in rtai source folder).
>>
>> Quick summary of steps I followed as per https://www.rtai.org/userfiles
>> /downloads/RTAILAB/RTAI-TARGET-HOWTO.txt ( I excluded MESA lib and EFLTK
>> lib installation steps though ie step 7, 8;  executing remaining as is).
>>
>>
>>    - I have taken https://www.kernel.org/pub/lin
>>    ux/kernel/v3.x/linux-3.16.tar.gz
>>    <https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.16.tar.gz>
>>    - I have taken rtai - magma from https://github.com/ShabbyX/RTA
>>    I/tree/magma
>>    - Patch  : Tried with hal-linux-3.16-x86-3.patch
>>    <https://github.com/ShabbyX/RTAI/blob/magma/base/arch/x86/patches/hal-linux-3.16-x86-3.patch>
>>    and hal-linux-3.16-x86-3.patch
>>    <https://github.com/ShabbyX/RTAI/blob/magma/base/arch/x86/patches/hal-linux-3.16-x86-3.patch>,
>>    facing same issue with both of them.
>>    - After building linux kernel source, making modifications as
>>    mentioned and rebooting to newly built kernel, Now executing step 9 which
>>    builds and install rtai source. *Getting error here as:*
>>
>> - - - - -
>>
>> - - - -
>>
>> config.status: creating rtai-lab/scilab/utility/GNUmakefile
>> config.status: creating testsuite/GNUmakefile
>> config.status: creating testsuite/kern/GNUmakefile
>> config.status: creating testsuite/kern/latency/GNUmakefile
>> config.status: creating testsuite/kern/preempt/GNUmakefile
>> config.status: creating testsuite/kern/switches/GNUmakefile
>> config.status: error: cannot find input file:
>> `testsuite/kthreads/GNUmakefile.in'
>> makefile:53: recipe for target 'config.status' failed
>> make[1]: *** [config.status] Error 1
>> make[1]: Leaving directory '/usr/src/rtai'
>> GNUmakefile:918: recipe for target 'menuconfig' failed
>> make: *** [menuconfig] Error 2
>> bhargavb@bhargavb-Latitude-E6500:/usr/src/rtai$
>>
>> *Note:* I tried in menuconfig by disabling "build rtai test suite" and
>> saved it, because the error I got is related to testsuite make files
>> generation, but it does'nt have any effect.(Could not figure out whar is
>> wrong).
>>
>> I sincerely request your inputs, as am currently in time critical project
>> where I need to port my desktop application to real time. I am unable to
>> setup the rtai environment.
>>
>> Thanks and regards,
>>
>> Bhargav
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Thu, Apr 27, 2017 at 7:33 PM, Shahbaz Youssefi <[email protected]>
>> wrote:
>>
>>> Make sure to use the `rtai-config` command (try --help for options) to
>>> extract compile flags and kernel module symbols (or libraries if building
>>> for userspace) required to build with RTAI, and then use them!
>>>
>>> On Thu, Apr 27, 2017 at 6:24 AM, bhargavb <[email protected]>
>>> wrote:
>>>
>>>> Dear team,
>>>>
>>>> I could build rtai linux on 3.16 kernel and able to select
>>>> corresponding boot option in grub bootloade for the newly built kernel with
>>>> rtai patch. Thanks for the guidance.
>>>>
>>>>
>>>>
>>>> *I havent built the rtai testsuite yet. Is it mandatory to build rtai
>>>> test suite before starting writing rtai kernel modules? *
>>>>
>>>> *I mean: Do below steps matter to be run, before I start writing and
>>>> inserting my rtai kernel modules?  (Asking because am getting error saying
>>>> rtai.h not found when I try to build an rtai kernel module, and it seems I
>>>> am missing something yet) *
>>>>
>>>> STEP 9 - Configure and install RTAI
>>>> ------------------------------------
>>>>     Again, as root :
>>>>
>>>>     $ cd /usr/src/rtai
>>>>     $ make config (or make menuconfig of make xconfig)
>>>>
>>>>     In the Machine Menu adjust the number of processors.
>>>>     Say yes to rtai lab, and leave the efltk folder to /usr/local
>>>>     Do not include comedi support at this time even if you plan to use it later.
>>>>     Do not change any other default choice unless you know what you are doing.
>>>>
>>>>     $ make
>>>>     $ make install
>>>>
>>>>     reboot :
>>>>
>>>>     $ /usr/bin/reboot
>>>>
>>>> Thank you very much,
>>>> Bhargav
>>>> _______________________________________________ Rtai mailing list
>>>> [email protected] https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
>>>
>>> --
>> Bhargav
>>
>>
>
>
> --
> Bhargav
>



-- 
Bhargav

_______________________________________________
Rtai mailing list
[email protected]
https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai