[Xenomai] arm64 support
rpm at xenomai.org
Tue Jan 17 11:31:19 CET 2017
On 01/16/2017 04:26 AM, Jerry Huang wrote:
>> -----Original Message-----
>> From: Philippe Gerum [mailto:rpm at xenomai.org]
>> Sent: Thursday, January 12, 2017 8:04 PM
>> To: Jerry Huang <jerry.huang at nxp.com>; Jorge Ramirez <jro at xenomai.org>;
>> xenomai at xenomai.org
>> Subject: Re: [Xenomai] arm64 support
>> On 01/12/2017 11:24 AM, Jerry Huang wrote:
>>>> -----Original Message-----
>>>> From: Jorge Ramirez [mailto:jro at xenomai.org]
>>>> Sent: Thursday, January 05, 2017 7:09 PM
>>>> To: Jerry Huang <jerry.huang at nxp.com>; xenomai at 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
>>>> 2016 to control motors.
>>>> I think I wrote a simple post entry in the 96boards forum  about it.
>>>> please remember to not top-post when writing to the mailing list.
>>>>  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.
More information about the Xenomai