]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: nx25: Enable distro boot
authorAlexander Graf <agraf@suse.de>
Mon, 23 Apr 2018 05:59:49 +0000 (07:59 +0200)
committerAndes <uboot@andestech.com>
Tue, 29 May 2018 06:43:12 +0000 (14:43 +0800)
Distro boot allows for a common boot path on systems that allow distributions
to easily boot from a default configuration.

This patch enables distro boot for the nx25-ae250. Hopefully this can serve
as a good example for new boards, so they enable it as well.

Signed-off-by: Alexander Graf <agraf@suse.de>
configs/nx25-ae250_defconfig
include/configs/nx25-ae250.h

index 42507755a6bc3960defd793b99a19f1083a14d01..0c9f19ad37f2daaf0710d3aa22220912c20f7da0 100644 (file)
@@ -38,3 +38,4 @@ CONFIG_DM_SPI=y
 CONFIG_ATCSPI200_SPI=y
 CONFIG_TIMER=y
 CONFIG_ATCPIT100_TIMER=y
+CONFIG_DISTRO_DEFAULTS=y
index 930cdbd4e40bde0157079978ba3cc9e1a1986f84..a5948c433342d50e39754afc125c1ef6742ed8e8 100644 (file)
 /* Increase max gunzip size */
 #define CONFIG_SYS_BOOTM_LEN   (64 << 20)
 
+/* When we use RAM as ENV */
+#define CONFIG_ENV_SIZE 0x2000
+
+/* Enable distro boot */
+#define BOOT_TARGET_DEVICES(func) \
+       func(MMC, mmc, 0) \
+       func(DHCP, dhcp, na)
+#include <config_distro_bootcmd.h>
+
+#define CONFIG_EXTRA_ENV_SETTINGS      \
+                               "kernel_addr_r=0x00080000\0" \
+                               "pxefile_addr_r=0x01f00000\0" \
+                               "scriptaddr=0x01f00000\0" \
+                               "fdt_addr_r=0x02000000\0" \
+                               "ramdisk_addr_r=0x02800000\0" \
+                               BOOTENV
+
 #endif /* __CONFIG_H */