From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <50B65491.60005@xenomai.org> Date: Wed, 28 Nov 2012 19:14:41 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 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> <8230f5b2d86c368c49f1ce75ce93d097@isir.upmc.fr> In-Reply-To: <8230f5b2d86c368c49f1ce75ce93d097@isir.upmc.fr> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: WONG Sheng Chao Cc: xenomai@xenomai.org On 11/28/2012 06:40 PM, WONG Sheng Chao wrote: > On Wed, 28 Nov 2012 16:12:58 +0100, WONG Sheng Chao wrote: >> 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? > > Refering to this, > > http://www.xenomai.org/pipermail/xenomai/2012-May/025838.html > > I believe that i should be put a printk in the function > ipipe_mach_acktimer, as it is called when the linux timer interrupt, but > I after checking in these files, i still couldn't find it. ipipe_mach_acktimer disappeared, it is in the pre I-pipe core patches. The documentation for the I-pipe core patches on the ARM architecture is here: http://www.xenomai.org/index.php/I-pipe-core:ArmPorting The linux timer interrupt handler given as example in this documentation is "omap2_gp_timer_interrupt" function, and is probably the same for your omap3 derivative. -- Gilles.