All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai kernel compile issue
@ 2008-09-02  7:20 Sam Ferguson
  2008-09-02  7:25 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 12+ messages in thread
From: Sam Ferguson @ 2008-09-02  7:20 UTC (permalink / raw)
  To: xenomai

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

Hello, I’m trying to compile Xenomai by following the Xenomai Quick build
guide found on this page: <
http://www.xenomai.org/index.php/Xenomai_quick_build_quide> however I run
across a compiling error shown here:
igvc@domain.hid$ sudo cp /boot/config-2.6.25.11
.config
igvc@domain.hid$ sudo make menuconfig
scripts/kconfig/mconf arch/x86/Kconfig
#
# configuration written to .config
#


*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.

igvc@domain.hid$ sudo make
scripts/kconfig/conf -s arch/x86/Kconfig
#
# configuration written to .config
#
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CC      arch/x86/kernel/asm-offsets.s
  GEN     include/asm-x86/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CC      init/main.o
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  CC      init/do_mounts.o
  CC      init/do_mounts_rd.o
  CC      init/do_mounts_initrd.o
  LD      init/mounts.o
  CC      init/initramfs.o
  CC      init/calibrate.o
  LD      init/built-in.o
  CC      arch/x86/kernel/process_32.o
  CC      arch/x86/kernel/signal_32.o
  AS      arch/x86/kernel/entry_32.o
  CC      arch/x86/kernel/traps_32.o
  CC      arch/x86/kernel/irq_32.o
  CC      arch/x86/kernel/time_32.o
  CC      arch/x86/kernel/ioport.o
  CC      arch/x86/kernel/ldt.o
  CC      arch/x86/kernel/setup_32.o
  CC      arch/x86/kernel/i8259_32.o
  CC      arch/x86/kernel/sys_i386_32.o
  CC      arch/x86/kernel/i386_ksyms_32.o
  CC      arch/x86/kernel/pci-dma_32.o
  CC      arch/x86/kernel/bootflag.o
  CC      arch/x86/kernel/e820_32.o
  CC      arch/x86/kernel/quirks.o
  CC      arch/x86/kernel/i8237.o
  CC      arch/x86/kernel/topology.o
  CC      arch/x86/kernel/kdebugfs.o
  CC      arch/x86/kernel/alternative.o
  CC      arch/x86/kernel/i8253.o
  CC      arch/x86/kernel/tsc_32.o
  CC      arch/x86/kernel/io_delay.o
  CC      arch/x86/kernel/rtc.o
  CC      arch/x86/kernel/i387.o
  CC      arch/x86/kernel/ptrace.o
  CC      arch/x86/kernel/ds.o
  CC      arch/x86/kernel/tls.o
  CC      arch/x86/kernel/step.o
  CC      arch/x86/kernel/cpu/intel_cacheinfo.o
  CC      arch/x86/kernel/cpu/addon_cpuid_features.o
  CC      arch/x86/kernel/cpu/feature_names.o
  CC      arch/x86/kernel/cpu/common.o
  CC      arch/x86/kernel/cpu/proc.o
  CC      arch/x86/kernel/cpu/bugs.o
  CC      arch/x86/kernel/cpu/amd.o
  CC      arch/x86/kernel/cpu/cyrix.o
  CC      arch/x86/kernel/cpu/centaur.o
  CC      arch/x86/kernel/cpu/transmeta.o
  CC      arch/x86/kernel/cpu/intel.o
  CC      arch/x86/kernel/cpu/nexgen.o
  CC      arch/x86/kernel/cpu/umc.o
  CC      arch/x86/kernel/cpu/mtrr/main.o
  CC      arch/x86/kernel/cpu/mtrr/if.o
  CC      arch/x86/kernel/cpu/mtrr/generic.o
  CC      arch/x86/kernel/cpu/mtrr/stateo
  CC      arch/x86/kernel/cpu/mtrr/amd.o
  CC      arch/x86/kernel/cpu/mtrr/cyrixo
  CC      arch/x86/kernel/cpu/mtrr/centaur.o
  LD      arch/x86/kernel/cpu/mtrr/built-in.o
  CC      arch/x86/kernel/cpu/perfctr-watchdog.o
  LD      arch/x86/kernel/cpu/built-in.o
  CC      arch/x86/kernel/reboot.o
  CC      arch/x86/kernel/mca_32.o
  CC      arch/x86/kernel/early-quirks.o
  CC      arch/x86/kernel/mpparse_32.o
  CC      arch/x86/kernel/apic_32.o
  CC      arch/x86/kernel/nmi_32.o
  CC      arch/x86/kernel/reboot_fixups_32.o
  CC      arch/x86/kernel/machine_kexec_32.o
  CC      arch/x86/kernel/crash.o
  CC      arch/x86/kernel/crash_dump_32.o
  CC      arch/x86/kernel/kprobes.o
  CC      arch/x86/kernel/module_32.o
  CC      arch/x86/kernel/doublefault_32o
  CC      arch/x86/kernel/vm86_32.o
  CC      arch/x86/kernel/early_printk.o
  CC      arch/x86/kernel/k8.o
  CC      arch/x86/kernel/vmi_32.o
  CC      arch/x86/kernel/vmiclock_32.o
  CC      arch/x86/kernel/paravirt.o
  CC      arch/x86/kernel/paravirt_patch_32.o
  CC      arch/x86/kernel/pcspeaker.o
  LD      arch/x86/kernel/built-in.o
  AS      arch/x86/kernel/head_32.o
  CC      arch/x86/kernel/init_task.o
  LDS     arch/x86/kernel/vmlinux.lds
  CC [M]  arch/x86/kernel/msr.o
  CC [M]  arch/x86/kernel/cpuid.o
  CC [M]  arch/x86/kernel/microcode.o
  CC [M]  arch/x86/kernel/scx200_32.o
  LD [M]  arch/x86/kernel/scx200.o
  CC      arch/x86/mm/init_32.o
  CC      arch/x86/mm/pgtable_32.o
  CC      arch/x86/mm/fault.o
  CC      arch/x86/mm/ioremap.o
  CC      arch/x86/mm/extable.o
  CC      arch/x86/mm/pageattr.o
  CC      arch/x86/mm/mmap.o
  CC      arch/x86/mm/highmem_32.o
  LD      arch/x86/mm/built-in.o
  CC      arch/x86/mach-default/setup.o
  LD      arch/x86/mach-default/built-ino
  AS [M]  arch/x86/crypto/aes-i586-asm_32.o
  CC [M]  arch/x86/crypto/aes_glue.o
  AS [M]  arch/x86/crypto/twofish-i586-asm_32.o
  CC [M]  arch/x86/crypto/twofish_glue.o
  LD [M]  arch/x86/crypto/aes-i586.o
  LD [M]  arch/x86/crypto/twofish-i586.o
  AS      arch/x86/vdso/vdso32/int80.o
  VDSO    arch/x86/vdso/vdso32-int80.so.dbg
  OBJCOPY arch/x86/vdso/vdso32-int80.so
  AS      arch/x86/vdso/vdso32/sysenter.o
  VDSO    arch/x86/vdso/vdso32-sysenter.so.dbg
  OBJCOPY arch/x86/vdso/vdso32-sysenter.so
  AS      arch/x86/vdso/vdso32.o
  CC      arch/x86/vdso/vdso32-setup.o
  VDSOSYM arch/x86/vdso/vdso32-int80-syms.lds
  VDSOSYM arch/x86/vdso/vdso32-sysenter-syms.lds
  VDSOSYM arch/x86/vdso/vdso32-syms.lds
  LD      arch/x86/vdso/built-in.o
  CC      kernel/sched.o
