[Xenomai] R: install xenomai on centos

2017-11-20 Thread Fazio Maurizio
Hello,
I installed the 3.18.20 linux kernel but the installation process is the same 
for your kernel version.

Try this installation process:

#./xenomai-3.0.5/scripts/prepare-kernel.sh 
--ipipe=ipipe-core-3.10.32-x86-9.patch --linux=linux-3.10.32

Go to linux-3.10.32 folder and after the kernel configuration step
#make rpm

At the end of operations
#cd /root/rpmbuild/RPMS/x86_64
#rpm -ivh kernel-3.10.32-1.x86_64.rpm
#rpm -ivh kernel-devel-3.10.32-1.x86_64.rpm
#rpm -ivh kernel-headers-3.10.32-1.x86_64.rpm

Auto configure the grub2
#grub2-mkconfig

Reboot the system


Maurizio Fazio

Chief Technical Office / Aircraft Systems
Software Engineer

Leonardo S.p.A.
C.so Francia, 426 - Torino - 10146 - Italy
Tel. +39 011 756 3308 / 3761
maurizio.fa...@leonardocompany.com
www.leonardocompany.com

–——
HELICOPTERS/AERONAUTICS/ELECTRONICS, DEFENCE & SECURITY SYSTEMS/SPACE
–——



Il presente messaggio e-mail e ogni suo allegato devono intendersi indirizzati 
esclusivamente al destinatario indicato e considerarsi dal contenuto 
strettamente riservato e confidenziale. Se non siete l'effettivo destinatario o 
avete ricevuto il messaggio e-mail per errore, siete pregati di avvertire 
immediatamente il mittente e di cancellare il suddetto messaggio e ogni suo 
allegato dal vostro sistema informatico. Qualsiasi utilizzo, diffusione, copia 
o archiviazione del presente messaggio da parte di chi non ne è il destinatario 
è strettamente proibito e può dar luogo a responsabilità di carattere civile e 
penale punibili ai sensi di legge.
Questa e-mail ha valore legale solo se firmata digitalmente ai sensi della 
normativa vigente.

The contents of this email message and any attachments are intended solely for 
the addressee(s) and contain confidential and/or privileged information.
If you are not the intended recipient of this message, or if this message has 
been addressed to you in error, please immediately notify the sender and then 
delete this message and any attachments from your system. If you are not the 
intended recipient, you are hereby notified that any use, dissemination, 
copying, or storage of this message or its attachments is strictly prohibited. 
Unauthorized disclosure and/or use of information contained in this email 
message may result in civil and criminal liability. “
This e-mail has legal value according to the applicable laws only if it is 
digitally signed by the sender
-Messaggio originale-
Da: Xenomai [mailto:xenomai-boun...@xenomai.org] Per conto di ??
Inviato: domenica 19 novembre 2017 03:57
A: xenomai@xenomai.org
Oggetto: [Xenomai] install xenomai on centos

Hi,

I am attempting to install xenomai-3.x on centos7(kernel: 
3.10.0-229.el7.x86_64, or 3.10.0-229.rt56.el7) for x86 XEON E5.
I use:
linux-3.10.32.tar.xz;
xenomai-3.0.5.tar.bz2;
ipipe-core-3.10.32-x86-9.patch;
when I finished install linux with:
#./xenomai-3.0.5/scripts/prepare-kernel.sh 
--ipipe=ipipe-core-3.10.32-x86-9.patch --linux=linux-3.10.32 #make bzImage -j2 
&& make modules -j2 && make modules_install && make install #reboot but the 
system can't boot from kernel 3.10.32, and there was no any display on screen.




--

操千曲而后晓声,观千剑而后识器。
___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai
___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


[Xenomai] Xenomai 3.0.6 doesn't build the patched kernel

2017-11-20 Thread Leopold Palomo-Avellaneda
Hi,

trying to build the new Xenomai version (3.0.6), after have prepared the linux
sources, I got this error:

