]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fix some missing commands, cleanup header files U-Boot-0_4_1
authorwdenk <wdenk>
Sun, 29 Jun 2003 21:03:46 +0000 (21:03 +0000)
committerwdenk <wdenk>
Sun, 29 Jun 2003 21:03:46 +0000 (21:03 +0000)
(autoscript, bmp, bsp, fat, mmc, nand, portio, ...)

38 files changed:
CHANGELOG
board/evb64260/eth.c
board/exbitgen/u-boot.lds
board/hymod/bsp.c
board/siemens/pcu_e/pcu_e.c
board/sl8245/Makefile
board/sl8245/u-boot.lds
board/w7o/cmd_vpd.c
common/cmd_autoscript.c
common/cmd_bmp.c
common/cmd_boot.c
common/cmd_fat.c
common/cmd_fpga.c
common/cmd_ide.c
common/cmd_load.c
common/cmd_mmc.c
common/cmd_nand.c
common/cmd_net.c
common/cmd_portio.c
common/cmd_scsi.c
common/cmd_usb.c
common/command.c
disk/part.c
disk/part_amiga.c
disk/part_dos.c
disk/part_iso.c
disk/part_mac.c
include/cmd_autoscript.h [deleted file]
include/cmd_bmp.h [deleted file]
include/cmd_bsp.h [deleted file]
include/cmd_disk.h [deleted file]
include/cmd_fat.h [deleted file]
include/cmd_mmc.h [deleted file]
include/cmd_nand.h [deleted file]
include/cmd_portio.h [deleted file]
include/common.h
include/configs/lwmon.h
include/part.h

index 6ec62cb9982a440054e2af1a6d60e26cad6a5b56..64e093335be28d478744f031c976d18cac08064c 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,7 +1,10 @@
 ======================================================================
-Changes since U-Boot 0.4.0:
+Changes for U-Boot 0.4.1:
 ======================================================================
 
+* Fix some missing commands, cleanup header files
+  (autoscript, bmp, bsp, fat, mmc, nand, portio, ...)
+
 * Rewrite command lookup and help command (fix problems with bubble
   sort when sorting command name list). Minor cleanup here and there.
 
index 8b3a35923863149aa87fd185eba1df39923caa94..f0743fa292e23a56fdb5701090ac0cd81c7027f5 100644 (file)
@@ -22,7 +22,6 @@ Skeleton NIC driver for Etherboot
 
 #include <common.h>
 #include <malloc.h>
-#include <cmd_bsp.h>
 #include <galileo/gt64260R.h>
 #include <galileo/core.h>
 #include <asm/cache.h>
index 863a7e423d44153f55405a93d7600a914ffd1866..36f9491963ae066804114254cd76c194b75c6b5f 100644 (file)
@@ -119,6 +119,10 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
+  __u_boot_cmd_start = .;
+  .u_boot_cmd : { *(.u_boot_cmd) }
+  __u_boot_cmd_end = .;
+
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
   __stop___ex_table = .;
index f131e51d4e2281e4c08436e53b65b9ee9c1b8198..7ea91e6790c7216292578dce1b1315f81bd4ec82 100644 (file)
@@ -27,7 +27,6 @@
 #include <command.h>
 #include <net.h>
 #include <asm/iopin_8260.h>
-#include <cmd_bsp.h>
 
 /*-----------------------------------------------------------------------
  * Board Special Commands: FPGA load/store, EEPROM erase
index a8d73ccfe68820dd07038fe7d4309def0f4ae526..8be70d36d740b32f1664a70d590b0079933bb0bd 100644 (file)
@@ -26,7 +26,6 @@
 #include <commproc.h>
 #include <i2c.h>
 #include <command.h>
-#include <cmd_bsp.h>
 
 /* ------------------------------------------------------------------------- */
 
