All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] configuration of pentium III 1GHz
@ 2006-07-28  8:58 Kim Chuan Lim
  2006-07-28  9:22 ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: Kim Chuan Lim @ 2006-07-28  8:58 UTC (permalink / raw)
  To: xenomai

Hi ya,

I managed to install and run all the xenomai test program int my
pentium IV machine and i decided to install it in another slower
pentium III 1GHz machine.
The following is some details of my config.gz at pentium III machine.

#
# Real-time sub-system
#
CONFIG_XENOMAI=y
CONFIG_XENO_OPT_NUCLEUS=y
CONFIG_XENO_OPT_PERVASIVE=y
# CONFIG_XENO_OPT_ISHIELD is not set
# CONFIG_XENO_OPT_RPIDISABLE is not set
CONFIG_XENO_OPT_SECURITY_ACCESS=y
CONFIG_XENO_OPT_PIPELINE_HEAD=y
CONFIG_XENO_OPT_PIPE=y
CONFIG_XENO_OPT_PIPE_NRDEV=32
CONFIG_XENO_OPT_REGISTRY=y
CONFIG_X
ENO_OPT_REGISTRY_NRSLOTS=512
CONFIG_XENO_OPT_SYS_HEAPSZ=128
CONFIG_XENO_OPT_STATS=y
# CONFIG_XENO_OPT_DEBUG is not set
# CONFIG_XENO_OPT_WATCHDOG is not set

#
# Timing
#
# CONFIG_XENO_OPT_TIMING_PERIODIC is not set
CONFIG_XENO_OPT_TIMING_PERIOD=0
CONFIG_XENO_OPT_TIMING_TIMERLAT=0
CONFIG_XENO_OPT_TIMING_SCHEDLAT=0

#
# SMI workaround
#
# CONFIG_XENO_HW_SMI_DETECT_DISABLE is not set
CONFIG_XENO_HW_SMI_DETECT=y
CONFIG_XENO_HW_SMI_WORKAROUND=y
CONFIG_XENO_HW_SMI_ALL=y

#
# Power management options (ACPI, APM)
#
CONFIG_PM=y
CONFIG_PM_LEGACY=y
# CONFIG_PM_DEBUG is not set
CONFIG_SOFTWARE_SUSPEND=y
CONFIG_PM_STD_PARTITION=""

#
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
# CONFIG_ACPI_SLEEP is not set
# CONFIG_ACPI_AC is not set
# CONFIG_ACPI_BATTERY is not set
# CONFIG_ACPI_BUTTON is not set
# CONFIG_ACPI_VIDEO is not set
# CONFIG_ACPI_HOTKEY is not set
# CONFIG_ACPI_FAN is not set
# CONFIG_ACPI_PROCESSOR is not set
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
# CONFIG_ACPI_CONTAINER is not set

#
# APM (Advanced Power Management) BIOS Support
#
# CONFIG_APM is not set

#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set

Linux version 2.6.17-default (engkcl@domain.hid) (gcc version 3.3.5 20050117
(prerelease) (SUSE Linux)) #3 Thu Jul 27 16:48:49 BST 2006

Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
I-pipe: Domain Xenomai registered.
Xenomai: hal/x86 started.
Xenomai: real-time nucleus v2.2-rc3 (Engines Of Creation) loaded.
Xenomai: starting native API services.
Xenomai: starting POSIX services.
Xenomai: starting RTDM services.

The test program at /usr/xenomai/testsuite crashed my computer
everytime i running it.
May i know did i forget anything??

Regards,
Kim Chuan.


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

* Re: [Xenomai-help] configuration of pentium III 1GHz
  2006-07-28  8:58 [Xenomai-help] configuration of pentium III 1GHz Kim Chuan Lim
@ 2006-07-28  9:22 ` Jan Kiszka
  2006-07-28 12:23   ` Kim Chuan Lim
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2006-07-28  9:22 UTC (permalink / raw)
  To: Kim Chuan Lim; +Cc: xenomai

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