kernel/sched.c:1027: warning: ‘init_hrtick’ defined but not used
  CC      kernel/fork.o
  CC      kernel/exec_domain.o
  CC      kernel/panic.o
  CC      kernel/printk.o
  CC      kernel/profile.o
  CC      kernel/exit.o
  CC      kernel/itimer.o
  CC      kernel/time.o
  CC      kernel/softirq.o
  CC      kernel/resource.o
  CC      kernel/sysctl.o
  CC      kernel/capability.o
  CC      kernel/ptrace.o
  CC      kernel/timer.o
  CC      kernel/user.o
  CC      kernel/signal.o
  CC      kernel/sys.o
  CC      kernel/kmod.o
  CC      kernel/workqueue.o
  CC      kernel/pid.o
  CC      kernel/rcupdate.o
  CC      kernel/extable.o
  CC      kernel/params.o
  CC      kernel/posix-timers.o
  CC      kernel/kthread.o
  CC      kernel/wait.o
  CC      kernel/kfifo.o
  CC      kernel/posix-cpu-timers.o
  CC      kernel/mutex.o
  CC      kernel/hrtimer.o
  CC      kernel/rwsem.o
  CC      kernel/nsproxy.o
  CC      kernel/srcu.o
  CC      kernel/notifier.o
  CC      kernel/ksysfs.o
  CC      kernel/pm_qos_params.o
  CC      kernel/sysctl_check.o
  CC      kernel/irq/handle.o
  CC      kernel/irq/manage.o
  CC      kernel/irq/spurious.o
  CC      kernel/irq/resend.o
  CC      kernel/irq/chip.o
  CC      kernel/irq/devres.o
  CC      kernel/irq/autoprobe.o
  CC      kernel/irq/proc.o
  LD      kernel/irq/built-in.o
  CC      kernel/time/timekeeping.o
  CC      kernel/time/ntp.o
  CC      kernel/time/clocksource.o
  CC      kernel/time/jiffies.o
  CC      kernel/time/timer_list.o
  CC      kernel/time/clockevents.o
  CC      kernel/time/tick-common.o
  CC      kernel/time/tick-broadcast.o
  CC      kernel/time/tick-oneshot.o
  CC      kernel/time/tick-sched.o
  CC      kernel/time/timer_stats.o
  LD      kernel/time/built-in.o
  CC      kernel/xenomai/arch/generic/hal.o
