linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RT Patch to use for Kernel 3.2.0
@ 2015-01-16 22:14 Jing Shao
  2015-01-16 22:23 ` Pavel Vasilyev
  2015-01-17 19:30 ` Uwe Kleine-König
  0 siblings, 2 replies; 6+ messages in thread
From: Jing Shao @ 2015-01-16 22:14 UTC (permalink / raw)
  To: linux-rt-users@vger.kernel.org

Dear sir,

I am trying to patch a Linux 3.2.0 kernel with PREEMPT_RT patch, I tried the patch-3.2.64-rt94.patch.gz, but the Linux kernel fails to compile afterwards, is this the right patch to use?

For your info, the ouput of "uname -r" is 3.2.0. The kernel comes in as part of the SDK for a TI Sitara processor.

Your help are greatly appreciated.

Regards,

Jing Shao
Senior Software Engineer

Power System Solutions
3001 Summit Avenue Ste. 400
Plano, Texas 75074
469-331-9844 x8881
jing.shao@liteon.com



Confidential Information:This message is sent to the intended recipient and may contain privileged or confidential information. If you received this transmission in error, please notify the sender with a replying e-mail and delete the message and any attachment.Transmission Caveat and Virus Alert: Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: RT Patch to use for Kernel 3.2.0
  2015-01-16 22:14 RT Patch to use for Kernel 3.2.0 Jing Shao
@ 2015-01-16 22:23 ` Pavel Vasilyev
  2015-01-16 23:08   ` Jing Shao
  2015-01-17 19:30 ` Uwe Kleine-König
  1 sibling, 1 reply; 6+ messages in thread
From: Pavel Vasilyev @ 2015-01-16 22:23 UTC (permalink / raw)
  To: Jing Shao, linux-rt-users@vger.kernel.org

17.01.2015 01:14, Jing Shao пишет:
> Dear sir,
>
> I am trying to patch a Linux 3.2.0 kernel with PREEMPT_RT patch, I tried the patch-3.2.64-rt94.patch.gz, but the Linux kernel fails to compile afterwards, is this the right patch to use?
> For your info, the ouput of "uname -r" is 3.2.0. The kernel comes in as part of the SDK for a TI Sitara processor.

wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.2.64.tar.xz
wget 
https://www.kernel.org/pub/linux/kernel/projects/rt/3.2/patch-3.2.64-rt94.patch.xz

tar -xf linux-3.2.64.tar.xz && cd linux-3.2.64
xz -cd ../patch-3.2.64-rt94.patch.xz | patch -p1
make menuconfig
...
...
...
make;



-- 

                                                          Pavel.
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: RT Patch to use for Kernel 3.2.0
  2015-01-16 22:23 ` Pavel Vasilyev
@ 2015-01-16 23:08   ` Jing Shao
  2015-01-17  0:45     ` Pavel Vasilyev
  2015-01-17  0:47     ` Pavel Vasilyev
  0 siblings, 2 replies; 6+ messages in thread
From: Jing Shao @ 2015-01-16 23:08 UTC (permalink / raw)
  To: pavel@pavlinux.ru, linux-rt-users@vger.kernel.org

Pavel,

After patching the kernel 3.2.0 with 3.2.64-rt94, I am getting build errors, which made me think that I am using the wrong patch file.

I see there is old patch files for 3.2.xx, but none for 3.2.0.

Regards,

Jing

=================================================================================================

include/linux/radix-tree.h:265:2: warning: implicit declaration of function ‘preempt_enable_nort’ [-Wimplicit-function-declaration]
mm/swap.c: At top level:
mm/swap.c:44:8: warning: type defaults to ‘int’ in declaration of ‘DEFINE_LOCAL_IRQ_LOCK’ [-Wimplicit-int]
mm/swap.c:44:1: warning: parameter names (without types) in function declaration [enabled by default]
mm/swap.c:45:8: warning: type defaults to ‘int’ in declaration of ‘DEFINE_LOCAL_IRQ_LOCK’ [-Wimplicit-int]
mm/swap.c:45:1: warning: parameter names (without types) in function declaration [enabled by default]
mm/swap.c: In function ‘rotate_reclaimable_page’:
mm/swap.c:273:3: warning: implicit declaration of function ‘local_lock_irqsave’ [-Wimplicit-function-declaration]
mm/swap.c:273:22: error: ‘rotate_lock’ undeclared (first use in this function)
mm/swap.c:273:22: note: each undeclared identifier is reported only once for each function it appears in
mm/swap.c:277:3: warning: implicit declaration of function ‘local_unlock_irqrestore’ [-Wimplicit-function-declaration]
mm/swap.c: In function ‘__lru_cache_add’:
mm/swap.c:380:9: warning: implicit declaration of function ‘get_locked_var’ [-Wimplicit-function-declaration]
mm/swap.c:380:41: error: ‘swapvec_lock’ undeclared (first use in this function)
mm/swap.c:385:2: warning: implicit declaration of function ‘put_locked_var’ [-Wimplicit-function-declaration]
mm/swap.c: In function ‘drain_cpu_pagevecs’:
mm/swap.c:519:22: error: ‘rotate_lock’ undeclared (first use in this function)
mm/swap.c: In function ‘deactivate_page’:
mm/swap.c:549:42: error: ‘swapvec_lock’ undeclared (first use in this function)
mm/swap.c: In function ‘lru_add_drain’:
mm/swap.c:560:2: warning: implicit declaration of function ‘local_lock_cpu’ [-Wimplicit-function-declaration]
mm/swap.c:560:36: error: ‘swapvec_lock’ undeclared (first use in this function)
mm/swap.c:561:2: warning: implicit declaration of function ‘local_unlock_cpu’ [-Wimplicit-function-declaration]
mm/swap.c: In function ‘swap_init_locks’:
mm/swap.c:777:2: warning: implicit declaration of function ‘local_irq_lock_init’ [-Wimplicit-function-declaration]
mm/swap.c:777:22: error: ‘rotate_lock’ undeclared (first use in this function)
mm/swap.c:778:22: error: ‘swapvec_lock’ undeclared (first use in this function)
mm/swap.c: At top level:
mm/swap.c:45:8: warning: ‘DEFINE_LOCAL_IRQ_LOCK’ declared ‘static’ but never defined [-Wunused-function]
make[1]: *** [mm/swap.o] Error 1
make[1]: *** Waiting for unfinished jobs....



-----Original Message-----
From: Pavel Vasilyev [mailto:pavel@pavlinux.ru]
Sent: Friday, January 16, 2015 4:24 PM
To: Jing Shao; linux-rt-users@vger.kernel.org
Subject: Re: RT Patch to use for Kernel 3.2.0

17.01.2015 01:14, Jing Shao пишет:
> Dear sir,
>
> I am trying to patch a Linux 3.2.0 kernel with PREEMPT_RT patch, I tried the patch-3.2.64-rt94.patch.gz, but the Linux kernel fails to compile afterwards, is this the right patch to use?
> For your info, the ouput of "uname -r" is 3.2.0. The kernel comes in as part of the SDK for a TI Sitara processor.

wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.2.64.tar.xz
wget
https://www.kernel.org/pub/linux/kernel/projects/rt/3.2/patch-3.2.64-rt94.patch.xz

tar -xf linux-3.2.64.tar.xz && cd linux-3.2.64 xz -cd ../patch-3.2.64-rt94.patch.xz | patch -p1 make menuconfig ...
...
...
make;



--

                                                          Pavel.

Confidential Information:This message is sent to the intended recipient and may contain privileged or confidential information. If you received this transmission in error, please notify the sender with a replying e-mail and delete the message and any attachment.Transmission Caveat and Virus Alert: Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: RT Patch to use for Kernel 3.2.0
  2015-01-16 23:08   ` Jing Shao
