2011/8/28 Gilles Chanteperdrix <[email protected]>

> On 08/28/2011 12:28 PM, Willy Lambert wrote:
> > Hi all,
> >
> > I am trying to make xenomai running into a Debian Squeeze 32b with a
> custom
> > 2.6.38.8 kernel with xenomai among other things. I am running this into a
> > Vmware for testing this before going on my real target.
> >
> > I have a "CPU frequency of 0" Error at boot, which I think is "classic"
> with
> > Vmwares :
> > http://comments.gmane.org/gmane.linux.real-time.xenomai.devel/6632
> >
> > ard@ard-host:~$ dmesg | grep Xenomai
> > [    0.559923] Xenomai has detected a CPU frequency of 0. Aborting.
> > [    0.560923] Xenomai: system init failed, code -19.
> > [    0.560923] Xenomai: native skin init failed, code -19.
> > [    0.560923] Xenomai: starting POSIX services.
> > [    0.561923] Xenomai: POSIX skin init failed, code -19.
> > [    0.561923] Xenomai: RTDM skin init failed, code -19.
> >
> > But search didn't help me for this. See inclosed my .config (sorry it's a
> > default-full option with initrd because I am failing on the "allnoconfig"
> > little kernel for now). See below some extra informations about my system
>
> Well, there is not much we can do except telling you to use another
> emulator than vmware. Such as qemu-kvm.
>
> You can try passing hardcoded frequencies to xenomai too, for instance,
> passing on the kernel command line:
>
> xeno_hal.clockfreq=1600000000 xeno_hal.cpufreq=1600000000
>
>
FYI, I tried this with 266666666 (my CPU is supposed to be 2.67 Ghz).  And
it seems to work :

ard@ard-host:~$ dmesg | grep -i xenomai
[    0.551139] I-pipe: Domain Xenomai registered.
[    0.551925] Xenomai: hal/i386 started.
[    0.551925] Xenomai: scheduling class idle registered.
[    0.551925] Xenomai: scheduling class rt registered.
[    0.556205] Xenomai: real-time nucleus v2.5.6 (Wormhole Wizards) loaded.
[    0.556782] Xenomai: debug mode enabled.
[    0.557343] Xenomai: starting native API services.
[    0.557880] Xenomai: starting POSIX services.
[    0.557924] Xenomai: starting RTDM services.

then a latency test, seems very poor but I don't have crashes or freezes of
my vm, so it's maybe enougth for the little tests we do here

ard@ard-host:/usr/lib/xenomai$ sudo ./latency
[sudo] password for ard:
== Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT|  00:00:08  (periodic user-mode task, 100 us period, priority 99)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat
worst
RTD|-805238.860|     39.992| 805197.174|  199938|     0|-805238.860|
805197.174
RTD|-804923.379| -11601.685| 805161.400|  436830|     0|-805238.860|
805197.174
RTD|-805228.091|   5754.025| 805120.060|  634285|     0|-805238.860|
805197.174
RTD|-804943.151| -11031.596| 805040.854|  857872|     0|-805238.860|
805197.174
RTD|-805067.754|   5111.708| 805198.406| 1058578|     0|-805238.860|
805198.406
RTD|-805138.682|  11571.693| 805268.393| 1281938|     0|-805238.860|
805268.393
RTD|-805258.102|   4372.316| 805229.084| 1488745|     0|-805258.102|
805268.393
RTD|-805195.347|  -4897.305| 804407.977| 1718755|     0|-805258.102|
805268.393
RTD|-805239.455|   4819.596| 805186.410| 1931971|     0|-805258.102|
805268.393
RTD|-804500.728|   5805.781| 805119.827| 2133364|     0|-805258.102|
805268.393
RTD|-805301.779| -11341.706| 805049.471| 2348149|     0|-805301.779|
805268.393
RTD|-804906.062|  14233.529| 805299.154| 2564211|     0|-805301.779|
805299.154
RTD|-805291.106|  -9540.310| 805244.326| 2787008|     0|-805301.779|
805299.154
RTD|-805215.443|   4965.735| 805227.069| 3004799|     0|-805301.779|
805299.154
RTD|-804994.282| -12456.963| 805019.644| 3236682|     0|-805301.779|
805299.154
RTD|-805159.845|   8378.373| 805274.023| 3457140|     0|-805301.779|
805299.154
RTD|-805231.812|   8954.421| 805305.622| 3672699|     0|-805301.779|
805305.622
RTD|-805262.882|  -6408.532| 805285.071| 3896346|     0|-805301.779|
805305.622
RTD|-805162.284|  -3054.744| 805140.908| 4119673|     0|-805301.779|
805305.622
RTD|-805186.673|   3575.533| 805201.685| 4338069|     0|-805301.779|
805305.622
RTD|-805267.246|  -2612.777| 804800.811| 4575505|     0|-805301.779|
805305.622
^C---|-----------|-----------|-----------|--------|------|-------------------------
RTS|-805301.779|    220.813| 805305.622| 4575505|     0|
00:01:38/00:01:38
ard@ard-host:/usr/lib/xenomai$





> But I doubt it will work unless you pass the exact frequency vmware is
> simulating.
>
> >
> >
> -----------------------------------------------------------------------------------------------
> > I read this :
> > http://www.xenomai.org/index.php/Configuring_x86_kernels
> > Here is some results. I didn't found the "Usb legacy Emulation", but as I
> > don't have the proof it is disable, please let me know if you have a
> precise
> > CONFIG name option.
>
> All these options have nothing to do with the fact that cpu frequency is
> null with vmware.
>
> "Usb legacy emulation", is done by the bios, not the kernel.
>
> > Power management disabled :
> > ard@ard-host:~/src/linux-2.6.38.8$ cat .config | grep APM
> > # CONFIG_APM is not set
> > ard@ard-host:~/src/linux-2.6.38.8$ cat .config | grep ACP
> > # Power management and ACPI options
> > # CONFIG_ACPI is not set
> > # CONFIG_PNPACPI is not set
>
> You want CONFIG_ACPI enabled, only CONFIG_ACPI_PROCESSOR should be
> disabled.
>
>
> --
>                                                                 Gilles.
>
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to