2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2012-06-05 11:33:17 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2012 Michael Walle
|
|
|
|
* Michael Walle <michael@walle.cc>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _CONFIG_LSXL_H
|
|
|
|
#define _CONFIG_LSXL_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* General configuration options
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "mv-common.h"
|
|
|
|
|
2015-02-08 19:06:07 +00:00
|
|
|
/* loading initramfs images without uimage header */
|
|
|
|
|
2012-06-05 11:33:17 +00:00
|
|
|
/*
|
|
|
|
* Environment variables configurations
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Default environment variables
|
|
|
|
*/
|
2014-04-01 18:09:14 +00:00
|
|
|
|
|
|
|
#if defined(CONFIG_LSXHL)
|
|
|
|
#define CONFIG_FDTFILE "kirkwood-lsxhl.dtb"
|
|
|
|
#elif defined(CONFIG_LSCHLV2)
|
|
|
|
#define CONFIG_FDTFILE "kirkwood-lschlv2.dtb"
|
|
|
|
#else
|
|
|
|
#error "Unsupported board"
|
|
|
|
#endif
|
|
|
|
|
2012-06-05 11:33:17 +00:00
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
2014-04-01 18:09:14 +00:00
|
|
|
"bootsource=legacy\0" \
|
2012-06-05 11:33:17 +00:00
|
|
|
"hdpart=0:1\0" \
|
2014-04-01 18:09:14 +00:00
|
|
|
"kernel_addr=0x00800000\0" \
|
|
|
|
"ramdisk_addr=0x01000000\0" \
|
2015-02-08 19:06:06 +00:00
|
|
|
"fdt_addr=0x00ff0000\0" \
|
2019-04-03 21:28:31 +00:00
|
|
|
"bootcmd_legacy=sata init " \
|
|
|
|
"&& load sata ${hdpart} ${kernel_addr} /uImage.buffalo "\
|
|
|
|
"&& load sata ${hdpart} ${ramdisk_addr} /initrd.buffalo "\
|
2015-02-08 19:06:05 +00:00
|
|
|
"&& bootm ${kernel_addr} ${ramdisk_addr}\0" \
|
2015-02-08 19:06:07 +00:00
|
|
|
"bootcmd_net=bootp ${kernel_addr} vmlinuz " \
|
|
|
|
"&& tftpboot ${ramdisk_addr} initrd.img " \
|
|
|
|
"&& setenv ramdisk_len ${filesize} " \
|
2014-04-01 18:09:14 +00:00
|
|
|
"&& tftpboot ${fdt_addr} " CONFIG_FDTFILE " " \
|
2015-02-08 19:06:07 +00:00
|
|
|
"&& bootz ${kernel_addr} " \
|
|
|
|
"${ramdisk_addr}:${ramdisk_len} ${fdt_addr}\0" \
|
2019-04-03 21:28:31 +00:00
|
|
|
"bootcmd_hdd=sata init " \
|
|
|
|
"&& load sata ${hdpart} ${kernel_addr} /vmlinuz " \
|
|
|
|
"&& load sata ${hdpart} ${ramdisk_addr} /initrd.img " \
|
2015-02-08 19:06:07 +00:00
|
|
|
"&& setenv ramdisk_len ${filesize} " \
|
2019-04-03 21:28:31 +00:00
|
|
|
"&& load sata ${hdpart} ${fdt_addr} /dtb " \
|
2015-02-08 19:06:07 +00:00
|
|
|
"&& bootz ${kernel_addr} " \
|
|
|
|
"${ramdisk_addr}:${ramdisk_len} ${fdt_addr}\0" \
|
2012-06-05 11:33:17 +00:00
|
|
|
"bootcmd_usb=usb start " \
|
2015-02-08 19:06:07 +00:00
|
|
|
"&& load usb 0:1 ${kernel_addr} /vmlinuz " \
|
|
|
|
"&& load usb 0:1 ${ramdisk_addr} /initrd.img " \
|
|
|
|
"&& setenv ramdisk_len ${filesize} " \
|
|
|
|
"&& load usb 0:1 ${fdt_addr} " CONFIG_FDTFILE " " \
|
|
|
|
"&& bootz ${kernel_addr} " \
|
|
|
|
"${ramdisk_addr}:${ramdisk_len} ${fdt_addr}\0" \
|
2012-06-05 11:33:17 +00:00
|
|
|
"bootcmd_rescue=run config_nc_dhcp; run nc\0" \
|
|
|
|
"eraseenv=sf probe 0 " \
|
2012-09-23 15:41:24 +00:00
|
|
|
"&& sf erase " __stringify(CONFIG_ENV_OFFSET) \
|
|
|
|
" +" __stringify(CONFIG_ENV_SIZE) "\0" \
|
2012-06-05 11:33:17 +00:00
|
|
|
"config_nc_dhcp=setenv autoload_old ${autoload}; " \
|
|
|
|
"setenv autoload no " \
|
|
|
|
"&& bootp " \
|
2012-10-04 06:54:25 +00:00
|
|
|
"&& setenv ncip " \
|
2012-06-05 11:33:17 +00:00
|
|
|
"&& setenv autoload ${autoload_old}; " \
|
|
|
|
"setenv autoload_old\0" \
|
|
|
|
"standard_env=setenv ipaddr; setenv netmask; setenv serverip; " \
|
|
|
|
"setenv ncip; setenv gatewayip; setenv ethact; " \
|
|
|
|
"setenv bootfile; setenv dnsip; " \
|
2014-09-27 22:05:23 +00:00
|
|
|
"setenv bootsource legacy; run ser\0" \
|
2012-06-05 11:33:17 +00:00
|
|
|
"restore_env=run standard_env; saveenv; reset\0" \
|
|
|
|
"ser=setenv stdin serial; setenv stdout serial; " \
|
|
|
|
"setenv stderr serial\0" \
|
|
|
|
"nc=setenv stdin nc; setenv stdout nc; setenv stderr nc\0" \
|
|
|
|
"stdin=serial\0" \
|
|
|
|
"stdout=serial\0" \
|
|
|
|
"stderr=serial\0"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Ethernet Driver configuration
|
|
|
|
*/
|
|
|
|
#ifdef CONFIG_CMD_NET
|
|
|
|
#define CONFIG_MVGBE_PORTS {0, 1} /* enable port 1 only */
|
|
|
|
#define CONFIG_PHY_BASE_ADR 7
|
|
|
|
#endif /* CONFIG_CMD_NET */
|
|
|
|
|
|
|
|
#endif /* _CONFIG_LSXL_H */
|