2018-05-15 11:14:56 +02:00
|
|
|
From db706bed3365f1c03e47cc7f46a0a23462f9ac17 Mon Sep 17 00:00:00 2001
|
2016-04-22 16:25:22 +02:00
|
|
|
From: Alexander Graf <agraf@suse.de>
|
|
|
|
Date: Wed, 13 Apr 2016 13:44:29 +0200
|
2016-07-01 10:00:13 +02:00
|
|
|
Subject: [PATCH] XXX openSUSE XXX: Load dtb from partition 2
|
2016-04-22 16:25:22 +02:00
|
|
|
|
|
|
|
Upstream U-Boot loads the device tree from the EFI partition. This is
|
|
|
|
mostly because upstream we don't know which partition really holds the
|
|
|
|
boot data.
|
|
|
|
|
|
|
|
For openSUSE however we do know, so let's just patch the boot script to
|
|
|
|
load device trees from partition 2.
|
|
|
|
|
|
|
|
Signed-off-by: Alexander Graf <agraf@suse.de>
|
|
|
|
---
|
|
|
|
include/config_distro_bootcmd.h | 6 +++---
|
|
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
|
2018-05-15 11:14:56 +02:00
|
|
|
index 8d5feb3ac7..8ec95574ca 100644
|
2016-04-22 16:25:22 +02:00
|
|
|
--- a/include/config_distro_bootcmd.h
|
|
|
|
+++ b/include/config_distro_bootcmd.h
|
2018-05-15 11:14:56 +02:00
|
|
|
@@ -134,16 +134,16 @@
|
2016-05-02 10:44:17 +02:00
|
|
|
"fi\0" \
|
2016-03-07 13:27:45 +01:00
|
|
|
\
|
|
|
|
"load_efi_dtb=" \
|
|
|
|
- "load ${devtype} ${devnum}:${distro_bootpart} " \
|
2016-05-02 10:44:17 +02:00
|
|
|
+ "load ${devtype} ${devnum}:2 " \
|
|
|
|
"${fdt_addr_r} ${prefix}${efi_fdtfile}\0" \
|
2016-03-07 13:27:45 +01:00
|
|
|
\
|
|
|
|
- "efi_dtb_prefixes=/ /dtb/ /dtb/current/\0" \
|
|
|
|
+ "efi_dtb_prefixes=/ /dtb/ /dtb/current/ /boot/ /boot/dtb/ /boot/dtb/current/\0" \
|
|
|
|
"scan_dev_for_efi=" \
|
2016-05-02 10:44:17 +02:00
|
|
|
"setenv efi_fdtfile ${fdtfile}; " \
|
|
|
|
BOOTENV_EFI_SET_FDTFILE_FALLBACK \
|
2016-03-07 13:27:45 +01:00
|
|
|
"for prefix in ${efi_dtb_prefixes}; do " \
|
|
|
|
"if test -e ${devtype} " \
|
|
|
|
- "${devnum}:${distro_bootpart} " \
|
2016-05-02 10:44:17 +02:00
|
|
|
+ "${devnum}:2 " \
|
|
|
|
"${prefix}${efi_fdtfile}; then " \
|
2016-03-07 13:27:45 +01:00
|
|
|
"run load_efi_dtb; " \
|
|
|
|
"fi;" \
|