* [Xenomai-help] Problems with installation
@ 2012-01-05 19:16 Santiago Focke
2012-01-06 9:44 ` Gilles Chanteperdrix
0 siblings, 1 reply; 7+ messages in thread
From: Santiago Focke @ 2012-01-05 19:16 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 700 bytes --]
Hi all
I'm quite new with Linux and Xenomai. I'm using Ubunto kernel
2.6.32-24-generic. I tied to install Xenomai-2.6 following the
README.INSTALL document. First of all I cloned the GIT repository in
/usr/src/xenomai-2.6
After that, I tried to run the prepare-kernel.sh script as follows:
/usr/src/xenomai-2.6/scripts/prepare-kernel.sh
--linux=/usr/src/linux-headers-2.6.32-24-generic/
I select the default target architecture with no problems
Target architecture [default i686]:
But when I select the default I-pipe patch i get the following:
I-pipe patch [default /dev/null]:
prepare-kernel.sh: cannot read I-pipe patch from /dev/null
What should I do?
Thanks in advance,
--
Santiago
[-- Attachment #2: Type: text/html, Size: 1363 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] Problems with installation
2012-01-05 19:16 [Xenomai-help] Problems with installation Santiago Focke
@ 2012-01-06 9:44 ` Gilles Chanteperdrix
2012-01-09 15:22 ` Santiago Focke
0 siblings, 1 reply; 7+ messages in thread
From: Gilles Chanteperdrix @ 2012-01-06 9:44 UTC (permalink / raw)
To: Santiago Focke; +Cc: xenomai
On 01/05/2012 08:16 PM, Santiago Focke wrote:
> Hi all
>
> I'm quite new with Linux and Xenomai. I'm using Ubunto kernel
> 2.6.32-24-generic. I tied to install Xenomai-2.6 following the
> README.INSTALL document. First of all I cloned the GIT repository in
>
> /usr/src/xenomai-2.6
>
> After that, I tried to run the prepare-kernel.sh script as follows:
>
> /usr/src/xenomai-2.6/scripts/prepare-kernel.sh
> --linux=/usr/src/linux-headers-2.6.32-24-generic/
That is not going to work. Xenomai patches the kernel sources, and ask
you to rebuild a kernel, just supplying the headers will not work.
--
Gilles.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] Problems with installation
2012-01-06 9:44 ` Gilles Chanteperdrix
@ 2012-01-09 15:22 ` Santiago Focke
2012-01-09 16:54 ` Tadele Shiferaw
0 siblings, 1 reply; 7+ messages in thread
From: Santiago Focke @ 2012-01-09 15:22 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1135 bytes --]
Thanks for your reply.
As I told you, I am really new with linux. I've been trying to find the
kernel source tree and not just the headers, but I haven't been able to do
it. I read that it is normally located in /usr/src/, but there I just have
the headers. How can I search the right path of the kernel source tree to
prepare the kernel?
Regards,
2012/1/6 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
> On 01/05/2012 08:16 PM, Santiago Focke wrote:
> > Hi all
> >
> > I'm quite new with Linux and Xenomai. I'm using Ubunto kernel
> > 2.6.32-24-generic. I tied to install Xenomai-2.6 following the
> > README.INSTALL document. First of all I cloned the GIT repository in
> >
> > /usr/src/xenomai-2.6
> >
> > After that, I tried to run the prepare-kernel.sh script as follows:
> >
> > /usr/src/xenomai-2.6/scripts/prepare-kernel.sh
> > --linux=/usr/src/linux-headers-2.6.32-24-generic/
>
> That is not going to work. Xenomai patches the kernel sources, and ask
> you to rebuild a kernel, just supplying the headers will not work.
>
>
> --
> Gilles.
>
--
Ing. Santiago Focke
[-- Attachment #2: Type: text/html, Size: 1658 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] Problems with installation
2012-01-09 15:22 ` Santiago Focke
@ 2012-01-09 16:54 ` Tadele Shiferaw
2012-01-10 16:26 ` Santiago Focke
0 siblings, 1 reply; 7+ messages in thread
From: Tadele Shiferaw @ 2012-01-09 16:54 UTC (permalink / raw)
To: Santiago Focke; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1526 bytes --]
On Jan 9, 2012, at 4:22 PM, Santiago Focke wrote:
> Thanks for your reply.
>
> As I told you, I am really new with linux. I've been trying to find the kernel source tree and not just the headers, but I haven't been able to do it. I read that it is normally located in /usr/src/, but there I just have the headers. How can I search the right path of the kernel source tree to prepare the kernel?
>
Rather than using the kernel headers from ubuntu, clone a new kernel copy in /usr/src and try to patch that.
> Regards,
Tadele
>
> 2012/1/6 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
> On 01/05/2012 08:16 PM, Santiago Focke wrote:
> > Hi all
> >
> > I'm quite new with Linux and Xenomai. I'm using Ubunto kernel
> > 2.6.32-24-generic. I tied to install Xenomai-2.6 following the
> > README.INSTALL document. First of all I cloned the GIT repository in
> >
> > /usr/src/xenomai-2.6
> >
> > After that, I tried to run the prepare-kernel.sh script as follows:
> >
> > /usr/src/xenomai-2.6/scripts/prepare-kernel.sh
> > --linux=/usr/src/linux-headers-2.6.32-24-generic/
>
> That is not going to work. Xenomai patches the kernel sources, and ask
> you to rebuild a kernel, just supplying the headers will not work.
>
>
> --
> Gilles.
>
>
>
> --
> Ing. Santiago Focke
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
[-- Attachment #2: Type: text/html, Size: 2470 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] Problems with installation
2012-01-09 16:54 ` Tadele Shiferaw
@ 2012-01-10 16:26 ` Santiago Focke
2012-01-10 16:43 ` Tadele Shiferaw
0 siblings, 1 reply; 7+ messages in thread
From: Santiago Focke @ 2012-01-10 16:26 UTC (permalink / raw)
To: Tadele Shiferaw; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 2430 bytes --]
Thanks for the advise
I downloaded a new kernel and it worked. I followed the steps from
README.INSTALL successfully
$ /usr/src/xenomai-2.6/scripts/prepare-kernel.sh
--linux=/home/corbys/linux-2.6.38/
--adeos=/usr/src/xenomai-2.6/ksrc/arch/x86/patches/adeos-ipipe-2.6.38.8-x86-2.11-01.patch
--arch=x86
$ cd ~/linux-2.6.38/
$ make [ARCH=i386] xconfig
$ make [ARCH=i386] bzImage modules
$ mkdir ~/build/linux-2.6.38 && cd ~/build/linux-2.6.38
$ /usr/src/xenomai-2.6/configure --enable-x86-sep --host=i686-linux
CFLAGS="-m32 -O2" LDFLAGS="-m32"
How can I check now that my Xenomai patched kernel was installed correctly
and is ready to be used? Also, what does it mean "# then install as needed"
after 'make bzImage modules'? I just followed the steps above. Should I had
installed something else after that step?
Thanks again.
2012/1/9 Tadele Shiferaw <metitad@domain.hid>
>
> On Jan 9, 2012, at 4:22 PM, Santiago Focke wrote:
>
> Thanks for your reply.
>
> As I told you, I am really new with linux. I've been trying to find the
> kernel source tree and not just the headers, but I haven't been able to do
> it. I read that it is normally located in /usr/src/, but there I just have
> the headers. How can I search the right path of the kernel source tree to
> prepare the kernel?
>
>
> Rather than using the kernel headers from ubuntu, clone a new kernel copy
> in /usr/src and try to patch that.
>
> Regards,
>
>
> Tadele
>
>
> 2012/1/6 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
>
>> On 01/05/2012 08:16 PM, Santiago Focke wrote:
>> > Hi all
>> >
>> > I'm quite new with Linux and Xenomai. I'm using Ubunto kernel
>> > 2.6.32-24-generic. I tied to install Xenomai-2.6 following the
>> > README.INSTALL document. First of all I cloned the GIT repository in
>> >
>> > /usr/src/xenomai-2.6
>> >
>> > After that, I tried to run the prepare-kernel.sh script as follows:
>> >
>> > /usr/src/xenomai-2.6/scripts/prepare-kernel.sh
>> > --linux=/usr/src/linux-headers-2.6.32-24-generic/
>>
>> That is not going to work. Xenomai patches the kernel sources, and ask
>> you to rebuild a kernel, just supplying the headers will not work.
>>
>>
>> --
>> Gilles.
>>
>
>
>
> --
> Ing. Santiago Focke
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
>
>
--
Ing. Santiago Focke
[-- Attachment #2: Type: text/html, Size: 3717 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] Problems with installation
2012-01-10 16:26 ` Santiago Focke
@ 2012-01-10 16:43 ` Tadele Shiferaw
2012-01-10 19:50 ` Santiago Focke
0 siblings, 1 reply; 7+ messages in thread
From: Tadele Shiferaw @ 2012-01-10 16:43 UTC (permalink / raw)
To: Santiago Focke; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 2798 bytes --]
On Jan 10, 2012, at 5:26 PM, Santiago Focke wrote:
> Thanks for the advise
>
> I downloaded a new kernel and it worked. I followed the steps from README.INSTALL successfully
> $ /usr/src/xenomai-2.6/scripts/prepare-kernel.sh
> --linux=/home/corbys/linux-2.6.38/
>
> --adeos=/usr/src/xenomai-2.6/ksrc/arch/x86/patches/adeos-ipipe-2.6.38.8-x86-2.11-01.patch
> --arch=x86
> $ cd ~/linux-2.6.38/
> $ make [ARCH=i386] xconfig
> $ make [ARCH=i386] bzImage modules
> $ mkdir ~/build/linux-2.6.38 && cd ~/build/linux-2.6.38
>
> $ /usr/src/xenomai-2.6/configure --enable-x86-sep --host=i686-linux CFLAGS="-m32 -O2" LDFLAGS="-m32"
> How can I check now that my Xenomai patched kernel was installed correctly and is ready to be used? Also, what does it mean "# then install as needed" after 'make bzImage modules'? I just followed the steps above. Should I had installed something else after that step?
>
> Thanks again.
>
You are almost there ... Check the following for the rest of the installation steps and basic testing...
http://www.xenomai.org/index.php/Xenomai_quick_build_quide
Tadele
>
> 2012/1/9 Tadele Shiferaw <metitad@domain.hid>
>
> On Jan 9, 2012, at 4:22 PM, Santiago Focke wrote:
>
>> Thanks for your reply.
>>
>> As I told you, I am really new with linux. I've been trying to find the kernel source tree and not just the headers, but I haven't been able to do it. I read that it is normally located in /usr/src/, but there I just have the headers. How can I search the right path of the kernel source tree to prepare the kernel?
>>
>
> Rather than using the kernel headers from ubuntu, clone a new kernel copy in /usr/src and try to patch that.
>
>> Regards,
>
> Tadele
>>
>> 2012/1/6 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
>> On 01/05/2012 08:16 PM, Santiago Focke wrote:
>> > Hi all
>> >
>> > I'm quite new with Linux and Xenomai. I'm using Ubunto kernel
>> > 2.6.32-24-generic. I tied to install Xenomai-2.6 following the
>> > README.INSTALL document. First of all I cloned the GIT repository in
>> >
>> > /usr/src/xenomai-2.6
>> >
>> > After that, I tried to run the prepare-kernel.sh script as follows:
>> >
>> > /usr/src/xenomai-2.6/scripts/prepare-kernel.sh
>> > --linux=/usr/src/linux-headers-2.6.32-24-generic/
>>
>> That is not going to work. Xenomai patches the kernel sources, and ask
>> you to rebuild a kernel, just supplying the headers will not work.
>>
>>
>> --
>> Gilles.
>>
>>
>>
>> --
>> Ing. Santiago Focke
>> _______________________________________________
>> Xenomai-help mailing list
>> Xenomai-help@domain.hid
>> https://mail.gna.org/listinfo/xenomai-help
>
>
>
>
> --
> Ing. Santiago Focke
[-- Attachment #2: Type: text/html, Size: 4389 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] Problems with installation
2012-01-10 16:43 ` Tadele Shiferaw
@ 2012-01-10 19:50 ` Santiago Focke
0 siblings, 0 replies; 7+ messages in thread
From: Santiago Focke @ 2012-01-10 19:50 UTC (permalink / raw)
To: Tadele Shiferaw; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 5196 bytes --]
Thanks for the quick reply
I'm having problems booting into the Xenomai kernel. I get a window which
says:
*Ubuntu is running in low-graphics mode*
The following error was encountered. You may need
to upgrade your configuration to solve this.
(EE) open /dev/fb0: No such file or directory
(EE) intel(0): [drm]: Failed to open DRM device for
pci:0000:00:02.0: No such file or directory
(EE) intel(0): Failed to become DRM master.
(EE) GARTInit: Unable to open /dev/agpgart (No such file or
directory)
(EE) intel(0): /dev/agpgart is either not available or no memory
is available
(EE) intel(0): Failed to initializekernel memory manager
(EE) intel(0): AGP GART support is either not available or
cannot be used
(EE) intel(0): AGP GART support is either not available or
cannot be used
(EE) intel(0): Couldn't allocate video memory
When I exit to the console, I see a fatal error that says
Could not load /lib/modules/2.6.38/modules.dep: no such file or directory
My grub.cfg file was edited automatically after copying the bzImage and
typing update-grub:
sudo cp /home/corbys/linux-2.6.38/arch/x86/boot/bzImage
/boot/vmlinuz-2.6.38.8-xenomai-2.6
sudo addgroup xenomai
sudo usermod -a -G xenomai corbys
sudo usermod -a -G xenomai aleu
sudo update-grub
The update-grub added the following lines to grub.cfg
menuentry 'Ubuntu, with Linux 2.6.38.8-xenomai-2.6' --class ubuntu --class
gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 958aeec8-5e7e-42ce-9719-136139112849
linux /boot/vmlinuz-2.6.38.8-xenomai-2.6 root=/dev/sda1 ro quiet
splash
}
menuentry 'Ubuntu, with Linux 2.6.38.8-xenomai-2.6 (recovery mode)' --class
ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 958aeec8-5e7e-42ce-9719-136139112849
echo 'Loading Linux 2.6.38.8-xenomai-2.6 ...'
linux /boot/vmlinuz-2.6.38.8-xenomai-2.6 root=/dev/sda1 ro single
echo 'Loading initial ramdisk ...'
}
I tried also by changing root=/dev/sda1 for my UUID (root=UUID=958...), but
it didn't even started. I changed as well 'quiet splash' for
'xeno_nucleus.xenomai_gid=1001' and still didn't work (same 'Ubuntu is
running in low-graphics mode' error).
What can I do now??
2012/1/10 Tadele Shiferaw <metitad@domain.hid>
>
> On Jan 10, 2012, at 5:26 PM, Santiago Focke wrote:
>
> Thanks for the advise
>
> I downloaded a new kernel and it worked. I followed the steps from
> README.INSTALL successfully
>
> $ /usr/src/xenomai-2.6/scripts/prepare-kernel.sh
> --linux=/home/corbys/linux-2.6.38/
>
> --adeos=/usr/src/xenomai-2.6/ksrc/arch/x86/patches/adeos-ipipe-2.6.38.8-x86-2.11-01.patch
> --arch=x86
> $ cd ~/linux-2.6.38/
> $ make [ARCH=i386] xconfig
> $ make [ARCH=i386] bzImage modules
> $ mkdir ~/build/linux-2.6.38 && cd ~/build/linux-2.6.38
>
>
>
> $ /usr/src/xenomai-2.6/configure --enable-x86-sep --host=i686-linux CFLAGS="-m32 -O2" LDFLAGS="-m32"
>
> How can I check now that my Xenomai patched kernel was installed correctly
> and is ready to be used? Also, what does it mean "# then install as needed"
> after 'make bzImage modules'? I just followed the steps above. Should I had
> installed something else after that step?
>
> Thanks again.
>
>
> You are almost there ... Check the following for the rest of the
> installation steps and basic testing...
> http://www.xenomai.org/index.php/Xenomai_quick_build_quide
>
> Tadele
>
>
> 2012/1/9 Tadele Shiferaw <metitad@domain.hid>
>
>>
>> On Jan 9, 2012, at 4:22 PM, Santiago Focke wrote:
>>
>> Thanks for your reply.
>>
>> As I told you, I am really new with linux. I've been trying to find the
>> kernel source tree and not just the headers, but I haven't been able to do
>> it. I read that it is normally located in /usr/src/, but there I just have
>> the headers. How can I search the right path of the kernel source tree to
>> prepare the kernel?
>>
>>
>> Rather than using the kernel headers from ubuntu, clone a new kernel copy
>> in /usr/src and try to patch that.
>>
>> Regards,
>>
>>
>> Tadele
>>
>>
>> 2012/1/6 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
>>
>>> On 01/05/2012 08:16 PM, Santiago Focke wrote:
>>> > Hi all
>>> >
>>> > I'm quite new with Linux and Xenomai. I'm using Ubunto kernel
>>> > 2.6.32-24-generic. I tied to install Xenomai-2.6 following the
>>> > README.INSTALL document. First of all I cloned the GIT repository in
>>> >
>>> > /usr/src/xenomai-2.6
>>> >
>>> > After that, I tried to run the prepare-kernel.sh script as follows:
>>> >
>>> > /usr/src/xenomai-2.6/scripts/prepare-kernel.sh
>>> > --linux=/usr/src/linux-headers-2.6.32-24-generic/
>>>
>>> That is not going to work. Xenomai patches the kernel sources, and ask
>>> you to rebuild a kernel, just supplying the headers will not work.
>>>
>>>
>>> --
>>> Gilles.
>>>
>>
>>
>>
>> --
>> Ing. Santiago Focke
>> _______________________________________________
>> Xenomai-help mailing list
>> Xenomai-help@domain.hid
>> https://mail.gna.org/listinfo/xenomai-help
>>
>>
>>
>
>
> --
> Ing. Santiago Focke
>
>
>
--
Ing. Santiago Focke
[-- Attachment #2: Type: text/html, Size: 7720 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-01-10 19:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-05 19:16 [Xenomai-help] Problems with installation Santiago Focke
2012-01-06 9:44 ` Gilles Chanteperdrix
2012-01-09 15:22 ` Santiago Focke
2012-01-09 16:54 ` Tadele Shiferaw
2012-01-10 16:26 ` Santiago Focke
2012-01-10 16:43 ` Tadele Shiferaw
2012-01-10 19:50 ` Santiago Focke
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.