mirror of
https://xff.cz/git/u-boot/
synced 2025-09-29 06:21:15 +02:00
riscv: nx25: Enable distro boot
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>
This commit is contained in:
@@ -38,3 +38,4 @@ CONFIG_DM_SPI=y
|
|||||||
CONFIG_ATCSPI200_SPI=y
|
CONFIG_ATCSPI200_SPI=y
|
||||||
CONFIG_TIMER=y
|
CONFIG_TIMER=y
|
||||||
CONFIG_ATCPIT100_TIMER=y
|
CONFIG_ATCPIT100_TIMER=y
|
||||||
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
|
@@ -104,4 +104,21 @@
|
|||||||
/* Increase max gunzip size */
|
/* Increase max gunzip size */
|
||||||
#define CONFIG_SYS_BOOTM_LEN (64 << 20)
|
#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 */
|
#endif /* __CONFIG_H */
|
||||||
|
Reference in New Issue
Block a user