Re: [Xen-devel] ARM bare metal application test

2016-05-10 Thread Wei Liu
On Mon, May 09, 2016 at 05:59:09PM +, Ivan Pavić2 wrote: > Hello, > > > I don't think toolstack tries to load kernel to that guest physical > > address -- reading from Ivan's log it suggests toolstack loaded the > > kernel to 0x40008000. > > > That (0x8000800) is the address set in PC, right?

Re: [Xen-devel] ARM bare metal application test

2016-05-10 Thread Wei Liu
On Mon, May 09, 2016 at 06:57:13PM +0100, Julien Grall wrote: > > > On 09/05/16 18:39, Wei Liu wrote: > >On Mon, May 09, 2016 at 05:47:38PM +0100, Julien Grall wrote: > >> > >> > >>On 09/05/16 17:43, Ivan Pavić2 wrote: > >>>Hello Julien, > >> > >>Hello Ivan, > >> > >>> > >>>Julien Grall wrote: >

[Xen-devel] ARM bare metal application test

2016-05-09 Thread Ivan Pavić2
Hello, > I don't think toolstack tries to load kernel to that guest physical > address -- reading from Ivan's log it suggests toolstack loaded the > kernel to 0x40008000. > That (0x8000800) is the address set in PC, right? I don't think > toolstack is in a position to sanitise that nor should it

Re: [Xen-devel] ARM bare metal application test

2016-05-09 Thread Julien Grall
On 09/05/16 18:39, Wei Liu wrote: On Mon, May 09, 2016 at 05:47:38PM +0100, Julien Grall wrote: On 09/05/16 17:43, Ivan Pavić2 wrote: Hello Julien, Hello Ivan, Julien Grall wrote: Guest are booting with MMU disabled, so 0x80008000 will be the physical address. The toolstack will lo

Re: [Xen-devel] ARM bare metal application test

2016-05-09 Thread Wei Liu
On Mon, May 09, 2016 at 05:47:38PM +0100, Julien Grall wrote: > > > On 09/05/16 17:43, Ivan Pavić2 wrote: > >Hello Julien, > > Hello Ivan, > > > > >Julien Grall wrote: > >>Guest are booting with MMU disabled, so 0x80008000 will be the physical > >>address. > > > >>The toolstack will load the ke

[Xen-devel] ARM bare metal application test

2016-05-09 Thread Ivan Pavić2
Hello Julien, Julien Grall wrote: > Guest are booting with MMU disabled, so 0x80008000 will be the physical > address. > The toolstack will load the kernel at this physical address. However, > the start of the guest RAM for Xen 4.7 is 0x4000 (see > include/public/arch-arm.h). Can you try to

Re: [Xen-devel] ARM bare metal application test

2016-05-09 Thread Julien Grall
On 09/05/16 17:43, Ivan Pavić2 wrote: Hello Julien, Hello Ivan, Julien Grall wrote: Guest are booting with MMU disabled, so 0x80008000 will be the physical address. The toolstack will load the kernel at this physical address. However, the start of the guest RAM for Xen 4.7 is 0x400

Re: [Xen-devel] ARM bare metal application test

2016-05-09 Thread Julien Grall
Hello Ivan, On 09/05/16 11:29, Ivan Pavić2 wrote: Julien Grail wrote: You can dump the registers of a vCPU with xenctx. $PREFIX/lib/xen/bin/xenctx domid $PREFIX is the path where xen tools have been installed (i.e --prefix on the configure). The default path is /usr/local/ Thanks for a

Re: [Xen-devel] ARM bare metal application test

2016-05-09 Thread Konrad Rzeszutek Wilk
On Mon, May 09, 2016 at 10:29:09AM +, Ivan Pavić2 wrote: > Julien Grail wrote: > > > You can dump the registers of a vCPU with xenctx. > > > $PREFIX/lib/xen/bin/xenctx domid > > > $PREFIX is the path where xen tools have been installed (i.e --prefix on > > the configure). The default path is

[Xen-devel] ARM bare metal application test

2016-05-09 Thread Ivan Pavić2
Julien Grail wrote: > You can dump the registers of a vCPU with xenctx. > $PREFIX/lib/xen/bin/xenctx domid > $PREFIX is the path where xen tools have been installed (i.e --prefix on > the configure). The default path is /usr/local/ Thanks for advice. I discovered that the PC has value 0x0C and

Re: [Xen-devel] ARM bare metal application test

2016-05-09 Thread Julien Grall
On 09/05/2016 09:34, Ivan Pavić2 wrote: Hello, Hello Ivan, I'm trying to build simple bare metal application on ARM Cortex A7. I reached the phase in which I successfully created domain. Now, I would like to check if application is really running (it runs according xl list). But i need some

[Xen-devel] ARM bare metal application test

2016-05-09 Thread Ivan Pavić2
Hello, I'm trying to build simple bare metal application on ARM Cortex A7. I reached the phase in which I successfully created domain. Now, I would like to check if application is really running (it runs according xl list). But i need some simple interaction or at least console output. So far thi