Re: [Adeos-main] xenomai-runtime package for Ubuntu (can we get 2.6.38 hard real time kernel with it?)

2011-06-14 Thread AKS
Hi Jan and Alex

Thanks for the pointers and appreciated. Cheers!

On 6/14/11, Jan Kiszka  wrote:
> On 2011-06-14 11:03, Alexey Galakhov wrote:
>>> My other question is that can I compile a 2.6.38 kernel, drivers and
>>> rootfile
>>> system with Ubuntu Natty, since that patch and xenomai-runtime do not
>>> limit the kernel number. Can it be possible to build an Ubuntu with
>>> 2.6.38
>>> real time kernel based on Xenomai. I will be glad if anyone can kindly
>>> share
>>> or point me to documentation for xenomai-runtime. Thanks!
>>
>> Maybe. You have to have an ipipe patch for this kernel version. If you
>> don't have one. you may use git version of ipipe and patch the kernel by
>> hand. It is much more complex but doable.
>
> No need to patch if you clone the ipipe git:
>
> git://git.denx.de/ipipe-2.6.git ipipe-2.6.38-x86
>
> Some pending x86 fixes are in
>
> git://git.kiszka.org/ipipe.git queues/2.6.38-x86
>
> Just run prepare-kernel against such a checked out tree.
>
> Jan
>
> --
> Siemens AG, Corporate Technology, CT T DE IT 1
> Corporate Competence Center Embedded Linux
>

___
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main


Re: [Adeos-main] xenomai-runtime package for Ubuntu (can we get 2.6.38 hard real time kernel with it?)

2011-06-14 Thread Jan Kiszka
On 2011-06-14 11:03, Alexey Galakhov wrote:
>> My other question is that can I compile a 2.6.38 kernel, drivers and rootfile
>> system with Ubuntu Natty, since that patch and xenomai-runtime do not
>> limit the kernel number. Can it be possible to build an Ubuntu with 2.6.38
>> real time kernel based on Xenomai. I will be glad if anyone can kindly share
>> or point me to documentation for xenomai-runtime. Thanks!
> 
> Maybe. You have to have an ipipe patch for this kernel version. If you
> don't have one. you may use git version of ipipe and patch the kernel by
> hand. It is much more complex but doable.

No need to patch if you clone the ipipe git:

git://git.denx.de/ipipe-2.6.git ipipe-2.6.38-x86

Some pending x86 fixes are in

git://git.kiszka.org/ipipe.git queues/2.6.38-x86

Just run prepare-kernel against such a checked out tree.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

___
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main


Re: [Adeos-main] xenomai-runtime package for Ubuntu (can we get 2.6.38 hard real time kernel with it?)

2011-06-14 Thread Alexey Galakhov
Hi!

On 06/14/2011 10:09 AM, AKS wrote:
> Hi
> 
> Good day everyone. I have questions about "xenomai-runtime" package
> that can be installed in Ubuntu using "apt-get install". xenomai-runtime
> relies on libxenomai1. It is recommended to have "linux-patch-xenomai"
> too. I can understand why it needs libxenomai1 library but I cannot figure
> out how it can patch the Linux kernel to be real time. I assume it is still
> needed to patch "adeos I-pipe" into the kernel to make it real time. The
> package information states that the "linux-patch-xenomai" package is just
> an adeos I-pipe patch, but the Linux source has to be virgin source code
> from mainstream kernel.
> https://launchpad.net/ubuntu/natty/+package/xenomai-runtime

You have to install one of Ubuntu "linux-source-*" packages. It should
be of the version supported by Xenomai/I-pipe. 2.6.35.9 or 2.6.37 should
be Ok.

After that, install "linux-patch-xenomai" and follow instructions from
its README.Debian. Usually you both apply the patch and recompile the
kernel using make-kpkg utility (install "kernel-package").

Some Ubuntu/Debian versions are broken so that there is no matching
linux-source in the repository at all. If so, use vanilla kernel with
vanilla xenomai patch. Run make-kpkg to build the kernel. You still may
use "xenomai-runtime" from the repository.

> My other question is that can I compile a 2.6.38 kernel, drivers and rootfile
> system with Ubuntu Natty, since that patch and xenomai-runtime do not
> limit the kernel number. Can it be possible to build an Ubuntu with 2.6.38
> real time kernel based on Xenomai. I will be glad if anyone can kindly share
> or point me to documentation for xenomai-runtime. Thanks!

Maybe. You have to have an ipipe patch for this kernel version. If you
don't have one. you may use git version of ipipe and patch the kernel by
hand. It is much more complex but doable.

--
Alex


___
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main