index da60318d7f4ebfe8c2c15da0ae01616784eb058e..6d112404328131ac6e67f0655720c7422cb8314b 100644 (file)
@@ -28,7 +28,7 @@ LIB   = lib$(BOARD).a
 OBJS   = $(BOARD).o flash.o
 
 $(LIB):        .depend $(OBJS)
-       $(AR) crv $@ $^
+       $(AR) crv $@ $(OBJS)
 
 #########################################################################
 
index 627a53b3b600900927e95521ca56993867ba5bdd..e0d0b17634ec4c3e1277ba44868230c4db5f8b46 100644 (file)
@@ -102,6 +102,10 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
+  __u_boot_cmd_start = .;
+  .u_boot_cmd : { *(.u_boot_cmd) }
+  __u_boot_cmd_end = .;
+
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
   __stop___ex_table = .;
index 2763a53d03c55d52191f4ac906cd128b4a6a3754..6a151e258f21f926546ec20681a6eb11a4e262f2 100644 (file)
@@ -27,7 +27,6 @@
 #if (CONFIG_COMMANDS & CFG_CMD_BSP)
 
 #include "vpd.h"
-#include "cmd_bsp.h"
 
 /* ======================================================================
  * Interpreter command to retrieve board specific Vital Product Data, "VPD"
index d3d04c3040a9e3ec06e9480a72a41f4057382a0e..81dbf495758bd0800962281005abb14c74500228 100644 (file)
@@ -47,7 +47,6 @@
 #include <hush.h>
 #endif
 
-#define AUTOSCRIPT_MAGIC       0x09011962
 #if defined(CONFIG_AUTOSCRIPT) || \
         (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT )
 
index c6a16a46cfb5966bbe6838697fd7a979ce93a438..6e813c625eba0f5dcbd5daeb2cae45bb5efaa7ac 100644 (file)
@@ -73,6 +73,13 @@ int do_bmp(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        }
 }
 
+cmd_tbl_t U_BOOT_CMD(BMP) = MK_CMD_ENTRY(
+       "bmp",  3,      1,      do_bmp,
+       "bmp     - manipulate BMP image data\n",
+       "info <imageAddr>    - display image info\n"
+       "bmp display <imageAddr> - display image\n"
+);
+
 /*
  * Subroutine:  bmp_info
  *
index a0bc04ba60ce4ea899dac8bdca7d0b17c8c698ce..1adbd42b1bc3c55e9aec82861f49981fb1a62962 100644 (file)
@@ -26,7 +26,6 @@
  */
 #include <common.h>
 #include <command.h>
-#include <cmd_autoscript.h>
 #include <net.h>
 #include <syscall.h>
 
index 12eb764a9dd5afa3e9ab01fe76aa743080e2dc28..6be55556251f5d32c980cb75cdf10be241d11f66 100644 (file)
@@ -26,7 +26,6 @@
  */
 #include <common.h>
 #include <command.h>
-#include <cmd_autoscript.h>
 #include <s_record.h>
 #include <net.h>
 #include <ata.h>
@@ -63,6 +62,14 @@ int do_fat_fsload (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        return size;
 }
 
+cmd_tbl_t U_BOOT_CMD(FATLOAD) = MK_CMD_ENTRY(
+       "fatload",      4,      0,      do_fat_fsload,
+       "fatload - load binary file from a dos filesystem\n",
+       "[ off ] [ filename ]\n"
+       "    - load binary file from dos filesystem\n"
+       "      with offset 'off'\n"
+);
+
 int do_fat_ls (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
        char *filename = "/";
@@ -76,6 +83,13 @@ int do_fat_ls (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        return (ret);
 }
 
+cmd_tbl_t U_BOOT_CMD(FATLS) = MK_CMD_ENTRY(
+       "fatls",        2,      1,      do_fat_ls,
+       "fatls   - list files in a directory (default /)\n",
+       "[ directory ]\n"
+       "    - list files in a directory\n"
+);
+
 int do_fat_fsinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
        int ret;
@@ -87,6 +101,13 @@ int do_fat_fsinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        return (ret);
 }
 
