MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 28 Nov 2012 16:12:58 +0100 From: WONG Sheng Chao In-Reply-To: <50B4FFBE.20204@xenomai.org> References: <04934a1da80b9542fe5e0375b07d3663@isir.upmc.fr> <50AF48DA.9010200@xenomai.org> <80c97c7c58b1c913fd0fb2ec83a86b3d@isir.upmc.fr> <50AFA44E.4070506@xenomai.org> <50AFB64E.4030702@xenomai.org> <50B4FFBE.20204@xenomai.org> Message-ID: Subject: Re: [Xenomai] Compiling I-pipe patched kernel on beaglebone from Angstrom branch List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai@xenomai.org On Tue, 27 Nov 2012 19:00:30 +0100, Gilles Chanteperdrix wrote: > On 11/27/2012 05:40 PM, WONG Sheng Chao wrote: >> Hi Gilles >> >> Following your advice i tracked down the include files which need to >> be >> included to remove the error. The kernel now compiles without >> errors. I >> followed the instructions in >> >> http://www.xenomai.org/pipermail/xenomai/2012-July/000481.html >> >> to change the timer.c and also changing the .handle_irq with >> ipipe_handle_multi_irq >> >> From the serial terminal i noticed that with CONFIG_IPIPE = ON the >> timer is used correctly as in the above post but it hangs at > > Are you sure the timer is running correctly? > > >> Any advice on how to proceed to debug this problem? I attach the >> config files of two cases for your reference. > > I would put a printk in linux timer irq handler. How should i come about debugging the timer irq handler? Looking at the arch/arm/mach-omap2/timer.c i would think the timer handler is omap_itimer.irq ? But i am not sure how to verify it. As for the omap_intc_handle_irq in arch/arm/mach-omap2/irq.c here is my function which i used from the vender static inline void omap_intc_handle_irq(void __iomem *base_addr,unsigned int no_regs_req, struct pt_regs *regs) { u32 irqnr = 0; do { int i = 0; for (i = 0; i < no_regs_req; i++) { irqnr = readl_relaxed(base_addr + 0x98 + (0x20 * i)); if (irqnr) goto out; } out: if (!irqnr) break; irqnr = readl_relaxed(base_addr + INTCPS_SIR_IRQ_OFFSET); irqnr &= ACTIVEIRQ_MASK; if (irqnr) { // handle_IRQ(irqnr, regs); ipipe_handle_multi_irq(irqnr, regs); //This is where i added the ipipe_handle_multi_irq } } while (irqnr); } Is this the right place for it? -WONG