From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: Problems when creating domU on OMAP5 Date: Tue, 17 Sep 2013 12:47:35 +0100 Message-ID: <52384157.1020803@linaro.org> References: <20130916131828.GA15286@cbz-workstation> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130916131828.GA15286@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 Developer List List-Id: xen-devel@lists.xenproject.org On 09/16/2013 02:18 PM, Chen Baozi wrote: > Hi all, > > I tried to create a domU on OMAP5 today. But it seems there are still some > problems to solve before I can successfully creat it. > > I first cloned Julien's arndale-domU-3.9 branch which mentioned in wiki. > Then I modified gic addresses xenvm-4.2.dts to meet OMAP5432 requirement: > > --- a/arch/arm/boot/dts/xenvm-4.2.dts > +++ b/arch/arm/boot/dts/xenvm-4.2.dts > @@ -49,13 +49,13 @@ > reg = <0 0x80000000 0 0x08000000>; > }; > > - gic: interrupt-controller@2c001000 { > + gic: interrupt-controller@48211000 { > compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic"; > #interrupt-cells = <3>; > #address-cells = <0>; > interrupt-controller; > - reg = <0 0x10481000 0 0x1000>, > - <0 0x10482000 0 0x100>; > + reg = <0 0x48211000 0 0x1000>, > + <0 0x48212000 0 0x1000>; > }; > > timer { > > And make the kernel image as wiki said: > > $ cat arch/arm/boot/zImage arch/arm/boot/xenvm-4.2.dtb > image > > Write a config file used by xl like: > > kernel = "/root/domU/image" > memory = "128" > name = "domU" > vcpus = 1 > disk = [ 'phy:/dev/loop0,xvda,w' ] > > Setup loop device: > > $ losetup /dev/loop0 /root/domU/xen-arm.img > > which xen-arm.img is the a bootable rootfs. > > Finally I execute xl to create the domU: > > $ sudo xl create -f config -d Can you to copy the output in pastebin of the following command? xl -vvv create -f config -d > Parsing config from config > unable to format domain config as JSON (YAJL:1) > [ 80.685264] Failed to unmap pfn:9bce5 rc:-2 > [ 80.691741] Failed to unmap pfn:9e7da rc:-2 > [ 80.696310] Failed to unmap pfn:9bce5 rc:-2 > [ 80.702494] Failed to unmap pfn:9ba57 rc:-2 > [ 80.706932] Failed to unmap pfn:9bce3 rc:-2 > [ 80.718394] Failed to unmap pfn:9bce2 rc:-2 Xen is unable to unmap some pages from the dom0 memory because the page owner is the guest. You will be able to boot but the memory will be lost for ever. > libxl: error: libxl_device.c:894:device_backend_callback: unable to add device with path /local/domain/0/backend/vbd/1/51712 > libxl: error: libxl_create.c:932:domcreate_launch_dm: unable to add disk devices > libxl: error: libxl_device.c:894:device_backend_callback: unable to remove device with path /local/domain/0/backend/vbd/1/51712 > libxl: error: libxl.c:1451:devices_destroy_cb: libxl__devices_destroy failed for 1 > (XEN) mm.c:1092:d0 gnttab_mark_dirty not implemented yet the gnttab_mark_dirty is only a warning. Nothing bad should happen. -- Julien Grall