From: Chen Baozi Subject: Re: Problems when booting on OMAP5432 devboard Date: Mon, 1 Jul 2013 20:32:05 +0800 Message-ID: References: <20130627115553.GA4918@cbz-workstation> <1372335001.7996.7.camel@zakaz.uk.xensource.com> <20130701035413.GA12358@cbz-workstation> <1372668616.14691.35.camel@zakaz.uk.xensource.com> <4A3B65D6-D82D-44AB-8135-4F86A189ECA2@gmail.com> <1372671036.14691.49.camel@zakaz.uk.xensource.com> <1372672679.14691.50.camel@zakaz.uk.xensource.com> <92525597-A6A4-4B90-B497-18BD40A875D3@gmail.com> <1372678297.14691.61.camel@zakaz.uk.xensource.com> <46544C0F-F507-4DF3-8182-427D6A54687C@gmail.com> <1372680387.14691.62.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1372680387.14691.62.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-arm@lists.xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Jul 1, 2013, at 8:06 PM, Ian Campbell wrote: > On Mon, 2013-07-01 at 20:00 +0800, Chen Baozi wrote: > >>> You device has 2GB RAM, what happens if you hack the DTS to say it only >>> has 1GB? >> >> Bingo! Compared to Arndale board, OMAP5432 uEVM's RAM is not yet 0x40000000~0xbfffffff, but 0x80000000~0xffffffff. After make the following change to DTS: >> >> memory { >> device_type = "memory" >> - reg = <0x80000000 0x80000000>; /* 2 GB */ >> + reg = <0x80000000 0x40000000>; /* 1 GB */ >> }; >> >> I can reach the output "Xen heap: 131072 pages Dom heap: 131072 pages". > > Excellent! > > So I guess if you keep the 2GB but put it at the right address it will > also work? I'm afraid no, :-( Here is how I load and boot the image both in 1GB case and 2G case (from u-boot): OMAP5430 EVM # fatload mmc 0 0x80000000 xen-uImage reading xen-uImage 902572 bytes read in 59 ms (14.6 MiB/s) OMAP5430 EVM # bootm 0x80000000 - ## Booting kernel from Legacy Image at 80000000 ... Image Name: Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 902508 Bytes = 881.4 KiB Load Address: 80200000 Entry Point: 80200000 Verifying Checksum ... OK Loading Kernel Image ... OK OK And I've also tried "fat load mmc 0 0x90000000 xen-uImage" in both cases. It works for 1GB but fails in 2GB case too. Something wrong? Cheers, Baozi.