diff options
author | Scott Wood <scottwood@freescale.com> | 2009-04-02 23:20:43 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-04-04 21:29:40 (GMT) |
commit | c73ed274a211699739d83c2cef92853dc6716e15 (patch) | |
tree | ac42ff8ce1d3704e042b5616971d54c02d9c71ff | |
parent | c203ef5db0476a8c4f6dd86b2e9e9db0ea973f84 (diff) | |
download | u-boot-c73ed274a211699739d83c2cef92853dc6716e15.tar.xz |
MPC8260ADS: Add nfsboot/ramboot to default environment.
This brings it in line with other Freescale boards.
Signed-off-by: Scott Wood <scottwood@freescale.com>
-rw-r--r-- | include/configs/MPC8260ADS.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/configs/MPC8260ADS.h b/include/configs/MPC8260ADS.h index d6e4477..942a4cc 100644 --- a/include/configs/MPC8260ADS.h +++ b/include/configs/MPC8260ADS.h @@ -17,6 +17,8 @@ * Vitaly Bordug <vbordug@ru.mvista.com> * Added support for PCI bridge on MPC8272ADS * + * Copyright (C) Freescale Semiconductor, Inc. 2006-2009. + * * See file CREDITS for list of people who contributed to this * project. * @@ -523,4 +525,44 @@ #define CONFIG_HAS_ETH1 #endif +#define CONFIG_NETDEV eth0 +#define CONFIG_LOADADDR 500000 /* default location for tftp and bootm */ + +#define XMK_STR(x) #x +#define MK_STR(x) XMK_STR(x) + +#define CONFIG_EXTRA_ENV_SETTINGS \ + "netdev=" MK_STR(CONFIG_NETDEV) "\0" \ + "tftpflash=tftpboot $loadaddr $uboot; " \ + "protect off " MK_STR(TEXT_BASE) " +$filesize; " \ + "erase " MK_STR(TEXT_BASE) " +$filesize; " \ + "cp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize; " \ + "protect on " MK_STR(TEXT_BASE) " +$filesize; " \ + "cmp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize\0" \ + "fdtaddr=400000\0" \ + "console=ttyCPM0\0" \ + "setbootargs=setenv bootargs " \ + "root=$rootdev rw console=$console,$baudrate $othbootargs\0" \ + "setipargs=setenv bootargs nfsroot=$serverip:$rootpath " \ + "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ + "root=$rootdev rw console=$console,$baudrate $othbootargs\0" + +#define CONFIG_NFSBOOTCOMMAND \ + "setenv rootdev /dev/nfs;" \ + "run setipargs;" \ + "tftp $loadaddr $bootfile;" \ + "tftp $fdtaddr $fdtfile;" \ + "bootm $loadaddr - $fdtaddr" + +#define CONFIG_RAMBOOTCOMMAND \ + "setenv rootdev /dev/ram;" \ + "run setbootargs;" \ + "tftp $ramdiskaddr $ramdiskfile;" \ + "tftp $loadaddr $bootfile;" \ + "tftp $fdtaddr $fdtfile;" \ + "bootm $loadaddr $ramdiskaddr $fdtaddr" + +#undef MK_STR +#undef XMK_STR + #endif /* __CONFIG_H */ |