All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Processor type for installation
@ 2012-01-16 20:03 Santiago Focke
  2012-01-16 21:16 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Santiago Focke @ 2012-01-16 20:03 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 2568 bytes --]

Dear all

I've been trying to install Xenomai but I haven't been able to do it
right.  After being able of building and installin the kernel and Xenomai,
I tried to run the example program trivial-periodic, I got the following
error

/usr/src/xenomai-2.6/examples/native$ ./trivial-periodic
Xenomai: incompatible feature set
(userland requires "tsc fastsynch", kernel provides "sep fastsynch smp",
missing="tsc").

I read that the reason for this is that I didn't configure correctly the
processor family (with xconfig). Is that the reason? Also, I've been trying
to know which option should I choose (I chose CONFIG_M586 at the
beggining), but I don't know were to get that information. The CPU info
goes as follows:

/proc/cpuinfo

processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 37
model name    : Intel(R) Core(TM) i7 CPU       M 620  @ 2.67GHz
stepping    : 5
cpu MHz        : 2666.417
cache size    : 4096 KB
physical id    : 0
siblings    : 4
core id        : 0
cpu cores    : 2
apicid        : 0
initial apicid    : 0
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 11
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm
constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni
pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1
sse4_2 popcnt aes lahf_lm ida arat dts tpr_shadow vnmi flexpriority ept vpid
bogomips    : 5332.83
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:


sudo dmidecode -t 4
# dmidecode 2.9
SMBIOS 2.6 present.

Handle 0x0004, DMI type 4, 42 bytes
Processor Information
    Socket Designation: CPU 1
    Type: Central Processor
    Family: <OUT OF SPEC>
    Manufacturer: Intel
    ID: 55 06 02 00 FF FB EB BF
    Version: Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz
    Voltage: 0.0 V
    External Clock: 532 MHz
    Max Speed: 4000 MHz
    Current Speed: 2660 MHz
    Status: Populated, Enabled
    Upgrade: Other
    L1 Cache Handle: 0x0005
    L2 Cache Handle: 0x0006
    L3 Cache Handle: 0x0007
    Serial Number: To Be Filled By O.E.M.
    Asset Tag: To Be Filled By O.E.M.
    Part Number: To Be Filled By O.E.M.
    Core Count: 2
    Core Enabled: 1
    Thread Count: 2
    Characteristics:
        64-bit capable

Which one of the list should I select?? Thanks in advance

BR

-- 
Ing. Santiago Focke

[-- Attachment #2: Type: text/html, Size: 2987 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] Processor type for installation
  2012-01-16 20:03 [Xenomai-help] Processor type for installation Santiago Focke
@ 2012-01-16 21:16 ` Gilles Chanteperdrix
  2012-01-17 20:19   ` Santiago Focke
  0 siblings, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2012-01-16 21:16 UTC (permalink / raw)
  To: Santiago Focke; +Cc: xenomai

On 01/16/2012 09:03 PM, Santiago Focke wrote:
> Dear all
> 
> I've been trying to install Xenomai but I haven't been able to do it
> right.  After being able of building and installin the kernel and Xenomai,
> I tried to run the example program trivial-periodic, I got the following
> error

We do not know which kernel version, which xenomai version, which adeos
I-pipe version.

> 
> /usr/src/xenomai-2.6/examples/native$ ./trivial-periodic
> Xenomai: incompatible feature set
> (userland requires "tsc fastsynch", kernel provides "sep fastsynch smp",
> missing="tsc").
> 
> I read that the reason for this is that I didn't configure correctly the
> processor family (with xconfig). Is that the reason? Also, I've been trying
> to know which option should I choose (I chose CONFIG_M586 at the
> beggining), but I don't know were to get that information. The CPU info
> goes as follows:
> 
> /proc/cpuinfo
> 
> processor    : 0
> vendor_id    : GenuineIntel
> cpu family    : 6
> model        : 37
> model name    : Intel(R) Core(TM) i7 CPU       M 620  @ 2.67GHz

So, you have a core i7, anything newer than "pentium pro" (an older than
ten years old architecture) should do, but better select the processor
you actually have or the nearest substitute: so, assuming you are
compiling a 2.6.38 kernel, "core 2/newer xeon" should do. Also note that
a core i7 is able to run in 64 bits mode, so running it in 32 bits mode
is a bit a pity.


-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] Processor type for installation
  2012-01-16 21:16 ` Gilles Chanteperdrix
@ 2012-01-17 20:19   ` Santiago Focke
  2012-01-17 21:05     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Santiago Focke @ 2012-01-17 20:19 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 3899 bytes --]