In file included from arch/x86/xenomai/machine.c:22:0:
arch/x86/xenomai/include/asm/xenomai/syscall.h: In function 
‘__xn_get_syscall_nr’:
arch/x86/xenomai/include/asm/xenomai/syscall.h:46:31: error: implicit
declaration of function ‘__COBALT_CALL32_SYSNR’
[-Werror=implicit-function-declaration]
 #define __xn_syscall(regs)__COBALT_CALL32_SYSNR(__xn_reg_sys(regs) \
   ^
arch/x86/xenomai/include/asm/xenomai/syscall.h:60:32: note: in expansion of
macro ‘__xn_syscall’
  return __xn_syscall_p(regs) ? __xn_syscall(regs) :
^~~~
cc1: some warnings being treated as errors

I have used the prepare-kernel script and built the Debian packages. The
platform is a Debian Stretch (amd64) with the default compiler.

linux version linux-4.9.51 and

http://xenomai.org/downloads/ipipe/v4.x/x86/ipipe-core-4.9.51-x86-4.patch

as a patch.



Best regards,


Leopold



-- 
--
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?

___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


Re: [Xenomai] Xenomai 3.0.6 doesn't build the patched kernel

2017-11-20 Thread Philippe Gerum

On 11/20/2017 01:14 PM, Leopold Palomo-Avellaneda wrote:

Hi,

trying to build the new Xenomai version (3.0.6), after have prepared the linux
sources, I got this error:

In file included from arch/x86/xenomai/machine.c:22:0:
arch/x86/xenomai/include/asm/xenomai/syscall.h: In function 
‘__xn_get_syscall_nr’:
arch/x86/xenomai/include/asm/xenomai/syscall.h:46:31: error: implicit
declaration of function ‘__COBALT_CALL32_SYSNR’
[-Werror=implicit-function-declaration]
  #define __xn_syscall(regs)__COBALT_CALL32_SYSNR(__xn_reg_sys(regs) \
^
arch/x86/xenomai/include/asm/xenomai/syscall.h:60:32: note: in expansion of
macro ‘__xn_syscall’
   return __xn_syscall_p(regs) ? __xn_syscall(regs) :
 ^~~~
cc1: some warnings being treated as errors

I have used the prepare-kernel script and built the Debian packages. The
platform is a Debian Stretch (amd64) with the default compiler.

linux version linux-4.9.51 and

http://xenomai.org/downloads/ipipe/v4.x/x86/ipipe-core-4.9.51-x86-4.patch

as a patch.





As a work around, drop CONFIG_IA32_EMULATION if you don't need it.

--
Philippe.

___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


[Xenomai] Contributing to Xenomai

2017-11-20 Thread Greg Gallagher
Hi,
  I'm preparing a patch to enable RTDM gpio for the Xilinx Zynq 7000
platform.  First, is this something that would be of value to add to
mainline Xenomai?  I noticed there is a rtdm gpio driver for the bcm2835
(raspberry pi) and figured it may be nice for Zynq users to have a rtdm
gpio driver out of the box.
I've been digging online and I can't find any guidelines on how to
submit a patch to Xenomai.  On the mailing list I see most patches come
across with [PATCH] in the subject line, comments in the body, followed by
the patch.

Any help would be appreciated and sorry if I missed this information in a
FAQ somewhere.

Thanks

Greg
___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


Re: [Xenomai] Contributing to Xenomai

2017-11-20 Thread Henning Schild
Am Mon, 20 Nov 2017 10:43:09 -0500
schrieb Greg Gallagher :

> Hi,
>   I'm preparing a patch to enable RTDM gpio for the Xilinx Zynq 7000
> platform.  First, is this something that would be of value to add to
> mainline Xenomai?  I noticed there is a rtdm gpio driver for the
> bcm2835 (raspberry pi) and figured it may be nice for Zynq users to
> have a rtdm gpio driver out of the box.

I would say in general any additions are welcome. Even if parts to not
get merged for any reason, others will be able to find your patches in
the archives of the list later.

