LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   windriver rtlinux patch (https://www.linuxquestions.org/questions/linux-newbie-8/windriver-rtlinux-patch-896738/)

liuxgate 08-11-2011 07:41 AM

windriver rtlinux patch
 
Dear All,
I applied Windriver RTLinux patch to 2.6.9 kernel and did
make bzImage. I got following error messages. Kindly help me.

Thanks & Regards.

kernel/built-in.o: In function `finish_task_switch':
sched.c:(.text+0x17e8): undefined reference to `rtl_hard_local_irq_enable_kernel'
kernel/built-in.o: In function `rtl_ctrl_restore_flags':
rtlinux.c:(.text+0x1abdc): undefined reference to `rtl_hard_local_irq_restore_kernel'
kernel/built-in.o: In function `rtl_ctrl_irq_save':
rtlinux.c:(.text+0x1ac04): undefined reference to `rtl_hard_local_irq_save_kernel'
kernel/built-in.o: In function `rtl_ctrl_save_flags':
rtlinux.c:(.text+0x1ac34): undefined reference to `rtl_hard_local_save_flags_kernel'
kernel/built-in.o: In function `rtl_ctrl_enable':
rtlinux.c:(.text+0x1ac5c): undefined reference to `rtl_hard_local_irq_enable_kernel'
kernel/built-in.o: In function `rtl_ctrl_disable':
rtlinux.c:(.text+0x1ac7c): undefined reference to `rtl_hard_local_irq_disable_kernel'
mm/built-in.o: In function `map_vm_area':
: undefined reference to `set_pgdir'
make: *** [.tmp_vmlinux1] Error 1

gary185 08-12-2011 02:33 AM

not sure exactly what that is at windriver but the actual linux rt patches are on the kernel web page
http://www.kernel.org/pub/linux/kernel/projects/rt/
the kernel and the patch number have to match exactly

liuxgate 08-12-2011 04:03 AM

Quote:

Originally Posted by gary185 (Post 4440559)
not sure exactly what that is at windriver but the actual linux rt patches are on the kernel web page
http://www.kernel.org/pub/linux/kernel/projects/rt/
the kernel and the patch number have to match exactly

kernel and patch no. are matching.

liuxgate 08-17-2011 01:12 AM

kindly help me guys.

gary185 08-17-2011 07:37 PM

at least tell us exactly which kernel and exactly which patch and exactly how you applied the patch
and exactly the steps and command you used to get to the failure point

make bzimage is an old thing now you can just do make
that's not the problem but indicates you might be following an old tutorial

other info that might be helpful is what are you trying to do in the larger picture.
also i think those build messages are after the fact.
generally there is the word error or a file not found or something that sets stuff like this off so we need to see the output from the begining of when things went south

liuxgate 08-18-2011 08:34 AM

Kernel - 2.6.9
patch -p1 < ../rtlinux-patch
changed Makefile -> ARCH = ppc, crosscompiler = powerpc-440-gnu-
make menuconfig
-->selected 44x processor for ppc
make bzImage

Errors:

kernel/built-in.o: In function `finish_task_switch':
sched.c.text+0x17e8): undefined reference to `rtl_hard_local_irq_enable_kernel'
kernel/built-in.o: In function `rtl_ctrl_restore_flags':
rtlinux.c.text+0x1abdc): undefined reference to `rtl_hard_local_irq_restore_kernel'
kernel/built-in.o: In function `rtl_ctrl_irq_save':
rtlinux.c.text+0x1ac04): undefined reference to `rtl_hard_local_irq_save_kernel'
kernel/built-in.o: In function `rtl_ctrl_save_flags':
rtlinux.c.text+0x1ac34): undefined reference to `rtl_hard_local_save_flags_kernel'
kernel/built-in.o: In function `rtl_ctrl_enable':
rtlinux.c.text+0x1ac5c): undefined reference to `rtl_hard_local_irq_enable_kernel'
kernel/built-in.o: In function `rtl_ctrl_disable':
rtlinux.c.text+0x1ac7c): undefined reference to `rtl_hard_local_irq_disable_kernel'
mm/built-in.o: In function `map_vm_area':
: undefined reference to `set_pgdir'
make: *** [.tmp_vmlinux1] Error 1


All times are GMT -5. The time now is 10:42 PM.