Kim Chuan Lim wrote:
> Hi ya,
> 
> I managed to install and run all the xenomai test program int my
> pentium IV machine and i decided to install it in another slower
> pentium III 1GHz machine.
> The following is some details of my config.gz at pentium III machine.
> 
> #
> # Real-time sub-system
> #
> CONFIG_XENOMAI=y
> CONFIG_XENO_OPT_NUCLEUS=y
> CONFIG_XENO_OPT_PERVASIVE=y
> # CONFIG_XENO_OPT_ISHIELD is not set
> # CONFIG_XENO_OPT_RPIDISABLE is not set
> CONFIG_XENO_OPT_SECURITY_ACCESS=y
> CONFIG_XENO_OPT_PIPELINE_HEAD=y
> CONFIG_XENO_OPT_PIPE=y
> CONFIG_XENO_OPT_PIPE_NRDEV=32
> CONFIG_XENO_OPT_REGISTRY=y
> CONFIG_X
> ENO_OPT_REGISTRY_NRSLOTS=512
> CONFIG_XENO_OPT_SYS_HEAPSZ=128
> CONFIG_XENO_OPT_STATS=y
> # CONFIG_XENO_OPT_DEBUG is not set
> # CONFIG_XENO_OPT_WATCHDOG is not set
> 
> #
> # Timing
> #
> # CONFIG_XENO_OPT_TIMING_PERIODIC is not set
> CONFIG_XENO_OPT_TIMING_PERIOD=0
> CONFIG_XENO_OPT_TIMING_TIMERLAT=0
> CONFIG_XENO_OPT_TIMING_SCHEDLAT=0
> 
> #
> # SMI workaround
> #
> # CONFIG_XENO_HW_SMI_DETECT_DISABLE is not set
> CONFIG_XENO_HW_SMI_DETECT=y
> CONFIG_XENO_HW_SMI_WORKAROUND=y
> CONFIG_XENO_HW_SMI_ALL=y
> 
> #
> # Power management options (ACPI, APM)
> #
> CONFIG_PM=y
> CONFIG_PM_LEGACY=y
> # CONFIG_PM_DEBUG is not set
> CONFIG_SOFTWARE_SUSPEND=y
> CONFIG_PM_STD_PARTITION=""
> 
> #
> # ACPI (Advanced Configuration and Power Interface) Support
> #
> CONFIG_ACPI=y
> # CONFIG_ACPI_SLEEP is not set
> # CONFIG_ACPI_AC is not set
> # CONFIG_ACPI_BATTERY is not set
> # CONFIG_ACPI_BUTTON is not set
> # CONFIG_ACPI_VIDEO is not set
> # CONFIG_ACPI_HOTKEY is not set
> # CONFIG_ACPI_FAN is not set
> # CONFIG_ACPI_PROCESSOR is not set
> # CONFIG_ACPI_ASUS is not set
> # CONFIG_ACPI_IBM is not set
> # CONFIG_ACPI_TOSHIBA is not set
> # CONFIG_ACPI_CUSTOM_DSDT is not set
> CONFIG_ACPI_BLACKLIST_YEAR=0
> # CONFIG_ACPI_DEBUG is not set
> CONFIG_ACPI_EC=y
> CONFIG_ACPI_POWER=y
> CONFIG_ACPI_SYSTEM=y
> CONFIG_X86_PM_TIMER=y
> # CONFIG_ACPI_CONTAINER is not set
> 
> #
> # APM (Advanced Power Management) BIOS Support
> #
> # CONFIG_APM is not set
> 
> #
> # CPU Frequency scaling
> #
> # CONFIG_CPU_FREQ is not set
> 
> Linux version 2.6.17-default (engkcl@domain.hid) (gcc version 3.3.5 20050117
> (prerelease) (SUSE Linux)) #3 Thu Jul 27 16:48:49 BST 2006

Looks to me like you patched a SuSE kernel with I-pipe, did you? I'm
also running SuSE, but I always use a vanilla kernel as platform for
Xenomai. The config can be migrated from the original system (except for
the known ACPI / CPU-freq issues).

> 
> Local APIC disabled by BIOS -- reenabling.
> Found and enabled local APIC!
> I-pipe: Domain Xenomai registered.
> Xenomai: hal/x86 started.
> Xenomai: real-time nucleus v2.2-rc3 (Engines Of Creation) loaded.

Time to upgrade, 2.2 is out :). BTW, there is one potentially relevant
fix even post 2.2: if you have CONFIG_DEBUG_SPINLOCK on, switch it off
or upgrade to I-pipe 1.3-08.

