--- u-boot-1.1.2/common/Makefile 2004-12-16 09:35:57.000000000 -0800 +++ u-boot-install/common/Makefile 2005-04-12 07:00:25.000000000 -0700 @@ -34,7 +34,7 @@ cmd_date.o cmd_dcr.o cmd_diag.o cmd_doc.o cmd_dtt.o \ cmd_eeprom.o cmd_elf.o cmd_ext2.o \ cmd_fat.o cmd_fdc.o cmd_fdos.o cmd_flash.o cmd_fpga.o \ - cmd_i2c.o cmd_ide.o cmd_immap.o cmd_itest.o cmd_jffs2.o \ + cmd_i2c.o cmd_ide.o cmd_immap.o cmd_install.o cmd_itest.o cmd_jffs2.o \ cmd_load.o cmd_log.o \ cmd_mem.o cmd_mii.o cmd_misc.o cmd_mmc.o \ cmd_nand.o cmd_net.o cmd_nvedit.o \ --- u-boot-1.1.2/common/cmd_install.c 1969-12-31 16:00:00.000000000 -0800 +++ u-boot-install/common/cmd_install.c 2005-04-12 07:43:10.000000000 -0700 @@ -0,0 +1,70 @@ +/* + * (C) Copyright 2005 + * Craig Hughes, Gumstix Inc. + * + * 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 + */ + +/* + * Install command to copy compiled-in binary to flash + * + */ + +#include +#include +#if (CONFIG_COMMANDS & CFG_CMD_INSTALL) + +#ifdef CONFIG_GUMSTIX_CPUSPEED_400 +#include +#else +#include +#endif + +int do_install ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) +{ + int rc; + size_t sect_top; + + if (argc != 1) { + printf ("Usage:\n%s\n", cmdtp->usage); + return 1; + } + + for(sect_top=0; sect_top