xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@de.bosch.com>
To: Julien Grall <julien.grall@arm.com>
Cc: Andre Przywara <andre.przywara@arm.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Dirk Behme <dirk.behme@gmail.com>,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH v2] xen: arm64: Add support for Renesas RCar Gen3 H3 Salvator-X platform
Date: Thu, 7 Jul 2016 12:39:49 +0200	[thread overview]
Message-ID: <0e1bfe86-f711-241b-ac8e-a64476e3e17a@de.bosch.com> (raw)
In-Reply-To: <577D13E8.7040805@arm.com>

Hi Julien,

On 06.07.2016 16:21, Julien Grall wrote:
>
>
> On 06/07/16 15:03, Dirk Behme wrote:
>> On 06.07.2016 15:17, Julien Grall wrote:
>>> Hi Dirk,
>>>
>>> On 06/07/16 07:33, Dirk Behme wrote:
>>>> Could you share the U-Boot commands how you load and esp. start Xen?
>>>> For
>>>> loading you use TFTP? How do you start Xen with U-Boot, then? I
>>>> think we
>>>> have to pass the device tree address in x0 and the Linux kernel image
>>>> address in x2. How do you do this with an U-Boot command?
>>>
>>> U-boot can load Xen from TFTP or from the SD-card. This is the same as
>>> booting a baremetal kernel with U-boot.
>>>
>>> There is a section on the wiki page to explain how to create the
>>> device-tree node for the boot modules [1] and the allwinner page [2]
>>> gives a full example how to boot Xen with U-boot via tftp (Note that it
>>> could easily be adapted to load from the SD-Card).
>>>
>>> Regards,
>>>
>>> [1]
>>> http://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions#Boot_Modules
>>>
>>>
>>>
>>> [2]
>>> http://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/Allwinner#Boot_script
>>>
>>>
>>
>>
>> Hmm, sorry, I still seem to miss anything :(
>>
>> I've loaded xen/xen with U-Boot to 0x4A000000 and then try to start it
>> as described in [2] above:
>>
>> => bootz 0x4A000000 - 0x48000000
>> Bad Linux ARM zImage magic!
>>
>> I'm not sure why xen/xen is assumed to be a zImage?
>
> Oh, sorry I meant to say that bootz should be replaced by booti but
> forgot to write it down.


Ok, thanks, booti does work [1].


Most probably just cosmetics, but again our friend image_size:

Image lacks image_size field, assuming 16MiB

Is there any special reason why we don't write the image size to the xen 
header?

Or should we try to fix it? E.g. like the Linux kernel is doing it?

Best regards

Dirk

[1]

=> booti 0x48000000 - 0x4A000000
Image lacks image_size field, assuming 16MiB
## Flattened Device Tree blob at 4a000000
    Booting using the fdt blob at 0x4a000000
    Using Device Tree in place at 000000004a000000, end 000000004a00c767

Starting kernel ...

- UART enabled -
- CPU 00000000 booting -
- Current EL 00000008 -
- Xen starting at EL2 -
- Zero BSS -
- Setting up control registers -
- Turning on paging -
- Ready -
(XEN) Checking for initrd in /chosen
....

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2016-07-07 10:39 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-05  6:37 [PATCH v2] xen: arm64: Add support for Renesas RCar Gen3 H3 Salvator-X platform Dirk Behme
2016-07-05 11:39 ` Julien Grall
2016-07-05 12:09   ` Dirk Behme
2016-07-05 12:45     ` Julien Grall
2016-07-05 13:04       ` Dirk Behme
2016-07-05 13:34         ` Julien Grall
2016-07-05 13:45           ` Andre Przywara
2016-07-05 14:22             ` Dirk Behme
2016-07-05 14:29               ` Andre Przywara
2016-07-06  6:33                 ` Dirk Behme
2016-07-06 13:17                   ` Julien Grall
2016-07-06 14:03                     ` Dirk Behme
2016-07-06 14:21                       ` Julien Grall
2016-07-07 10:39                         ` Dirk Behme [this message]
2016-07-07 10:46                           ` Julien Grall
2016-07-08 11:38                 ` Dirk Behme
2016-07-11  9:25                   ` Andre Przywara
2016-07-11 10:15                     ` Dirk Behme
2016-07-05 13:04     ` Stefano Stabellini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0e1bfe86-f711-241b-ac8e-a64476e3e17a@de.bosch.com \
    --to=dirk.behme@de.bosch.com \
    --cc=andre.przywara@arm.com \
    --cc=dirk.behme@gmail.com \
    --cc=julien.grall@arm.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).