> Xenomai: starting native API services.
> Xenomai: starting POSIX services.
> Xenomai: starting RTDM services.
> 
> The test program at /usr/xenomai/testsuite crashed my computer
> everytime i running it.
> May i know did i forget anything??

If you did use a vanilla kernel: any chance to grab the oops after the
crash? Or is it a hard lock-up? The best to get those oopses out are
serial console redirection or netconsole, see
linux/Documentation/serial-console.txt or
linux/Documentation/networking/netconsole.txt.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

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

* Re: [Xenomai-help] configuration of pentium III 1GHz
  2006-07-28  9:22 ` Jan Kiszka
@ 2006-07-28 12:23   ` Kim Chuan Lim
  2006-07-28 13:33     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Kim Chuan Lim @ 2006-07-28 12:23 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai

> Looks to me like you patched a SuSE kernel with I-pipe, did you? I'm
> also running SuSE, but I always use a vanilla kernel as platform for
I'm using SuSE as the base platform to compile a vanilla kernel. :)

> Time to upgrade, 2.2 is out :). BTW, there is one potentially relevant
> fix even post 2.2: if you have CONFIG_DEBUG_SPINLOCK on, switch it off
> or upgrade to I-pipe 1.3-08.
My vanilla kernel source is located at the same directory as xenomai..

I downloaded the latest version of Xenomai from trunk just now ...

./prepare-kernel.sh --linux=../../linux-2.6.17
Target architecture [default i686]:

I think something wrong with the prepare-kernel.sh scripts.. can
someone fix it please?
I think that is the reason why i get the following compilation errors.

In file included from include/asm/xenomai/hal.h:107,
                 from kernel/xenomai/arch/generic/hal.c:43:
include/asm-generic/xenomai/hal.h:60:2: #error "Adeos kernel support
is required to run this software."
include/asm-generic/xenomai/hal.h:61:2: #error "See
http://download.gna.org/adeos/patches/"
In file included from include/asm/xenomai/hal.h:107,
                 from kernel/xenomai/arch/generic/hal.c:43:
