From fc4a8b0b15ad88dd941d94794857446f1e2ce393 Mon Sep 17 00:00:00 2001 From: Eugene Smirnov Date: Fri, 23 Nov 2018 13:49:14 +0100 Subject: Add a patch for u-boot-ota to work with qemu Change-Id: Ia49a74134cc1262fcbc7e6aa9a8cdc69a37b8e7b Signed-off-by: Eugene Smirnov --- ...AM-memory-from-area-mapped-to-ROM-in-QEMU.patch | 41 ++++++++++++++++++++++ .../recipes-bsp/u-boot/u-boot-ota_2015.07.bb | 1 + 2 files changed, 42 insertions(+) create mode 100644 meta-agl-bsp/recipes-bsp/u-boot/u-boot-ota/0003-U-Boot-Move-Cache-As-RAM-memory-from-area-mapped-to-ROM-in-QEMU.patch diff --git a/meta-agl-bsp/recipes-bsp/u-boot/u-boot-ota/0003-U-Boot-Move-Cache-As-RAM-memory-from-area-mapped-to-ROM-in-QEMU.patch b/meta-agl-bsp/recipes-bsp/u-boot/u-boot-ota/0003-U-Boot-Move-Cache-As-RAM-memory-from-area-mapped-to-ROM-in-QEMU.patch new file mode 100644 index 000000000..a6e9757c8 --- /dev/null +++ b/meta-agl-bsp/recipes-bsp/u-boot/u-boot-ota/0003-U-Boot-Move-Cache-As-RAM-memory-from-area-mapped-to-ROM-in-QEMU.patch @@ -0,0 +1,41 @@ +From patchwork Fri Nov 10 17:51:02 2017 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +Subject: [U-Boot] Move Cache-As-RAM memory from area mapped to ROM in QEMU +X-Patchwork-Submitter: Anton Gerasimov +X-Patchwork-Id: 836810 +X-Patchwork-Delegate: bmeng.cn@gmail.com +Message-Id: <20171110175102.21746-1-anton@advancedtelematic.com> +To: u-boot@lists.denx.de, + bmeng.cn@gmail.com +Date: Fri, 10 Nov 2017 18:51:02 +0100 +From: Anton Gerasimov +List-Id: U-Boot discussion + +ROM has been made read-only in qemu recently (namely commit +208fa0e43645edd0b0d8f838857dfc79daff40a8), so this patch restores +compatibility between u-boot and qemu. It is still broken for me +unless I set CONFIG_SMP=n and disable lapic (i.e. revert patch +aaaa55751ab1e5a5cfa0962d604593a7e6f33ff6 in u-boot), but these are +separate issues + +Signed-off-by: Anton Gerasimov +Tested-by: Heinrich Schuchardt +--- + arch/x86/cpu/qemu/Kconfig | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/x86/cpu/qemu/Kconfig b/arch/x86/cpu/qemu/Kconfig +index 6808c9a6b9..f4b9922a34 100644 +--- a/arch/x86/cpu/qemu/Kconfig ++++ b/arch/x86/cpu/qemu/Kconfig +@@ -11,7 +11,7 @@ if QEMU + + config SYS_CAR_ADDR + hex +- default 0xd0000 ++ default 0x10000 + + config SYS_CAR_SIZE + hex diff --git a/meta-agl-bsp/recipes-bsp/u-boot/u-boot-ota_2015.07.bb b/meta-agl-bsp/recipes-bsp/u-boot/u-boot-ota_2015.07.bb index 37abc5a50..9b7dca5bc 100644 --- a/meta-agl-bsp/recipes-bsp/u-boot/u-boot-ota_2015.07.bb +++ b/meta-agl-bsp/recipes-bsp/u-boot/u-boot-ota_2015.07.bb @@ -14,6 +14,7 @@ SRC_URI = "\ file://0001-Set-up-environment-for-OSTree-integration.patch \ file://0002-Replace-wraps-with-built-in-code-to-remove-dependenc.patch \ file://0001-fixup-build-with-gcc6.patch \ + file://0003-U-Boot-Move-Cache-As-RAM-memory-from-area-mapped-to-ROM-in-QEMU.patch \ " S = "${WORKDIR}/git" -- cgit 1.2.3-korg