@ 2015-01-17  0:45     ` Pavel Vasilyev
  2015-01-17  0:47     ` Pavel Vasilyev
  1 sibling, 0 replies; 6+ messages in thread
From: Pavel Vasilyev @ 2015-01-17  0:45 UTC (permalink / raw)
  To: Jing Shao, linux-rt-users@vger.kernel.org

17.01.2015 02:08, Jing Shao пишет:
> Pavel,
>
> After patching the kernel 3.2.0 with 3.2.64-rt94, I am getting build errors, which made me think that I am using the wrong patch file.
>
> I see there is old patch files for 3.2.xx, but none for 3.2.0.

patch 3.2.64-rt94 only for 3.2.64

-- 

                                                          Pavel.
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: RT Patch to use for Kernel 3.2.0
  2015-01-16 23:08   ` Jing Shao
  2015-01-17  0:45     ` Pavel Vasilyev
@ 2015-01-17  0:47     ` Pavel Vasilyev
  1 sibling, 0 replies; 6+ messages in thread
From: Pavel Vasilyev @ 2015-01-17  0:47 UTC (permalink / raw)
  To: Jing Shao, linux-rt-users@vger.kernel.org

17.01.2015 02:08, Jing Shao пишет:

> I see there is old patch files for 3.2.xx, but none for 3.2.0.

Try this 
https://www.kernel.org/pub/linux/kernel/projects/rt/3.2/older/patches-3.2-rt10.tar.xz


-- 

                                                          Pavel.
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: RT Patch to use for Kernel 3.2.0
  2015-01-16 22:14 RT Patch to use for Kernel 3.2.0 Jing Shao
  2015-01-16 22:23 ` Pavel Vasilyev
@ 2015-01-17 19:30 ` Uwe Kleine-König
  1 sibling, 0 replies; 6+ messages in thread
From: Uwe Kleine-König @ 2015-01-17 19:30 UTC (permalink / raw)
  To: Jing Shao; +Cc: linux-rt-users@vger.kernel.org

Hello,

On Fri, Jan 16, 2015 at 10:14:10PM +0000, Jing Shao wrote:
> I am trying to patch a Linux 3.2.0 kernel with PREEMPT_RT patch, I
> tried the patch-3.2.64-rt94.patch.gz, but the Linux kernel fails to
> compile afterwards, is this the right patch to use?
> 
> For your info, the ouput of "uname -r" is 3.2.0. The kernel comes in
> as part of the SDK for a TI Sitara processor.
You don't want to use 3.2.0. There is a pile of fixes available. So
switch to 3.2.66 and try to apply the patch from 3.2.64-rt94 on top of
that.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-01-17 19:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-16 22:14 RT Patch to use for Kernel 3.2.0 Jing Shao
2015-01-16 22:23 ` Pavel Vasilyev
2015-01-16 23:08   ` Jing Shao
2015-01-17  0:45     ` Pavel Vasilyev
2015-01-17  0:47     ` Pavel Vasilyev
2015-01-17 19:30 ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).