+cmd_tbl_t U_BOOT_CMD(FATINFO) = MK_CMD_ENTRY(
+       "fatinfo",      1,      1,      do_fat_fsinfo,
+       "fatinfo - print information about filesystem\n",
+       "\n"
+       "    - print information about filesystem\n"
+);
+
 #ifdef NOT_IMPLEMENTED_YET
 /* find first device whose first partition is a DOS filesystem */
 int find_fat_partition (void)
index f8ae52a66e5078bc025144db39c6be8ab38165fd..b364f14832af590e3273cf2bab09422140756f6a 100644 (file)
@@ -27,7 +27,6 @@
  */
 #include <common.h>
 #include <command.h>
-#include <cmd_bsp.h>
 #if (CONFIG_COMMANDS & CFG_CMD_NET)
 #include <net.h>
 #endif
index c1e610ae60a51a96203b992d61cfc1a307136845..8ca2b8992d26063d8344053f2844ba711c1ef218 100644 (file)
@@ -39,7 +39,6 @@
 #endif
 #include <ide.h>
 #include <ata.h>
-#include <cmd_disk.h>
 #ifdef CONFIG_STATUS_LED
 # include <status_led.h>
 #endif
index d784e837283e08aef1319f0a86f617108e66835b..5272b0f2d02a8bc0f746548e14c3ecd6b2e9621b 100644 (file)
@@ -26,7 +26,6 @@
  */
 #include <common.h>
 #include <command.h>
-#include <cmd_autoscript.h>
 #include <s_record.h>
 #include <net.h>
 #include <syscall.h>
index 45b506416fd18cd356b9442a83e38211920d95a6..39c18cc01a8aa45f26c4be37ab98e0586cae0270 100644 (file)
@@ -37,4 +37,10 @@ int do_mmc (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        return 0;
 }
 
+cmd_tbl_t U_BOOT_CMD(MMCINIT) = MK_CMD_ENTRY(
+       "mmcinit",      1,      0,      do_mmc,
+       "mmcinit - init mmc card\n",
+       NULL
+);
+
 #endif /* CFG_CMD_MMC */
index 41f84fdc0f68ef1d83c75093af7d914ee403824a..1da5b03a31ba52790dfbf8aac6326e1c2fed94f5 100644 (file)
@@ -247,6 +247,21 @@ int do_nand (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
     }
 }
 
+cmd_tbl_t U_BOOT_CMD(NAND) = MK_CMD_ENTRY(
+       "nand", 5,      1,      do_nand,
+       "nand    - NAND sub-system\n",
+       "info  - show available NAND devices\n"
+       "nand device [dev] - show or set current device\n"
+       "nand read[.jffs2]  addr off size\n"
+       "nand write[.jffs2] addr off size - read/write `size' bytes starting\n"
+       "    at offset `off' to/from memory address `addr'\n"
+       "nand erase [clean] [off size] - erase `size' bytes from\n"
+       "    offset `off' (entire device if not specified)\n"
+       "nand bad - show bad blocks\n"
+       "nand read.oob addr off size - read out-of-band data\n"
+       "nand write.oob addr off size - read out-of-band data\n"
+);
+
 int do_nandboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
        char *boot_device = NULL;
@@ -348,6 +363,12 @@ int do_nandboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        return rcode;
 }
 
+cmd_tbl_t U_BOOT_CMD(NBOOT) = MK_CMD_ENTRY(
+       "nboot",        4,      1,      do_nandboot,
+       "nboot   - boot from NAND device\n",
+       "loadAddr dev\n"
+);
+
 /* returns 0 if block containing pos is OK:
  *             valid erase block and
  *             not marked bad, or no bad mark position is specified
index 8a55f43b321d8d648124bf1c17f6d13f56389b4b..01f5f91c821248a75594ff804d106334ecb3695e 100644 (file)
@@ -26,7 +26,6 @@
  */
 #include <common.h>
 #include <command.h>