In file included from kernel/xenomai/arch/generic/hal.c:47:
include/asm/xenomai/hal.h:65: warning: ‘struct ipipe_tick_device’
declared inside parameter list
include/asm/xenomai/hal.h:65: warning: its scope is only this definition or
declaration, which is probably not what you want
include/asm/xenomai/hal.h:65: warning: ‘enum clock_event_mode’ declared
inside parameter list
include/asm/xenomai/hal.h:67: warning: ‘struct ipipe_tick_device’
declared inside parameter list
In file included from include/asm/xenomai/hal_32.h:54,
                 from include/asm/xenomai/hal.h:73,
                 from kernel/xenomai/arch/generic/hal.c:47:
include/asm-generic/xenomai/hal.h: In function ‘rthal_get_cpufreq’:
include/asm-generic/xenomai/hal.h:166: error: storage size of ‘sysinfo’
isn’t known
include/asm-generic/xenomai/hal.h:167: error: implicit declaration of
function ‘ipipe_get_sysinfo’
include/asm-generic/xenomai/hal.h:166: warning: unused variable
‘sysinfo’
include/asm-generic/xenomai/hal.h: In function ‘rthal_get_timerfreq’:
include/asm-generic/xenomai/hal.h:173: error: storage size of ‘sysinfo’
isn’t known
include/asm-generic/xenomai/hal.h:173: warning: unused variable
‘sysinfo’
include/asm-generic/xenomai/hal.h: In function ‘set_task_nowakeup’:
include/asm-generic/xenomai/hal.h:240: error: ‘TASK_NOWAKEUP’ undeclared
(first use in this function)
include/asm-generic/xenomai/hal.h:240: error: (Each undeclared identifier is
reported only once
include/asm-generic/xenomai/hal.h:240: error: for each function it appears
in.)
include/asm-generic/xenomai/hal.h: In function ‘clear_task_nowakeup’:
include/asm-generic/xenomai/hal.h:245: error: ‘TASK_NOWAKEUP’ undeclared
(first use in this function)
include/asm-generic/xenomai/hal.h: At top level:
include/asm-generic/xenomai/hal.h:328: error: expected ‘=’, ‘,’,
‘;’, ‘asm’ or ‘__attribute__’ before ‘rthal_irq_handler_t’
include/asm-generic/xenomai/hal.h:329: error: expected ‘=’, ‘,’,
‘;’, ‘asm’ or ‘__attribute__’ before ‘rthal_irq_ackfn_t’
include/asm-generic/xenomai/hal.h:353: error: ‘IPIPE_NR_CPUS’ undeclared
here (not in a function)
include/asm-generic/xenomai/hal.h:353: error: ‘IPIPE_NR_FAULTS’
undeclared here (not in a function)
include/asm-generic/xenomai/hal.h:403: error: expected declaration
specifiers or ‘...’ before ‘rthal_irq_handler_t’
include/asm-generic/xenomai/hal.h:404: error: expected declaration
specifiers or ‘...’ before ‘rthal_irq_ackfn_t’
include/asm-generic/xenomai/hal.h:443: warning: ‘enum clock_event_mode’
declared inside parameter list
include/asm-generic/xenomai/hal.h:448: warning: ‘enum clock_event_mode’
declared inside parameter list
In file included from include/asm/xenomai/hal.h:73,
                 from kernel/xenomai/arch/generic/hal.c:47:
