Porting Ipipe/Adeos patch to new arm9 board
Subsystems (3)
Hi,
I need to port the actual ipipe 2.6.24 patch for a new arm926ej-s based board for my company.
I followed the wiki's howto and helped myself with the integrator and the s3c24xx patches.
The Soc has 3 decrementers, the arm core is running at 144MHz and the timers has a 256 ticks prescaler (we need 563 ticks to get 1ms).
I patched the kernel with the arm1 patch (from the ARM website), the board non-rt patch enabling serial and the macb ethernet controller and finnally tried to apply the ipipe arm patch and resolving failures.
Finally I have a kernel oops at start_kernel just before enabling the consoles :
Kernel zImage Magic: '016f2818' Start:Ox00000000 End:0x0007db5c Setting Kernel Parameters : 'init=/bin/init user_debug=31 debug' Starting Kernel 0x80308000 (Params:0xC0000100)
Uncompressing Linux.................................... done, booting the kernel.
<5>Linux version 2.6.24-arm1-np4 ([email protected]) (gcc version 4.2.1 (CodeSourcery Sourcery G++ Lite 2007q3-53)) #6 Fri Mar 28 08:40:04 CET 2008
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00057177
Machine: Neotion NP4+
Memory policy: ECC disabled, Data cache writeback
<7>On node 0 totalpages: 4096
<7> DMA zone: 32 pages used for memmap <7> DMA zone: 0 pages reserved <7> DMA zone: 4064 pages, LIFO batch:0 <7> Normal zone: 0 pages used for memmap <7> Movable zone: 0 pages used for memmap
np4: IO Mapping Init.
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064 <5>Kernel command line: init=/bin/init user_debug=31 debug
np4: IRQ Init: 32
PID hash table entries: 64 (order: 6, 256 bytes)
np4: Timer 0 Init. : Freq 144000000 Prescaler 256 Period 563 HZ 1000 <6>I-pipe 1.9-01: pipeline enabled.
<1>Unable <1>pgd = c0004000
<1>[ffffffff] *pgd=80002031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1] CPU: 0 Not tainted (2.6.24-arm1-np4 #6) PC is at vsnprintf+0x578/0x5c8 LR is at panic+0x3c/0x10c pc : [<c00c0518>] lr : [<c0026f9c>] psr: 80000053
sp : c0103ef8 ip : c0103f48 fp : c0103f44
r10: 8001339c r9 : c010b2e8 r8 : 800133d0
r7 : c0103f64 r6 : c010aee8 r5 : c0103fa4 r4 : c010aeb8 r3 : ffffffff r2 : ffffffff r1 : 00000400 r0 : c010aee8
Flags: Nzcv IRQs on FIQs off Mode SVC_32 ISA ARM Segment kernel
Control: 0005717f Table: 80004000 DAC: 00000017
Process swapper (pid: 0, stack limit = 0xc0102270)
Stack: (0xc0103ef8 to 0xc0104000)
3ee0: 00000001c014dec4
3f00: 41069265 8001339c c0103f34 00000400 c010aee8 ffffffff c0103f34 c010aeb8
3f20: c0103fa4 00000001 c0105928 800133d0 41069265 8001339c c0103f5c c0103f48
3f40: c0026f9c c00bffb0 c0103f6c c0103f64 c0103fc4 c0103f70 c0008cb0 c0026f74
3f60: ffffffff c0103ff4 c0107370 c0013764 00000024 00000000 c0107370 60000053
3f80: c0014f00 c010a260 c0107400 c0105928 800133d0 41069265 8001339c c0103fc4
3fa0: c0103fc8 c0103fb8 c0008c98 c0046760 60000053 ffffffff c0103ff4 c0103fc8
3fc0: c0008c98 c0046728 c0008544 00000000 00000000 c0014f00 00000000 00057175
3fe0: c010a7a0 c0014efc 00000000 c0103ff8 80008034 c0008af4 00000000 00000000
Backtrace: [<c00bffa0>] (vsnprintf+0x0/0x5c8) from [<c0026f9c>] (panic+0x3c/0x10c) [<c0026f60>] (panic+0x0/0x10c) from [<c0008cb0>] (start_kernel+0x1cc/0x2cc) r3:c0013764 r2:c0107370 r1:c0103ff4 r0:ffffffff [<c0046718>] (__ipipe_unstall_root+0x0/0x50) from [<c0008c98>] (start_kernel+0x1b4/0x2cc) [<c0008ae4>] (start_kernel+0x0/0x2cc) from [<80008034>] (0x80008034) r6:c0014efc r5:c010a7a0 r4:00057175 Code: e51b3030 e2833001 e50b3030 e51b3030 (e5d33000)
<1>Unhandled fault: alignment exception (0x001) at 0x0000000f <1<1>pgd = c01060e8
<1>[00000000] *pgd=c01060e8<1>Unable to handle kernel paging request at virtual address 00106800
<1>pgd = c01060e8
I just can't find where the error is, the modified ipipe patch and kernel config is joined. (the board code is in the arch/arm/mach-np4 directory)
Thanks,
Neil
--
Neil Armstrong
Neotion Sophia Antipolis
Stagiaire Mars-Septembre 2008 Polytech'Nice-Sophia [email protected] (PGP:0x1166F485)
exit.c +1 -0
@@ -994,6 +994,7 @@if (group_dead)acct_process (); +ipipe_exit_notify (tsk);exit_sem (tsk);__exit_files (tsk);__exit_fs (tsk);
Makefile +1 -0
@@ -53,6 +53,7 @@ obj-$(CONFIG_SECCOMP) += seccomp.o obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o obj-$(CONFIG_RELAY) += relay.o +obj-$(CONFIG_IPIPE) += ipipe/ obj-$(CONFIG_SYSCTL) += utsname_sysctl.o obj-$(CONFIG_TASK_DELAY_ACCT) += delayacct.o obj-$(CONFIG_TASKSTATS) += taskstats.o tsacct.o
power/swsusp.c +2 -0
@@ -275,6 +275,7 @@int error;local_irq_disable (); +local_irq_disable_hw_cond ();/* NOTE: device_power_down() is just a suspend() with irqs off; * it has no special "power things down" semantics */
@@ -301,6 +302,7 @@restore_processor_state ();touch_softlockup_watchdog ();device_power_up (); +local_irq_enable_hw_cond ();local_irq_enable ();return error; }
power/disk.c +2 -0
@@ -154,6 +154,7 @@return error;local_irq_disable (); +local_irq_disable_hw_cond ();/* At this point, device_suspend() has been called, but *not* * device_power_down(). We *must* call device_power_down() now. * Otherwise, drivers for some devices (e.g. interrupt controllers)
@@ -180,6 +181,7 @@*/ device_power_up (); Enable_irqs: +local_irq_enable_hw_cond ();local_irq_enable ();return error; }
fork.c +5 -1
@@ -403,6 +403,7 @@if (atomic_dec_and_test (&mm->mm_users)) {exit_aio (mm);exit_mmap (mm); +ipipe_cleanup_notify (mm);if (!list_empty (&mm->mmlist)) {spin_lock (&mmlist_lock);list_del (&mm->mmlist);
@@ -938,7 +939,7 @@ {unsigned long new_flags = p->flags; - new_flags &= ~PF_SUPERPRIV ; + new_flags &= ~(PF_SUPERPRIV |PF_EVNOTIFY ); new_flags |=PF_FORKNOEXEC ;if (!(clone_flags &CLONE_PTRACE )) p->ptrace =0 ;
@@ -1312,6 +1313,9 @@write_unlock_irq (&tasklist_lock);proc_fork_connector (p);cgroup_post_fork (p); +#ifdef CONFIG_IPIPE +memset (p->ptd,0 ,sizeof (p->ptd)); +#endif /* CONFIG_IPIPE */ return p; bad_fork_free_pid:
printk.c +77 -0
96 lines not on this page · raw message
irq/chip.c +167 -0
223 lines not on this page · raw message
spinlock.c +2 -2
@@ -88,7 +88,7 @@* _raw_spin_lock_flags() code, because lockdep assumes * that interrupts are not re-enabled during lock-acquire: */ -#ifdef CONFIG_LOCKDEP +#if defined(CONFIG_LOCKDEP ) || defined(CONFIG_IPIPE )LOCK_CONTENDED (lock, _raw_spin_trylock, _raw_spin_lock);#else _raw_spin_lock_flags (lock, &flags);
@@ -305,7 +305,7 @@* _raw_spin_lock_flags() code, because lockdep assumes * that interrupts are not re-enabled during lock-acquire: */ -#ifdef CONFIG_LOCKDEP +#if defined(CONFIG_LOCKDEP ) || defined(CONFIG_IPIPE )LOCK_CONTENDED (lock, _raw_spin_trylock, _raw_spin_lock);#else _raw_spin_lock_flags (lock, &flags);
ipipe/Kconfig +25 -0
@@ -0,0 +1,25 @@ +config IPIPE + bool "Interrupt pipeline" + default y + ---help--- + Activate this option if you want the interrupt pipeline to be + compiled in. + +config IPIPE_DOMAINS + int "Max domains" + depends on IPIPE + default 4 + ---help--- + The maximum number of I-pipe domains to run concurrently. + +config IPIPE_COMPAT + bool "Maintain code compatibility with older releases" + depends on IPIPE + default y + ---help--- + Activate this option if you want the compatibility code to be + defined, so that older I-pipe clients may use obsolete + constructs. WARNING: obsolete code will be eventually + deprecated in future I-pipe releases, and removed from the + compatibility support as time passes. Please fix I-pipe + clients to get rid of such uses as soon as possible.
ipipe/tracer.c +1336 -0
1,336 lines not on this page · raw message
ipipe/Kconfig.debug +88 -0
88 lines not on this page · raw message
ipipe/core.c +1632 -0
1,150 lines not on this page · raw message
sched.c +83 -3
86 lines not on this page · raw message
asm-arm/irqflags.h +112 -18
130 lines not on this page · raw message
asm-arm/ipipe_base.h +103 -0
103 lines not on this page · raw message
asm-arm/ipipe.h +194 -0
194 lines not on this page · raw message
linux/spinlock.h +150 -23
173 lines not on this page · raw message
linux/ipipe_tickdev.h +58 -0
58 lines not on this page · raw message
linux/autoconf.h +126 -0
126 lines not on this page · raw message
linux/ipipe_percpu.h +69 -0
69 lines not on this page · raw message
linux/ipipe_trace.h +70 -0
70 lines not on this page · raw message
linux/ipipe.h +585 -0
585 lines not on this page · raw message
linux/ipipe_compat.h +54 -0
54 lines not on this page · raw message
linux/ipipe_base.h +86 -0
86 lines not on this page · raw message
memory.c +183 -33
216 lines not on this page · raw message
arm/kernel/entry-common.S +65 -17
82 lines not on this page · raw message
arm/kernel/entry-armv.S +101 -7
108 lines not on this page · raw message
arm/kernel/ipipe.c +454 -0
454 lines not on this page · raw message
arm/mach-imx/time.c +145 -4
149 lines not on this page · raw message
arm/mach-imx/irq.c +123 -1
124 lines not on this page · raw message
arm/plat-s3c24xx/time.c +171 -47
218 lines not on this page · raw message
arm/plat-s3c24xx/irq.c +116 -1
117 lines not on this page · raw message
arm/mach-integrator/core.c +124 -48
172 lines not on this page · raw message
arm/mach-at91/gpio.c +109 -0
109 lines not on this page · raw message
arm/mach-at91/at91sam9260.c +44 -0
44 lines not on this page · raw message
arm/mach-at91/at91sam9261.c +44 -0
44 lines not on this page · raw message
arm/mach-at91/at91sam9263.c +44 -0
44 lines not on this page · raw message
arm/mach-at91/at91rm9200.c +44 -0
44 lines not on this page · raw message
arm/mach-at91/at91sam9rl.c +44 -0
44 lines not on this page · raw message
arm/mach-at91/at91_ipipe_time.c +396 -0
396 lines not on this page · raw message
arm/mach-pxa/time.c +155 -0
155 lines not on this page · raw message
arm/mach-np4/time.c +111 -14
125 lines not on this page · raw message
arm/mm/fault.c +55 -0
55 lines not on this page · raw message
arm/mm/pgd.c +43 -0
43 lines not on this page · raw message
arm/mach-ixp4xx/common.c +171 -0
171 lines not on this page · raw message
arm/mach-sa1100/time.c +156 -0
156 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
#
# Automatically generated make config: don't edit # Linux kernel version: 2.6.24-arm1-np4
# Fri Mar 28 08:39:48 2008
#CONFIG_ARM=yCONFIG_SYS_SUPPORTS_APM_EMULATION=y
# CONFIG_GENERIC_GPIO is not set
# CONFIG_GENERIC_TIME is not set
# CONFIG_GENERIC_CLOCKEVENTS is not set
# CONFIG_NO_IOPORT is not set CONFIG_GENERIC_HARDIRQS=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_LOCKDEP_SUPPORT=y CONFIG_TRACE_IRQFLAGS_SUPPORT=y CONFIG_HARDIRQS_SW_RESEND=y CONFIG_GENERIC_IRQ_PROBE=y CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
# CONFIG_ARCH_HAS_ILOG2_U64 is not set CONFIG_GENERIC_HWEIGHT=y CONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_ZONE_DMA=yCONFIG_VECTORS_BASE=0xffff0000 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
#
# General setup
#CONFIG_EXPERIMENTAL=yCONFIG_BROKEN_ON_SMP=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not setCONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_USER_NS is not set
# CONFIG_PID_NS is not set
# CONFIG_IKCONFIG is not setCONFIG_LOG_BUF_SHIFT=17
# CONFIG_CGROUPS is not setCONFIG_FAIR_GROUP_SCHED=yCONFIG_FAIR_USER_SCHED=y
# CONFIG_FAIR_CGROUP_SCHED is not set
# CONFIG_SYSFS_DEPRECATED is not set
# CONFIG_RELAY is not setCONFIG_BLK_DEV_INITRD=yCONFIG_INITRAMFS_SOURCE="initramfs.txt"CONFIG_INITRAMFS_ROOT_UID=0CONFIG_INITRAMFS_ROOT_GID=0CONFIG_CC_OPTIMIZE_FOR_SIZE=yCONFIG_EMBEDDED=yCONFIG_UID16=y
# CONFIG_SYSCTL_SYSCALL is not setCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=yCONFIG_KALLSYMS_EXTRA_PASS=y
# CONFIG_HOTPLUG is not setCONFIG_PRINTK=yCONFIG_BUG=y
# CONFIG_ELF_CORE is not setCONFIG_BASE_FULL=yCONFIG_FUTEX=y
# CONFIG_EPOLL is not set
# CONFIG_SIGNALFD is not set
# CONFIG_EVENTFD is not set
# CONFIG_SHMEM is not set
# CONFIG_VM_EVENT_COUNTERS is not setCONFIG_SLAB=y
# CONFIG_SLUB is not set
# CONFIG_SLOB is not setCONFIG_SLABINFO=yCONFIG_RT_MUTEXES=yCONFIG_TINY_SHMEM=yCONFIG_BASE_SMALL=0
# CONFIG_MODULES is not set
# CONFIG_BLOCK is not set
#
# Real-time sub-system
#CONFIG_XENOMAI=yCONFIG_XENO_GENERIC_STACKPOOL=yCONFIG_XENO_OPT_NUCLEUS=yCONFIG_XENO_OPT_PERVASIVE=y
# CONFIG_XENO_OPT_ISHIELD is not setCONFIG_XENO_OPT_PRIOCPL=y
# CONFIG_XENO_OPT_PIPELINE_HEAD is not setCONFIG_XENO_OPT_PIPE=yCONFIG_XENO_OPT_PIPE_NRDEV=32CONFIG_XENO_OPT_REGISTRY=yCONFIG_XENO_OPT_REGISTRY_NRSLOTS=512CONFIG_XENO_OPT_SYS_HEAPSZ=128CONFIG_XENO_OPT_SYS_STACKPOOLSZ=32
# CONFIG_XENO_OPT_STATS is not setCONFIG_XENO_OPT_DEBUG=yCONFIG_XENO_OPT_DEBUG_NUCLEUS=y
# CONFIG_XENO_OPT_DEBUG_QUEUES is not set
# CONFIG_XENO_OPT_DEBUG_REGISTRY is not set
# CONFIG_XENO_OPT_DEBUG_TIMERS is not set
# CONFIG_XENO_OPT_WATCHDOG is not set
# CONFIG_XENO_OPT_SHIRQ is not set
#
# Timing
#
# CONFIG_XENO_OPT_TIMING_PERIODIC is not setCONFIG_XENO_OPT_TIMING_SCHEDLAT=0
#
# Scalability
#
# CONFIG_XENO_OPT_SCALABLE_SCHED is not setCONFIG_XENO_OPT_TIMER_LIST=y
# CONFIG_XENO_OPT_TIMER_HEAP is not set
# CONFIG_XENO_OPT_TIMER_WHEEL is not set
#
# Machine
#
# CONFIG_XENO_HW_FPU is not set
#
# Interfaces
#CONFIG_XENO_SKIN_NATIVE=yCONFIG_XENO_OPT_NATIVE_PERIOD=0CONFIG_XENO_OPT_NATIVE_PIPE=yCONFIG_XENO_OPT_NATIVE_PIPE_BUFSZ=1024CONFIG_XENO_OPT_NATIVE_REGISTRY=yCONFIG_XENO_OPT_NATIVE_SEM=yCONFIG_XENO_OPT_NATIVE_EVENT=yCONFIG_XENO_OPT_NATIVE_MUTEX=yCONFIG_XENO_OPT_NATIVE_COND=yCONFIG_XENO_OPT_NATIVE_QUEUE=yCONFIG_XENO_OPT_NATIVE_HEAP=yCONFIG_XENO_OPT_NATIVE_ALARM=yCONFIG_XENO_OPT_NATIVE_MPS=y
# CONFIG_XENO_OPT_NATIVE_INTR is not setCONFIG_XENO_OPT_DEBUG_NATIVE=yCONFIG_XENO_SKIN_POSIX=yCONFIG_XENO_OPT_POSIX_PERIOD=0
# CONFIG_XENO_OPT_POSIX_SHM is not set
# CONFIG_XENO_OPT_POSIX_INTR is not set
# CONFIG_XENO_OPT_POSIX_SELECT is not setCONFIG_XENO_OPT_DEBUG_POSIX=y
# CONFIG_XENO_SKIN_PSOS is not set
# CONFIG_XENO_SKIN_UITRON is not set
# CONFIG_XENO_SKIN_VRTX is not set
# CONFIG_XENO_SKIN_VXWORKS is not set
# CONFIG_XENO_SKIN_RTAI is not setCONFIG_XENO_SKIN_RTDM=yCONFIG_XENO_OPT_RTDM_PERIOD=0CONFIG_XENO_OPT_RTDM_FILDES=128
# CONFIG_XENO_OPT_RTDM_SELECT is not setCONFIG_XENO_OPT_DEBUG_RTDM=y
#
# Drivers
#
#
# Serial drivers
#
# CONFIG_XENO_DRIVERS_16550A is not set
#
# Testing drivers
#
# CONFIG_XENO_DRIVERS_TIMERBENCH is not set
# CONFIG_XENO_DRIVERS_IRQBENCH is not set
# CONFIG_XENO_DRIVERS_SWITCHTEST is not set
#
# CAN drivers
#
# CONFIG_XENO_DRIVERS_CAN is not set
#
# System Type
#CONFIG_MMU=y
# CONFIG_ARCH_AAEC2000 is not set
# CONFIG_ARCH_INTEGRATOR is not set
# CONFIG_ARCH_REALVIEW is not set
# CONFIG_ARCH_VERSATILE is not set
# CONFIG_ARCH_AT91 is not set
# CONFIG_ARCH_CLPS7500 is not set
# CONFIG_ARCH_CLPS711X is not set
# CONFIG_ARCH_CO285 is not set
# CONFIG_ARCH_EBSA110 is not set
# CONFIG_ARCH_EP93XX is not set
# CONFIG_ARCH_FOOTBRIDGE is not set
# CONFIG_ARCH_NETX is not set
# CONFIG_ARCH_H720X is not set
# CONFIG_ARCH_IMX is not set
# CONFIG_ARCH_IOP13XX is not set
# CONFIG_ARCH_IOP32X is not set
# CONFIG_ARCH_IOP33X is not set
# CONFIG_ARCH_IXP23XX is not set
# CONFIG_ARCH_IXP2000 is not set
# CONFIG_ARCH_IXP4XX is not set
# CONFIG_ARCH_L7200 is not set
# CONFIG_ARCH_KS8695 is not set
# CONFIG_ARCH_NS9XXX is not set
# CONFIG_ARCH_MXC is not set
# CONFIG_ARCH_PNX4008 is not set
# CONFIG_ARCH_PXA is not set
# CONFIG_ARCH_RPC is not set
# CONFIG_ARCH_SA1100 is not set
# CONFIG_ARCH_S3C2410 is not set
# CONFIG_ARCH_SHARK is not set
# CONFIG_ARCH_LH7A40X is not set
# CONFIG_ARCH_DAVINCI is not set
# CONFIG_ARCH_OMAP is not setCONFIG_ARCH_NP4=y
#
# Boot options
#
#
# Power management
#
#
# Neotion NP4 Boards
#CONFIG_NP4_HZ=1000CONFIG_MACH_NP4PLUS=y
# CONFIG_NP4_UART1 is not set
# CONFIG_SERIAL_NP4_BASIC_CONSOLE is not set
#
# Processor Type
#CONFIG_CPU_32=yCONFIG_CPU_ARM926T=y
CONFIG_CPU_32v5=yCONFIG_CPU_ABRT_EV5TJ=yCONFIG_CPU_PABRT_NOIFAR=yCONFIG_CPU_CACHE_VIVT=yCONFIG_CPU_COPY_V4WB=yCONFIG_CPU_TLB_V4WBI=yCONFIG_CPU_CP15=yCONFIG_CPU_CP15_MMU=y
#
# Processor Features
#
# CONFIG_ARM_THUMB is not set
# CONFIG_CPU_ICACHE_DISABLE is not set
# CONFIG_CPU_DCACHE_DISABLE is not set
# CONFIG_CPU_DCACHE_WRITETHROUGH is not setCONFIG_CPU_CACHE_ROUND_ROBIN=y
# CONFIG_OUTER_CACHE is not set
#
# Bus support
#
# CONFIG_PCI_SYSCALL is not set
# CONFIG_ARCH_SUPPORTS_MSI is not set
#
# Kernel Features
#
# CONFIG_TICK_ONESHOT is not setCONFIG_IPIPE=yCONFIG_IPIPE_DOMAINS=4
# CONFIG_IPIPE_COMPAT is not set
# CONFIG_PREEMPT is not set
# CONFIG_NO_IDLE_HZ is not setCONFIG_HZ=1000
# CONFIG_ARM_ASM_UNIFIED is not setCONFIG_AEABI=yCONFIG_OABI_COMPAT=y
# CONFIG_ARCH_DISCONTIGMEM_ENABLE is not setCONFIG_SELECT_MEMORY_MODEL=yCONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
# CONFIG_SPARSEMEM_MANUAL is not setCONFIG_FLATMEM=yCONFIG_FLAT_NODE_MEM_MAP=y
# CONFIG_SPARSEMEM_STATIC is not set
# CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not setCONFIG_SPLIT_PTLOCK_CPUS=4096
# CONFIG_RESOURCES_64BIT is not setCONFIG_ZONE_DMA_FLAG=1CONFIG_VIRT_TO_BUS=yCONFIG_ALIGNMENT_TRAP=y
#
# Boot options
#CONFIG_ZBOOT_ROM_TEXT=0x0CONFIG_ZBOOT_ROM_BSS=0x0CONFIG_CMDLINE=""
# CONFIG_XIP_KERNEL is not set
# CONFIG_KEXEC is not set
#
# Floating point emulation
#
#
# At least one emulation must be selected
#
# CONFIG_FPE_NWFPE is not set
# CONFIG_FPE_FASTFPE is not set
# CONFIG_VFP is not set
#
# Userspace binary formats
#CONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_AOUT is not set
# CONFIG_BINFMT_MISC is not set
#
# Power management options
#
# CONFIG_PM is not setCONFIG_SUSPEND_UP_POSSIBLE=y
#
# Networking
#
# CONFIG_NET is not set
#
# Device Drivers
#
#
# Generic Driver Options
#CONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_MTD is not set
# CONFIG_PARPORT is not set
# CONFIG_MISC_DEVICES is not set
#
# SCSI device support
#
# CONFIG_SCSI_DMA is not set
# CONFIG_SCSI_NETLINK is not set
#
# Input device support
#CONFIG_INPUT=y
# CONFIG_INPUT_FF_MEMLESS is not set
# CONFIG_INPUT_POLLDEV is not set
#
# Userland interfaces
#
# CONFIG_INPUT_MOUSEDEV is not set
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#
# CONFIG_INPUT_KEYBOARD is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_LIBPS2 is not set
# CONFIG_SERIO_RAW is not set
# CONFIG_GAMEPORT is not set
#
# Character devices
#
# CONFIG_VT is not set
# CONFIG_SERIAL_NONSTANDARD is not set
#
# Serial drivers
#
# CONFIG_SERIAL_8250 is not set
#
# Non-8250 serial port support
#CONFIG_SERIAL_NP4=y
# CONFIG_SERIAL_NP4_CONSOLE is not setCONFIG_SERIAL_CORE=y
# CONFIG_UNIX98_PTYS is not set
# CONFIG_LEGACY_PTYS is not set
# CONFIG_IPMI_HANDLER is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_NVRAM is not set
# CONFIG_R3964 is not set
# CONFIG_TCG_TPM is not set
# CONFIG_I2C is not set
#
# SPI support
#
# CONFIG_SPI is not set
# CONFIG_SPI_MASTER is not set
# CONFIG_W1 is not set
# CONFIG_POWER_SUPPLY is not set
# CONFIG_HWMON is not set
# CONFIG_WATCHDOG is not set
#
# Sonics Silicon Backplane
#CONFIG_SSB_POSSIBLE=y
# CONFIG_SSB is not set
#
# Multifunction device drivers
#
# CONFIG_MFD_SM501 is not set
#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set
# CONFIG_DAB is not set
#
# Graphics support
#
# CONFIG_VGASTATE is not set
# CONFIG_VIDEO_OUTPUT_CONTROL is not set
# CONFIG_FB is not set
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
#
# Display device support
#
# CONFIG_DISPLAY_SUPPORT is not set
#
# Sound
#
# CONFIG_SOUND is not set
# CONFIG_HID_SUPPORT is not set
# CONFIG_USB_SUPPORT is not set
# CONFIG_MMC is not set
# CONFIG_NEW_LEDS is not setCONFIG_RTC_LIB=y
# CONFIG_RTC_CLASS is not set
#
# File systems
#
# CONFIG_INOTIFY is not set
# CONFIG_QUOTA is not set
# CONFIG_DNOTIFY is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_FUSE_FS is not set
#
# Pseudo filesystems
#CONFIG_PROC_FS=y
# CONFIG_PROC_SYSCTL is not set
# CONFIG_SYSFS is not set
# CONFIG_TMPFS is not set
# CONFIG_HUGETLB_PAGE is not set
#
# Miscellaneous filesystems
#
# CONFIG_NLS is not set
# CONFIG_INSTRUMENTATION is not set
#
# Kernel hacking
#
# CONFIG_PRINTK_TIME is not set
# CONFIG_ENABLE_WARN_DEPRECATED is not set
# CONFIG_ENABLE_MUST_CHECK is not set
# CONFIG_MAGIC_SYSRQ is not set
# CONFIG_UNUSED_SYMBOLS is not set
# CONFIG_HEADERS_CHECK is not setCONFIG_IPIPE_DEBUG=yCONFIG_IPIPE_DEBUG_CONTEXT=y
# CONFIG_IPIPE_TRACE is not setCONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_SHIRQ is not set
# CONFIG_DETECT_SOFTLOCKUP is not set
# CONFIG_SCHED_DEBUG is not set
# CONFIG_SCHEDSTATS is not set
# CONFIG_TIMER_STATS is not set
# CONFIG_DEBUG_SLAB is not set
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_RT_MUTEX_TESTER is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_LOCK_ALLOC is not set
# CONFIG_PROVE_LOCKING is not set
# CONFIG_LOCK_STAT is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not setCONFIG_DEBUG_KOBJECT=yCONFIG_DEBUG_BUGVERBOSE=yCONFIG_DEBUG_INFO=yCONFIG_DEBUG_VM=y
# CONFIG_DEBUG_LIST is not set
# CONFIG_DEBUG_SG is not setCONFIG_FRAME_POINTER=yCONFIG_FORCED_INLINING=y
# CONFIG_BOOT_PRINTK_DELAY is not set
# CONFIG_FAULT_INJECTION is not set
# CONFIG_SAMPLES is not setCONFIG_DEBUG_USER=yCONFIG_DEBUG_ERRORS=yCONFIG_DEBUG_LL=y
# CONFIG_DEBUG_ICEDCC is not set
#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY_FILE_CAPABILITIES is not set
# CONFIG_CRYPTO is not set
#
# Library routines
#
# CONFIG_CRC_CCITT is not set
# CONFIG_CRC16 is not set
# CONFIG_CRC_ITU_T is not set
# CONFIG_CRC32 is not set
# CONFIG_CRC7 is not set
# CONFIG_LIBCRC32C is not setCONFIG_PLIST=yCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT=yCONFIG_HAS_DMA=y
begin:vcard
fn:Neil Armstrong
n:Armstrong;Neil
org:Neotion;Neotion Sophia Antipolis email;internet:[email protected] title;quoted-printable:Ing=C3=A9nieur Software Embarqu=C3=A9 tel;cell:0667474169
note:PGP 0x1166F485
version:2.1
end:vcard
Part of the diff is not shown here. View the raw message.
Quoted 9 lines · Neil Armstrong
Hi,
I need to port the actual ipipe 2.6.24 patch for a new arm926ej-s based board for my company.
I followed the wiki's howto and helped myself with the integrator and the s3c24xx patches.
The Soc has 3 decrementers, the arm core is running at 144MHz and the timers has a 256 ticks prescaler (we need 563 ticks to get 1ms).
Quoted 3 lines
I patched the kernel with the arm1 patch (from the ARM website), the board non-rt patch enabling serial and the macb ethernet controller and finnally tried to apply the ipipe arm patch and resolving failures.
At first sight, you call spin_lock_irqsave in __ipipe_mach_set_dec. This is illegal, __ipipe_mach_set_dec may (and will) be called from real-time context, you should be using the _hw variants. I do not know if it is what causes the oops, but it would cause an oops later.
Signature · 1 line
Gilles
Quoted 9 lines · Gilles Chanteperdrix
Quoted 8 lines · Neil Armstrong
Hi,
I need to port the actual ipipe 2.6.24 patch for a new arm926ej-s based board for my company.
I followed the wiki's howto and helped myself with the integrator and the s3c24xx patches.
The Soc has 3 decrementers, the arm core is running at 144MHz and the timers has a 256 ticks prescaler (we need 563 ticks to get 1ms).
I am not sure it makes sense to set the timer auto-reload mode when the timer is used in one-shot mode: imagine that the timer is programmed in one-shot mode, it will tick several time before the interrupt handler is called.
Signature · 1 line
Gilles
First of all, thanks for your aswer,
Quoted 8 lines · Gilles Chanteperdrix
Quoted 3 lines
I patched the kernel with the arm1 patch (from the ARM website), the board non-rt patch enabling serial and the macb ethernet controller and finnally tried to apply the ipipe arm patch and resolving failures.
At first sight, you call
spin_lock_irqsavein__ipipe_mach_set_dec. This is illegal,__ipipe_mach_set_decmay (and will) be called from real-time context, you should be using the_hwvariants. I do not know if it is what causes the oops, but it would cause an oops later.
I based my board patch on integrator's and s3c24xx code and they use spin_lock_irqsave in __ipipe_mach_set_dec, but I found local_irq_save_hw used on an AT91 patch.
Finally the change did nothing, are the integrator and s3c24xx patchs up-to-date ?
Should I drop the arm1 patch from ARM ? and start from a fresh vanilla kernel ?
Quoted 5 lines
I am not sure it makes sense to set the timer auto-reload mode when the timer is used in one-shot mode: imagine that the timer is programmed in one-shot mode, it will tick several time before the interrupt handler is called.
Integrator seems using the timer in one-shot mode and changes the prescaler with the delay value. But won't I loose to much timer ticks between two reloads ?
Neil
Signature · 4 lines
Neil Armstrong Neotion Sophia Antipolis Stagiaire Mars-Septembre 2008 Polytech'Nice-Sophia [email protected] (PGP:0x1166F485)
begin:vcard
fn:Neil Armstrong
n:Armstrong;Neil
org:Neotion;Neotion Sophia Antipolis email;internet:[email protected] title;quoted-printable:Ing=C3=A9nieur Software Embarqu=C3=A9 tel;cell:0667474169
note:PGP 0x1166F485
version:2.1
end:vcard
Quoted 11 lines · Neil Armstrong
First of all, thanks for your aswer,
Quoted 8 lines · Gilles Chanteperdrix
Quoted 3 lines
I patched the kernel with the arm1 patch (from the ARM website), the board non-rt patch enabling serial and the macb ethernet controller and finnally tried to apply the ipipe arm patch and resolving failures.
At first sight, you call
spin_lock_irqsavein__ipipe_mach_set_dec. This is illegal,__ipipe_mach_set_decmay (and will) be called from real-time context, you should be using the_hwvariants. I do not know if it is what causes the oops, but it would cause an oops later.
Quoted 5 lines
I based my board patch on integrator's and s3c24xx code and they use
spin_lock_irqsavein__ipipe_mach_set_dec, but I foundlocal_irq_save_hwused on an AT91 patch.
Finally the change did nothing, are the integrator and s3c24xx patchs up-to-date ?
Yes, it is me that is not up to date. spin_lock_irqsave automatically detects if a vanilla spinlock or an ipipe spinlock is used. So, provided that you defined the spinlock with IPIPE_DEFINE_SPINLOCK, everything should be fine.
Anyway, you should look for an error like that ipipe_restore_root is probably called from non-root domain, and ipipe_restore_root is the function used by local_irq_restore.
Quoted 3 lines
Should I drop the arm1 patch from ARM ? and start from a fresh vanilla kernel ?
Yes, you could try that. Otherwise, you can look for the wrong local_irq_restore by bisecting in the kernel startup code with printks...
Signature · 1 line
Gilles