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
|
|
|
|
*/
|
|
|
|
#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" \
|
2022-08-17 19:38:01 +00:00
|
|
|
"kernel_addr_r=0x00800000\0" \
|
|
|
|
"ramdisk_addr_r=0x01000000\0" \
|
|
|
|
"fdt_addr_r=0x00ff0000\0" \
|
2022-08-17 19:37:59 +00:00
|
|
|
"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
|
2019-04-03 21:28:31 +00:00
|
|
|
"bootcmd_legacy=sata init " \
|
2022-08-17 19:38:01 +00:00
|
|
|
"&& load sata ${hdpart} ${kernel_addr_r} /uImage.buffalo "\
|
|
|
|
"&& load sata ${hdpart} ${ramdisk_addr_r} /initrd.buffalo "\
|
|
|
|
"&& bootm ${kernel_addr_r} ${ramdisk_addr_r}\0" \
|
|
|
|
"bootcmd_net=bootp ${kernel_addr_r} vmlinuz " \
|
|
|
|
"&& tftpboot ${fdt_addr_r} ${fdtfile} " \
|
|
|
|
"&& tftpboot ${ramdisk_addr_r} initrd.img " \
|
|
|
|
"&& bootz ${kernel_addr_r} " \
|
|
|
|
"${ramdisk_addr_r}:${filesize} ${fdt_addr_r}\0" \
|
2019-04-03 21:28:31 +00:00
|
|
|
"bootcmd_hdd=sata init " \
|
2022-08-17 19:38:01 +00:00
|
|
|
"&& load sata ${hdpart} ${kernel_addr_r} /vmlinuz " \
|
|
|
|
"&& load sata ${hdpart} ${fdt_addr_r} /dtb " \
|
|
|
|
"&& load sata ${hdpart} ${ramdisk_addr_r} /initrd.img " \
|
|
|
|
"&& bootz ${kernel_addr_r} " \
|
|
|
|
"${ramdisk_addr_r}:${filesize} ${fdt_addr_r}\0" \
|
2012-06-05 11:33:17 +00:00
|
|
|
"bootcmd_usb=usb start " \
|
2022-08-17 19:38:01 +00:00
|
|
|
"&& load usb 0:1 ${kernel_addr_r} /vmlinuz " \
|
|
|
|
"&& load usb 0:1 ${fdt_addr_r} ${fdtfile} " \
|
|
|
|
"&& load usb 0:1 ${ramdisk_addr_r} /initrd.img " \
|
|
|
|
"&& bootz ${kernel_addr_r} " \
|
|
|
|
"${ramdisk_addr_r}:${filesize} ${fdt_addr_r}\0" \
|
2012-06-05 11:33:17 +00:00
|
|
|
"bootcmd_rescue=run config_nc_dhcp; run nc\0" \
|
|
|
|
"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" \
|
|
|
|
"nc=setenv stdin nc; setenv stdout nc; setenv stderr nc\0" \
|
|
|
|
|
|
|
|
#endif /* _CONFIG_LSXL_H */
|