include/asm/xenomai/hal_32.h: In function ‘rthal_rdtsc’:
include/asm/xenomai/hal_32.h:128: error: implicit declaration of function
‘ipipe_read_tsc’
include/asm/xenomai/hal_32.h: In function ‘rthal_timer_program_shot’:
include/asm/xenomai/hal_32.h:150: error: implicit declaration of function
‘ipipe_trigger_irq’
include/asm/xenomai/hal_32.h:150: error: ‘IPIPE_SERVICE_IPI3’ undeclared
(first use in this function)
kernel/xenomai/arch/generic/hal.c: In function ‘rthal_critical_enter’:
kernel/xenomai/arch/generic/hal.c:94: error: implicit declaration of
function ‘ipipe_critical_enter’
kernel/xenomai/arch/generic/hal.c: In function ‘rthal_critical_exit’:
kernel/xenomai/arch/generic/hal.c:107: error: implicit declaration of
function ‘ipipe_critical_exit’
kernel/xenomai/arch/generic/hal.c: At top level:
kernel/xenomai/arch/generic/hal.c:159: error: expected declaration
specifiers or ‘...’ before ‘rthal_irq_handler_t’
kernel/xenomai/arch/generic/hal.c:160: error: expected declaration
specifiers or ‘...’ before ‘rthal_irq_ackfn_t’
kernel/xenomai/arch/generic/hal.c: In function ‘rthal_irq_request’:
kernel/xenomai/arch/generic/hal.c:162: error: ‘handler’ undeclared
(first use in this function)
kernel/xenomai/arch/generic/hal.c:162: error: ‘IPIPE_NR_IRQS’ undeclared
(first use in this function)
kernel/xenomai/arch/generic/hal.c:165: error: implicit declaration of
function ‘ipipe_virtualize_irq’
kernel/xenomai/arch/generic/hal.c:165: error: ‘ackfn’ undeclared (first
use in this function)
kernel/xenomai/arch/generic/hal.c:165: error: ‘IPIPE_HANDLE_MASK’
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:165: error: ‘IPIPE_WIRED_MASK’
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:165: 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:202: error: ‘IPIPE_NR_IRQS’ undeclared
(first use in this function)
kernel/xenomai/arch/generic/hal.c:205: 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:302: error: implicit declaration of
function ‘ipipe_propagate_irq’
kernel/xenomai/arch/generic/hal.c: In function ‘rthal_apc_handler’:
kernel/xenomai/arch/generic/hal.c:401: error: implicit declaration of
function ‘ipipe_processor_id’
kernel/xenomai/arch/generic/hal.c: In function ‘rthal_apc_alloc’:
kernel/xenomai/arch/generic/hal.c:525: error: implicit declaration of
function ‘ipipe_test_and_stall_pipeline_head’
kernel/xenomai/arch/generic/hal.c:536: error: implicit declaration of
function ‘ipipe_restore_pipeline_head’
kernel/xenomai/arch/generic/hal.c: In function ‘rthal_apc_schedule’:
kernel/xenomai/arch/generic/hal.c:610: error: implicit declaration of
function ‘ipipe_schedule_irq’
kernel/xenomai/arch/generic/hal.c: In function ‘hal_read_proc’:
kernel/xenomai/arch/generic/hal.c:627: error: ‘IPIPE_MAJOR_NUMBER’
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:628: error: ‘IPIPE_MINOR_NUMBER’
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:629: error: ‘IPIPE_PATCH_NUMBER’
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c: In function ‘rthal_init’:
kernel/xenomai/arch/generic/hal.c:798: error: implicit declaration of
function ‘ipipe_alloc_virq’
kernel/xenomai/arch/generic/hal.c:806: error: ‘ipipe_current_domain’
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:806: error: ‘IPIPE_HANDLE_MASK’
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:832: error: storage size of ‘attr’
isn’t known
kernel/xenomai/arch/generic/hal.c:832: error: implicit declaration of
function ‘ipipe_init_attr’
kernel/xenomai/arch/generic/hal.c:832: error: ‘IPIPE_HEAD_PRIORITY’
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:832: error: implicit declaration of
function ‘ipipe_register_domain’
kernel/xenomai/arch/generic/hal.c:832: warning: unused variable ‘attr’
kernel/xenomai/arch/generic/hal.c:873: error: implicit declaration of
function ‘ipipe_free_virq’
kernel/xenomai/arch/generic/hal.c: In function ‘rthal_exit’:
kernel/xenomai/arch/generic/hal.c:889: error: ‘ipipe_current_domain’
undeclared (first use in this function)
kernel/xenomai/arch/generic/hal.c:903: error: implicit declaration of
function ‘ipipe_unregister_domain’
make[4]: *** [kernel/xenomai/arch/generic/hal.o] Error 1
make[3]: *** [kernel/xenomai/arch/generic] Error 2
make[2]: *** [kernel/xenomai/arch] Error 2
make[1]: *** [kernel/xenomai] Error 2
make: *** [kernel] Error 2
igvc@domain.hid$







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

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

* Re: [Xenomai-help] Xenomai kernel compile issue
  2008-09-02  7:20 [Xenomai-help] Xenomai kernel compile issue Sam Ferguson
@ 2008-09-02  7:25 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 12+ messages in thread
From: Gilles Chanteperdrix @ 2008-09-02  7:25 UTC (permalink / raw)
  To: Sam Ferguson; +Cc: xenomai

Sam Ferguson wrote:
> Hello, I’m trying to compile Xenomai by following the Xenomai Quick build
> guide found on this page: <
> http://www.xenomai.org/index.php/Xenomai_quick_build_quide> however I run
> across a compiling error shown here:
> igvc@domain.hid$ sudo cp /boot/config-2.6.25.11
> .config
> igvc@domain.hid$ sudo make menuconfig
> scripts/kconfig/mconf arch/x86/Kconfig
> #
> # configuration written to .config
> #
> 
> 
> *** End of Linux kernel configuration.
> *** Execute 'make' to build the kernel or try 'make help'.
> 
> igvc@domain.hid$ sudo make

You do not need to compile as root. It is actually safer to compile as a
simple user. Could you post your .config ?

