From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Cc: meta-virtualization@lists.yoctoproject.org,
mark.hatle@kernel.crashing.org
Subject: Re: [meta-virtualization][master][scarthgap][styhead][PATCH 4/6] u-boot-xlnx-scr: Include xen-boot-env if BOOTMODE is xen
Date: Thu, 21 Nov 2024 04:42:55 +0000 [thread overview]
Message-ID: <Zz66Tw7AuYZ5eTpC@gmail.com> (raw)
In-Reply-To: <20241119051203.3841577-5-sandeep.gundlupet-raju@amd.com>
In message: [meta-virtualization][master][scarthgap][styhead][PATCH 4/6] u-boot-xlnx-scr: Include xen-boot-env if BOOTMODE is xen
on 18/11/2024 Sandeep Gundlupet Raju wrote:
> Include xen-boot-env.inc file if BOOTMODE="xen" and also remove xen
> u-boot boot script variables from xen-boot-cmd.inc.
Is the BOOMODE variable documented somewhere ? In the main
uboot recipes ?
Bruce
>
> Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
> ---
> .../u-boot/u-boot-xlnx-scr.bbappend | 7 +++-
> .../recipes-bsp/u-boot/xen-boot-cmd.inc | 35 -------------------
> 2 files changed, 6 insertions(+), 36 deletions(-)
>
> diff --git a/dynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend b/dynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend
> index ec64d246..4e39c316 100644
> --- a/dynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend
> +++ b/dynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend
> @@ -1,4 +1,9 @@
> -# Include xen-boot-cmd.inc only if ENABLE_XEN_UBOOT_SCR is set from configuration
> +# Include xen-boot-cmd.inc only if BOOTMODE = "xen" is set from configuration
> # file and xen enabled in DISTRO_FEATURES.
> +include ${@'xen-boot-env.inc' if d.getVar('BOOTMODE') == 'xen' and bb.utils.contains('DISTRO_FEATURES', 'xen', True, False, d) else ''}
> +
> +# Include xen-boot-cmd.inc only if ENABLE_XEN_UBOOT_SCR is set from configuration
> +# file and xen enabled in DISTRO_FEATURES. xen-boot-cmd.inc is supports multiple
> +# boot modes such as JTAG and SD(ext4 and ramdisk).
> ENABLE_XEN_UBOOT_SCR ?= ""
> include ${@'xen-boot-cmd.inc' if d.getVar('ENABLE_XEN_UBOOT_SCR') == '1' and bb.utils.contains('DISTRO_FEATURES', 'xen', True, False, d) else ''}
> diff --git a/dynamic-layers/xilinx/recipes-bsp/u-boot/xen-boot-cmd.inc b/dynamic-layers/xilinx/recipes-bsp/u-boot/xen-boot-cmd.inc
> index 7a4e41a6..6fccc7b4 100644
> --- a/dynamic-layers/xilinx/recipes-bsp/u-boot/xen-boot-cmd.inc
> +++ b/dynamic-layers/xilinx/recipes-bsp/u-boot/xen-boot-cmd.inc
> @@ -1,38 +1,3 @@
> FILESEXTRAPATHS:append := ":${THISDIR}/u-boot-xlnx-scr"
>
> SRC_URI += "file://boot.cmd.xen"
> -
> -# Image offsets for Xen boot
> -KERNEL_OFFSET:zynqmp ?= "0xE00000"
> -KERNEL_OFFSET:versal ?= "0xE00000"
> -
> -DEVICETREE_OFFSET:zynqmp ?= "0xC000000"
> -DEVICETREE_OFFSET:versal ?= "0xC000000"
> -
> -RAMDISK_OFFSET:zynqmp ?= "0x2600000"
> -RAMDISK_OFFSET:versal ?= "0x2600000"
> -
> -XEN_OFFSET:zynqmp ?= "0xBA00000"
> -XEN_OFFSET:versal ?= "0xBA00000"
> -XEN_LOAD_ADDRESS ?= "${@append_baseaddr(d,d.getVar('XEN_OFFSET'))}"
> -
> -# If dom0-ramdisk is used for Xen boot then set RAMDISK image to cpio.gz
> -XEN_IMAGE_NAME ?= "xen"
> -RAMDISK_IMAGE ?= "rootfs.cpio.gz"
> -
> -# Set the amount of memory for dom0 depending on total available memory size(DDR).
> -DOM0_MEM ?= "1500M"
> -
> -# Specify which UART console Xen should use. You can sepecify the devicetree
> -# alias or full path to a node in the devicetree
> -# XEN_SERIAL_CONSOLES ?= "serial0" or XEN_SERIAL_CONSOLES ?= "/axi/serial@ff000000"
> -XEN_SERIAL_CONSOLES ?= "serial0"
> -
> -# Specify additional Xen paramaters which will be appended to xen-bootargs
> -# This can alos be used for debugging purposes.
> -# Examples: XEN_CMDLINE_APPEND ?= "sched=credit loglvl=all guest_loglvl=debug"
> -XEN_CMDLINE_APPEND ?= ""
> -
> -# Specify the max number of vcpus for dom0
> -# Example usage: DOM0_MAX_VCPUS = "2" or DOM0_MAX_VCPUS = "2-4"
> -DOM0_MAX_VCPUS ?= "1"
> --
> 2.34.1
>
next prev parent reply other threads:[~2024-11-21 4:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-19 5:11 [meta-virtualization][master][scarthgap][styhead][PATCH 0/6] Add bbclass for xen boot script variables Sandeep Gundlupet Raju
2024-11-19 5:11 ` [meta-virtualization][master][PATCH 1/6] xen-u-boot-scr: " Sandeep Gundlupet Raju
2024-11-21 4:40 ` Bruce Ashfield
2024-11-21 16:30 ` Gundlupet Raju, Sandeep
[not found] ` <180A08C7C2D5332A.23999@lists.yoctoproject.org>
2024-11-21 17:40 ` Gundlupet Raju, Sandeep
2024-11-21 18:24 ` Bruce Ashfield
2024-11-19 5:11 ` [meta-virtualization][master][PATCH 2/6] xen-rpi-u-boot-scr: Inherit xen-u-boot-scr bbclass Sandeep Gundlupet Raju
2024-11-19 5:12 ` [meta-virtualization][master][scarthgap][styhead][PATCH 3/6] xen-boot-env: Move xen variables to inc file Sandeep Gundlupet Raju
2024-11-19 5:12 ` [meta-virtualization][master][scarthgap][styhead][PATCH 4/6] u-boot-xlnx-scr: Include xen-boot-env if BOOTMODE is xen Sandeep Gundlupet Raju
2024-11-21 4:42 ` Bruce Ashfield [this message]
2024-11-21 16:28 ` Gundlupet Raju, Sandeep
2024-11-21 16:46 ` Bruce Ashfield
2024-11-21 17:44 ` Gundlupet Raju, Sandeep
2024-11-19 5:12 ` [meta-virtualization][master][scarthgap][styhead][PATCH 5/6] boot.cmd.xen: Add load address to echo messages Sandeep Gundlupet Raju
2024-11-19 5:12 ` [meta-virtualization][master][PATCH 6/6] xen-boot-env.inc: Inherit xen-u-boot-scr bbclass Sandeep Gundlupet Raju
2024-11-21 4:44 ` [meta-virtualization][master][scarthgap][styhead][PATCH 0/6] Add bbclass for xen boot script variables Bruce Ashfield
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=Zz66Tw7AuYZ5eTpC@gmail.com \
--to=bruce.ashfield@gmail.com \
--cc=mark.hatle@kernel.crashing.org \
--cc=meta-virtualization@lists.yoctoproject.org \
--cc=sandeep.gundlupet-raju@amd.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.