odroid-c2: Enable distro boot

Use the generic "distro" boot framework to enable automatic DHCP boot.
MMC and USB are not yet implemented, so this is the only boot option.

The fdt and kernel addresses are adopted from downstream; ramdisk and
scriptaddr addresses were chosen arbitrarily.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Andreas Färber
2017-01-15 20:22:30 +01:00
committed by Tom Rini
parent 8c9bfc47ed
commit 70b8bd7d3b
4 changed files with 17 additions and 1 deletions

View File

@@ -39,4 +39,18 @@
#include <config_distro_defaults.h>
#define BOOT_TARGET_DEVICES(func) \
func(DHCP, dhcp, na)
#include <config_distro_bootcmd.h>
#define CONFIG_EXTRA_ENV_SETTINGS \
"fdt_addr_r=0x01000000\0" \
"scriptaddr=0x1f000000\0" \
"kernel_addr_r=0x01080000\0" \
"pxefile_addr_r=0x01080000\0" \
"ramdisk_addr_r=0x10000000\0" \
MESON_FDTFILE_SETTING \
BOOTENV
#endif /* __MESON_GXBB_COMMON_CONFIG_H */

View File

@@ -14,6 +14,8 @@
#define CONFIG_CONS_INDEX 0
#define CONFIG_BAUDRATE 115200
#define MESON_FDTFILE_SETTING "fdtfile=amlogic/meson-gxbb-odroidc2.dtb\0"
#include <configs/meson-gxbb-common.h>
#endif /* __CONFIG_H */