-- 
					    Gilles.


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

* Re: [Xenomai-help] Xenomai kernel compile issue
       [not found] <C4E23B50.85C%samf48@domain.hid>
@ 2008-09-02  9:36 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 12+ messages in thread
From: Gilles Chanteperdrix @ 2008-09-02  9:36 UTC (permalink / raw)
  To: Xenomai help

Sam Ferguson wrote:
> Here it is:

This config file is broken. It contains CONFIG_XENOMAI but not
CONFIG_IPIPE. So:
- either you edited by hand (which does not seem to be the case
according to your earlier posts);
- or your kernel is not patched with the Adeos I-pipe patch.

Do not you get any error message when running the prepare-kernel.sh script ?

-- 
                                                 Gilles.



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

* Re: [Xenomai-help] Xenomai kernel compile issue
       [not found] <C4E37C03.874%samf48@domain.hid>
@ 2008-09-03  8:18 ` Gilles Chanteperdrix
  2008-09-04  5:26   ` Sam Ferguson
  0 siblings, 1 reply; 12+ messages in thread
From: Gilles Chanteperdrix @ 2008-09-03  8:18 UTC (permalink / raw)
  To: Xenomai help

Sam Ferguson wrote:
> Ok it must be a kernel patch issue.  When I patched it initially it seemed
> to go through, it returned me to the terminal with no errors.  So I tried to
> patch the kernel doing by running the script from xenomai.  Here is what
> happens:
> 
> igvc@domain.hid$ scripts/prepare-kernel.sh

Please use the latest release of xenomai.

> Linux tree [default /lib/modules/2.6.24-19-generic/source]:
> /lib/modules/2.6.24-19-generic/build
> Target architecture [default i686]:
> Adeos patch [default /dev/null]:
> /usr/src/xenomai-2.4.4/ksrc/arch/x86/patches/adeos-ipipe-2.6.26-x86-2.0-09.p
> atch

If you are trying to patch a 2.6.24 kernel with the Adeos patch for
2.6.26, it will not work.

Please do not forget to CC the list.

-- 
					    Gilles.



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

* Re: [Xenomai-help] Xenomai kernel compile issue
  2008-09-03  8:18 ` Gilles Chanteperdrix
@ 2008-09-04  5:26   ` Sam Ferguson
  2008-09-04  6:33     ` Gilles Chanteperdrix
  2008-09-04  8:20     ` Gilles Chanteperdrix
  0 siblings, 2 replies; 12+ messages in thread
From: Sam Ferguson @ 2008-09-04  5:26 UTC (permalink / raw)
  To: Gilles Chanteperdrix, Xenomai help

