Boot from MMC and PXE SiFive FU540

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
This commit is contained in:
David Abdurachmanov 2019-08-27 01:07:02 -07:00
parent aaf7235ecb
commit c2f204c668
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
4 changed files with 18 additions and 4 deletions

View File

@ -9,12 +9,12 @@ index 74743a5e..2e1f7fa9 100644
+CONFIG_USE_PREBOOT=y
+CONFIG_PREBOOT="setenv fdt_addr ${fdtcontroladdr}; fdt addr ${fdtcontroladdr};"
diff --git a/configs/sifive_fu540_defconfig b/configs/sifive_fu540_defconfig
index f1920374..5ff8e099 100644
index 48865e5f..a8525793 100644
--- a/configs/sifive_fu540_defconfig
+++ b/configs/sifive_fu540_defconfig
@@ -9,3 +9,5 @@ CONFIG_DISPLAY_CPUINFO=y
@@ -9,3 +9,5 @@ CONFIG_MISC_INIT_R=y
CONFIG_DISPLAY_CPUINFO=y
CONFIG_DISPLAY_BOARDINFO=y
CONFIG_MISC_INIT_R=y
CONFIG_OF_PRIOR_STAGE=y
+CONFIG_USE_PREBOOT=y
+CONFIG_PREBOOT="setenv fdt_addr ${fdtcontroladdr}; fdt addr ${fdtcontroladdr};"

13
fu540-boot-mmc-pxe.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/include/configs/sifive-fu540.h b/include/configs/sifive-fu540.h
index ba4aa065..7eedc765 100644
--- a/include/configs/sifive-fu540.h
+++ b/include/configs/sifive-fu540.h
@@ -26,6 +26,8 @@
#define CONFIG_ENV_SIZE SZ_128K
#define BOOT_TARGET_DEVICES(func) \
+ func(MMC, mmc, 0) \
+ func(PXE, pxe, na) \
func(DHCP, dhcp, na)
#include <config_distro_bootcmd.h>

View File

@ -1 +1 @@
SHA512 (u-boot-2019.10-rc2.tar.bz2) = 5a9173a1bd945736c8e0c1797b4c8fdd9833fc4e04d6b0e562c2018884da9bc10c110231b690450fb2761e19cd19ab24fc8744000c901f416ba2936c8278799e
SHA512 (u-boot-2019.10-rc3.tar.bz2) = 598a6637fdbd62f30a3c4f73f0e89022c6c92b9ec93f4c4215547f54493ff17b2a0b127328ad6e1561e451b3cddca89f168f8adfe4cc59f8125fc70787d8cf4c

View File

@ -30,6 +30,7 @@ Patch9: arm-tegra-defaine-fdtfile-for-all-devices.patch
Patch20: fix-extlinux-kconfig-preboot.patch
Patch21: env-fix-build-error-for-envtools.patch
Patch22: fu540-boot-mmc-pxe.patch
BuildRequires: bc
BuildRequires: dtc