diff options
| author | wdenk <wdenk> | 2004-08-28 21:09:14 +0000 | 
|---|---|---|
| committer | wdenk <wdenk> | 2004-08-28 21:09:14 +0000 | 
| commit | 31a649234ee4051e96cf45285cdf2dbfa668d30c (patch) | |
| tree | b5f30d8b26974d60fee1ab69f2edb9876d7a0622 /common/cmd_fat.c | |
| parent | 89394047ba438f70f40ebc89b812824b01fec663 (diff) | |
| download | olio-uboot-2014.01-31a649234ee4051e96cf45285cdf2dbfa668d30c.tar.xz olio-uboot-2014.01-31a649234ee4051e96cf45285cdf2dbfa668d30c.zip | |
* Add automatic update support for LWMON boardLABEL_2004_08_28_2355
* Enable MSDOS/VFAT filesystem support for LWMON board
* Clear Block Lock-Bits when erasing flash on LWMON board.
* Fix return code of "fatload" command
* Disable debugging for TQM5200 board
Diffstat (limited to 'common/cmd_fat.c')
| -rw-r--r-- | common/cmd_fat.c | 15 | 
1 files changed, 8 insertions, 7 deletions
| diff --git a/common/cmd_fat.c b/common/cmd_fat.c index 150a2ea67..6844c103f 100644 --- a/common/cmd_fat.c +++ b/common/cmd_fat.c @@ -86,7 +86,7 @@ int do_fat_fsload (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  	if (argc < 5) {  		printf ("usage: fatload <interface> <dev[:part]> <addr> <filename> [bytes]\n"); -		return (0); +		return 1;  	}  	dev = (int)simple_strtoul (argv[2], &ep, 16);  	dev_desc=get_dev(argv[1],dev); @@ -114,14 +114,15 @@ int do_fat_fsload (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  	if(size==-1) {  		printf("\n** Unable to read \"%s\" from %s %d:%d **\n",argv[4],argv[1],dev,part); -	} else { -		printf ("\n%ld bytes read\n", size); - -		sprintf(buf, "%lX", size); -		setenv("filesize", buf); +		return 1;  	} -	return size; +	printf ("\n%ld bytes read\n", size); + +	sprintf(buf, "%lX", size); +	setenv("filesize", buf); + +	return 0;  } |