diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-11 10:35:24 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-03-26 05:46:30 +0200 |
commit | 0688215f83180fb4a8f1b1a4a192657436751afd (patch) | |
tree | a79f2a0288b10ce68021a9397cb245ec96ac6233 /package/u-boot | |
parent | a64f563f108d74772e62a4f0d4371e2f9ff9ef9f (diff) |
clearfog: add u-boot distro patch
Diffstat (limited to 'package/u-boot')
-rw-r--r-- | package/u-boot/patches/0001-clearfog-enable-distro-boot-code.patch | 67 | ||||
-rw-r--r-- | package/u-boot/patches/patch-include_configs_clearfog_h | 20 |
2 files changed, 67 insertions, 20 deletions
diff --git a/package/u-boot/patches/0001-clearfog-enable-distro-boot-code.patch b/package/u-boot/patches/0001-clearfog-enable-distro-boot-code.patch new file mode 100644 index 000000000..e832287ca --- /dev/null +++ b/package/u-boot/patches/0001-clearfog-enable-distro-boot-code.patch @@ -0,0 +1,67 @@ +diff -Nur u-boot-2016.11.orig/include/configs/clearfog.h u-boot-2016.11/include/configs/clearfog.h +--- u-boot-2016.11.orig/include/configs/clearfog.h 2016-11-14 17:27:11.000000000 +0100 ++++ u-boot-2016.11/include/configs/clearfog.h 2016-12-10 14:47:41.924944284 +0100 +@@ -87,11 +87,6 @@ + + #define CONFIG_SYS_ALT_MEMTEST + +-/* Keep device tree and initrd in lower memory so the kernel can access them */ +-#define CONFIG_EXTRA_ENV_SETTINGS \ +- "fdt_high=0x10000000\0" \ +- "initrd_high=0x10000000\0" +- + /* SPL */ + /* + * Select the boot device here +@@ -139,6 +134,40 @@ + #endif + #endif + ++#ifndef CONFIG_SPL_BUILD ++/* ++ * Add standard bootenv from distro boot code: ++ * Keep device tree and initrd in lower memory so the kernel can access them ++ * Set default load addresses: ++ * - 63MB space for kernel ++ * - 1MB space for fdt ++ * - 1MB space for extlinux file, or boot script ++ * - remainder for ramdisk ++ * Set name of fdt file */ ++#define CONFIG_EXTRA_ENV_SETTINGS \ ++ "kernel_addr_r=0x02000000\0" \ ++ "fdt_addr_r=0x05c14dc0\0" \ ++ "pxefile_addr_r=0x05d09000\0" \ ++ "scriptaddr=0x05d09000\0" \ ++ "ramdisk_addr_r=0x05dfd240\0" \ ++ "fdtfile=armada-388-clearfog.dtb\0" \ ++ BOOTENV ++ ++/* include distro boot code defaults */ ++#include <config_distro_defaults.h> ++ ++/* ++ * specify boot order ++ * sdcard or emmc ++ * sata, usb and network are not supported yet ++ */ ++#define BOOT_TARGET_DEVICES(func) \ ++ func(MMC, mmc, 0) ++ ++/* include the actual distro boot code */ ++#include <config_distro_bootcmd.h> ++#endif ++ + /* + * mv-common.h should be defined after CMD configs since it used them + * to enable certain macros +diff -Nur u-boot-2016.11.orig/Kconfig u-boot-2016.11/Kconfig +--- u-boot-2016.11.orig/Kconfig 2016-11-14 17:27:11.000000000 +0100 ++++ u-boot-2016.11/Kconfig 2016-12-10 14:48:38.293185358 +0100 +@@ -56,6 +56,7 @@ + config DISTRO_DEFAULTS + bool "Select defaults suitable for booting general purpose Linux distributions" + default y if ARCH_SUNXI ++ default y if TARGET_CLEARFOG + default n + select CMD_BOOTZ if ARM && !ARM64 + select CMD_BOOTI if ARM64 diff --git a/package/u-boot/patches/patch-include_configs_clearfog_h b/package/u-boot/patches/patch-include_configs_clearfog_h deleted file mode 100644 index ba8b83a55..000000000 --- a/package/u-boot/patches/patch-include_configs_clearfog_h +++ /dev/null @@ -1,20 +0,0 @@ ---- u-boot-2016.09.orig/include/configs/clearfog.h 2016-09-12 16:05:51.000000000 +0200 -+++ u-boot-2016.09/include/configs/clearfog.h 2016-11-08 05:49:59.000000000 +0100 -@@ -7,6 +7,8 @@ - #ifndef _CONFIG_CLEARFOG_H - #define _CONFIG_CLEARFOG_H - -+#include <config_distro_defaults.h> -+ - /* - * High Level Configuration Options (easy to change) - */ -@@ -151,6 +153,8 @@ - #endif - #endif - -+#include <config_distro_bootcmd.h> -+ - /* - * mv-common.h should be defined after CMD configs since it used them - * to enable certain macros |