Thanks Gilles for the replay

2012/1/16 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
>
> On 01/16/2012 09:03 PM, Santiago Focke wrote:
> > Dear all
> >
> > I've been trying to install Xenomai but I haven't been able to do it
> > right.  After being able of building and installin the kernel and
Xenomai,
> > I tried to run the example program trivial-periodic, I got the following
> > error
>
> We do not know which kernel version, which xenomai version, which adeos
> I-pipe version.
>

Sorry I didn't write the kernel + xenomai specifications. I'm using
linux-2.6.38.8 and xenomai 2.6. About Adeos and I-pipe, should I do any
kind of installation of the before installing Xenomai??

> >
> > /usr/src/xenomai-2.6/examples/native$ ./trivial-periodic
> > Xenomai: incompatible feature set
> > (userland requires "tsc fastsynch", kernel provides "sep fastsynch smp",
> > missing="tsc").
> >
> > I read that the reason for this is that I didn't configure correctly the
> > processor family (with xconfig). Is that the reason? Also, I've been
trying
> > to know which option should I choose (I chose CONFIG_M586 at the
> > beggining), but I don't know were to get that information. The CPU info
> > goes as follows:
> >
> > /proc/cpuinfo
> >
> > processor    : 0
> > vendor_id    : GenuineIntel
> > cpu family    : 6
> > model        : 37
> > model name    : Intel(R) Core(TM) i7 CPU       M 620  @ 2.67GHz
>
> So, you have a core i7, anything newer than "pentium pro" (an older than
> ten years old architecture) should do, but better select the processor
> you actually have or the nearest substitute: so, assuming you are
> compiling a 2.6.38 kernel, "core 2/newer xeon" should do. Also note that
> a core i7 is able to run in 64 bits mode, so running it in 32 bits mode
> is a bit a pity.
>
Regarding the processor family, i selected 'core 2/newer xeon', and tried
to build a 64-bits kernel. But when I tried to boot the new patched kernel,
I got the following error and get stacked in the booting:

[     0.051013] ..MP_BIOS bug: 8254 timer not conncted to IO-APIC
[     2.338200] EXT3-fs (sda1) error: couldn't mount because of unsupported
optional features (240)
[     2.362370] EXT3-fs (sda1) error: couldn't mount because of unsupported
optional features (240)
[     2.400400] request_module: runaway loop modprobebinfmt-464c
[     2.400449] request_module: runaway loop modprobebinfmt-464c
[     2.400570] request_module: runaway loop modprobebinfmt-464c
[     2.400612] request_module: runaway loop modprobebinfmt-464c
[     2.400755] request_module: runaway loop modprobebinfmt-464c

I don't know if I did something wrong in the installation process. These
were my steps:

1.   sudo git clone http://git.xenomai.org/xenomai-2.6.git/usr/src/xenomai-2.6

2.   /usr/src/xenomai-2.6/scripts/prepare-kernel.sh
--linux=/home/corbys/linux-2.6.38.8/
--adeos=/usr/src/xenomai-2.6/ksrc/arch/x86/patches/adeos-ipipe-2.6.38.8-x86-2.11-01.patch
--arch=x86_64

3.   cd ~/linux-2.6.38.8/

4.   make ARCH=x86 xconfig

   #I had to put ARCH=x86 because otherwise it didn't let me select
CONFIG_64BIT

   #Set 64-bits option
   * CONFIG_64BIT

   #Select the processor family
   * CONFIG_MCORE2

   #Be sure the following kernel settings were unmarked:
    * CONFIG_CPU_FREQ
    * CONFIG_APM
    * CONFIG_ACPI_PROCESSOR
    * CONFIG_INTEL_IDLE
    * CONFIG_PCI_MSI

5.   make ARCH=x86 bzImage modules

6.   mkdir ~/build/linux-2.6.38.8 && cd ~/build/linux-2.6.38.8

7.   /usr/src/xenomai-2.6/configure

