configs: Enable distroboot on am625
TI boards use a custom (though faily common to TI boards) mechanism for booting Linux. We would like to use the "distroboot" approach. Enable distroboot as a further option to use for booting on am625 should the existing options fail. Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
This commit is contained in:
parent
7c34b71a42
commit
83f5195e32
@ -23,7 +23,7 @@ CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000
|
|||||||
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
|
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
|
||||||
CONFIG_SPL_LOAD_FIT=y
|
CONFIG_SPL_LOAD_FIT=y
|
||||||
CONFIG_SPL_LOAD_FIT_ADDRESS=0x81000000
|
CONFIG_SPL_LOAD_FIT_ADDRESS=0x81000000
|
||||||
CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern"
|
CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern; setenv fdtfile ti/${name_fdt}; run distro_bootcmd"
|
||||||
CONFIG_SPL_MAX_SIZE=0x58000
|
CONFIG_SPL_MAX_SIZE=0x58000
|
||||||
CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
|
CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
|
||||||
CONFIG_SPL_BSS_START_ADDR=0x80a00000
|
CONFIG_SPL_BSS_START_ADDR=0x80a00000
|
||||||
|
@ -15,6 +15,29 @@
|
|||||||
/* DDR Configuration */
|
/* DDR Configuration */
|
||||||
#define CFG_SYS_SDRAM_BASE1 0x880000000
|
#define CFG_SYS_SDRAM_BASE1 0x880000000
|
||||||
|
|
||||||
|
#ifdef CONFIG_CMD_MMC
|
||||||
|
#define DISTRO_BOOT_DEV_MMC(func) func(MMC, mmc, 0) func(MMC, mmc, 1)
|
||||||
|
#else
|
||||||
|
#define DISTRO_BOOT_DEV_MMC(func)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_CMD_PXE
|
||||||
|
#define DISTRO_BOOT_DEV_PXE(func) func(PXE, pxe, na)
|
||||||
|
#else
|
||||||
|
#define DISTRO_BOOT_DEV_PXE(func)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_CMD_DHCP
|
||||||
|
#define DISTRO_BOOT_DEV_DHCP(func) func(DHCP, dhcp, na)
|
||||||
|
#else
|
||||||
|
#define DISTRO_BOOT_DEV_DHCP(func)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define BOOT_TARGET_DEVICES(func) \
|
||||||
|
DISTRO_BOOT_DEV_MMC(func) \
|
||||||
|
DISTRO_BOOT_DEV_PXE(func) \
|
||||||
|
DISTRO_BOOT_DEV_DHCP(func)
|
||||||
|
|
||||||
#define PARTS_DEFAULT \
|
#define PARTS_DEFAULT \
|
||||||
/* Linux partitions */ \
|
/* Linux partitions */ \
|
||||||
"name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}\0"
|
"name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}\0"
|
||||||
@ -59,7 +82,8 @@
|
|||||||
DEFAULT_LINUX_BOOT_ENV \
|
DEFAULT_LINUX_BOOT_ENV \
|
||||||
DEFAULT_MMC_TI_ARGS \
|
DEFAULT_MMC_TI_ARGS \
|
||||||
EXTRA_ENV_AM625_BOARD_SETTINGS \
|
EXTRA_ENV_AM625_BOARD_SETTINGS \
|
||||||
EXTRA_ENV_AM625_BOARD_SETTINGS_MMC
|
EXTRA_ENV_AM625_BOARD_SETTINGS_MMC \
|
||||||
|
BOOTENV
|
||||||
|
|
||||||
/* Now for the remaining common defines */
|
/* Now for the remaining common defines */
|
||||||
#include <configs/ti_armv7_common.h>
|
#include <configs/ti_armv7_common.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user