3 * Travis B. Sawyer, Sandburst Corporation, tsawyer@sandburst.com
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
27 #include "metrobox_version.h"
28 #include <timestamp.h>
29 #include <asm/processor.h>
31 #include <spd_sdram.h>
33 #include "../common/sb_common.h"
34 #if defined(CONFIG_HAS_ETH0) || defined(CONFIG_HAS_ETH1) || \
35 defined(CONFIG_HAS_ETH2) || defined(CONFIG_HAS_ETH3)
39 void fpga_init (void);
41 METROBOX_BOARD_ID_ST board_id_as[] =
42 { {"Undefined"}, /* Not specified */
43 {"2x10Gb"}, /* 2 ports, 10 GbE */
44 {"20x1Gb"}, /* 20 ports, 1 GbE */
45 {"Reserved"}, /* Reserved for future use */
48 /*************************************************************************
51 * Setup chip selects, initialize the Opto-FPGA, initialize
52 * interrupt polarity and triggers.
53 ************************************************************************/
54 int board_early_init_f (void)
56 ppc440_gpio_regs_t *gpio_regs;
58 /* Enable GPIO interrupts */
59 mtsdr(SDR0_PFC0, 0x00103E00);
61 /* Setup access for LEDs, and system topology info */
62 gpio_regs = (ppc440_gpio_regs_t *)CONFIG_SYS_GPIO_BASE;
63 gpio_regs->open_drain = SBCOMMON_GPIO_SYS_LEDS;
64 gpio_regs->tri_state = SBCOMMON_GPIO_DBGLEDS;
66 /* Turn on all the leds for now */
67 gpio_regs->out = SBCOMMON_GPIO_LEDS;
69 /*--------------------------------------------------------------------+
70 | Initialize EBC CONFIG
71 +-------------------------------------------------------------------*/
73 EBC_CFG_LE_UNLOCK | EBC_CFG_PTD_ENABLE |
74 EBC_CFG_RTC_64PERCLK | EBC_CFG_ATC_PREVIOUS |
75 EBC_CFG_DTC_PREVIOUS | EBC_CFG_CTC_PREVIOUS |
76 EBC_CFG_EMC_DEFAULT | EBC_CFG_PME_DISABLE |
79 /*--------------------------------------------------------------------+
80 | 1/2 MB FLASH. Initialize bank 0 with default values.
81 +-------------------------------------------------------------------*/
83 EBC_BXAP_BME_DISABLED | EBC_BXAP_TWT_ENCODE(8) |
84 EBC_BXAP_BCE_DISABLE | EBC_BXAP_CSN_ENCODE(1) |
85 EBC_BXAP_OEN_ENCODE(1)| EBC_BXAP_WBN_ENCODE(1) |
86 EBC_BXAP_WBF_ENCODE(1)| EBC_BXAP_TH_ENCODE(1) |
87 EBC_BXAP_RE_DISABLED | EBC_BXAP_BEM_WRITEONLY |
88 EBC_BXAP_PEN_DISABLED);
90 mtebc(PB0CR, EBC_BXCR_BAS_ENCODE(CONFIG_SYS_FLASH_BASE) |
91 EBC_BXCR_BS_1MB | EBC_BXCR_BU_RW | EBC_BXCR_BW_8BIT);
92 /*--------------------------------------------------------------------+
93 | 8KB NVRAM/RTC. Initialize bank 1 with default values.
94 +-------------------------------------------------------------------*/
96 EBC_BXAP_BME_DISABLED | EBC_BXAP_TWT_ENCODE(10) |
97 EBC_BXAP_BCE_DISABLE | EBC_BXAP_CSN_ENCODE(1) |
98 EBC_BXAP_OEN_ENCODE(1)| EBC_BXAP_WBN_ENCODE(1) |
99 EBC_BXAP_WBF_ENCODE(1)| EBC_BXAP_TH_ENCODE(1) |
100 EBC_BXAP_RE_DISABLED | EBC_BXAP_BEM_WRITEONLY |
101 EBC_BXAP_PEN_DISABLED);
103 mtebc(PB1CR, EBC_BXCR_BAS_ENCODE(0x48000000) |
104 EBC_BXCR_BS_1MB | EBC_BXCR_BU_RW | EBC_BXCR_BW_8BIT);
106 /*--------------------------------------------------------------------+
107 | Compact Flash, uses 2 Chip Selects (2 & 6)
108 +-------------------------------------------------------------------*/
110 EBC_BXAP_BME_DISABLED | EBC_BXAP_TWT_ENCODE(8) |
111 EBC_BXAP_BCE_DISABLE | EBC_BXAP_CSN_ENCODE(1) |
112 EBC_BXAP_OEN_ENCODE(1)| EBC_BXAP_WBN_ENCODE(1) |
113 EBC_BXAP_WBF_ENCODE(0)| EBC_BXAP_TH_ENCODE(1) |
114 EBC_BXAP_RE_DISABLED | EBC_BXAP_BEM_WRITEONLY |
115 EBC_BXAP_PEN_DISABLED);
117 mtebc(PB2CR, EBC_BXCR_BAS_ENCODE(0xF0000000) |
118 EBC_BXCR_BS_1MB | EBC_BXCR_BU_RW | EBC_BXCR_BW_16BIT);
120 /*--------------------------------------------------------------------+
121 | OPTO & OFEM FPGA. Initialize bank 3 with default values.
122 +-------------------------------------------------------------------*/
124 EBC_BXAP_RE_ENABLED | EBC_BXAP_SOR_NONDELAYED |
125 EBC_BXAP_BME_DISABLED | EBC_BXAP_TWT_ENCODE(3) |
126 EBC_BXAP_TH_ENCODE(1) | EBC_BXAP_WBF_ENCODE(0) |
127 EBC_BXAP_CSN_ENCODE(1) | EBC_BXAP_PEN_DISABLED |
128 EBC_BXAP_OEN_ENCODE(1) | EBC_BXAP_BEM_RW);
130 mtebc(PB3CR, EBC_BXCR_BAS_ENCODE(0x48200000) |
131 EBC_BXCR_BS_1MB | EBC_BXCR_BU_RW | EBC_BXCR_BW_32BIT);
133 /*--------------------------------------------------------------------+
135 | MAC A & B for Kamino. OFEM FPGA decodes the addresses
136 | Initialize bank 4 with default values.
137 +-------------------------------------------------------------------*/
139 EBC_BXAP_RE_ENABLED | EBC_BXAP_SOR_NONDELAYED |
140 EBC_BXAP_BME_DISABLED | EBC_BXAP_TWT_ENCODE(3) |
141 EBC_BXAP_TH_ENCODE(1) | EBC_BXAP_WBF_ENCODE(0) |
142 EBC_BXAP_CSN_ENCODE(1) | EBC_BXAP_PEN_DISABLED |
143 EBC_BXAP_OEN_ENCODE(1) | EBC_BXAP_BEM_RW);
145 mtebc(PB4CR, EBC_BXCR_BAS_ENCODE(0x48600000) |
146 EBC_BXCR_BS_1MB | EBC_BXCR_BU_RW | EBC_BXCR_BW_32BIT);
148 /*--------------------------------------------------------------------+
149 | Metrobox MAC B Initialize bank 5 with default values.
150 | KA REF FPGA Initialize bank 5 with default values.
151 +-------------------------------------------------------------------*/
153 EBC_BXAP_RE_ENABLED | EBC_BXAP_SOR_NONDELAYED |
154 EBC_BXAP_BME_DISABLED | EBC_BXAP_TWT_ENCODE(3) |
155 EBC_BXAP_TH_ENCODE(1) | EBC_BXAP_WBF_ENCODE(0) |
156 EBC_BXAP_CSN_ENCODE(1) | EBC_BXAP_PEN_DISABLED |
157 EBC_BXAP_OEN_ENCODE(1) | EBC_BXAP_BEM_RW);
159 mtebc(PB5CR, EBC_BXCR_BAS_ENCODE(0x48700000) |
160 EBC_BXCR_BS_1MB | EBC_BXCR_BU_RW | EBC_BXCR_BW_32BIT);
162 /*--------------------------------------------------------------------+
163 | Compact Flash, uses 2 Chip Selects (2 & 6)
164 +-------------------------------------------------------------------*/
166 EBC_BXAP_BME_DISABLED | EBC_BXAP_TWT_ENCODE(8) |
167 EBC_BXAP_BCE_DISABLE | EBC_BXAP_CSN_ENCODE(1) |
168 EBC_BXAP_OEN_ENCODE(1)| EBC_BXAP_WBN_ENCODE(1) |
169 EBC_BXAP_WBF_ENCODE(0)| EBC_BXAP_TH_ENCODE(1) |
170 EBC_BXAP_RE_DISABLED | EBC_BXAP_BEM_WRITEONLY |
171 EBC_BXAP_PEN_DISABLED);
173 mtebc(PB6CR, EBC_BXCR_BAS_ENCODE(0xF0100000) |
174 EBC_BXCR_BS_1MB | EBC_BXCR_BU_RW | EBC_BXCR_BW_16BIT);
176 /*--------------------------------------------------------------------+
177 | BME-32. Initialize bank 7 with default values.
178 +-------------------------------------------------------------------*/
180 EBC_BXAP_RE_ENABLED | EBC_BXAP_SOR_NONDELAYED |
181 EBC_BXAP_BME_DISABLED | EBC_BXAP_TWT_ENCODE(3) |
182 EBC_BXAP_TH_ENCODE(1) | EBC_BXAP_WBF_ENCODE(0) |
183 EBC_BXAP_CSN_ENCODE(1) | EBC_BXAP_PEN_DISABLED |
184 EBC_BXAP_OEN_ENCODE(1) | EBC_BXAP_BEM_RW);
186 mtebc(PB7CR, EBC_BXCR_BAS_ENCODE(0x48500000) |
187 EBC_BXCR_BS_1MB | EBC_BXCR_BU_RW | EBC_BXCR_BW_32BIT);
189 /*--------------------------------------------------------------------+
190 * Setup the interrupt controller polarities, triggers, etc.
191 +-------------------------------------------------------------------*/
193 * Because of the interrupt handling rework to handle 440GX interrupts
194 * with the common code, we needed to change names of the UIC registers.
195 * Here the new relationship:
197 * U-Boot name 440GX name
198 * -----------------------
204 mtdcr (UIC1SR, 0xffffffff); /* clear all */
205 mtdcr (UIC1ER, 0x00000000); /* disable all */
206 mtdcr (UIC1CR, 0x00000000); /* all non- critical */
207 mtdcr (UIC1PR, 0xfffffe03); /* polarity */
208 mtdcr (UIC1TR, 0x01c00000); /* trigger edge vs level */
209 mtdcr (UIC1VR, 0x00000001); /* int31 highest, base=0x000 */
210 mtdcr (UIC1SR, 0xffffffff); /* clear all */
212 mtdcr (UIC2SR, 0xffffffff); /* clear all */
213 mtdcr (UIC2ER, 0x00000000); /* disable all */
214 mtdcr (UIC2CR, 0x00000000); /* all non-critical */
215 mtdcr (UIC2PR, 0xffffc8ff); /* polarity */
216 mtdcr (UIC2TR, 0x00ff0000); /* trigger edge vs level */
217 mtdcr (UIC2VR, 0x00000001); /* int31 highest, base=0x000 */
218 mtdcr (UIC2SR, 0xffffffff); /* clear all */
220 mtdcr (UIC3SR, 0xffffffff); /* clear all */
221 mtdcr (UIC3ER, 0x00000000); /* disable all */
222 mtdcr (UIC3CR, 0x00000000); /* all non-critical */
223 mtdcr (UIC3PR, 0xffff83ff); /* polarity */
224 mtdcr (UIC3TR, 0x00ff8c0f); /* trigger edge vs level */
225 mtdcr (UIC3VR, 0x00000001); /* int31 highest, base=0x000 */
226 mtdcr (UIC3SR, 0xffffffff); /* clear all */
228 mtdcr (UIC0SR, 0xfc000000); /* clear all */
229 mtdcr (UIC0ER, 0x00000000); /* disable all */
230 mtdcr (UIC0CR, 0x00000000); /* all non-critical */
231 mtdcr (UIC0PR, 0xfc000000);
232 mtdcr (UIC0TR, 0x00000000);
233 mtdcr (UIC0VR, 0x00000001);
240 /*************************************************************************
243 * Dump pertinent info to the console
244 ************************************************************************/
245 int checkboard (void)
248 unsigned char brd_rev, brd_id;
249 unsigned short sernum;
250 unsigned char opto_rev, opto_id;
251 OPTO_FPGA_REGS_ST *opto_ps;
253 opto_ps = (OPTO_FPGA_REGS_ST *)CONFIG_SYS_FPGA_BASE;
255 opto_rev = (unsigned char)((opto_ps->revision_ul &
256 SAND_HAL_XC_XCVR_CNTL_REVISION_REVISION_MASK)
257 >> SAND_HAL_XC_XCVR_CNTL_REVISION_REVISION_SHIFT);
259 opto_id = (unsigned char)((opto_ps->revision_ul &
260 SAND_HAL_XC_XCVR_CNTL_REVISION_IDENTIFICATION_MASK)
261 >> SAND_HAL_XC_XCVR_CNTL_REVISION_IDENTIFICATION_SHIFT);
263 brd_rev = (unsigned char)((opto_ps->boardinfo_ul &
264 SAND_HAL_XC_XCVR_CNTL_BRD_INFO_BRD_REV_MASK)
265 >> SAND_HAL_XC_XCVR_CNTL_BRD_INFO_BRD_REV_SHIFT);
267 brd_id = (unsigned char)((opto_ps->boardinfo_ul &
268 SAND_HAL_XC_XCVR_CNTL_BRD_INFO_BRD_ID_MASK)
269 >> SAND_HAL_XC_XCVR_CNTL_BRD_INFO_BRD_ID_SHIFT);
271 get_sys_info (&sysinfo);
273 sernum = sbcommon_get_serial_number();
274 printf ("Board: Sandburst Corporation MetroBox Serial Number: %d\n", sernum);
275 printf ("%s\n", METROBOX_U_BOOT_REL_STR);
277 printf ("Built %s %s by %s\n", U_BOOT_DATE, U_BOOT_TIME, BUILDUSER);
278 if (sbcommon_get_master()) {
279 printf("Slot 0 - Master\nSlave board");
280 if (sbcommon_secondary_present())
281 printf(" present\n");
283 printf(" not detected\n");
285 printf("Slot 1 - Slave\n\n");
288 printf ("OptoFPGA ID:\t0x%02X\tRev: 0x%02X\n", opto_id, opto_rev);
289 printf ("Board Rev:\t0x%02X\tID: %s\n", brd_rev, board_id_as[brd_id].name);
291 /* Fix the ack in the bme 32 */
293 out32(CONFIG_SYS_BME32_BASE + 0x0000000C, 0x00000001);
300 /*************************************************************************
303 * Initialize I2C bus one to gain access to the fans
304 ************************************************************************/
305 int misc_init_f (void)
313 /*************************************************************************
317 ************************************************************************/
318 int misc_init_r (void)
320 unsigned short sernum;
323 unsigned char opto_rev;
324 OPTO_FPGA_REGS_ST *opto_ps;
326 opto_ps = (OPTO_FPGA_REGS_ST *)CONFIG_SYS_FPGA_BASE;
328 if(NULL != getenv("secondserial")) {
329 puts("secondserial is set, switching to second serial port\n");
330 setenv("stderr", "serial1");
331 setenv("stdout", "serial1");
332 setenv("stdin", "serial1");
335 setenv("ubrelver", METROBOX_U_BOOT_REL_STR);
337 memset(envstr, 0, 255);
338 sprintf (envstr, "Built %s %s by %s",
339 U_BOOT_DATE, U_BOOT_TIME, BUILDUSER);
340 setenv("bldstr", envstr);
343 if( getenv("autorecover")) {
344 setenv("autorecover", NULL);
346 sernum = sbcommon_get_serial_number();
348 printf("\nSetting up environment for automatic filesystem recovery\n");
350 * Setup default bootargs
352 memset(envstr, 0, 255);
353 sprintf(envstr, "console=ttyS0,9600 root=/dev/ram0 "
354 "rw ip=10.100.60.%d:::255.255.0.0:metrobox%d:eth0:none idebus=33",
356 setenv("bootargs", envstr);
359 * Setup Default boot command
361 setenv("bootcmd", "fatload ide 0 8000000 pimage.metrobox;"
362 "fatload ide 0 8100000 pramdisk;"
363 "bootm 8000000 8100000");
365 printf("Done. Please type allow the system to continue to boot\n");
368 if( getenv("fakeled")) {
369 setenv("bootdelay", "-1");
371 printf("fakeled is set. use 'setenv fakeled ; setenv bootdelay 5 ; saveenv' to recover\n");
372 opto_rev = (unsigned char)((opto_ps->revision_ul &
373 SAND_HAL_XC_XCVR_CNTL_REVISION_REVISION_MASK)
374 >> SAND_HAL_XC_XCVR_CNTL_REVISION_REVISION_SHIFT);
376 if(0x12 <= opto_rev) {
377 opto_ps->control_ul &= ~ SAND_HAL_XC_XCVR_CNTL_CNTL_ERROR_LED_MASK;
381 #ifdef CONFIG_HAS_ETH0
382 if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
383 board_get_enetaddr(0, enetaddr);
384 eth_setenv_enetaddr("ethaddr", enetaddr);
388 #ifdef CONFIG_HAS_ETH1
389 if (!eth_getenv_enetaddr("eth1addr", enetaddr)) {
390 board_get_enetaddr(1, enetaddr);
391 eth_setenv_enetaddr("eth1addr", enetaddr);
395 #ifdef CONFIG_HAS_ETH2
396 if (!eth_getenv_enetaddr("eth2addr", enetaddr)) {
397 board_get_enetaddr(2, enetaddr);
398 eth_setenv_enetaddr("eth2addr", enetaddr);
402 #ifdef CONFIG_HAS_ETH3
403 if (!eth_getenv_enetaddr("eth3addr", enetaddr)) {
404 board_get_enetaddr(3, enetaddr);
405 eth_setenv_enetaddr("eth3addr", enetaddr);
412 /*************************************************************************
414 ************************************************************************/
415 #ifdef CONFIG_IDE_RESET
416 void ide_set_reset(int on)
418 OPTO_FPGA_REGS_ST *opto_ps;
419 opto_ps = (OPTO_FPGA_REGS_ST *)CONFIG_SYS_FPGA_BASE;
421 if (on) { /* assert RESET */
422 opto_ps->reset_ul &= ~SAND_HAL_XC_XCVR_CNTL_RESET_CF_RESET_N_MASK;
423 } else { /* release RESET */
424 opto_ps->reset_ul |= SAND_HAL_XC_XCVR_CNTL_RESET_CF_RESET_N_MASK;
427 #endif /* CONFIG_IDE_RESET */
429 /*************************************************************************
431 ************************************************************************/
434 OPTO_FPGA_REGS_ST *opto_ps;
435 unsigned char opto_rev;
438 /* Ensure we have power all around */
442 * Take appropriate hw bits out of reset
444 opto_ps = (OPTO_FPGA_REGS_ST *)CONFIG_SYS_FPGA_BASE;
447 SAND_HAL_XC_XCVR_CNTL_RESET_MAC1_RESET_N_MASK |
448 SAND_HAL_XC_XCVR_CNTL_RESET_MAC0_RESET_N_MASK |
449 SAND_HAL_XC_XCVR_CNTL_RESET_BME_RESET_N_MASK |
450 SAND_HAL_XC_XCVR_CNTL_RESET_ACE_RESET_N_MASK |
451 SAND_HAL_XC_XCVR_CNTL_RESET_CF_RESET_N_MASK |
452 SAND_HAL_XC_XCVR_CNTL_RESET_QE_A_RESET_N_MASK |
453 SAND_HAL_XC_XCVR_CNTL_RESET_IFE_A_RESET_N_MASK |
454 SAND_HAL_XC_XCVR_CNTL_RESET_EFE_A_RESET_N_MASK |
455 SAND_HAL_XC_XCVR_CNTL_RESET_QE_B_RESET_N_MASK |
456 SAND_HAL_XC_XCVR_CNTL_RESET_IFE_B_RESET_N_MASK |
457 SAND_HAL_XC_XCVR_CNTL_RESET_EFE_B_RESET_N_MASK |
458 SAND_HAL_XC_XCVR_CNTL_RESET_LOCK1_RESET_N_MASK |
459 SAND_HAL_XC_XCVR_CNTL_RESET_LOCK0_RESET_N_MASK |
460 SAND_HAL_XC_XCVR_CNTL_RESET_I2C_MUX1_RESET_N_MASK |
461 SAND_HAL_XC_XCVR_CNTL_RESET_I2C_MUX0_RESET_N_MASK |
462 SAND_HAL_XC_XCVR_CNTL_RESET_PHY0_RESET_N_MASK |
463 SAND_HAL_XC_XCVR_CNTL_RESET_PHY1_RESET_N_MASK |
464 SAND_HAL_XC_XCVR_CNTL_RESET_SLAVE_RESET_N_MASK;
465 opto_ps->reset_ul = tmp;
467 * Turn on the 'Slow Blink' for the System Error Led.
468 * Ensure FPGA rev is up to at least rev 0x12
470 opto_rev = (unsigned char)((opto_ps->revision_ul &
471 SAND_HAL_XC_XCVR_CNTL_REVISION_REVISION_MASK)
472 >> SAND_HAL_XC_XCVR_CNTL_REVISION_REVISION_SHIFT);
473 if(0x12 <= opto_rev) {
474 opto_ps->control_ul |= 1 << SAND_HAL_XC_XCVR_CNTL_CNTL_ERROR_LED_SHIFT;
482 int metroboxSetupVars(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
484 unsigned short sernum;
487 sernum = sbcommon_get_serial_number();
489 memset(envstr, 0, 255);
491 * Setup our ip address
493 sprintf(envstr, "10.100.60.%d", sernum);
495 setenv("ipaddr", envstr);
497 * Setup the host ip address
499 setenv("serverip", "10.100.17.10");
502 * Setup default bootargs
504 memset(envstr, 0, 255);
506 sprintf(envstr, "console=ttyS0,9600 root=/dev/nfs "
507 "rw nfsroot=10.100.17.10:/home/metrobox/mbc%d "
508 "nfsaddrs=10.100.60.%d:10.100.17.10:10.100.1.1"
509 ":255.255.0.0:metrobox%d.sandburst.com:eth0:none idebus=33",
510 sernum, sernum, sernum);
512 setenv("bootargs_nfs", envstr);
513 setenv("bootargs", envstr);
518 memset(envstr, 0, 255);
519 sprintf(envstr, "console=ttyS0,9600 root=/dev/hda2 "
520 "rw ip=10.100.60.%d:::255.255.0.0:metrobox%d:eth0:none idebus=33",
523 setenv("bootargs_cf", envstr);
526 * Setup Default boot command
528 setenv("bootcmd_tftp", "tftp 8000000 pImage.metrobox;bootm 8000000");
529 setenv("bootcmd", "tftp 8000000 pImage.metrobox;bootm 8000000");
532 * Setup compact flash boot command
534 setenv("bootcmd_cf", "fatload ide 0 8000000 pimage.metrobox;bootm 8000000");
542 int metroboxRecover(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
544 unsigned short sernum;
547 sernum = sbcommon_get_serial_number();
549 printf("\nSetting up environment for filesystem recovery\n");
551 * Setup default bootargs
553 memset(envstr, 0, 255);
554 sprintf(envstr, "console=ttyS0,9600 root=/dev/ram0 "
555 "rw ip=10.100.60.%d:::255.255.0.0:metrobox%d:eth0:none",
558 setenv("bootargs", envstr);
561 * Setup Default boot command
563 setenv("bootcmd", "fatload ide 0 8000000 pimage.metrobox;"
564 "fatload ide 0 8100000 pramdisk;"
565 "bootm 8000000 8100000");
567 printf("Done. Please type boot<cr>.\nWhen the kernel has booted"
568 " please type fsrecover.sh<cr>\n");
573 U_BOOT_CMD(mbsetup, 1, 1, metroboxSetupVars,
574 "Set environment to factory defaults", "");
576 U_BOOT_CMD(mbrecover, 1, 1, metroboxRecover,
577 "Set environment to allow for fs recovery", "");