Ok, so I updated my kernel and tried again, the script doesn't error out but
it also doesn't say that it finished. Here's what happens:
igvc@domain.hid$ sudo scripts/prepare-kernel.sh
Linux tree [default /lib/modules/2.6.24-19-generic/source]:
/usr/src/linux-2.6.26.3
Target architecture [default i686]:
Adeos patch [default
/usr/src/xenomai-2.4.4/ksrc/arch/x86/patches/adeos-ipipe-2.6.26-x86-2.0-09.p
atch]: 
patching file Makefile
patching file arch/x86/Kconfig
patching file arch/x86/Makefile
patching file arch/x86/boot/Makefile
patching file arch/x86/boot/compressed/Makefile
patching file arch/x86/kernel/Makefile
patching file arch/x86/kernel/apic_32.c
patching file arch/x86/kernel/apic_64.c
patching file arch/x86/kernel/cpu/mtrr/cyrix.c
patching file arch/x86/kernel/cpu/mtrr/generic.c
patching file arch/x86/kernel/entry_32.S
patching file arch/x86/kernel/entry_64.S
patching file arch/x86/kernel/genapic_flat_64.c
patching file arch/x86/kernel/head64.c
patching file arch/x86/kernel/i8253.c
patching file arch/x86/kernel/i8259_32.c
patching file arch/x86/kernel/i8259_64.c
patching file arch/x86/kernel/io_apic_32.c
patching file arch/x86/kernel/io_apic_64.c
patching file arch/x86/kernel/ipi.c
patching file arch/x86/kernel/ipipe.c
patching file arch/x86/kernel/irq_32.c
patching file arch/x86/kernel/irq_64.c
patching file arch/x86/kernel/mcount_32.S
patching file arch/x86/kernel/mcount_64.S
patching file arch/x86/kernel/nmi_32.c
patching file arch/x86/kernel/nmi_64.c
patching file arch/x86/kernel/process.c
patching file arch/x86/kernel/process_32.c
patching file arch/x86/kernel/process_64.c
patching file arch/x86/kernel/setup64.c
patching file arch/x86/kernel/smp.c
patching file arch/x86/kernel/smpboot.c
patching file arch/x86/kernel/time_32.c
patching file arch/x86/kernel/tlb_32.c
patching file arch/x86/kernel/tlb_64.c
patching file arch/x86/kernel/traps_32.c
patching file arch/x86/kernel/traps_64.c
patching file arch/x86/kernel/vm86_32.c
patching file arch/x86/kernel/vsyscall_64.c
patching file arch/x86/lib/mmx_32.c
patching file arch/x86/lib/thunk_64.S
patching file arch/x86/mach-visws/visws_apic.c
patching file arch/x86/mm/fault.c
patching file drivers/pci/htirq.c
patching file drivers/serial/8250.c
patching file include/asm-generic/cmpxchg-local.h
patching file include/asm-x86/apic.h
patching file include/asm-x86/hw_irq_32.h
patching file include/asm-x86/hw_irq_64.h
patching file include/asm-x86/i8259.h
patching file include/asm-x86/ipi.h
patching file include/asm-x86/ipipe.h
patching file include/asm-x86/ipipe_32.h
patching file include/asm-x86/ipipe_64.h
patching file include/asm-x86/ipipe_base.h
patching file include/asm-x86/ipipe_base_32.h
patching file include/asm-x86/ipipe_base_64.h
patching file include/asm-x86/irqflags.h
patching file include/asm-x86/mmu_context_32.h
patching file include/asm-x86/mmu_context_64.h
patching file include/asm-x86/nmi.h
patching file include/asm-x86/processor.h
patching file include/asm-x86/system.h
patching file include/asm-x86/unistd_32.h
patching file include/asm-x86/unistd_64.h
patching file include/asm-x86/vsyscall.h
patching file include/linux/hardirq.h
patching file include/linux/ipipe.h
patching file include/linux/ipipe_base.h
patching file include/linux/ipipe_compat.h
patching file include/linux/ipipe_percpu.h
patching file include/linux/ipipe_tickdev.h
patching file include/linux/ipipe_trace.h
patching file include/linux/irq.h
patching file include/linux/kernel.h
patching file include/linux/linkage.h
patching file include/linux/mm.h
patching file include/linux/preempt.h
patching file include/linux/sched.h
patching file include/linux/spinlock.h
patching file include/linux/spinlock_types.h
patching file init/Kconfig
patching file init/main.c
patching file kernel/Makefile
patching file kernel/exit.c
patching file kernel/fork.c
patching file kernel/ipipe/Kconfig
patching file kernel/ipipe/Kconfig.debug
patching file kernel/ipipe/Makefile
patching file kernel/ipipe/core.c
patching file kernel/ipipe/tracer.c
patching file kernel/irq/chip.c
patching file kernel/irq/handle.c
patching file kernel/lockdep.c
patching file kernel/power/disk.c
patching file kernel/printk.c
patching file kernel/sched.c
patching file kernel/signal.c
patching file kernel/spinlock.c
patching file kernel/time/tick-common.c
patching file lib/Kconfig.debug
patching file lib/bust_spinlocks.c
patching file lib/ioremap.c
patching file lib/smp_processor_id.c
patching file lib/spinlock_debug.c
patching file mm/memory.c
Hunk #8 succeeded at 2953 (offset 10 lines).
patching file mm/mlock.c
Hunk #1 succeeded at 171 (offset -2 lines).
patching file mm/vmalloc.c
igvc@domain.hid$




On 9/3/08 1:18 AM, "Gilles Chanteperdrix" <gilles.chanteperdrix@xenomai.org>
wrote:

> Sam Ferguson wrote:
>> Ok it must be a kernel patch issue.  When I patched it initially it seemed
>> to go through, it returned me to the terminal with no errors.  So I tried to
>> patch the kernel doing by running the script from xenomai.  Here is what
>> happens:
>> 
>> igvc@domain.hid$ scripts/prepare-kernel.sh
> 
> Please use the latest release of xenomai.
> 
>> Linux tree [default /lib/modules/2.6.24-19-generic/source]:
>> /lib/modules/2.6.24-19-generic/build
>> Target architecture [default i686]:
>> Adeos patch [default /dev/null]:
>> /usr/src/xenomai-2.4.4/ksrc/arch/x86/patches/adeos-ipipe-2.6.26-x86-2.0-09.p
>> atch
> 
> If you are trying to patch a 2.6.24 kernel with the Adeos patch for
> 2.6.26, it will not work.
> 
> Please do not forget to CC the list.




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

