mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +00:00
arm: rpi: Switch to standard boot
Drop use of the distro scripts and use standard boot instead. We don't need to specify the mmc devices individually, since they are used in order from 0 to 2, and standard boot uses that order anyway. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8999257f21
commit
c771e5b8c2
10 changed files with 11 additions and 36 deletions
|
@ -12,6 +12,7 @@ CONFIG_DEFAULT_DEVICE_TREE="bcm2835-rpi-zero-w"
|
||||||
CONFIG_SYS_PROMPT="U-Boot> "
|
CONFIG_SYS_PROMPT="U-Boot> "
|
||||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||||
CONFIG_SYS_LOAD_ADDR=0x1000000
|
CONFIG_SYS_LOAD_ADDR=0x1000000
|
||||||
|
CONFIG_BOOTSTD_DEFAULTS=y
|
||||||
CONFIG_OF_BOARD_SETUP=y
|
CONFIG_OF_BOARD_SETUP=y
|
||||||
CONFIG_DISTRO_DEFAULTS=y
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
CONFIG_USE_PREBOOT=y
|
CONFIG_USE_PREBOOT=y
|
||||||
|
|
|
@ -13,6 +13,7 @@ CONFIG_DEFAULT_DEVICE_TREE="bcm2836-rpi-2-b"
|
||||||
CONFIG_SYS_PROMPT="U-Boot> "
|
CONFIG_SYS_PROMPT="U-Boot> "
|
||||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||||
CONFIG_SYS_LOAD_ADDR=0x1000000
|
CONFIG_SYS_LOAD_ADDR=0x1000000
|
||||||
|
CONFIG_BOOTSTD_DEFAULTS=y
|
||||||
CONFIG_OF_BOARD_SETUP=y
|
CONFIG_OF_BOARD_SETUP=y
|
||||||
CONFIG_DISTRO_DEFAULTS=y
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
CONFIG_USE_PREBOOT=y
|
CONFIG_USE_PREBOOT=y
|
||||||
|
|
|
@ -12,6 +12,7 @@ CONFIG_DEFAULT_DEVICE_TREE="bcm2837-rpi-3-b"
|
||||||
CONFIG_SYS_PROMPT="U-Boot> "
|
CONFIG_SYS_PROMPT="U-Boot> "
|
||||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||||
CONFIG_SYS_LOAD_ADDR=0x1000000
|
CONFIG_SYS_LOAD_ADDR=0x1000000
|
||||||
|
CONFIG_BOOTSTD_DEFAULTS=y
|
||||||
CONFIG_OF_BOARD_SETUP=y
|
CONFIG_OF_BOARD_SETUP=y
|
||||||
CONFIG_DISTRO_DEFAULTS=y
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
CONFIG_USE_PREBOOT=y
|
CONFIG_USE_PREBOOT=y
|
||||||
|
|
|
@ -11,6 +11,7 @@ CONFIG_DEFAULT_DEVICE_TREE="bcm2837-rpi-3-b-plus"
|
||||||
CONFIG_SYS_PROMPT="U-Boot> "
|
CONFIG_SYS_PROMPT="U-Boot> "
|
||||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||||
CONFIG_SYS_LOAD_ADDR=0x1000000
|
CONFIG_SYS_LOAD_ADDR=0x1000000
|
||||||
|
CONFIG_BOOTSTD_DEFAULTS=y
|
||||||
CONFIG_OF_BOARD_SETUP=y
|
CONFIG_OF_BOARD_SETUP=y
|
||||||
CONFIG_DISTRO_DEFAULTS=y
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
CONFIG_USE_PREBOOT=y
|
CONFIG_USE_PREBOOT=y
|
||||||
|
|
|
@ -11,6 +11,7 @@ CONFIG_DEFAULT_DEVICE_TREE="bcm2837-rpi-3-b"
|
||||||
CONFIG_SYS_PROMPT="U-Boot> "
|
CONFIG_SYS_PROMPT="U-Boot> "
|
||||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||||
CONFIG_SYS_LOAD_ADDR=0x1000000
|
CONFIG_SYS_LOAD_ADDR=0x1000000
|
||||||
|
CONFIG_BOOTSTD_DEFAULTS=y
|
||||||
CONFIG_OF_BOARD_SETUP=y
|
CONFIG_OF_BOARD_SETUP=y
|
||||||
CONFIG_DISTRO_DEFAULTS=y
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
CONFIG_USE_PREBOOT=y
|
CONFIG_USE_PREBOOT=y
|
||||||
|
|
|
@ -10,6 +10,7 @@ CONFIG_SYS_PROMPT="U-Boot> "
|
||||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||||
CONFIG_DM_RESET=y
|
CONFIG_DM_RESET=y
|
||||||
CONFIG_SYS_LOAD_ADDR=0x1000000
|
CONFIG_SYS_LOAD_ADDR=0x1000000
|
||||||
|
CONFIG_BOOTSTD_DEFAULTS=y
|
||||||
CONFIG_PCI=y
|
CONFIG_PCI=y
|
||||||
CONFIG_OF_BOARD_SETUP=y
|
CONFIG_OF_BOARD_SETUP=y
|
||||||
CONFIG_DISTRO_DEFAULTS=y
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
|
|
|
@ -10,6 +10,7 @@ CONFIG_SYS_PROMPT="U-Boot> "
|
||||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||||
CONFIG_DM_RESET=y
|
CONFIG_DM_RESET=y
|
||||||
CONFIG_SYS_LOAD_ADDR=0x1000000
|
CONFIG_SYS_LOAD_ADDR=0x1000000
|
||||||
|
CONFIG_BOOTSTD_DEFAULTS=y
|
||||||
CONFIG_PCI=y
|
CONFIG_PCI=y
|
||||||
CONFIG_OF_BOARD_SETUP=y
|
CONFIG_OF_BOARD_SETUP=y
|
||||||
CONFIG_DISTRO_DEFAULTS=y
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
|
|
|
@ -10,6 +10,7 @@ CONFIG_SYS_PROMPT="U-Boot> "
|
||||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||||
CONFIG_DM_RESET=y
|
CONFIG_DM_RESET=y
|
||||||
CONFIG_SYS_LOAD_ADDR=0x1000000
|
CONFIG_SYS_LOAD_ADDR=0x1000000
|
||||||
|
CONFIG_BOOTSTD_DEFAULTS=y
|
||||||
CONFIG_PCI=y
|
CONFIG_PCI=y
|
||||||
CONFIG_OF_BOARD_SETUP=y
|
CONFIG_OF_BOARD_SETUP=y
|
||||||
CONFIG_DISTRO_DEFAULTS=y
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
|
|
|
@ -12,6 +12,7 @@ CONFIG_DEFAULT_DEVICE_TREE="bcm2835-rpi-b"
|
||||||
CONFIG_SYS_PROMPT="U-Boot> "
|
CONFIG_SYS_PROMPT="U-Boot> "
|
||||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||||
CONFIG_SYS_LOAD_ADDR=0x1000000
|
CONFIG_SYS_LOAD_ADDR=0x1000000
|
||||||
|
CONFIG_BOOTSTD_DEFAULTS=y
|
||||||
CONFIG_OF_BOARD_SETUP=y
|
CONFIG_OF_BOARD_SETUP=y
|
||||||
CONFIG_DISTRO_DEFAULTS=y
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
CONFIG_USE_PREBOOT=y
|
CONFIG_USE_PREBOOT=y
|
||||||
|
|
|
@ -122,47 +122,13 @@
|
||||||
"fdt_addr_r=0x02600000\0" \
|
"fdt_addr_r=0x02600000\0" \
|
||||||
"ramdisk_addr_r=0x02700000\0"
|
"ramdisk_addr_r=0x02700000\0"
|
||||||
|
|
||||||
#if IS_ENABLED(CONFIG_CMD_MMC)
|
#define BOOT_TARGETS "mmc usb pxe dhcp"
|
||||||
#define BOOT_TARGET_MMC(func) \
|
|
||||||
func(MMC, mmc, 0) \
|
|
||||||
func(MMC, mmc, 1) \
|
|
||||||
func(MMC, mmc, 2)
|
|
||||||
#else
|
|
||||||
#define BOOT_TARGET_MMC(func)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if IS_ENABLED(CONFIG_CMD_USB)
|
|
||||||
#define BOOT_TARGET_USB(func) func(USB, usb, 0)
|
|
||||||
#else
|
|
||||||
#define BOOT_TARGET_USB(func)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(CMD_PXE)
|
|
||||||
#define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
|
|
||||||
#else
|
|
||||||
#define BOOT_TARGET_PXE(func)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(CMD_DHCP)
|
|
||||||
#define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
|
|
||||||
#else
|
|
||||||
#define BOOT_TARGET_DHCP(func)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define BOOT_TARGET_DEVICES(func) \
|
|
||||||
BOOT_TARGET_MMC(func) \
|
|
||||||
BOOT_TARGET_USB(func) \
|
|
||||||
BOOT_TARGET_PXE(func) \
|
|
||||||
BOOT_TARGET_DHCP(func)
|
|
||||||
|
|
||||||
#include <config_distro_bootcmd.h>
|
|
||||||
|
|
||||||
#define CFG_EXTRA_ENV_SETTINGS \
|
#define CFG_EXTRA_ENV_SETTINGS \
|
||||||
"dhcpuboot=usb start; dhcp u-boot.uimg; bootm\0" \
|
"dhcpuboot=usb start; dhcp u-boot.uimg; bootm\0" \
|
||||||
ENV_DEVICE_SETTINGS \
|
ENV_DEVICE_SETTINGS \
|
||||||
ENV_DFU_SETTINGS \
|
ENV_DFU_SETTINGS \
|
||||||
ENV_MEM_LAYOUT_SETTINGS \
|
ENV_MEM_LAYOUT_SETTINGS \
|
||||||
BOOTENV
|
"boot_targets=" BOOT_TARGETS "\0"
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue