Date: Fri, 14 Nov 2014 11:28:33 +0100 From: Gilles Chanteperdrix Message-ID: <20141114102833.GF4656@sisyphus.hd.free.fr> References: <20141113145115.GD4656@sisyphus.hd.free.fr> <37845582.117817940.1415960100507.JavaMail.root@zimbra90-e16.priv.proxad.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37845582.117817940.1415960100507.JavaMail.root@zimbra90-e16.priv.proxad.net> Subject: Re: [Xenomai] IMX kernel 3.0.35_4.1.0 + adeos-ipipe-3.0.43-mx6q-1.18-14 -> very slow boot List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tbultel@free.fr Cc: nicolas Mabire , xenomai@xenomai.org On Fri, Nov 14, 2014 at 11:15:00AM +0100, tbultel@free.fr wrote: > Gilles, it has taken time (about 3 hours), but I finally got > a backtrace with IPIPE_DEBUG: (I have disabled > CONFIG_IPIPE_TRACE_VMALLOC) Normally CONFIG_IPIPE_TRACE_VMALLOC is required on ARM. kmalloc fails to allocate large enough areas, which causes the kernel to fail booting. > > Before the trace went to the serial console, I saw that there were no more timer irq > on 2 CPUs (my ssh session froze). Some 3 or 4 seconds later it came up. > Not clear to me why there are only 100 points, because I have CONFIG_IPIPE_TRACE_SHIFT=14 You have to write the number of back_trace_points you want to /proc/ipipe/trace/back_trace_points Also your trace contains a lot of writing to the console, you should move the ipipe_trace_panic_freeze to before any console output. Also note that the UART being slow, a lot of trace points will take a lot of time to print out. You may want to enable the tracer verbose mode to have the timestamps. -- Gilles.