* Re: [Xenomai-help] Xenomai kernel compile issue
  2008-09-04  5:26   ` Sam Ferguson
@ 2008-09-04  6:33     ` Gilles Chanteperdrix
  2008-09-04  6:36       ` Gilles Chanteperdrix
  2008-09-06 16:32       ` Sam Ferguson
  2008-09-04  8:20     ` Gilles Chanteperdrix
  1 sibling, 2 replies; 12+ messages in thread
From: Gilles Chanteperdrix @ 2008-09-04  6:33 UTC (permalink / raw)
  To: Sam Ferguson; +Cc: Xenomai help

Sam Ferguson wrote:
> Ok, so I updated my kernel and tried again, the script doesn't error out but
> it also doesn't say that it finished. Here's what happens:
> igvc@domain.hid$ sudo scripts/prepare-kernel.sh
> Linux tree [default /lib/modules/2.6.24-19-generic/source]:
> /usr/src/linux-2.6.26.3
> Target architecture [default i686]:
> Adeos patch [default
> /usr/src/xenomai-2.4.4/ksrc/arch/x86/patches/adeos-ipipe-2.6.26-x86-2.0-09.p
> atch]: 

There was two suggestions in my post:
- please use the proper patch for the kernel version you are using,
which you have followed;
- please use the latest revision in the 2.4.x branch, that is xenomai
2.4.5, which you have not followed;

But the important question is: does it compile now ?

-- 
					    Gilles.


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

* Re: [Xenomai-help] Xenomai kernel compile issue
  2008-09-04  6:33     ` Gilles Chanteperdrix
@ 2008-09-04  6:36       ` Gilles Chanteperdrix
  2008-09-06 16:32       ` Sam Ferguson
  1 sibling, 0 replies; 12+ messages in thread
From: Gilles Chanteperdrix @ 2008-09-04  6:36 UTC (permalink / raw)
  To: Sam Ferguson; +Cc: Xenomai help

Gilles Chanteperdrix wrote:
> Sam Ferguson wrote:
>> Ok, so I updated my kernel and tried again, the script doesn't error out but
>> it also doesn't say that it finished. Here's what happens:
>> igvc@domain.hid$ sudo scripts/prepare-kernel.sh
>> Linux tree [default /lib/modules/2.6.24-19-generic/source]:
>> /usr/src/linux-2.6.26.3
>> Target architecture [default i686]:
>> Adeos patch [default
>> /usr/src/xenomai-2.4.4/ksrc/arch/x86/patches/adeos-ipipe-2.6.26-x86-2.0-09.p
>> atch]: 
> 
> There was two suggestions in my post:
There were, sorry.

-- 
					    Gilles.


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

* Re: [Xenomai-help] Xenomai kernel compile issue
  2008-09-04  5:26   ` Sam Ferguson
  2008-09-04  6:33     ` Gilles Chanteperdrix
@ 2008-09-04  8:20     ` Gilles Chanteperdrix
  1 sibling, 0 replies; 12+ messages in thread
From: Gilles Chanteperdrix @ 2008-09-04  8:20 UTC (permalink / raw)
  To: Sam Ferguson; +Cc: Xenomai help

Sam Ferguson wrote:
> Ok, so I updated my kernel and tried again, the script doesn't error out but
> it also doesn't say that it finished. Here's what happens:
> igvc@domain.hid$ sudo scripts/prepare-kernel.sh

And by the way: the only command which requires root privileges is "make
install", all the rest can be done as a simple user.

-- 
                                                 Gilles.


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

* Re: [Xenomai-help] Xenomai kernel compile issue
  2008-09-04  6:33     ` Gilles Chanteperdrix
  2008-09-04  6:36       ` Gilles Chanteperdrix
@ 2008-09-06 16:32       ` Sam Ferguson
  2008-09-06 16:52         ` Gilles Chanteperdrix
  2008-09-06 20:18         ` Gilles Chanteperdrix
  1 sibling, 2 replies; 12+ messages in thread
From: Sam Ferguson @ 2008-09-06 16:32 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: Xenomai help

No, I get the same error as before. Am I using the right patch?  I have an
HP laptop with an AMD chipset in it, should I be using i386 or x86.  I've
tried both now with the same problem as before.  I start the script, then
after 2 seconds it returns me to the terminal.  I am now using xenomai-2.4.5
and linux-2.6.26.3 with no luck.  Is there a log file generated from the
prepare-kernel.sh script I can look at?


On 9/3/08 11:33 PM, "Gilles Chanteperdrix"
<gilles.chanteperdrix@xenomai.org> wrote:

> Sam Ferguson wrote:
>> Ok, so I updated my kernel and tried again, the script doesn't error out but
>> it also doesn't say that it finished. Here's what happens:
>> igvc@domain.hid$ sudo scripts/prepare-kernel.sh
>> Linux tree [default /lib/modules/2.6.24-19-generic/source]:
>> /usr/src/linux-2.6.26.3
>> Target architecture [default i686]:
>> Adeos patch [default
>> /usr/src/xenomai-2.4.4/ksrc/arch/x86/patches/adeos-ipipe-2.6.26-x86-2.0-09.p
>> atch]: 
> 
> There was two suggestions in my post:
> - please use the proper patch for the kernel version you are using,
> which you have followed;
> - please use the latest revision in the 2.4.x branch, that is xenomai
> 2.4.5, which you have not followed;
> 
> But the important question is: does it compile now ?




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

