mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-16 17:58:23 +00:00
148b3aef9a
We can load the ramdisk as the last step. This way we don't have to set the intermediate variable 'ramdisk_len' and can remove it. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Stefan Roese <sr@denx.de>
80 lines
2.5 KiB
C
80 lines
2.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* 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"
|
|
|
|
/* loading initramfs images without uimage header */
|
|
|
|
/*
|
|
* Environment variables configurations
|
|
*/
|
|
|
|
/*
|
|
* Default environment variables
|
|
*/
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
"bootsource=legacy\0" \
|
|
"hdpart=0:1\0" \
|
|
"kernel_addr=0x00800000\0" \
|
|
"ramdisk_addr=0x01000000\0" \
|
|
"fdt_addr=0x00ff0000\0" \
|
|
"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
|
|
"bootcmd_legacy=sata init " \
|
|
"&& load sata ${hdpart} ${kernel_addr} /uImage.buffalo "\
|
|
"&& load sata ${hdpart} ${ramdisk_addr} /initrd.buffalo "\
|
|
"&& bootm ${kernel_addr} ${ramdisk_addr}\0" \
|
|
"bootcmd_net=bootp ${kernel_addr} vmlinuz " \
|
|
"&& tftpboot ${fdt_addr} ${fdtfile} " \
|
|
"&& tftpboot ${ramdisk_addr} initrd.img " \
|
|
"&& bootz ${kernel_addr} " \
|
|
"${ramdisk_addr}:${filesize} ${fdt_addr}\0" \
|
|
"bootcmd_hdd=sata init " \
|
|
"&& load sata ${hdpart} ${kernel_addr} /vmlinuz " \
|
|
"&& load sata ${hdpart} ${fdt_addr} /dtb " \
|
|
"&& load sata ${hdpart} ${ramdisk_addr} /initrd.img " \
|
|
"&& bootz ${kernel_addr} " \
|
|
"${ramdisk_addr}:${filesize} ${fdt_addr}\0" \
|
|
"bootcmd_usb=usb start " \
|
|
"&& load usb 0:1 ${kernel_addr} /vmlinuz " \
|
|
"&& load usb 0:1 ${fdt_addr} ${fdtfile} " \
|
|
"&& load usb 0:1 ${ramdisk_addr} /initrd.img " \
|
|
"&& bootz ${kernel_addr} " \
|
|
"${ramdisk_addr}:${filesize} ${fdt_addr}\0" \
|
|
"bootcmd_rescue=run config_nc_dhcp; run nc\0" \
|
|
"config_nc_dhcp=setenv autoload_old ${autoload}; " \
|
|
"setenv autoload no " \
|
|
"&& bootp " \
|
|
"&& setenv ncip " \
|
|
"&& 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; " \
|
|
"setenv bootsource legacy; run ser\0" \
|
|
"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 */
|