From: Ian Campbell Subject: Re: Problems when booting on OMAP5432 devboard Date: Thu, 27 Jun 2013 13:10:01 +0100 Message-ID: <1372335001.7996.7.camel@zakaz.uk.xensource.com> References: <20130627115553.GA4918@cbz-workstation> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130627115553.GA4918@cbz-workstation> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Chen Baozi Cc: xen-arm@lists.xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2013-06-27 at 19:55 +0800, Chen Baozi wrote: > Hi Ian, > > After enabling the UART, I have been tring to finish the rest of booting. > However, the output information stops at "Placing Xen at XXXX-XXXX" like > following: > > Starting kernel ... > > - UART enabled - > - CPU 00000000 booting - > - Machine ID 00000ec1 - > - Started in Hyp mode - > - Zero BSS - > - Setting up control registers - > - Turning on paging - > - Ready - > RAM: 0000000080000000 - 00000000ffffffff > > MODULE[1]: 00000000a0000000 - 00000000a0400000 > Placing Xen at 0x00000000ffe00000-0x0000000100000000 > > What could be the most possible problem of this case? This is a about the point where we would shift from early_printk to the proper console driver, so I expect you simply don't have the console setup. On your hypervisor command line you need a "dtuart=" where is a name for the serial device you want to use (e.g. on vexpress I use "dtuart=serial3" where the dts has "serial3 = &v2m_serial3" in the aliases node). You will also need a DT enabled driver for that device. If the OMAP5432 is 8250 like then xen/drivers/char/ns16550.c might be suitable but it will need the Device Tree init hooked up, e.g. a DT_DEVICE_START given the appropriate hooks, see xen/drivers/char/pl011.c for an example. The ns16550 case is interesting because it is shared with the x86 stuff, but it ought to be possible to make it work either for DT (ARM) or via the arch code (x86, hardcoded addresses or command line specification). Ian.