Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2012 Michael Walle |
| 4 | * Michael Walle <michael@walle.cc> |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _CONFIG_LSXL_H |
| 8 | #define _CONFIG_LSXL_H |
| 9 | |
| 10 | /* |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 11 | * General configuration options |
| 12 | */ |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 13 | |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 14 | #include "mv-common.h" |
| 15 | |
Michael Walle | 4fe49d7 | 2015-02-08 20:06:07 +0100 | [diff] [blame] | 16 | /* loading initramfs images without uimage header */ |
Michael Walle | 4fe49d7 | 2015-02-08 20:06:07 +0100 | [diff] [blame] | 17 | |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 18 | /* |
| 19 | * Environment variables configurations |
| 20 | */ |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 21 | |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 22 | /* |
| 23 | * Default environment variables |
| 24 | */ |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame^] | 25 | #define CFG_EXTRA_ENV_SETTINGS \ |
Michael Walle | 848fe23 | 2014-04-01 20:09:14 +0200 | [diff] [blame] | 26 | "bootsource=legacy\0" \ |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 27 | "hdpart=0:1\0" \ |
Michael Walle | f5631b2 | 2022-08-17 21:38:01 +0200 | [diff] [blame] | 28 | "kernel_addr_r=0x00800000\0" \ |
| 29 | "ramdisk_addr_r=0x01000000\0" \ |
| 30 | "fdt_addr_r=0x00ff0000\0" \ |
Michael Walle | 111e1e1 | 2022-08-17 21:37:59 +0200 | [diff] [blame] | 31 | "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ |
Michael Walle | f94b522 | 2019-04-03 23:28:31 +0200 | [diff] [blame] | 32 | "bootcmd_legacy=sata init " \ |
Michael Walle | f5631b2 | 2022-08-17 21:38:01 +0200 | [diff] [blame] | 33 | "&& load sata ${hdpart} ${kernel_addr_r} /uImage.buffalo "\ |
| 34 | "&& load sata ${hdpart} ${ramdisk_addr_r} /initrd.buffalo "\ |
| 35 | "&& bootm ${kernel_addr_r} ${ramdisk_addr_r}\0" \ |
| 36 | "bootcmd_net=bootp ${kernel_addr_r} vmlinuz " \ |
| 37 | "&& tftpboot ${fdt_addr_r} ${fdtfile} " \ |
| 38 | "&& tftpboot ${ramdisk_addr_r} initrd.img " \ |
| 39 | "&& bootz ${kernel_addr_r} " \ |
| 40 | "${ramdisk_addr_r}:${filesize} ${fdt_addr_r}\0" \ |
Michael Walle | f94b522 | 2019-04-03 23:28:31 +0200 | [diff] [blame] | 41 | "bootcmd_hdd=sata init " \ |
Michael Walle | f5631b2 | 2022-08-17 21:38:01 +0200 | [diff] [blame] | 42 | "&& load sata ${hdpart} ${kernel_addr_r} /vmlinuz " \ |
| 43 | "&& load sata ${hdpart} ${fdt_addr_r} /dtb " \ |
| 44 | "&& load sata ${hdpart} ${ramdisk_addr_r} /initrd.img " \ |
| 45 | "&& bootz ${kernel_addr_r} " \ |
| 46 | "${ramdisk_addr_r}:${filesize} ${fdt_addr_r}\0" \ |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 47 | "bootcmd_usb=usb start " \ |
Michael Walle | f5631b2 | 2022-08-17 21:38:01 +0200 | [diff] [blame] | 48 | "&& load usb 0:1 ${kernel_addr_r} /vmlinuz " \ |
| 49 | "&& load usb 0:1 ${fdt_addr_r} ${fdtfile} " \ |
| 50 | "&& load usb 0:1 ${ramdisk_addr_r} /initrd.img " \ |
| 51 | "&& bootz ${kernel_addr_r} " \ |
| 52 | "${ramdisk_addr_r}:${filesize} ${fdt_addr_r}\0" \ |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 53 | "bootcmd_rescue=run config_nc_dhcp; run nc\0" \ |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 54 | "config_nc_dhcp=setenv autoload_old ${autoload}; " \ |
| 55 | "setenv autoload no " \ |
| 56 | "&& bootp " \ |
Michael Walle | 23c9946 | 2012-10-04 06:54:25 +0000 | [diff] [blame] | 57 | "&& setenv ncip " \ |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 58 | "&& setenv autoload ${autoload_old}; " \ |
| 59 | "setenv autoload_old\0" \ |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 60 | "nc=setenv stdin nc; setenv stdout nc; setenv stderr nc\0" \ |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 61 | |
Michael Walle | f214a20 | 2012-06-05 11:33:17 +0000 | [diff] [blame] | 62 | #endif /* _CONFIG_LSXL_H */ |