[U-Boot] [PATCH 0/2] Small Configuration tweaks for rockchip/firefly

Further testing with u-boot on Rockchip revealed that loading the initrd above 512M seems to be problematic (just like with the dtb) and ofcourse that not being able to save the environment is annoying :)
Resolve these things.
Sjoerd Simons (2): rockchip: Also load the initrd below 512M rockchip: firefly: Save the environment on SD card
include/configs/chromebook_jerry.h | 1 + include/configs/firefly-rk3288.h | 8 ++++++++ include/configs/rk3288_common.h | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-)

Similar to load an fdt, when loading an initrd about the 512Mb mark things seem to break. For now force loading below 512Mb until the reason why this fails has been determined/solved.
Signed-off-by: Sjoerd Simons sjoerd.simons@collabora.co.uk ---
include/configs/rk3288_common.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h index e8aec28..400e72c 100644 --- a/include/configs/rk3288_common.h +++ b/include/configs/rk3288_common.h @@ -111,6 +111,7 @@ * limit the fdt reallocation to that */ #define CONFIG_EXTRA_ENV_SETTINGS \ "fdt_high=0x1fffffff\0" \ + "initrd_high=0x1fffffff\0" \ ENV_MEM_LAYOUT_SETTINGS \ BOOTENV #endif

On 18 September 2015 at 22:49, Sjoerd Simons sjoerd.simons@collabora.co.uk wrote:
Similar to load an fdt, when loading an initrd about the 512Mb mark things seem to break. For now force loading below 512Mb until the reason why this fails has been determined/solved.
Signed-off-by: Sjoerd Simons sjoerd.simons@collabora.co.uk
include/configs/rk3288_common.h | 1 + 1 file changed, 1 insertion(+)
Acked-by: Simon Glass sjg@chromium.org

On 3 October 2015 at 08:27, Simon Glass sjg@chromium.org wrote:
On 18 September 2015 at 22:49, Sjoerd Simons sjoerd.simons@collabora.co.uk wrote:
Similar to load an fdt, when loading an initrd about the 512Mb mark things seem to break. For now force loading below 512Mb until the reason why this fails has been determined/solved.
Signed-off-by: Sjoerd Simons sjoerd.simons@collabora.co.uk
include/configs/rk3288_common.h | 1 + 1 file changed, 1 insertion(+)
Acked-by: Simon Glass sjg@chromium.org
Applied to u-boot-rockchip, thanks!

Save the environment on the SD card for Firefly in the empty space between the SPL and the u-boot image.
Signed-off-by: Sjoerd Simons sjoerd.simons@collabora.co.uk
---
include/configs/chromebook_jerry.h | 1 + include/configs/firefly-rk3288.h | 8 ++++++++ include/configs/rk3288_common.h | 1 - 3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/include/configs/chromebook_jerry.h b/include/configs/chromebook_jerry.h index a22b123..058325c 100644 --- a/include/configs/chromebook_jerry.h +++ b/include/configs/chromebook_jerry.h @@ -9,6 +9,7 @@
#include <configs/rk3288_common.h>
+#define CONFIG_ENV_IS_NOWHERE #define CONFIG_SPL_SPI_SUPPORT #define CONFIG_SPL_SPI_FLASH_SUPPORT #define CONFIG_SPL_SPI_LOAD diff --git a/include/configs/firefly-rk3288.h b/include/configs/firefly-rk3288.h index a82adc8..4c5c4dd 100644 --- a/include/configs/firefly-rk3288.h +++ b/include/configs/firefly-rk3288.h @@ -11,4 +11,12 @@
#define CONFIG_SPL_MMC_SUPPORT
+#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_SYS_MMC_ENV_DEV 0 +/* SPL @ 32k for ~36k + * ENV @ 96k + * u-boot @ 128K + */ +#define CONFIG_ENV_OFFSET (96 * 1024) + #endif diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h index 400e72c..5b1653e 100644 --- a/include/configs/rk3288_common.h +++ b/include/configs/rk3288_common.h @@ -11,7 +11,6 @@
#define CONFIG_SYS_NO_FLASH #define CONFIG_NR_DRAM_BANKS 1 -#define CONFIG_ENV_IS_NOWHERE #define CONFIG_ENV_SIZE 0x2000 #define CONFIG_SYS_GENERIC_BOARD #define CONFIG_SYS_MAXARGS 16

On 18 September 2015 at 22:49, Sjoerd Simons sjoerd.simons@collabora.co.uk wrote:
Save the environment on the SD card for Firefly in the empty space between the SPL and the u-boot image.
Signed-off-by: Sjoerd Simons sjoerd.simons@collabora.co.uk
include/configs/chromebook_jerry.h | 1 + include/configs/firefly-rk3288.h | 8 ++++++++ include/configs/rk3288_common.h | 1 - 3 files changed, 9 insertions(+), 1 deletion(-)
Acked-by: Simon Glass sjg@chromium.org

On 3 October 2015 at 08:27, Simon Glass sjg@chromium.org wrote:
On 18 September 2015 at 22:49, Sjoerd Simons sjoerd.simons@collabora.co.uk wrote:
Save the environment on the SD card for Firefly in the empty space between the SPL and the u-boot image.
Signed-off-by: Sjoerd Simons sjoerd.simons@collabora.co.uk
include/configs/chromebook_jerry.h | 1 + include/configs/firefly-rk3288.h | 8 ++++++++ include/configs/rk3288_common.h | 1 - 3 files changed, 9 insertions(+), 1 deletion(-)
Acked-by: Simon Glass sjg@chromium.org
Applied to u-boot-rockchip, thanks!
participants (2)
-
Simon Glass
-
Sjoerd Simons