* [Xenomai] arm64 support
@ 2017-01-04 15:03 Jerry Huang
2017-01-04 16:20 ` Jorge Ramirez
2017-01-09 6:42 ` Jorge Ramirez
0 siblings, 2 replies; 19+ messages in thread
From: Jerry Huang @ 2017-01-04 15:03 UTC (permalink / raw)
To: xenomai
Hi, all guys,
I am planning to run xenomai with Cobalt mode on armv8 platform with arm64 (A53/A72).
However, I don't find the context of arm64 in xenomai-3. Who can give me some comment how to get these information?
Best Regards
Jerry Huang
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-04 15:03 [Xenomai] arm64 support Jerry Huang
@ 2017-01-04 16:20 ` Jorge Ramirez
2017-01-04 16:58 ` Jorge Ramirez
2017-01-05 10:39 ` Jerry Huang
2017-01-09 6:42 ` Jorge Ramirez
1 sibling, 2 replies; 19+ messages in thread
From: Jorge Ramirez @ 2017-01-04 16:20 UTC (permalink / raw)
To: Jerry Huang, xenomai
On 01/04/2017 04:03 PM, Jerry Huang wrote:
> Hi, all guys,
> I am planning to run xenomai with Cobalt mode on armv8 platform with arm64 (A53/A72).
> However, I don't find the context of arm64 in xenomai-3. Who can give me some comment how to get these information?
>
> Best Regards
> Jerry Huang
>
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> https://xenomai.org/mailman/listinfo/xenomai
>
do check the mailing list archives for previous discussions.
also:
http://www.96boards.org/blog/xenomai-on-the-96boards/
http://www.96boards.org/blog/servo-motor-control/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-04 16:20 ` Jorge Ramirez
@ 2017-01-04 16:58 ` Jorge Ramirez
2017-01-05 10:42 ` Jerry Huang
2017-01-05 10:39 ` Jerry Huang
1 sibling, 1 reply; 19+ messages in thread
From: Jorge Ramirez @ 2017-01-04 16:58 UTC (permalink / raw)
To: Jerry Huang, xenomai
On 01/04/2017 05:20 PM, Jorge Ramirez wrote:
> On 01/04/2017 04:03 PM, Jerry Huang wrote:
>> Hi, all guys,
>> I am planning to run xenomai with Cobalt mode on armv8 platform with
>> arm64 (A53/A72).
>> However, I don't find the context of arm64 in xenomai-3. Who can give
>> me some comment how to get these information?
>>
>> Best Regards
>> Jerry Huang
>>
>> _______________________________________________
>> Xenomai mailing list
>> Xenomai@xenomai.org
>> https://xenomai.org/mailman/listinfo/xenomai
>>
>
> do check the mailing list archives for previous discussions.
>
> also:
> http://www.96boards.org/blog/xenomai-on-the-96boards/
> http://www.96boards.org/blog/servo-motor-control/
>
>
Jerry,
I just noticed that you are an NXP engineer and therefore a Linaro
member (see http://www.linaro.org/company/nxp/. with Linaro being my
current employer).
Maybe you could consider - if Xenomai is in your roadmap - raising the
need for Xenomai support during the Technical Steering Committee meeting?
That would provide the Xenomai project with some extra hands.
thanks,
jorge
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-04 16:20 ` Jorge Ramirez
2017-01-04 16:58 ` Jorge Ramirez
@ 2017-01-05 10:39 ` Jerry Huang
2017-01-05 11:09 ` Jorge Ramirez
1 sibling, 1 reply; 19+ messages in thread
From: Jerry Huang @ 2017-01-05 10:39 UTC (permalink / raw)
To: Jorge Ramirez, xenomai
Thanks a lot.
I sent the request t subscribe this mail list, I don't know if the approval is needed for this request.
>From the below links, they are about the 96boards.
I found one boards DragonBoard410c is based on ARM Contxt-A53, but I didn't find if it is running ARM32 or ARM64.
Could you please point out where can I find these information?
Best Regards
Jerry Huang
> -----Original Message-----
> From: Jorge Ramirez [mailto:jro@xenomai.org]
> Sent: Thursday, January 05, 2017 12:21 AM
> To: Jerry Huang <jerry.huang@nxp.com>; xenomai@xenomai.org
> Subject: Re: [Xenomai] arm64 support
>
> On 01/04/2017 04:03 PM, Jerry Huang wrote:
> > Hi, all guys,
> > I am planning to run xenomai with Cobalt mode on armv8 platform with
> arm64 (A53/A72).
> > However, I don't find the context of arm64 in xenomai-3. Who can give me
> some comment how to get these information?
> >
> > Best Regards
> > Jerry Huang
> >
> > _______________________________________________
> > Xenomai mailing list
> > Xenomai@xenomai.org
> > https://xenomai.org/mailman/listinfo/xenomai
> >
>
> do check the mailing list archives for previous discussions.
>
> also:
> http://www.96boards.org/blog/xenomai-on-the-96boards/
> http://www.96boards.org/blog/servo-motor-control/
>
>
>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-04 16:58 ` Jorge Ramirez
@ 2017-01-05 10:42 ` Jerry Huang
0 siblings, 0 replies; 19+ messages in thread
From: Jerry Huang @ 2017-01-05 10:42 UTC (permalink / raw)
To: Jorge Ramirez, xenomai
Thanks, Jorge.
I just take xenomai work, so I don't know more about it.
All thing about xenomai (especially Arm64 and Cobalt support) are necessary for me.
Best Regards
Jerry Huang
> -----Original Message-----
> From: Jorge Ramirez [mailto:jro@xenomai.org]
> Sent: Thursday, January 05, 2017 12:58 AM
> To: Jerry Huang <jerry.huang@nxp.com>; xenomai@xenomai.org
> Subject: Re: [Xenomai] arm64 support
>
> On 01/04/2017 05:20 PM, Jorge Ramirez wrote:
> > On 01/04/2017 04:03 PM, Jerry Huang wrote:
> >> Hi, all guys,
> >> I am planning to run xenomai with Cobalt mode on armv8 platform with
> >> arm64 (A53/A72).
> >> However, I don't find the context of arm64 in xenomai-3. Who can give
> >> me some comment how to get these information?
> >>
> >> Best Regards
> >> Jerry Huang
> >>
> >> _______________________________________________
> >> Xenomai mailing list
> >> Xenomai@xenomai.org
> >> https://xenomai.org/mailman/listinfo/xenomai
> >>
> >
> > do check the mailing list archives for previous discussions.
> >
> > also:
> > http://www.96boards.org/blog/xenomai-on-the-96boards/
> > http://www.96boards.org/blog/servo-motor-control/
> >
> >
>
> Jerry,
>
> I just noticed that you are an NXP engineer and therefore a Linaro member
> (see http://www.linaro.org/company/nxp/. with Linaro being my current
> employer).
> Maybe you could consider - if Xenomai is in your roadmap - raising the need
> for Xenomai support during the Technical Steering Committee meeting?
>
> That would provide the Xenomai project with some extra hands.
>
> thanks,
> jorge
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-05 10:39 ` Jerry Huang
@ 2017-01-05 11:09 ` Jorge Ramirez
2017-01-12 10:24 ` Jerry Huang
0 siblings, 1 reply; 19+ messages in thread
From: Jorge Ramirez @ 2017-01-05 11:09 UTC (permalink / raw)
To: Jerry Huang, xenomai
On 01/05/2017 11:39 AM, Jerry Huang wrote:
> Thanks a lot.
> I sent the request t subscribe this mail list, I don't know if the approval is needed for this request.
> >From the below links, they are about the 96boards.
> I found one boards DragonBoard410c is based on ARM Contxt-A53, but I didn't find if it is running ARM32 or ARM64.
> Could you please point out where can I find these information?
>
> Best Regards
> Jerry Huang
yes, both boards (HiKey and dragon410c) run in 64 bit mode.
We also demoed Android 64bit running Xenomai on the HiKey back at ELC-A
2016 to control motors.
I think I wrote a simple post entry in the 96boards forum [1] about it.
please remember to not top-post when writing to the mailing list.
[1] http://www.96boards.org/forums/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-04 15:03 [Xenomai] arm64 support Jerry Huang
2017-01-04 16:20 ` Jorge Ramirez
@ 2017-01-09 6:42 ` Jorge Ramirez
1 sibling, 0 replies; 19+ messages in thread
From: Jorge Ramirez @ 2017-01-09 6:42 UTC (permalink / raw)
To: Jerry Huang, xenomai, Jorge Ramirez-Ortiz
On 01/04/2017 04:03 PM, Jerry Huang wrote:
> However, I don't find the context of arm64 in xenomai-3. Who can give me some comment how to get these information?
btw I suppose you already found the arm64 support you were looking for
in the xenomai-3 next branch.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-05 11:09 ` Jorge Ramirez
@ 2017-01-12 10:24 ` Jerry Huang
2017-01-12 12:03 ` Philippe Gerum
0 siblings, 1 reply; 19+ messages in thread
From: Jerry Huang @ 2017-01-12 10:24 UTC (permalink / raw)
To: Jorge Ramirez, xenomai
> -----Original Message-----
> From: Jorge Ramirez [mailto:jro@xenomai.org]
> Sent: Thursday, January 05, 2017 7:09 PM
> To: Jerry Huang <jerry.huang@nxp.com>; xenomai@xenomai.org
> Subject: Re: [Xenomai] arm64 support
>
> On 01/05/2017 11:39 AM, Jerry Huang wrote:
> > Thanks a lot.
> > I sent the request t subscribe this mail list, I don't know if the approval is
> needed for this request.
> > >From the below links, they are about the 96boards.
> > I found one boards DragonBoard410c is based on ARM Contxt-A53, but I
> didn't find if it is running ARM32 or ARM64.
> > Could you please point out where can I find these information?
> >
> > Best Regards
> > Jerry Huang
>
> yes, both boards (HiKey and dragon410c) run in 64 bit mode.
> We also demoed Android 64bit running Xenomai on the HiKey back at ELC-A
> 2016 to control motors.
>
> I think I wrote a simple post entry in the 96boards forum [1] about it.
>
> please remember to not top-post when writing to the mailing list.
>
> [1] http://www.96boards.org/forums/
I got the Ipipe patch "ipipe-core-4.1.18-arm64-6.patch" from xenomai website and ported it to Linux-4.1.35 with a little modification (for kernel/trace/ring_buffer.c file).
But when I boot the Linux, I got the kernel panic as below shows, which was caused by function "irqs_disabled", who can give more comment how to fix it?
[ 0.012441] ------------[ cut here ]------------
[ 0.017084] WARNING: CPU: 0 PID: 0 at kernel/softirq.c:129 __local_bh_enable+0x54/0x60()
[ 0.025211] Modules linked in:
[ 0.028276] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.1.35+ #3
[ 0.034305] Hardware name: LS1043A RDB Board (DT)
[ 0.039025] Call trace:
[ 0.041478] [<ffff80000008a538>] dump_backtrace+0x0/0x11c
[ 0.046899] [<ffff80000008a668>] show_stack+0x14/0x1c
[ 0.051972] [<ffff8000007ab49c>] dump_stack+0x9c/0xc4
[ 0.057043] [<ffff8000000b5884>] warn_slowpath_common+0x98/0xd0
[ 0.062987] [<ffff8000000b5980>] warn_slowpath_null+0x18/0x20
[ 0.068757] [<ffff8000000b8c5c>] __local_bh_enable+0x54/0x60
[ 0.074439] [<ffff8000000b8c90>] _local_bh_enable+0x28/0x60
[ 0.080035] [<ffff8000000b95ac>] irq_enter+0x4c/0x68
[ 0.085021] [<ffff8000000f2b38>] __handle_domain_irq+0x4c/0xd4
[ 0.090877] [<ffff8000000825c8>] gic_handle_irq+0x34/0x84
....
[ 0.192022] ---[ end trace cb88537fdc8fa200 ]---
[ 0.196668] BUG: failure at kernel/irq_work.c:135/irq_work_run_list()!
[ 0.203222] Kernel panic - not syncing: BUG!
[ 0.207507] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 4.1.35+ #3
[ 0.214759] Hardware name: LS1043A RDB Board (DT)
[ 0.219478] Call trace:
[ 0.221929] [<ffff80000008a538>] dump_backtrace+0x0/0x11c
[ 0.227350] [<ffff80000008a668>] show_stack+0x14/0x1c
[ 0.232420] [<ffff8000007ab49c>] dump_stack+0x9c/0xc4
[ 0.237491] [<ffff8000007aa254>] panic+0xe4/0x228
[ 0.242214] [<ffff8000001321b8>] irq_work_run+0x0/0x64
[ 0.247371] [<ffff80000013241c>] irq_work_tick+0x54/0x78
[ 0.252706] [<ffff800000102f94>] update_process_times+0x54/0x6c
[ 0.258650] [<ffff800000103004>] update_root_process_times+0x58/0x64
[ 0.265032] [<ffff80000010f780>] tick_periodic+0x44/0xbc
[ 0.270366] [<ffff80000010f9e4>] tick_handle_periodic+0x2c/0x80
[ 0.276312] [<ffff80000066b918>] arch_timer_handler_phys+0x3c/0x5c
[ 0.282519] [<ffff8000000f5bac>] handle_percpu_devid_irq+0x68/0xc8
[ 0.288726] [<ffff8000000f2828>] generic_handle_irq+0x34/0x4c
[ 0.294496] [<ffff8000000f2b5c>] __handle_domain_irq+0x70/0xd4
[ 0.300352] [<ffff8000000825c8>] gic_handle_irq+0x34/0x84
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-12 10:24 ` Jerry Huang
@ 2017-01-12 12:03 ` Philippe Gerum
2017-01-12 13:04 ` Jorge Ramirez
` (2 more replies)
0 siblings, 3 replies; 19+ messages in thread
From: Philippe Gerum @ 2017-01-12 12:03 UTC (permalink / raw)
To: Jerry Huang, Jorge Ramirez, xenomai
On 01/12/2017 11:24 AM, Jerry Huang wrote:
>
>
>> -----Original Message-----
>> From: Jorge Ramirez [mailto:jro@xenomai.org]
>> Sent: Thursday, January 05, 2017 7:09 PM
>> To: Jerry Huang <jerry.huang@nxp.com>; xenomai@xenomai.org
>> Subject: Re: [Xenomai] arm64 support
>>
>> On 01/05/2017 11:39 AM, Jerry Huang wrote:
>>> Thanks a lot.
>>> I sent the request t subscribe this mail list, I don't know if the approval is
>> needed for this request.
>>> >From the below links, they are about the 96boards.
>>> I found one boards DragonBoard410c is based on ARM Contxt-A53, but I
>> didn't find if it is running ARM32 or ARM64.
>>> Could you please point out where can I find these information?
>>>
>>> Best Regards
>>> Jerry Huang
>>
>> yes, both boards (HiKey and dragon410c) run in 64 bit mode.
>> We also demoed Android 64bit running Xenomai on the HiKey back at ELC-A
>> 2016 to control motors.
>>
>> I think I wrote a simple post entry in the 96boards forum [1] about it.
>>
>> please remember to not top-post when writing to the mailing list.
>>
>> [1] http://www.96boards.org/forums/
> I got the Ipipe patch "ipipe-core-4.1.18-arm64-6.patch" from xenomai website and ported it to Linux-4.1.35 with a little modification (for kernel/trace/ring_buffer.c file).
> But when I boot the Linux, I got the kernel panic as below shows, which was caused by function "irqs_disabled", who can give more comment how to fix it?
>
All arm64 patches present in the DL area are broken, some critical
changes are missing due to a bug in some obscure code extraction script
for this architecture, do not use them.
Please pull the code from the I-pipe git tree instead (branch ipipe-4.1.y).
--
Philippe.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-12 12:03 ` Philippe Gerum
@ 2017-01-12 13:04 ` Jorge Ramirez
2017-01-12 14:42 ` Lennart Sorensen
2017-01-13 2:09 ` Jerry Huang
2017-01-16 3:26 ` Jerry Huang
2 siblings, 1 reply; 19+ messages in thread
From: Jorge Ramirez @ 2017-01-12 13:04 UTC (permalink / raw)
To: Philippe Gerum, Jerry Huang, xenomai
On 01/12/2017 01:03 PM, Philippe Gerum wrote:
> On 01/12/2017 11:24 AM, Jerry Huang wrote:
>>
>>> -----Original Message-----
>>> From: Jorge Ramirez [mailto:jro@xenomai.org]
>>> Sent: Thursday, January 05, 2017 7:09 PM
>>> To: Jerry Huang <jerry.huang@nxp.com>; xenomai@xenomai.org
>>> Subject: Re: [Xenomai] arm64 support
>>>
>>> On 01/05/2017 11:39 AM, Jerry Huang wrote:
>>>> Thanks a lot.
>>>> I sent the request t subscribe this mail list, I don't know if the approval is
>>> needed for this request.
>>>> >From the below links, they are about the 96boards.
>>>> I found one boards DragonBoard410c is based on ARM Contxt-A53, but I
>>> didn't find if it is running ARM32 or ARM64.
>>>> Could you please point out where can I find these information?
>>>>
>>>> Best Regards
>>>> Jerry Huang
>>> yes, both boards (HiKey and dragon410c) run in 64 bit mode.
>>> We also demoed Android 64bit running Xenomai on the HiKey back at ELC-A
>>> 2016 to control motors.
>>>
>>> I think I wrote a simple post entry in the 96boards forum [1] about it.
>>>
>>> please remember to not top-post when writing to the mailing list.
>>>
>>> [1] http://www.96boards.org/forums/
>> I got the Ipipe patch "ipipe-core-4.1.18-arm64-6.patch" from xenomai website and ported it to Linux-4.1.35 with a little modification (for kernel/trace/ring_buffer.c file).
>> But when I boot the Linux, I got the kernel panic as below shows, which was caused by function "irqs_disabled", who can give more comment how to fix it?
>>
> All arm64 patches present in the DL area are broken, some critical
> changes are missing due to a bug in some obscure code extraction script
> for this architecture, do not use them.
>
> Please pull the code from the I-pipe git tree instead (branch ipipe-4.1.y).
>
also, what hardware are you running and what is the extent of your
modifications?
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-12 13:04 ` Jorge Ramirez
@ 2017-01-12 14:42 ` Lennart Sorensen
2017-01-13 2:11 ` Jerry Huang
0 siblings, 1 reply; 19+ messages in thread
From: Lennart Sorensen @ 2017-01-12 14:42 UTC (permalink / raw)
To: Jorge Ramirez; +Cc: Jerry Huang, xenomai
On Thu, Jan 12, 2017 at 02:04:06PM +0100, Jorge Ramirez wrote:
> also, what hardware are you running and what is the extent of your
> modifications?
Well the kernel dump said:
LS1043A RDB
So that would be a Freescale (NXP? Qualcomm?) quad A53 chip reference
board.
--
Len Sorensen
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-12 12:03 ` Philippe Gerum
2017-01-12 13:04 ` Jorge Ramirez
@ 2017-01-13 2:09 ` Jerry Huang
2017-01-16 3:26 ` Jerry Huang
2 siblings, 0 replies; 19+ messages in thread
From: Jerry Huang @ 2017-01-13 2:09 UTC (permalink / raw)
To: Philippe Gerum, Jorge Ramirez, xenomai
> -----Original Message-----
> From: Philippe Gerum [mailto:rpm@xenomai.org]
> Sent: Thursday, January 12, 2017 8:04 PM
> To: Jerry Huang <jerry.huang@nxp.com>; Jorge Ramirez <jro@xenomai.org>;
> xenomai@xenomai.org
> Subject: Re: [Xenomai] arm64 support
>
> On 01/12/2017 11:24 AM, Jerry Huang wrote:
> >
> >
> >> -----Original Message-----
> >> From: Jorge Ramirez [mailto:jro@xenomai.org]
> >> Sent: Thursday, January 05, 2017 7:09 PM
> >> To: Jerry Huang <jerry.huang@nxp.com>; xenomai@xenomai.org
> >> Subject: Re: [Xenomai] arm64 support
> >>
> >> On 01/05/2017 11:39 AM, Jerry Huang wrote:
> >>> Thanks a lot.
> >>> I sent the request t subscribe this mail list, I don't know if the
> >>> approval is
> >> needed for this request.
> >>> >From the below links, they are about the 96boards.
> >>> I found one boards DragonBoard410c is based on ARM Contxt-A53, but I
> >> didn't find if it is running ARM32 or ARM64.
> >>> Could you please point out where can I find these information?
> >>>
> >>> Best Regards
> >>> Jerry Huang
> >>
> >> yes, both boards (HiKey and dragon410c) run in 64 bit mode.
> >> We also demoed Android 64bit running Xenomai on the HiKey back at
> >> ELC-A
> >> 2016 to control motors.
> >>
> >> I think I wrote a simple post entry in the 96boards forum [1] about it.
> >>
> >> please remember to not top-post when writing to the mailing list.
> >>
> >> [1] http://www.96boards.org/forums/
> > I got the Ipipe patch "ipipe-core-4.1.18-arm64-6.patch" from xenomai
> website and ported it to Linux-4.1.35 with a little modification (for
> kernel/trace/ring_buffer.c file).
> > But when I boot the Linux, I got the kernel panic as below shows, which
> was caused by function "irqs_disabled", who can give more comment how to
> fix it?
> >
>
> All arm64 patches present in the DL area are broken, some critical changes
> are missing due to a bug in some obscure code extraction script for this
> architecture, do not use them.
>
> Please pull the code from the I-pipe git tree instead (branch ipipe-4.1.y).
>
Thanks a lot, I will try the ipipe git tree with branch ipipe-4.1.y.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-12 14:42 ` Lennart Sorensen
@ 2017-01-13 2:11 ` Jerry Huang
0 siblings, 0 replies; 19+ messages in thread
From: Jerry Huang @ 2017-01-13 2:11 UTC (permalink / raw)
To: Lennart Sorensen, Jorge Ramirez; +Cc: xenomai
> -----Original Message-----
> From: Lennart Sorensen [mailto:lsorense@csclub.uwaterloo.ca]
> Sent: Thursday, January 12, 2017 10:42 PM
> To: Jorge Ramirez <jro@xenomai.org>
> Cc: Philippe Gerum <rpm@xenomai.org>; Jerry Huang
> <jerry.huang@nxp.com>; xenomai@xenomai.org
> Subject: Re: [Xenomai] arm64 support
>
> On Thu, Jan 12, 2017 at 02:04:06PM +0100, Jorge Ramirez wrote:
> > also, what hardware are you running and what is the extent of your
> > modifications?
>
> Well the kernel dump said:
>
> LS1043A RDB
>
> So that would be a Freescale (NXP? Qualcomm?) quad A53 chip reference
> board.
>
Yes, the board is LS1043ARDB, quad contex-A53.
Former is Freescale, now is NXP, and will be Qualcomm :(
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-12 12:03 ` Philippe Gerum
2017-01-12 13:04 ` Jorge Ramirez
2017-01-13 2:09 ` Jerry Huang
@ 2017-01-16 3:26 ` Jerry Huang
2017-01-17 10:31 ` Philippe Gerum
2 siblings, 1 reply; 19+ messages in thread
From: Jerry Huang @ 2017-01-16 3:26 UTC (permalink / raw)
To: Philippe Gerum, Jorge Ramirez, xenomai
> -----Original Message-----
> From: Philippe Gerum [mailto:rpm@xenomai.org]
> Sent: Thursday, January 12, 2017 8:04 PM
> To: Jerry Huang <jerry.huang@nxp.com>; Jorge Ramirez <jro@xenomai.org>;
> xenomai@xenomai.org
> Subject: Re: [Xenomai] arm64 support
>
> On 01/12/2017 11:24 AM, Jerry Huang wrote:
> >
> >
> >> -----Original Message-----
> >> From: Jorge Ramirez [mailto:jro@xenomai.org]
> >> Sent: Thursday, January 05, 2017 7:09 PM
> >> To: Jerry Huang <jerry.huang@nxp.com>; xenomai@xenomai.org
> >> Subject: Re: [Xenomai] arm64 support
> >>
> >> On 01/05/2017 11:39 AM, Jerry Huang wrote:
> >>> Thanks a lot.
> >>> I sent the request t subscribe this mail list, I don't know if the
> >>> approval is
> >> needed for this request.
> >>> >From the below links, they are about the 96boards.
> >>> I found one boards DragonBoard410c is based on ARM Contxt-A53, but I
> >> didn't find if it is running ARM32 or ARM64.
> >>> Could you please point out where can I find these information?
> >>>
> >>> Best Regards
> >>> Jerry Huang
> >>
> >> yes, both boards (HiKey and dragon410c) run in 64 bit mode.
> >> We also demoed Android 64bit running Xenomai on the HiKey back at
> >> ELC-A
> >> 2016 to control motors.
> >>
> >> I think I wrote a simple post entry in the 96boards forum [1] about it.
> >>
> >> please remember to not top-post when writing to the mailing list.
> >>
> >> [1] http://www.96boards.org/forums/
> > I got the Ipipe patch "ipipe-core-4.1.18-arm64-6.patch" from xenomai
> website and ported it to Linux-4.1.35 with a little modification (for
> kernel/trace/ring_buffer.c file).
> > But when I boot the Linux, I got the kernel panic as below shows, which
> was caused by function "irqs_disabled", who can give more comment how to
> fix it?
> >
>
> All arm64 patches present in the DL area are broken, some critical changes
> are missing due to a bug in some obscure code extraction script for this
> architecture, do not use them.
>
> Please pull the code from the I-pipe git tree instead (branch ipipe-4.1.y).
I clone the ipipe repos (git://git.xenomai.org/ipipe.git) and checkout to branch origin/ipipe-4.1.y.
And using the script ./scripts/ipipe/genpatches.sh to generate the patch "ipipe-core-4.1.18-arm64-6.patch",
Then applied it to my kernel Linux-4.1.35 with a litter modification (about file kernel/trace/ring_buffer.c).
After building the kernel and booting my board, then I got the kernel panic as the result of patch (ipipe-core-4.1.18-arm64-6.patch) from websit (http://xenomai.org/downloads/ipipe/).
Any comment for this issue?
...
[ 0.012441] ------------[ cut here ]------------
[ 0.017083] WARNING: CPU: 0 PID: 0 at kernel/softirq.c:129 __local_bh_enable+0x54/0x60()
[ 0.025209] Modules linked in:
[ 0.028274] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.1.35+ #4
[ 0.034304] Hardware name: LS1043A RDB Board (DT)
[ 0.039024] Call trace:
[ 0.041477] [<ffff80000008a538>] dump_backtrace+0x0/0x11c
[ 0.046898] [<ffff80000008a668>] show_stack+0x14/0x1c
[ 0.051971] [<ffff8000007ab49c>] dump_stack+0x9c/0xc4
[ 0.057043] [<ffff8000000b5884>] warn_slowpath_common+0x98/0xd0
[ 0.062987] [<ffff8000000b5980>] warn_slowpath_null+0x18/0x20
[ 0.068757] [<ffff8000000b8c5c>] __local_bh_enable+0x54/0x60
[ 0.074440] [<ffff8000000b8c90>] _local_bh_enable+0x28/0x60
[ 0.080035] [<ffff8000000b95ac>] irq_enter+0x4c/0x68
[ 0.085021] [<ffff8000000f2b38>] __handle_domain_irq+0x4c/0xd4
[ 0.090878] [<ffff8000000825c8>] gic_handle_irq+0x34/0x84
...
[ 0.192022] ---[ end trace cb88537fdc8fa200 ]---
[ 0.196669] BUG: failure at kernel/irq_work.c:135/irq_work_run_list()!
[ 0.203223] Kernel panic - not syncing: BUG!
[ 0.207508] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 4.1.35+ #4
[ 0.214761] Hardware name: LS1043A RDB Board (DT)
[ 0.219480] Call trace:
[ 0.221930] [<ffff80000008a538>] dump_backtrace+0x0/0x11c
[ 0.227351] [<ffff80000008a668>] show_stack+0x14/0x1c
[ 0.232422] [<ffff8000007ab49c>] dump_stack+0x9c/0xc4
[ 0.237492] [<ffff8000007aa254>] panic+0xe4/0x228
[ 0.242215] [<ffff8000001321b8>] irq_work_run+0x0/0x64
[ 0.247373] [<ffff80000013241c>] irq_work_tick+0x54/0x78
[ 0.252707] [<ffff800000102f94>] update_process_times+0x54/0x6c
[ 0.258651] [<ffff800000103004>] update_root_process_times+0x58/0x64
[ 0.265033] [<ffff80000010f780>] tick_periodic+0x44/0xbc
[ 0.270367] [<ffff80000010f9e4>] tick_handle_periodic+0x2c/0x80
[ 0.276313] [<ffff80000066b918>] arch_timer_handler_phys+0x3c/0x5c
[ 0.282520] [<ffff8000000f5bac>] handle_percpu_devid_irq+0x68/0xc8
[ 0.288726] [<ffff8000000f2828>] generic_handle_irq+0x34/0x4c
[ 0.294496] [<ffff8000000f2b5c>] __handle_domain_irq+0x70/0xd4
[ 0.300353] [<ffff8000000825c8>] gic_handle_irq+0x34/0x84
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-16 3:26 ` Jerry Huang
@ 2017-01-17 10:31 ` Philippe Gerum
2017-02-07 11:01 ` Jerry Huang
0 siblings, 1 reply; 19+ messages in thread
From: Philippe Gerum @ 2017-01-17 10:31 UTC (permalink / raw)
To: Jerry Huang, Jorge Ramirez, xenomai
On 01/16/2017 04:26 AM, Jerry Huang wrote:
>
>> -----Original Message-----
>> From: Philippe Gerum [mailto:rpm@xenomai.org]
>> Sent: Thursday, January 12, 2017 8:04 PM
>> To: Jerry Huang <jerry.huang@nxp.com>; Jorge Ramirez <jro@xenomai.org>;
>> xenomai@xenomai.org
>> Subject: Re: [Xenomai] arm64 support
>>
>> On 01/12/2017 11:24 AM, Jerry Huang wrote:
>>>
>>>
>>>> -----Original Message-----
>>>> From: Jorge Ramirez [mailto:jro@xenomai.org]
>>>> Sent: Thursday, January 05, 2017 7:09 PM
>>>> To: Jerry Huang <jerry.huang@nxp.com>; xenomai@xenomai.org
>>>> Subject: Re: [Xenomai] arm64 support
>>>>
>>>> On 01/05/2017 11:39 AM, Jerry Huang wrote:
>>>>> Thanks a lot.
>>>>> I sent the request t subscribe this mail list, I don't know if the
>>>>> approval is
>>>> needed for this request.
>>>>> >From the below links, they are about the 96boards.
>>>>> I found one boards DragonBoard410c is based on ARM Contxt-A53, but I
>>>> didn't find if it is running ARM32 or ARM64.
>>>>> Could you please point out where can I find these information?
>>>>>
>>>>> Best Regards
>>>>> Jerry Huang
>>>>
>>>> yes, both boards (HiKey and dragon410c) run in 64 bit mode.
>>>> We also demoed Android 64bit running Xenomai on the HiKey back at
>>>> ELC-A
>>>> 2016 to control motors.
>>>>
>>>> I think I wrote a simple post entry in the 96boards forum [1] about it.
>>>>
>>>> please remember to not top-post when writing to the mailing list.
>>>>
>>>> [1] http://www.96boards.org/forums/
>>> I got the Ipipe patch "ipipe-core-4.1.18-arm64-6.patch" from xenomai
>> website and ported it to Linux-4.1.35 with a little modification (for
>> kernel/trace/ring_buffer.c file).
>>> But when I boot the Linux, I got the kernel panic as below shows, which
>> was caused by function "irqs_disabled", who can give more comment how to
>> fix it?
>>>
>>
>> All arm64 patches present in the DL area are broken, some critical changes
>> are missing due to a bug in some obscure code extraction script for this
>> architecture, do not use them.
>>
>> Please pull the code from the I-pipe git tree instead (branch ipipe-4.1.y).
> I clone the ipipe repos (git://git.xenomai.org/ipipe.git) and checkout to branch origin/ipipe-4.1.y.
> And using the script ./scripts/ipipe/genpatches.sh to generate the patch "ipipe-core-4.1.18-arm64-6.patch",
> Then applied it to my kernel Linux-4.1.35 with a litter modification (about file kernel/trace/ring_buffer.c).
> After building the kernel and booting my board, then I got the kernel panic as the result of patch (ipipe-core-4.1.18-arm64-6.patch) from websit (http://xenomai.org/downloads/ipipe/).
> Any comment for this issue?
That script is precisely the one that fails pulling the changes required
to fixup the gic(-v3) driver for dealing with interrupt pipelining, so
this is going to fail the same way. The panic message in your kernel log
is a manifestation of this.
You should just use the ipipe.git tree contents unmodified which is
correct, because genpatches.sh is currently broken for extracting
patches for arm64.
--
Philippe.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] arm64 support
2017-01-17 10:31 ` Philippe Gerum
@ 2017-02-07 11:01 ` Jerry Huang
0 siblings, 0 replies; 19+ messages in thread
From: Jerry Huang @ 2017-02-07 11:01 UTC (permalink / raw)
To: Philippe Gerum, Jorge Ramirez, xenomai
> >>
> >> All arm64 patches present in the DL area are broken, some critical
> >> changes are missing due to a bug in some obscure code extraction
> >> script for this architecture, do not use them.
> >>
> >> Please pull the code from the I-pipe git tree instead (branch ipipe-4.1.y).
> > I clone the ipipe repos (git://git.xenomai.org/ipipe.git) and checkout to
> branch origin/ipipe-4.1.y.
> > And using the script ./scripts/ipipe/genpatches.sh to generate the
> > patch "ipipe-core-4.1.18-arm64-6.patch",
> > Then applied it to my kernel Linux-4.1.35 with a litter modification (about
> file kernel/trace/ring_buffer.c).
> > After building the kernel and booting my board, then I got the kernel panic
> as the result of patch (ipipe-core-4.1.18-arm64-6.patch) from websit
> (http://xenomai.org/downloads/ipipe/).
> > Any comment for this issue?
>
> That script is precisely the one that fails pulling the changes required to fixup
> the gic(-v3) driver for dealing with interrupt pipelining, so this is going to fail
> the same way. The panic message in your kernel log is a manifestation of this.
>
> You should just use the ipipe.git tree contents unmodified which is correct,
> because genpatches.sh is currently broken for extracting patches for arm64.
>
> --
> Philippe.
Thanks a lot.
I used ipipe.git tree and pull all patches for arm and arm64 from branch ipipe-4.1.y and applied all these patches to Linux kernel, and built the kernel.
Then, I boot up the Linux kernel (Linux-4.1.35) successfully.
However, when I compile the Xenomai3 lib with command " make install ", I encountered another issue during compiling:
...
make[3]: Entering directory '/home/huangcm/xenomai-3/lib/cobalt'
CC libcobalt_la-assert_context.lo
assert_context.c:27:33: fatal error: asm/xenomai/syscall.h: No such file or directory
I enter "./include" directory, I don't find this file. How to do this issue?
below is my steps (on my native ls1043a board):
1> clone git://git.xenomai.org/xenomai-3.git and checkout to branch "next"
2> ./scripts/bootstrap --with-core=cobalt -enable-debug=partial
3> ./configure CFLAGS="-march=armv8-a" LDFLAGS="-march=armv8-a" --with-core=cobalt --enable-smp
4> sudo make install
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] ARM64 support
2015-10-17 18:45 ` Jorge Ramirez Ortiz
@ 2015-10-18 0:05 ` Jorge Ramirez Ortiz
0 siblings, 0 replies; 19+ messages in thread
From: Jorge Ramirez Ortiz @ 2015-10-18 0:05 UTC (permalink / raw)
To: xenomai
On 10/17/2015 02:45 PM, Jorge Ramirez Ortiz wrote:
> We are finishing up the aarch64 integration of the patches contributed to the
> project by the team at http://www.mperpetuo.com/ for I-pipe and Xenomai (this
> should happen within the next couple of weeks).
> The development and validation is being done on the Hikey board (8 cores A53
> Hisilicon SoC) [1]; very soon we will add support for the Dragon 410c (4 cores
> A53 Qualcomm SoC) [2] and probably some of the other 96Boards that will be
> coming soon.
>
> Incidentally Xenomai/Cobalt on Hikey was demonstrated during Linaro Connect 2015
> in SFO last month.
>
> So yes, you can consider aarch64 as an important part of the Xenomai roadmap
Following up on this note, just to share that Xenomai 3 with the Cobalt
microkernel runs as well on the Dragon 410c [1] (4.0 linux kernel [2])
All tests pass.
[1] https://www.96boards.org/products/ce/dragonboard410c/
[2] https://git.linaro.org/landing-teams/working/qualcomm/kernel.git branch
ubuntu-qcom-dragonboard410c-15.07
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Xenomai] ARM64 support
2015-10-17 15:06 [Xenomai] ARM64 support Leopold Palomo-Avellaneda
@ 2015-10-17 18:45 ` Jorge Ramirez Ortiz
2015-10-18 0:05 ` Jorge Ramirez Ortiz
0 siblings, 1 reply; 19+ messages in thread
From: Jorge Ramirez Ortiz @ 2015-10-17 18:45 UTC (permalink / raw)
To: xenomai
We are finishing up the aarch64 integration of the patches contributed to the
project by the team at http://www.mperpetuo.com/ for I-pipe and Xenomai (this
should happen within the next couple of weeks).
The development and validation is being done on the Hikey board (8 cores A53
Hisilicon SoC) [1]; very soon we will add support for the Dragon 410c (4 cores
A53 Qualcomm SoC) [2] and probably some of the other 96Boards that will be
coming soon.
Incidentally Xenomai/Cobalt on Hikey was demonstrated during Linaro Connect 2015
in SFO last month.
So yes, you can consider aarch64 as an important part of the Xenomai roadmap
[1] https://www.96boards.org/products/ce/hikey/
[2] https://www.96boards.org/products/ce/dragonboard410c/
On 10/17/2015 11:06 AM, Leopold Palomo-Avellaneda wrote:
> Hi,
>
> I have been searching on the web if Xenomai works in ARM64 or not. I have
> found some mails on the list in march, but I don't know if it's supporting now
> or not.
>
> Please, could you explain the status of the port?
>
> Best regards,
>
> Leopold
>
>
> [1] https://xenomai.org/pipermail/xenomai/2015-March/033702.html
>
--
jro
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Xenomai] ARM64 support
@ 2015-10-17 15:06 Leopold Palomo-Avellaneda
2015-10-17 18:45 ` Jorge Ramirez Ortiz
0 siblings, 1 reply; 19+ messages in thread
From: Leopold Palomo-Avellaneda @ 2015-10-17 15:06 UTC (permalink / raw)
To: xenomai
Hi,
I have been searching on the web if Xenomai works in ARM64 or not. I have
found some mails on the list in march, but I don't know if it's supporting now
or not.
Please, could you explain the status of the port?
Best regards,
Leopold
[1] https://xenomai.org/pipermail/xenomai/2015-March/033702.html
--
--
Linux User 152692 GPG: 05F4A7A949A2D9AA
Catalonia
-------------------------------------
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://xenomai.org/pipermail/xenomai/attachments/20151017/ee302064/attachment.sig>
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2017-02-07 11:01 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-04 15:03 [Xenomai] arm64 support Jerry Huang
2017-01-04 16:20 ` Jorge Ramirez
2017-01-04 16:58 ` Jorge Ramirez
2017-01-05 10:42 ` Jerry Huang
2017-01-05 10:39 ` Jerry Huang
2017-01-05 11:09 ` Jorge Ramirez
2017-01-12 10:24 ` Jerry Huang
2017-01-12 12:03 ` Philippe Gerum
2017-01-12 13:04 ` Jorge Ramirez
2017-01-12 14:42 ` Lennart Sorensen
2017-01-13 2:11 ` Jerry Huang
2017-01-13 2:09 ` Jerry Huang
2017-01-16 3:26 ` Jerry Huang
2017-01-17 10:31 ` Philippe Gerum
2017-02-07 11:01 ` Jerry Huang
2017-01-09 6:42 ` Jorge Ramirez
-- strict thread matches above, loose matches on Subject: below --
2015-10-17 15:06 [Xenomai] ARM64 support Leopold Palomo-Avellaneda
2015-10-17 18:45 ` Jorge Ramirez Ortiz
2015-10-18 0:05 ` Jorge Ramirez Ortiz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.