* Re: [Xenomai-help] Xenomai kernel compile issue
  2008-09-06 16:32       ` Sam Ferguson
@ 2008-09-06 16:52         ` Gilles Chanteperdrix
  2008-09-06 20:18         ` Gilles Chanteperdrix
  1 sibling, 0 replies; 12+ messages in thread
From: Gilles Chanteperdrix @ 2008-09-06 16:52 UTC (permalink / raw)
  To: Sam Ferguson; +Cc: Xenomai help

Sam Ferguson wrote:
> No, I get the same error as before. Am I using the right patch?  I have an
> HP laptop with an AMD chipset in it, should I be using i386 or x86.  I've

i386 is the old branch, x86 the new one, so the one you should choose
depends on the kernel version you are using. If you are using 2.6.26,
you should definitely use x86.

> tried both now with the same problem as before.  I start the script, then
> after 2 seconds it returns me to the terminal.  I am now using xenomai-2.4.5
> and linux-2.6.26.3 with no luck.  Is there a log file generated from the
> prepare-kernel.sh script I can look at?

You can run prepare-kernel --verbose to see a bit more what the script
is doing.

But could you send me your .config file and the exact steps you follow
in private so that I can try to reproduce your issue ?

-- 
					    Gilles.


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

* Re: [Xenomai-help] Xenomai kernel compile issue
  2008-09-06 16:32       ` Sam Ferguson
  2008-09-06 16:52         ` Gilles Chanteperdrix
@ 2008-09-06 20:18         ` Gilles Chanteperdrix
  2008-09-06 20:21           ` Gilles Chanteperdrix
  1 sibling, 1 reply; 12+ messages in thread
From: Gilles Chanteperdrix @ 2008-09-06 20:18 UTC (permalink / raw)
  To: Sam Ferguson; +Cc: Xenomai help

Sam Ferguson wrote:
> No, I get the same error as before. Am I using the right patch?  I have an
> HP laptop with an AMD chipset in it, should I be using i386 or x86.  I've
> tried both now with the same problem as before.  I start the script, then
> after 2 seconds it returns me to the terminal.  I am now using xenomai-2.4.5
> and linux-2.6.26.3 with no luck.  Is there a log file generated from the
> prepare-kernel.sh script I can look at?

Ok. Since I already had the .config you used, I did a small experiment.
I created a temporary directory, went to it, copied your .config to it,
then did:

tar -xvjf /home/gilles/files/downloads/xenomai-2.4.5.tar.bz2
tar -xvjf /home/gilles/files/downloads/linux-2.6.26.3.tar.bz2
./xenomai-2.4.5/scripts/prepare-kernel.sh # Answered the questions here
cd linux-2.6.26.3/
cp ../.config  .
make ARCH=i386 oldconfig # Hit enter for all questions
make ARCH=i386

And the kernel compiled just fine. I had to use ARCH=i386, because I am
compiling on an x86_64.

-- 
					    Gilles.


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

* Re: [Xenomai-help] Xenomai kernel compile issue
  2008-09-06 20:18         ` Gilles Chanteperdrix
@ 2008-09-06 20:21           ` Gilles Chanteperdrix
  0 siblings, 0 replies; 12+ messages in thread
From: Gilles Chanteperdrix @ 2008-09-06 20:21 UTC (permalink / raw)
  To: Sam Ferguson; +Cc: Xenomai help

Gilles Chanteperdrix wrote:
> Sam Ferguson wrote:
>> No, I get the same error as before. Am I using the right patch?  I have an
>> HP laptop with an AMD chipset in it, should I be using i386 or x86.  I've
>> tried both now with the same problem as before.  I start the script, then
>> after 2 seconds it returns me to the terminal.  I am now using xenomai-2.4.5
>> and linux-2.6.26.3 with no luck.  Is there a log file generated from the
>> prepare-kernel.sh script I can look at?
> 
> Ok. Since I already had the .config you used, I did a small experiment.
> I created a temporary directory, went to it, copied your .config to it,
> then did:

I did all this as a simple user, not as root. Never used sudo either.

-- 
					    Gilles.


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

end of thread, other threads:[~2008-09-06 20:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-02  7:20 [Xenomai-help] Xenomai kernel compile issue Sam Ferguson
2008-09-02  7:25 ` Gilles Chanteperdrix
     [not found] <C4E23B50.85C%samf48@domain.hid>
2008-09-02  9:36 ` Gilles Chanteperdrix
     [not found] <C4E37C03.874%samf48@domain.hid>
2008-09-03  8:18 ` Gilles Chanteperdrix
2008-09-04  5:26   ` Sam Ferguson
2008-09-04  6:33     ` Gilles Chanteperdrix
2008-09-04  6:36       ` Gilles Chanteperdrix
2008-09-06 16:32       ` Sam Ferguson
2008-09-06 16:52         ` Gilles Chanteperdrix
2008-09-06 20:18         ` Gilles Chanteperdrix
2008-09-06 20:21           ` Gilles Chanteperdrix
2008-09-04  8:20     ` 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.