include/asm-generic/xenomai/hal.h: In function `rthal_get_cpufreq':
include/asm-generic/xenomai/hal.h:189: error: storage size of
`sysinfo' isn't known
include/asm-generic/xenomai/hal.h:190: warning: implicit declaration
of function `ipipe_get_sysinfo'
include/asm-generic/xenomai/hal.h:189: warning: unused variable `sysinfo'
include/asm-generic/xenomai/hal.h: In function `rthal_get_timerfreq':
include/asm-generic/xenomai/hal.h:196: error: storage size of
`sysinfo' isn't known
include/asm-generic/xenomai/hal.h:196: warning: unused variable `sysinfo'
include/asm-generic/xenomai/hal.h: At top level:
include/asm-generic/xenomai/hal.h:461: error: syntax error before
"rthal_irq_handler_t"
include/asm-generic/xenomai/hal.h:461: warning: type defaults to `int'
in declaration of `rthal_irq_handler_t'
include/asm-generic/xenomai/hal.h:461: warning: data definition has no
type or storage class
include/asm-generic/xenomai/hal.h:462: error: syntax error before
"rthal_irq_ackfn_t"
include/asm-generic/xenomai/hal.h:462: warning: type defaults to `int'
in declaration of `rthal_irq_ackfn_t'
include/asm-generic/xenomai/hal.h:462: warning: data definition has no
type or storage class
include/asm-generic/xenomai/hal.h:486: error: `IPIPE_NR_CPUS'
undeclared here (not in a function)
include/asm-generic/xenomai/hal.h:486: error: `IPIPE_NR_FAULTS'
undeclared here (not in a function)
include/asm-generic/xenomai/hal.h:535: error: syntax error before
"rthal_irq_handler_t"
include/asm-generic/xenomai/hal.h:537: warning: function declaration
isn't a prototype
In file included from kernel/xenomai/arch/generic/hal.c:43:
include/asm/xenomai/hal.h: In function `rthal_timer_program_shot':
include/asm/xenomai/hal.h:190: warning: implicit declaration of
function `ipipe_trigger_irq'
include/asm/xenomai/hal.h:190: error: `IPIPE_SERVICE_IPI3' undeclared
(first use in this function)
include/asm/xenomai/hal.h:190: error: (Each undeclared identifier is
reported only once
include/asm/xenomai/hal.h:190: error: for each function it appears in.)
include/asm/xenomai/hal.h:196: error: `IPIPE_SERVICE_VECTOR3'
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c: At top level:
kernel/xenomai/arch/generic/hal.c:62: error: `IPIPE_NR_CPUS'
undeclared here (not in a function)
kernel/xenomai/arch/generic/hal.c:72: error: `IPIPE_NR_CPUS'
undeclared here (not in a function)
kernel/xenomai/arch/generic/hal.c:84: error: `IPIPE_NR_CPUS'
undeclared here (not in a function)
kernel/xenomai/arch/generic/hal.c:84: error: `IPIPE_NR_FAULTS'
undeclared here (not in a function)
kernel/xenomai/arch/generic/hal.c:84: error: conflicting types for
`rthal_realtime_faults'
include/asm-generic/xenomai/hal.h:486: error: previous declaration of
`rthal_realtime_faults'
kernel/xenomai/arch/generic/hal.c: In function `rthal_critical_enter':
kernel/xenomai/arch/generic/hal.c:90: warning: implicit declaration of
function `ipipe_critical_enter'
kernel/xenomai/arch/generic/hal.c: In function `rthal_critical_exit':
kernel/xenomai/arch/generic/hal.c:103: warning: implicit declaration
of function `ipipe_critical_exit'
kernel/xenomai/arch/generic/hal.c: At top level:
kernel/xenomai/arch/generic/hal.c:155: error: syntax error before
"rthal_irq_handler_t"
kernel/xenomai/arch/generic/hal.c:157: warning: function declaration
isn't a prototype
kernel/xenomai/arch/generic/hal.c: In function `rthal_irq_request':
kernel/xenomai/arch/generic/hal.c:158: error: `handler' undeclared
(first use in this function)
kernel/xenomai/arch/generic/hal.c:158: error: `irq' undeclared (first
use in this function)
kernel/xenomai/arch/generic/hal.c:158: error: `IPIPE_NR_IRQS'
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:161: warning: implicit declaration
of function `ipipe_virtualize_irq'
kernel/xenomai/arch/generic/hal.c:161: error: `cookie' undeclared
(first use in this function)
kernel/xenomai/arch/generic/hal.c:161: error: `ackfn' undeclared
(first use in this function)
kernel/xenomai/arch/generic/hal.c:161: error: `IPIPE_HANDLE_MASK'
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:161: error: `IPIPE_EXCLUSIVE_MASK'
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c: In function `rthal_irq_release':
kernel/xenomai/arch/generic/hal.c:198: error: `IPIPE_NR_IRQS'
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:201: error: `IPIPE_PASS_MASK'
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c: In function `rthal_irq_host_pend':
kernel/xenomai/arch/generic/hal.c:298: warning: implicit declaration
of function `ipipe_propagate_irq'
kernel/xenomai/arch/generic/hal.c: In function `rthal_apc_handler':
kernel/xenomai/arch/generic/hal.c:393: error: `ipipe_declare_cpuid'
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:395: warning: implicit declaration
of function `ipipe_load_cpuid'
kernel/xenomai/arch/generic/hal.c:397: warning: implicit declaration
of function `spin_lock_hw'
kernel/xenomai/arch/generic/hal.c:413: warning: implicit declaration
of function `spin_unlock_hw'
kernel/xenomai/arch/generic/hal.c: In function `rthal_apc_alloc':
kernel/xenomai/arch/generic/hal.c:520: warning: implicit declaration
of function `ipipe_test_and_stall_pipeline_from'
kernel/xenomai/arch/generic/hal.c:531: warning: implicit declaration
of function `ipipe_restore_pipeline_from'
kernel/xenomai/arch/generic/hal.c: In function `rthal_apc_schedule':
kernel/xenomai/arch/generic/hal.c:598: error: `ipipe_declare_cpuid'
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:606: warning: implicit declaration
of function `ipipe_schedule_irq'
kernel/xenomai/arch/generic/hal.c: In function `hal_read_proc':
kernel/xenomai/arch/generic/hal.c:631: error: `ADEOS_MAJOR_NUMBER'
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:633: error: `ADEOS_MINOR_NUMBER'
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c: In function `rthal_init':
kernel/xenomai/arch/generic/hal.c:815: warning: implicit declaration
of function `ipipe_alloc_virq'
kernel/xenomai/arch/generic/hal.c:823: error: `ipipe_current_domain'
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:823: error: `IPIPE_HANDLE_MASK'
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:849: error: storage size of `attr' isn't known
kernel/xenomai/arch/generic/hal.c:849: warning: implicit declaration
of function `ipipe_init_attr'
kernel/xenomai/arch/generic/hal.c:849: error: `IPIPE_ROOT_PRIO'
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:849: warning: implicit declaration
of function `ipipe_register_domain'
kernel/xenomai/arch/generic/hal.c:849: warning: unused variable `attr'
kernel/xenomai/arch/generic/hal.c:890: warning: implicit declaration
of function `ipipe_free_virq'
kernel/xenomai/arch/generic/hal.c: In function `rthal_exit':
kernel/xenomai/arch/generic/hal.c:912: error: `ipipe_current_domain'
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:926: warning: implicit declaration
of function `ipipe_unregister_domain'
kernel/xenomai/arch/generic/hal.c: At top level:
kernel/xenomai/arch/generic/hal.c:1069: error: storage size of
`rthal_domain' isn't known
kernel/xenomai/arch/generic/hal.c:84: error: storage size of
`rthal_realtime_faults' isn't known
kernel/xenomai/arch/generic/hal.c:72: error: storage size of
`rthal_apc_pending' isn't known
kernel/xenomai/arch/generic/hal.c:72: warning: `rthal_apc_pending'
defined but not used

