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

Re: Request for Documentation on Bringing Up Xen on R-Car H3e (H3ULCB)


  • To: "L, John Preetham (893)" <john_preetham.l@xxxxxxxxxxxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Tue, 6 May 2025 11:21:42 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=M45di3iSaRMQXjpi/0MmGxQEPbRVX08J3En+WQrth2A=; b=GtrZ9Tn0xt3HUWqzP8f9LDYXEFYPSNVkMr2EuwvV6Wme22FUzpGK5lsbrlRCrkvHh2DjcGmwGr9XZs+iKr10kg75pm9bGIZiHtkKfjTW3c2msT+kGap1X4vn0E6u1WYN/OBUNzwYqSxfTfLTMDrZGWR3qZ0nrhzVYVBtlNTtReTcJUJLk0hq0ZaFpTrqiyrN5f0HODASBSzNRo/XEn9jn+CQBRxD9L0vfE5R12isuXQVl4+LASSjnTISbNelYP6AG7sZ0Coi+pU6GrkDtkEPGOowAXMQZiWzT4pLdVIwZDIebwJAiapjbu8CZNWWmqEZ8lAQDCFxoqVbw3uAfkoIpQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WjwERvgh0zYWf1BggqY3tir3F9hrXvwIuO9xmObWgVFFHW7I+QA9jpG7SxmNWkzYKUXuBD+uF+H3dKLaNC75uWl20KdYZGPjBcHs0SaIFfb+ZT8UZzC7kefLHu9IIh3VjgflY0GgzW7iPuKhWiWdOK/kCQZy0y+ozffLWK9QISkYFr74VzSqrMA4axjj2GrJN8wdKmRpjqSDbIwRocM5t/VgqDr0XD19iSm8VcWERbq3++ByAlgXDmvhOJkl5YRBxmbi1uVnBRFuvbxH1+LlPprubA+RGk+FRsX6g84jAOoR7buM5E92S0CI0ibvhnPcQkXGwkUN+sYiNA/ffNN9oA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Ruslan Shymkevych <Ruslan_Shymkevych@xxxxxxxx>
  • Delivery-date: Tue, 06 May 2025 11:21:52 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AdtsrjaU74AF3fZpR/+NK9h56D1xZg==
  • Thread-topic: Request for Documentation on Bringing Up Xen on R-Car H3e (H3ULCB)

Hi John,

"L, John Preetham (893)" <john_preetham.l@xxxxxxxxxxxxxxxx> writes:

> Hi Volodymyr,
>
> Thank you once again for the detailed explanation and the helpful resources.
>
> With your guidance, I was able to bring up the XEN hypervisor on the R-Car 
> H3e board successfully. I really appreciate your support.
>

I glad that it worked.

> Now, I'm looking to move forward with bringing up a QNX guest on the
> XEN hypervisor.

If your QNX guest supports arm64 boot protocol (which is defined at [1])
and supports either Xen HVC console or SBSA (pl011-ish) UART - you can just
boot it by providing kernel= option in your domain configuration file.

This at least should give you access to guest's serial console, which is
a good starting point to further bring-up.

> Could you please share the procedure or steps you
> recommend for this?

If I'd did this, I'd done this in the following way:

1. Check that QNX kernel image is compatible with aarch64 boot
protocol. Most of projects (Linux kernel, Xen, U-boot, etc) use it and
it become de-facto standard, so probably QNX should support it too. But
if not - you'll need another loader to boot QNX. We have Xen-enabled
U-Boot, by the way.

2. Boot QNX kernel and get serial console working. As I said, - either via
HVC or SBSA. This is crucial, as you need some feedback from your guest
to understand what going on.

3. Boot rest of QNX environment. See what is working, fix things that
don't :) It would be great if QNX supports Xen PV drivers for block
and network devices, otherwise, you'll have to use virtio or
pass-through, which is somewhat more difficult to configure.

> It would also be very helpful if you could provide
> an example Device Tree Source (DTS) and

If you are not doing real device passthrough (and I recommend to
postpone this until you'll get your guest running) - you don't need any
DTS files. Xen toolstack will generate all the required DTS entries
automatically for the given configuration.

> XEN domain configuration (CFG)
> file for the QNX guest, if available.

No, we don't have any. We had experience with QNX guests, but that was
really long time ago and I don't think that any data survived. Anyways,
I recommend checking manual on xl.cfg ([2]).

Please note, that if you want to use SBSA uart, you need to enable it in
your configuration file. It should be vuart = "sbsa_uart", I
believe. Also, you'll have to run xl console with additional arguments
to make it access SBSA uart console, not default HVC one.

[1] 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/arch/arm64/booting.rst?h=v6.15-rc5
[2] https://xenbits.xen.org/docs/unstable/man/xl.cfg.5.html

-- 
WBR, Volodymyr


 


Rackspace

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