-#include <cmd_autoscript.h>
 #include <net.h>
 
 #if (CONFIG_COMMANDS & CFG_CMD_NET)
index afa39e1ebd936a2dfa6bc542babce079d0e22836..ad84b81dc2d36cc96463756ef5825ac562657161 100644 (file)
@@ -29,7 +29,6 @@
 
 #include <common.h>
 #include <command.h>
-#include <cmd_portio.h>
 
 #if (CONFIG_COMMANDS & CFG_CMD_PORTIO)
 
@@ -96,6 +95,12 @@ int do_portio_out (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
        return 0;
 }
 
+cmd_tbl_t U_BOOT_CMD(PORTIO_OUT) = MK_CMD_ENTRY(
+       "out",  3,      1,      do_portio_out,
+       "out     - write datum to IO port\n",
+       "[.b, .w, .l] port value\n    - output to IO port\n"
+);
+
 int do_portio_in (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 {
        uint addr = in_last_addr;
@@ -154,4 +159,11 @@ int do_portio_in (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
        return 0;
 }
 
+cmd_tbl_t U_BOOT_CMD(PORTIO_IN) = MK_CMD_ENTRY(
+       "in",   2,      1,      do_portio_in,
+       "in      - read data from an IO port\n",
+       "[.b, .w, .l] port\n"
+       "    - read datum from IO port\n"
+);
+
 #endif /* CFG_CMD_PORTIO */
index c925823cd4fced18a477487e618c925e268b4afa..2da9ac9160bd4e763fedd476ba2ddb056dc39502 100644 (file)
@@ -33,7 +33,6 @@
 #include <asm/processor.h>
 #include <scsi.h>
 #include <image.h>
-#include <cmd_disk.h>
 #include <pci.h>
 
 
index d8f2f2cde159cf74d5b15139e4300e672d2aef0e..17e6433578d365b9e2cb831bd15fd328dee95078 100644 (file)
@@ -31,7 +31,6 @@
 #if (CONFIG_COMMANDS & CFG_CMD_USB)
 
 #include <usb.h>
-#include <cmd_disk.h>
 
 #undef CMD_USB_DEBUG
 
index 059da7c96c34239b34957424dc5cce4109e4d4a7..9a982b8da2e19e153a511f0aa7b0afaf87793a0e 100644 (file)
@@ -36,6 +36,12 @@ do_version (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        return 0;
 }
 
+cmd_tbl_t U_BOOT_CMD(VERS) = MK_CMD_ENTRY(
+       "version",      1,              1,      do_version,
+       "version - print monitor version\n",
+       NULL
+);
+
 int
 do_echo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
@@ -61,6 +67,13 @@ do_echo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        return 0;
 }
 
+cmd_tbl_t U_BOOT_CMD(ECHO) = MK_CMD_ENTRY(
+       "echo", CFG_MAXARGS,    1,      do_echo,
+       "echo    - echo args to console\n",
+       "[args..]\n"
+       "    - echo args to console; \\c suppresses newline\n"
+);
+
 /*
  * Use puts() instead of printf() to avoid printf buffer overflow
  * for long help messages
@@ -162,19 +175,6 @@ cmd_tbl_t U_BOOT_CMD(QUES) = MK_CMD_ENTRY(
        NULL
 );
 
-cmd_tbl_t U_BOOT_CMD(VERS) = MK_CMD_ENTRY(
-       "version",      1,              1,      do_version,
-       "version - print monitor version\n",
-       NULL
-);
-
-cmd_tbl_t U_BOOT_CMD(ECHO) = MK_CMD_ENTRY(
-       "echo", CFG_MAXARGS,    1,      do_echo,
-       "echo    - echo args to console\n",
-       "[args..]\n"
-       "    - echo args to console; \\c suppresses newline\n"
-);
-
 /***************************************************************************
  * find command table entry for a command
  */
index 47dc39bae66c025fbbf7cd103844e20c22ce269f..97ed91865329ebecea8ba540b7dbb75a9cda6177 100644 (file)
@@ -24,7 +24,6 @@
 #include <common.h>
 #include <command.h>
 #include <ide.h>
-#include <cmd_disk.h>
 
 #undef PART_DEBUG
 
index f1ad24a438f20d260e995d677723e5243bce045e..07b32107d600e4e36f73a3d9331b7bc1d1185d61 100644 (file)
@@ -24,7 +24,6 @@
 #include <common.h>
 #include <command.h>
 #include <ide.h>
-#include <cmd_disk.h>
 #include "part_amiga.h"
 
 #if ((CONFIG_COMMANDS & CFG_CMD_IDE) || (CONFIG_COMMANDS & CFG_CMD_SCSI)) && defined(CONFIG_AMIGA_PARTITION)
index d585b357083c5f4a5ae58b5f5b86fb5697c9571f..db2c23bc593adfcbce13b1f76e68ae59964f9e77 100644 (file)
@@ -33,7 +33,6 @@
 #include <common.h>
 #include <command.h>
 #include <ide.h>
-#include <cmd_disk.h>
 #include "part_dos.h"
 
 #if ((CONFIG_COMMANDS & CFG_CMD_IDE) || (CONFIG_COMMANDS & CFG_CMD_SCSI)) && defined(CONFIG_DOS_PARTITION)
index 4d746e42ad2d048c411cf81a1037bd31fd494d8f..ff3e4d9670484f2114f4be7fb1db00d90e8fbe5f 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <common.h>
 #include <command.h>
-#include <cmd_disk.h>
 #include "part_iso.h"
 
 #if ((CONFIG_COMMANDS & CFG_CMD_IDE) || (CONFIG_COMMANDS & CFG_CMD_SCSI)) && defined(CONFIG_ISO_PARTITION)
index 087133d264c002c8ae596008f345030071f6e7ed..6e055af9155fe36b52b17b0f2184abbcb67e31fb 100644 (file)
@@ -32,7 +32,6 @@
 #include <common.h>
 #include <command.h>
 #include <ide.h>
-#include <cmd_disk.h>
 #include "part_mac.h"
 
 #if ((CONFIG_COMMANDS & CFG_CMD_IDE) || (CONFIG_COMMANDS & CFG_CMD_SCSI)) && defined(CONFIG_MAC_PARTITION)
diff --git a/include/cmd_autoscript.h b/include/cmd_autoscript.h
deleted file mode 100644 (file)
index ca5fdb5..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * (C) Copyright 2001
- * Kyle Harris, kharris@nexus-tech.net
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-#ifndef        _CMD_AUTOSCRIPT_H_
-#define        _CMD_AUTOSCRIPT_H_
-
-#define AUTOSCRIPT_MAGIC       0x09011962
-
-#if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
-
-int autoscript (ulong addr);
-#endif
-
-#endif /* _CMD_AUTOSCRIPT_H_ */
diff --git a/include/cmd_bmp.h b/include/cmd_bmp.h
deleted file mode 100644 (file)
index 2b66617..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/* (C) Copyright 2002
- * Detlev Zundel, DENX Software Engineering, dzu@denx.de.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-/*
- * Bitmap display support
- */
-#ifndef        _CMD_BMP_H
-#define        _CMD_BMP_H
-
-#include <common.h>
-#include <command.h>
-
-
-#if (CONFIG_COMMANDS & CFG_CMD_BMP)
-
-#define CMD_TBL_BMP    MK_CMD_TBL_ENTRY(                               \
-       "bmp", 3,       3,      1,      do_bmp,                         \
-       "bmp     - manipulate BMP image data\n",                        \
-       "info <imageAddr>    - display image info\n"                    \
-       "bmp display <imageAddr> - display image\n"                     \
-),
-int do_bmp (cmd_tbl_t *cmdtp,  int flag, int argc, char *argv[]);
-
-#else
-#define CMD_TBL_BMP
-#endif
-
-#endif /* _CMD_BMP_H */
diff --git a/include/cmd_bsp.h b/include/cmd_bsp.h
deleted file mode 100644 (file)
index 417d32f..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * (C) Copyright 2001, 2002
- * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-#ifndef _CMD_BSP_H_
-#define _CMD_BSP_H_
-
-/* do not edit this file */
-
-#endif /* _CMD_BSP_H_ */
diff --git a/include/cmd_disk.h b/include/cmd_disk.h
deleted file mode 100644 (file)
index 6e2e0cb..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * (C) Copyright 2000
- * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-/*
- * Harddisk support
- */
-#ifndef        _CMD_DISK_H
-#define        _CMD_DISK_H
-
-#include <common.h>
-#include <command.h>
-
-/*
- * Type string for U-Boot bootable partitions
- */
-#define BOOT_PART_TYPE "U-Boot"        /* primary boot partition type  */
-#define BOOT_PART_COMP "PPCBoot"       /* PPCBoot compatibility type   */
-
-#if 0
-
-typedef        struct disk_partition {
-       ulong   start;          /* # of first block in partition        */
-       ulong   size;           /* number of blocks in partition        */
-       ulong   blksz;          /* block size in bytes                  */
-       uchar   name[32];       /* partition name                       */
-       uchar   type[32];       /* string type description              */
-} disk_partition_t;
-
-int get_partition_info     (block_dev_desc_t * dev_desc, int part, disk_partition_t *info);
-#ifdef CONFIG_MAC_PARTITION
-int get_partition_info_mac (block_dev_desc_t * dev_desc, int part, disk_partition_t *info);
-#endif
-#ifdef CONFIG_DOS_PARTITION
-int get_partition_info_dos (block_dev_desc_t * dev_desc, int part, disk_partition_t *info);
-#endif
-#endif /* 0 */
-
-#endif /* _CMD_DISK_H */
diff --git a/include/cmd_fat.h b/include/cmd_fat.h
deleted file mode 100644 (file)
index 12245bd..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * (C) Copyright 2002
- * Richard Jones, rjones@nexus-tech.net
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-/*
- * FAT support
- */
-#ifndef        _CMD_FAT_H
-#define        _CMD_FAT_H
-
-#if (CONFIG_COMMANDS & CFG_CMD_FAT)
-
-int do_fat_fsload (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-int do_fat_fsinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-int do_fat_ls (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-int do_fat_dump (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-
-#define        CMD_TBL_FAT     MK_CMD_TBL_ENTRY(                               \
-       "fatload",      5,      4,      0,      do_fat_fsload,          \
-       "fatload - load binary file from a dos filesystem\n",           \
-       "[ off ] [ filename ]\n"                                        \
-       "    - load binary file from dos filesystem\n"                  \
-       "      with offset 'off'\n"                                     \
-),                                                                     \
-       MK_CMD_TBL_ENTRY(                                               \
-       "fatinfo",      5,      1,      1,      do_fat_fsinfo,          \
-       "fatinfo - print information about filesystem\n",               \
-       "\n"                                                            \
-       "    - print information about filesystem\n"                    \
-),                                                                     \
-       MK_CMD_TBL_ENTRY(                                               \
-       "fatls",        2,      2,      1,      do_fat_ls,              \
-       "fatls   - list files in a directory (default /)\n",            \
-       "[ directory ]\n"                                               \
-       "    - list files in a directory.\n"                            \
-),
-
-#else
-#define CMD_TBL_FAT
-#endif /* CFG_CMD_FAT */
-
-#endif /* _CMD_FAT_H */
diff --git a/include/cmd_mmc.h b/include/cmd_mmc.h
deleted file mode 100644 (file)
index ff5a176..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-#ifndef        _CMD_MMC_H_
-#define        _CMD_MMC_H_
-
-#include <command.h>
-
-#if (CONFIG_COMMANDS & CFG_CMD_MMC)
-
-#define        CMD_TBL_MMC     MK_CMD_TBL_ENTRY(       \
-       "mmcinit",      4,      1,      0,      do_mmc, \
-       "mmcinit - init mmc card\n", \
-),
-#else
-
-#define        CMD_TBL_MMC
-
-#endif
-
-int do_mmc (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-
-#endif /* _CMD_MMC_H_ */
diff --git a/include/cmd_nand.h b/include/cmd_nand.h
deleted file mode 100644 (file)
index ce7ee84..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-/*
- * NAND support
- */
-#ifndef        _CMD_NAND_H
-#define        _CMD_NAND_H
-
-#include <common.h>
-#include <command.h>
-
-
-#if (CONFIG_COMMANDS & CFG_CMD_NAND)
-#define        CMD_TBL_NAND    MK_CMD_TBL_ENTRY(                                       \
-       "nand", 3,      5,      1,      do_nand,                                \
-       "nand    - NAND sub-system\n",                                          \
-       "info  - show available NAND devices\n"                                 \
-       "nand device [dev] - show or set current device\n"                      \
-       "nand read[.jffs2]  addr off size\n"                                    \
-       "nand write[.jffs2] addr off size - read/write `size' bytes starting\n" \
-       "    at offset `off' to/from memory address `addr'\n"                   \
-       "nand erase [clean] [off size] - erase `size' bytes from\n"             \
-       "    offset `off' (entire device if not specified)\n"                   \
-       "nand bad - show bad blocks\n"                                          \
-       "nand read.oob addr off size - read out-of-band data\n"                 \
-       "nand write.oob addr off size - read out-of-band data\n"                \
-),
-
-#define CMD_TBL_NANDBOOT       MK_CMD_TBL_ENTRY(                               \
-       "nboot", 4,     4,      1,      do_nandboot,                            \
-       "nboot   - boot from NAND device\n",                                    \
-       "loadAddr dev\n"                                                        \
-),
-
-int do_nand (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-int do_nandboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-
-#else
-#define CMD_TBL_NAND
-#define CMD_TBL_NANDBOOT
-#endif
-
-#endif /* _CMD_NAND_H */
diff --git a/include/cmd_portio.h b/include/cmd_portio.h
deleted file mode 100644 (file)
index 6897ab6..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * (C) Copyright 2003
- * Marc Singer, elf@buici.com
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-/*
- * Memory Functions
- */
-#ifndef        _CMD_PORTIO_H
-#define _CMD_PORTIO_H
-
-#if (CONFIG_COMMANDS & CFG_CMD_PORTIO)
-
-#define CMD_TBL_PORTIO_OUT     MK_CMD_TBL_ENTRY(                     \
-       "out",          3,      3,      1,      do_portio_out,        \
-       "out     - write datum to IO port\n",                         \
-       "[.b, .w, .l] port value\n    - output to IO port\n"          \
-),
-#define CMD_TBL_PORTIO_IN      MK_CMD_TBL_ENTRY(                     \
-       "in",           2,      2,      1,      do_portio_in,         \
-       "in      - read data from an IO port\n",                      \
-       "[.b, .w, .l] port\n"                                         \
-       "    - read datum from IO port\n"                             \
-),
-
-int do_portio_out (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-int do_portio_in  (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-
-#else
-#define CMD_TBL_PORTIO_OUT
-#define CMD_TBL_PORTIO_IN
-#endif /* CFG_CMD_PORTIO */
-
-#endif /* _CMD_PORTIO_H */
index 0bb43533c6250afddab45b899c2b19f0a7c57d10..8a98de3f26db63112d5d6f10a861e24a9adbb921 100644 (file)
@@ -147,8 +147,11 @@ extern ulong monitor_flash_len;
 /* common/flash.c */
 void flash_perror (int);
 
+/* common/cmd_autoscript.c */
+int    autoscript (ulong addr);
+
 /* common/cmd_bootm.c */
-void print_image_hdr (image_header_t *hdr);
+void   print_image_hdr (image_header_t *hdr);
 
 extern ulong load_addr;                /* Default Load Address */
 
index 2989d42a9aef411498c74e925528aa7a78825730..34923f1db9707d8bb9b7d9757318805724bd8299 100644 (file)
 
 #ifdef CONFIG_8xx_CONS_SCC2    /* Can't use ethernet, then */
 #define CONFIG_COMMANDS             ( (CONFIG_CMD_DFL & ~CFG_CMD_NET) | \
+                               CFG_CMD_ASKENV  | \
                                CFG_CMD_DATE    | \
                                CFG_CMD_I2C     | \
                                CFG_CMD_EEPROM  | \
                                CFG_CMD_POST_DIAG )
 #else
 #define CONFIG_COMMANDS              ( CONFIG_CMD_DFL  | \
+                               CFG_CMD_ASKENV  | \
                                CFG_CMD_DHCP    | \
                                CFG_CMD_DATE    | \
                                CFG_CMD_I2C     | \
index 35afa28d3e6ff7ef3a1e633c35c88c7f17ffec2c..2f5a01dead45a623c8e1b97f39c843b00601a947 100644 (file)
@@ -37,15 +37,20 @@ typedef struct block_dev_desc {
        unsigned char product[20];/* IDE Serial no, SCSI product */
        unsigned char revision[8];/* firmware revision */
        unsigned char removable;        /* removable device */
-       unsigned long (*block_read)(int dev,unsigned long start,unsigned long blkcnt, unsigned long *buffer);
+       unsigned long (*block_read)(int dev,
+                                   unsigned long start,
+                                   unsigned long blkcnt,
+                                   unsigned long *buffer);
 }block_dev_desc_t;
+
 /* Interface types: */
-#define IF_TYPE_UNKNOWN        0
-#define IF_TYPE_IDE                    1
+#define IF_TYPE_UNKNOWN                0
+#define IF_TYPE_IDE            1
 #define IF_TYPE_SCSI           2
 #define IF_TYPE_ATAPI          3
-#define IF_TYPE_USB                    4
-#define IF_TYPE_DOC                    5
+#define IF_TYPE_USB            4
+#define IF_TYPE_DOC            5
+
 /* Part types */
 #define        PART_TYPE_UNKNOWN       0x00
 #define PART_TYPE_MAC          0x01
@@ -53,12 +58,18 @@ typedef struct block_dev_desc {
 #define PART_TYPE_ISO          0x03
 #define PART_TYPE_AMIGA         0x04
 
+/*
+ * Type string for U-Boot bootable partitions
+ */
+#define BOOT_PART_TYPE "U-Boot"        /* primary boot partition type  */
+#define BOOT_PART_COMP "PPCBoot"       /* PPCBoot compatibility type   */
+
 /* device types */
-#define DEV_TYPE_UNKNOWN 0xff /* not connected */
-#define DEV_TYPE_HARDDISK 0x00 /* harddisk */
-#define DEV_TYPE_TAPE          0x01 /* Tape */
-#define DEV_TYPE_CDROM                 0x05 /* CD-ROM */
-#define DEV_TYPE_OPDISK        0x07 /* optical disk */
+#define DEV_TYPE_UNKNOWN       0xff    /* not connected */
+#define DEV_TYPE_HARDDISK      0x00    /* harddisk */
+#define DEV_TYPE_TAPE          0x01    /* Tape */
+#define DEV_TYPE_CDROM                 0x05    /* CD-ROM */
+#define DEV_TYPE_OPDISK        0x07    /* optical disk */
 
 typedef        struct disk_partition {
        ulong   start;          /* # of first block in partition        */