8.   sudo make install

9.   sudo cp /home/corbys/linux-2.6.38.8/arch/x86/boot/bzImage
/boot/vmlinuz-2.6.38.8-xenomai-2.6

10.
   sudo addgroup xenomai
    sudo usermod -a -G xenomai user1
    sudo usermod -a -G xenomai user2

11. sudo update-grub

12. Restart computer and boot in new kernel

>
> --
>                                                                Gilles.


-- 
Santiago Focke

[-- Attachment #2: Type: text/html, Size: 7661 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] Processor type for installation
  2012-01-17 20:19   ` Santiago Focke
@ 2012-01-17 21:05     ` Gilles Chanteperdrix
  0 siblings, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2012-01-17 21:05 UTC (permalink / raw)
  To: Santiago Focke; +Cc: xenomai

On 01/17/2012 09:19 PM, Santiago Focke wrote:
> Thanks Gilles for the replay
> 
> 2012/1/16 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
>>
>> On 01/16/2012 09:03 PM, Santiago Focke wrote:
>>> Dear all
>>>
>>> I've been trying to install Xenomai but I haven't been able to do it
>>> right.  After being able of building and installin the kernel and
> Xenomai,
>>> I tried to run the example program trivial-periodic, I got the following
>>> error
>>
>> We do not know which kernel version, which xenomai version, which adeos
>> I-pipe version.
>>
> 
> Sorry I didn't write the kernel + xenomai specifications. I'm using
> linux-2.6.38.8 and xenomai 2.6. About Adeos and I-pipe, should I do any
> kind of installation of the before installing Xenomai??
> 
>>>
>>> /usr/src/xenomai-2.6/examples/native$ ./trivial-periodic
>>> Xenomai: incompatible feature set
>>> (userland requires "tsc fastsynch", kernel provides "sep fastsynch smp",
>>> missing="tsc").
>>>
>>> I read that the reason for this is that I didn't configure correctly the
>>> processor family (with xconfig). Is that the reason? Also, I've been
> trying
>>> to know which option should I choose (I chose CONFIG_M586 at the
>>> beggining), but I don't know were to get that information. The CPU info
>>> goes as follows:
>>>
>>> /proc/cpuinfo
>>>
>>> processor    : 0
>>> vendor_id    : GenuineIntel
>>> cpu family    : 6
>>> model        : 37
>>> model name    : Intel(R) Core(TM) i7 CPU       M 620  @ 2.67GHz
>>
>> So, you have a core i7, anything newer than "pentium pro" (an older than
>> ten years old architecture) should do, but better select the processor
>> you actually have or the nearest substitute: so, assuming you are
>> compiling a 2.6.38 kernel, "core 2/newer xeon" should do. Also note that
>> a core i7 is able to run in 64 bits mode, so running it in 32 bits mode
>> is a bit a pity.
>>
> Regarding the processor family, i selected 'core 2/newer xeon', and tried
> to build a 64-bits kernel. But when I tried to boot the new patched kernel,
> I got the following error and get stacked in the booting:
> 
> [     0.051013] ..MP_BIOS bug: 8254 timer not conncted to IO-APIC
> [     2.338200] EXT3-fs (sda1) error: couldn't mount because of unsupported
> optional features (240)
> [     2.362370] EXT3-fs (sda1) error: couldn't mount because of unsupported
> optional features (240)
> [     2.400400] request_module: runaway loop modprobebinfmt-464c
> [     2.400449] request_module: runaway loop modprobebinfmt-464c
> [     2.400570] request_module: runaway loop modprobebinfmt-464c
> [     2.400612] request_module: runaway loop modprobebinfmt-464c
> [     2.400755] request_module: runaway loop modprobebinfmt-464c
> 
> I don't know if I did something wrong in the installation process. These
> were my steps:

Your kernel is probably not configured correctly. Something is missing
in the filesystems configuration such as ext4 support.

Also note that you need to have a 64 bits root filesystem if you want to
run xenomai on a 64 bits kernel.
-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-17 21:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-16 20:03 [Xenomai-help] Processor type for installation Santiago Focke
2012-01-16 21:16 ` Gilles Chanteperdrix
2012-01-17 20:19   ` Santiago Focke
2012-01-17 21:05     ` Gilles Chanteperdrix

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.