Regards,
Kim Chuan.


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

* Re: [Xenomai-help] configuration of pentium III 1GHz
  2006-07-28 12:23   ` Kim Chuan Lim
@ 2006-07-28 13:33     ` Gilles Chanteperdrix
  0 siblings, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2006-07-28 13:33 UTC (permalink / raw)
  To: Kim Chuan Lim; +Cc: xenomai, Jan Kiszka

Kim Chuan Lim wrote:
 > > Looks to me like you patched a SuSE kernel with I-pipe, did you? I'm
 > > also running SuSE, but I always use a vanilla kernel as platform for
 > I'm using SuSE as the base platform to compile a vanilla kernel. :)
 > 
 > > Time to upgrade, 2.2 is out :). BTW, there is one potentially relevant
 > > fix even post 2.2: if you have CONFIG_DEBUG_SPINLOCK on, switch it off
 > > or upgrade to I-pipe 1.3-08.
 > My vanilla kernel source is located at the same directory as xenomai..
 > 
 > I downloaded the latest version of Xenomai from trunk just now ...

You do not have to, the 2.2 version is available as a tarball.

 > 
 > ./prepare-kernel.sh --linux=../../linux-2.6.17
 > Target architecture [default i686]:
 > 
 > I think something wrong with the prepare-kernel.sh scripts.. can
 > someone fix it please?
 > I think that is the reason why i get the following compilation errors.
 > 
 > In file included from include/asm/xenomai/hal.h:107,
 >                  from kernel/xenomai/arch/generic/hal.c:43:
 > include/asm-generic/xenomai/hal.h:60:2: #error "Adeos kernel support
 > is required to run this software."
 > include/asm-generic/xenomai/hal.h:61:2: #error "See
 > http://download.gna.org/adeos/patches/"

I tried to compile xenomai trunk in the same conditions as you, and
could not reproduce your problem. Even if I manually edit the .config
file to enable xenomai without enabling the interrupt pipeline, the
.config file get corrected when make is run.

So, we need to know more about the conditions of the bug you found in
order to be able to help you.

-- 


					    Gilles Chanteperdrix.


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

end of thread, other threads:[~2006-07-28 13:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-28  8:58 [Xenomai-help] configuration of pentium III 1GHz Kim Chuan Lim
2006-07-28  9:22 ` Jan Kiszka
2006-07-28 12:23   ` Kim Chuan Lim
2006-07-28 13:33     ` 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.