[Rtai] RTAI 3.7 on Ubuntu 8.10

Giovanni Totaro g.totaro at sintesi-scpa.com
Mon Apr 20 13:31:10 CEST 2009


http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.7.tar.gz

Ramon wrote:
> Hi,
>
> I'm sorry again ....
>
> I do not understand when you say :
> "I'm sorry but it seems to me that you keep making it the wrong way:
> untar the right kernel
> apply the right patch
> and you'll see it works"
>
>
> I downloaded "rtai-3.7.tar.bz2".
> In base/arch/x86/pacthes I can find patches for 2.6.24,26.25,2.6.19 and 
> 2.6.28.7
> and I decided to use (2.6.28.7).
>
> I downloaded and untared "linux-2.6.28.tar.gz" (I did not find linux 
> linux-2.6.28.7.tar.gz)
> I also downloaded and untared "patch-2.6.28.7" from kernel.org
>
> I did the following :
> tar -xvf linux-2.6.28.tar.gz
> tar -xvf rtai-3.7.tar.bz2
> cd /usr/src
> ln -snf RTAI-3.7_2.6.28/linux-2.6.28 linux
> ln -snf RTAI-3.7_2.6.28/rtai-3.7 rtai
> cd linux
> patch -p1 -b < /home/costa/Desktop/RTAI/patch-2.6.28.7
>
> No errors are generated.
>
> At this point I have build  2.6.28.7 so now I can patch with
> hal-linux-2.6.28.7-x86-2.2.06.patch
>
> patch -p1 -b < 
> /usr/src/rtai/base/arch/x86/patches/hal-linux-2.6.28.7-x86-2.2.06.patch
>
> No errors are generated.
>
>
>
> I'm sorry but I cannot see what's wrong.
>
>
> Ramon
>
>
>
>
> Paolo Mantegazza wrote:
>   
>> You are making it the wrong way yet.
>>
>> Paolo.
>>
>>
>> Ramon wrote:
>>     
>>> Paolo Mantegazza wrote:
>>>       
>>>> To be more precise I should have written:
>>>> "Well you should first tell me why you are patching 2.6.28 with a 
>>>> patch for 2.6.28.7," ... and "why you went on making the kernel 
>>>> despite messages showing hunks that failed to apply".
>>>>
>>>> Paolo.
>>>>         
>>> I'm Sorry ... You are right !!!
>>>
>>>       
>> I'm sorry but it seems to me that you keep making it the wrong way:
>> untar the right kernel
>> apply the right patch
>> and you'll see it works.
>>
>> Write to the list, please.
>>
>> Paolo.
>>
>>     
>>> I think I have arranged this problem .... but I obtained the 
>>> following one :
>>>
>>> CC arch/x86/vdso/vdso32-setup.o
>>> VDSOSYM arch/x86/vdso/vdso32-int80-syms.lds
>>> VDSOSYM arch/x86/vdso/vdso32-sysenter-syms.lds
>>> VDSOSYM arch/x86/vdso/vdso32-syms.lds
>>> LD arch/x86/vdso/built-in.o
>>> CC kernel/sched.o
>>>
>>> kernel/sched.c: In function ‘context_switch’:
>>> kernel/sched.c:2678: error: implicit declaration of function 
>>> ‘__ipipe_dispatch_event’
>>> kernel/sched.c:2678: error: ‘IPIPE_FIRST_EVENT’ undeclared (first use 
>>> in this function)
>>> kernel/sched.c:2678: error: (Each undeclared identifier is reported 
>>> only once
>>> kernel/sched.c:2678: error: for each function it appears in.)
>>> make[2]: *** [kernel/sched.o] Error 1
>>> make[1]: *** [kernel] Error 2
>>> make[1]: Leaving directory `/usr/src/RTAI-3.7_2.6.28/linux-2.6.28'
>>> make: *** [debian/stamp-build-kernel] Error 2
>>>
>>>
>>> The steps I followed are :
>>>
>>> apt-get update
>>> apt-get install patch libncurses5-dev kernel-package libc6-dev
>>> cd /usr/src
>>> mkdir RTAI-3.7_2.6.28
>>> cd RTAI-3.7_2.6.28/
>>> cp /home/costa/Desktop/RTAI/linux-2.6.28.tar.gz .
>>> cp /home/costa/Desktop/RTAI/rtai-3.7.tar.bz2 .
>>> tar -xvf linux-2.6.28.tar.gz
>>> tar -xvf rtai-3.7.tar.bz2
>>> cd /usr/src
>>> ln -snf RTAI-3.7_2.6.28/linux-2.6.28 linux
>>> ln -snf RTAI-3.7_2.6.28/rtai-3.7 rtai
>>> cd linux
>>> patch -p1 -b < /home/costa/Desktop/RTAI/patch-2.6.28.7
>>> patch -p1 -b < 
>>> /usr/src/rtai/base/arch/x86/patches/hal-linux-2.6.28.7-x86-2.2.06.patch
>>> cp /boot/config-2.6.27-7-generic ./.config
>>> make oldconfig
>>> make menuconfig
>>>
>>> #######################################################
>>>  >> Enable loadable module support
>>>  >> Module versioning support : off
>>>  >> Processor type and features
>>>  >> Subarchitecture Type : PC-compatible
>>>  >> Processor family : 386
>>>  >> Multi-core scheduler support : off
>>>  >> Preemption model : Preemptible kernel (Low-Latency Desktop)
>>>  >> Interrupt pipeline : on
>>>  >> High memory support : off
>>>  >> Maximun number of CPUs : 16
>>>  >> Power Management and ACPI options
>>>  >> Power Management Support : off
>>>  >> Kernel hacking
>>>  >> Kernel debugging : off
>>> #######################################################
>>>
>>>
>>> make-kpkg clean
>>> make-kpkg --rootcmd fakeroot --append-to-version -rtai-3.7 --revision 
>>> r1 --initrd kernel_image kernel_headers
>>>
>>> Does  anyone any idea about what's wrong ?  (should I disable 
>>> additional kernel modules ?)
>>>
>>> best wishes,
>>> Ramon
>>>
>>>
>>>       
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.rtai.org/pipermail/rtai/attachments/20090420/52a1a707/attachment.htm 


More information about the Rtai mailing list