All of lore.kernel.org
 help / color / mirror / Atom feed
From: abdellatif.elkhlifi@arm.com
To: meta-arm@lists.yoctoproject.org, Ross.Burton@arm.com
Cc: nd@arm.com, Satish Kumar <satish.kumar01@arm.com>
Subject: [PATCH 08/11] arm-bsp/u-boot: patch to change kernel flash address
Date: Fri,  3 Dec 2021 12:28:58 +0000	[thread overview]
Message-ID: <20211203122901.3549-9-abdellatif.elkhlifi@arm.com> (raw)
In-Reply-To: <20211203122901.3549-1-abdellatif.elkhlifi@arm.com>

From: Satish Kumar <satish.kumar01@arm.com>

More space in the flash is reserved up front for metadata
parser and UEFI variables. That requires change in the flash
base address of where images are present.

Change-Id: I2d23d06099ffbf15458afaeb21c5dd4bcc4ffecb
Signed-off-by: Satish Kumar <satish.kumar01@arm.com>
---
 ...nge-base-address-of-kernel-in-the-fl.patch | 47 +++++++++++++++++++
 .../recipes-bsp/u-boot/u-boot_%.bbappend      |  1 +
 2 files changed, 48 insertions(+)
 create mode 100644 meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0031-corstone1000-change-base-address-of-kernel-in-the-fl.patch

diff --git a/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0031-corstone1000-change-base-address-of-kernel-in-the-fl.patch b/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0031-corstone1000-change-base-address-of-kernel-in-the-fl.patch
new file mode 100644
index 0000000..c9bbab1
--- /dev/null
+++ b/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0031-corstone1000-change-base-address-of-kernel-in-the-fl.patch
@@ -0,0 +1,47 @@
+Upstream-Status: Pending [Not submitted to upstream yet]
+Signed-off-by: Satish Kumar <satish.kumar01@arm.com>
+
+From 1e76c4b70c8539c56b4b9ae6b8fd415d811a1812 Mon Sep 17 00:00:00 2001
+From: Satish Kumar <satish.kumar01@arm.com>
+Date: Wed, 1 Dec 2021 19:04:59 +0000
+Subject: [PATCH] corstone1000: change base address of kernel in the flash
+
+More space in the flash is reserved up front for metadata
+parser and UEFI variables. That requires change in the flash
+base address of where images are present.
+
+Signed-off-by: Satish Kumar <satish.kumar01@arm.com>
+---
+ include/configs/corstone1000.h | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/include/configs/corstone1000.h b/include/configs/corstone1000.h
+index bb3b099806..baa0720fb5 100644
+--- a/include/configs/corstone1000.h
++++ b/include/configs/corstone1000.h
+@@ -94,16 +94,16 @@
+     func(USB, usb, 0)
+ #include <config_distro_bootcmd.h>
+ #define CONFIG_EXTRA_ENV_SETTINGS				\
+-                BOOTENV                         \
+-                "usb_pgood_delay=250\0"         \
++				BOOTENV                         \
++				"usb_pgood_delay=250\0"         \
+ 				"fdt_addr_r=0x82000000\0"		\
+-				"kernel_addr=0x08330000\0"		\
++				"kernel_addr=0x083EE000\0"		\
+ 				"kernel_addr_r=0x88200000\0"	\
+ 				"fdt_high=0xffffffff\0"
+-#define CONFIG_BOOTCOMMAND					            \
++#define CONFIG_BOOTCOMMAND					\
+ 				"echo Loading Kernel to memory ... ;"   \
+ 				"loadm $kernel_addr $kernel_addr_r 0xc00000;" \
+-                "usb start; usb reset;" \
+-                "run distro_bootcmd;" \
++				"usb start; usb reset;" \
++				"run distro_bootcmd;" \
+ 				"bootefi $kernel_addr_r $fdtcontroladdr;"
+ #endif
+-- 
+2.17.1
+
diff --git a/meta-arm-bsp/recipes-bsp/u-boot/u-boot_%.bbappend b/meta-arm-bsp/recipes-bsp/u-boot/u-boot_%.bbappend
index 6d731bd..5caddc7 100644
--- a/meta-arm-bsp/recipes-bsp/u-boot/u-boot_%.bbappend
+++ b/meta-arm-bsp/recipes-bsp/u-boot/u-boot_%.bbappend
@@ -40,6 +40,7 @@ SRC_URI:append:corstone1000 = " \
       file://0028-arm-corstone1000-fix-unrecognized-filesystem-type-error.patch \
       file://0029-corstone1000-set-CONFIG_PSCI_RESET.patch \
       file://0030-arm-bsp-u-boot-corstone1000-Implement-autoboot-script.patch \
+      file://0031-corstone1000-change-base-address-of-kernel-in-the-fl.patch \
       "
 
 #
-- 
2.17.1



  parent reply	other threads:[~2021-12-03 12:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-03 12:28 [PATCH 00/11] Corstone1000: platform specific patches for u-boot, trusted firmware-a, trusted firmware-m abdellatif.elkhlifi
2021-12-03 12:28 ` [PATCH 01/11] arm-bsp/u-boot: corstone1000: Enable SMM gateway abdellatif.elkhlifi
2021-12-03 12:28 ` [PATCH 02/11] arm-bsp/u-boot: corstone1000: Fix ISP1760 EFI boot issue abdellatif.elkhlifi
2021-12-03 12:28 ` [PATCH 03/11] arm-bsp/u-boot: corstone1000: Enable PSCI Reset abdellatif.elkhlifi
2021-12-03 12:28 ` [PATCH 04/11] arm-bsp/trusted firmware-a: corstone1000: implement EFI reset system abdellatif.elkhlifi
2021-12-03 12:28 ` [PATCH 05/11] arm-bsp/u-boot: corstone1000: Implement autoboot storage device selection abdellatif.elkhlifi
2021-12-03 12:28 ` [PATCH 06/11] arm-bsp/trusted-firmware-m: corstone1000: firmware update changes abdellatif.elkhlifi
2021-12-03 12:28 ` [PATCH 07/11] arm-bsp/trusted-firmware-a: patch to change flash base address of FIP abdellatif.elkhlifi
2021-12-03 12:28 ` abdellatif.elkhlifi [this message]
2021-12-03 12:28 ` [PATCH 09/11] arm-bsp/trusted-firmware-a: patch to identify which bank to load fip from abdellatif.elkhlifi
2021-12-03 12:29 ` [PATCH 10/11] arm-bsp/u-boot: identify which bank to load kernel from abdellatif.elkhlifi
2021-12-03 12:29 ` [PATCH 11/11] kas: corstone1000: update SE binary sizes abdellatif.elkhlifi
2021-12-03 15:24 ` [PATCH 00/11] Corstone1000: platform specific patches for u-boot, trusted firmware-a, trusted firmware-m Jon Mason

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=20211203122901.3549-9-abdellatif.elkhlifi@arm.com \
    --to=abdellatif.elkhlifi@arm.com \
    --cc=Ross.Burton@arm.com \
    --cc=meta-arm@lists.yoctoproject.org \
    --cc=nd@arm.com \
    --cc=satish.kumar01@arm.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.