> I've been digging online and I can't find any guidelines on how to
> submit a patch to Xenomai.  On the mailing list I see most patches
> come across with [PATCH] in the subject line, comments in the body,
> followed by the patch.

Such patches are the output of "git format-patch" and "git send-email".
If you know how to use that, using it would help others to test and
integrate your changes.
However Philippe luckily does not enforce a too strict workflow here.
So it might also be ok to send patches as attachments, but be warned
that that makes reviews more difficult.

So split your changes into multiple patches, where each patch addresses
exactly one issue. And send these patches to the list, if you can use
git or git compatible tools.

> Any help would be appreciated and sorry if I missed this information
> in a FAQ somewhere.

I am not sure whether that is documented anywhere, i basically just
told you how i did it so far and what i have seen since working on the
project.
But one of your changes could introduce such documentation ;).

Henning

> Thanks
> 
> Greg
> ___
> Xenomai mailing list
> Xenomai@xenomai.org
> https://xenomai.org/mailman/listinfo/xenomai


___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


Re: [Xenomai] Xenomai 3.0.6 doesn't build the patched kernel

2017-11-20 Thread Leopold Palomo-Avellaneda
On 20/11/17 14:38, Philippe Gerum wrote:
> On 11/20/2017 01:14 PM, Leopold Palomo-Avellaneda wrote:
>> Hi,
>>
>> trying to build the new Xenomai version (3.0.6), after have prepared the 
>> linux
>> sources, I got this error:
>>
>> In file included from arch/x86/xenomai/machine.c:22:0:
>> arch/x86/xenomai/include/asm/xenomai/syscall.h: In function
>> ‘__xn_get_syscall_nr’:
>> arch/x86/xenomai/include/asm/xenomai/syscall.h:46:31: error: implicit
>> declaration of function ‘__COBALT_CALL32_SYSNR’
>> [-Werror=implicit-function-declaration]
>>   #define __xn_syscall(regs)    __COBALT_CALL32_SYSNR(__xn_reg_sys(regs) \
>>     ^
>> arch/x86/xenomai/include/asm/xenomai/syscall.h:60:32: note: in expansion of
>> macro ‘__xn_syscall’
>>    return __xn_syscall_p(regs) ? __xn_syscall(regs) :
>>  ^~~~
>> cc1: some warnings being treated as errors
>>
>> I have used the prepare-kernel script and built the Debian packages. The
>> platform is a Debian Stretch (amd64) with the default compiler.
>>
>> linux version linux-4.9.51 and
>>
>> http://xenomai.org/downloads/ipipe/v4.x/x86/ipipe-core-4.9.51-x86-4.patch
>>
>> as a patch.
>>
>>
>>
> 
> As a work around, drop CONFIG_IA32_EMULATION if you don't need it.
> 

drivers/xenomai/net/stack/rtwlan.c:171:2: warning: this ‘if’ clause does not
guard... [-Wmisleading-indentation]
  if (mutex_lock_interruptible(&rtdev->nrt_lock))
  ^~

-- 
--
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?

___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


Re: [Xenomai] Xenomai 3.0.6 doesn't build the patched kernel

