[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] How to boot xen using U-Boot for ARM64

Hi, Ian

2015-09-24 15:08 GMT+08:00 Ian Campbell <ian.campbell@xxxxxxxxxx>:
On Thu, 2015-09-24 at 14:18 +0800, Peng Fan wrote:
> Hi,
> I am porting xen to an ARM64 platform, but I found that file `xen` is
> "MS-DOS executable, MZ for MS-DOS"Â which means xen is an efi app?
> For now, I only have uboot run, have not ported uefi. Is efi is a
> must for xen ARM64?

The arm64 Xen binary is both a valid PE (UEFI) application _and_ a
normal kernel image which can be booted frmo uboot using
bootm/bootz/booti etc.

Thanks. I can see the outputs from xen using booti. But I saw that the entry text_offset and image_size of the Image_header are 0. Is this correct?

xen's start address is 0x80200000.

The physical dram address starts from 0x80000000 to 0xC0000000 - 1.

To uboot, since text_offset is 0 andÂih->image_size is 0.
"dst = gd->bd->bi_dram[0].start + le32_to_cpu(ih->text_offset);"
booti code will copy xen from 0x80200000 to 0x80000000. Now I hacked this to not do this to let xen stays at physical address 0x80200000.


(The same is true of e.g. Linux kernel images on arm64 BTW, it just so
happens that the signatures and magic metadata for both formats do not
interfere with each other, which is very convenient!)

> How can I using uboot to boot xen for ARM64?

Booting Xen from u-boot is described in the wiki, I suggest you start


Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.