2017-11-20 Thread Leopold Palomo-Avellaneda
On 20/11/17 17:25, Leopold Palomo-Avellaneda wrote:
> On 20/11/17 14:38, Philippe Gerum wrote:
>> On 11/20/2017 01:14 PM, Leopold Palomo-Avellaneda wrote:
>>> Hi,
>>>
>>> trying to build the new Xenomai version (3.0.6), after have prepared the 
>>> linux
>>> sources, I got this error:
>>>
>>> In file included from arch/x86/xenomai/machine.c:22:0:
>>> arch/x86/xenomai/include/asm/xenomai/syscall.h: In function
>>> ‘__xn_get_syscall_nr’:
>>> arch/x86/xenomai/include/asm/xenomai/syscall.h:46:31: error: implicit
>>> declaration of function ‘__COBALT_CALL32_SYSNR’
>>> [-Werror=implicit-function-declaration]
>>>   #define __xn_syscall(regs)    __COBALT_CALL32_SYSNR(__xn_reg_sys(regs) \
>>>     ^
>>> arch/x86/xenomai/include/asm/xenomai/syscall.h:60:32: note: in expansion of
>>> macro ‘__xn_syscall’
>>>    return __xn_syscall_p(regs) ? __xn_syscall(regs) :
>>>  ^~~~
>>> cc1: some warnings being treated as errors
>>>
>>> I have used the prepare-kernel script and built the Debian packages. The
>>> platform is a Debian Stretch (amd64) with the default compiler.
>>>
>>> linux version linux-4.9.51 and
>>>
>>> http://xenomai.org/downloads/ipipe/v4.x/x86/ipipe-core-4.9.51-x86-4.patch
>>>
>>> as a patch.
>>>
>>>
>>>
>>
>> As a work around, drop CONFIG_IA32_EMULATION if you don't need it.
>>
> 
> drivers/xenomai/net/stack/rtwlan.c:171:2: warning: this ‘if’ clause does not
> guard... [-Wmisleading-indentation]
>   if (mutex_lock_interruptible(&rtdev->nrt_lock))
>   ^~
> 
Sorry,

message not complete. I have a list of compile errors but I will send when I 
finish.

Leopold

-- 
--
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?

___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


[Xenomai] 3.0.6 with linux 4.9.51 on x86_64 Intel(R) Atom(TM) CPU N2800 compilation failed

2017-11-20 Thread Jack Lee
Hello,

  My board cpu is Intel Atom CPU N2800. I am using xenomai 3.0.6 with linux 
4.9.51. 
  I get the following error when compiling the kernel. Can anyone give me some 
help?
  Thanks!

  CC  arch/x86/xenomai/machine.o
In file included from arch/x86/xenomai/machine.c:22:0:
arch/x86/xenomai/include/asm/xenomai/syscall.h: In function 
??__xn_get_syscall_nr??:
arch/x86/xenomai/include/asm/xenomai/syscall.h:46:31: error: implicit 
declaration of function ??__COBALT_CALL32_SYSNR?? 
[-Werror=implicit-function-declaration]
 #define __xn_syscall(regs)__COBALT_CALL32_SYSNR(__xn_reg_sys(regs) \
   ^
arch/x86/xenomai/include/asm/xenomai/syscall.h:60:32: note: in expansion of 
macro ??__xn_syscall??
  return __xn_syscall_p(regs) ? __xn_syscall(regs) :
^
___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


Re: [Xenomai] 3.0.6 with linux 4.9.51 on x86_64 Intel(R) Atom(TM) CPU N2800 compilation failed

2017-11-20 Thread Leopold Palomo-Avellaneda
On 21/11/17 06:52, Jack Lee wrote:
> Hello,
> 
>   My board cpu is Intel Atom CPU N2800. I am using xenomai 3.0.6 with linux 
> 4.9.51. 
>   I get the following error when compiling the kernel. Can anyone give me 
> some help?
>   Thanks!
> 
>   CC  arch/x86/xenomai/machine.o
> In file included from arch/x86/xenomai/machine.c:22:0:
> arch/x86/xenomai/include/asm/xenomai/syscall.h: In function 
> ‘__xn_get_syscall_nr’:
> arch/x86/xenomai/include/asm/xenomai/syscall.h:46:31: error: implicit 
> declaration of function ‘__COBALT_CALL32_SYSNR’ 
> [-Werror=implicit-function-declaration]
>  #define __xn_syscall(regs)__COBALT_CALL32_SYSNR(__xn_reg_sys(regs) \
>^
> arch/x86/xenomai/include/asm/xenomai/syscall.h:60:32: note: in expansion of 
> macro ‘__xn_syscall’
>   return __xn_syscall_p(regs) ? __xn_syscall(regs) :

I had the same problem yesterday and Philippe Gerum answered:

>> As a work around, drop CONFIG_IA32_EMULATION if you don't need it.

Best regards,

Leopold

-- 
--
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: 833 bytes
Desc: OpenPGP digital signature
URL: 

___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai