Krzysztof Halasa
d66ae58cd8
Cosmetic fixes, including format attributes for printf() and friends.
...
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-12-21 09:02:40 +01:00
Robert Schwebel
b8315d622d
doc: unify documentation for 'tftp'
...
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2010-11-01 16:23:09 +01:00
Sascha Hauer
38d862f687
tftp: update doxygen information
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-28 10:45:25 +02:00
Sascha Hauer
d0548ba506
tftp: Add push support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Baruch Siach <baruch@tkos.co.il>
2010-06-28 10:45:04 +02:00
Sascha Hauer
c59d7ae527
tftp: use generic progression bar
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-28 10:43:55 +02:00
Sascha Hauer
3039467bbd
tftp: remove unused variables
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-28 10:43:55 +02:00
Sascha Hauer
17f1f5b3b7
implement tftp using new network stack
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:21 +02:00
Jan Weitzel
0a28ada177
tftp return value
...
tftp returns transfered bytes on success and 1 in error case. Bad for
scripting. Change to 0 on success
Signed-off-by: Jan Weitzel <J.Weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-14 10:13:07 +02:00
Sascha Hauer
8f0d0f25ed
replace ET_DEBUG with pr_debug
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Sascha Hauer
922bb41a47
remove typedef cmd_tbl_t and replace it with struct command
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Sascha Hauer
88351d2e4b
Move tftp/nfs specific code to net/*
...
This adds a few bytes of binary space but is done to put
the code where it belongs to.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:31 +01:00
Sascha Hauer
2dc2132f0e
remove global variable BootFile
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer
feb58df760
tftp: use debug macro
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer
e225e4fcdd
tftp: coding style
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer
ef2787ab26
tftp: reorder to get rid of static function declarations
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:36 +02:00
Sascha Hauer
4aedcf8531
tftp: remove never reached state STATE_BAD_MAGIC
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 09:18:49 +02:00
Sascha Hauer
8aab890453
tftp: remove never reached state STATE_TOO_LARGE
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 09:17:47 +02:00
Sascha Hauer
8cef3301f8
tftp: remove volatile from variables
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 09:15:35 +02:00
Sascha Hauer
e8b856dc03
remove unused code
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 09:10:39 +02:00
Sascha Hauer
fdc9bd236e
tftp: consolidate different puts to printf
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 09:10:09 +02:00
Sascha Hauer
3830d35bc6
tftp: remove unnecessary gateway information
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 09:07:41 +02:00
Sascha Hauer
a5f301fb7a
remove unused variable NetBootFileSize
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 08:54:57 +02:00
Sascha Hauer
551d088687
tftp: remove default filename. We always have a filename given
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 08:49:45 +02:00
Sascha Hauer
4d0670f227
net: cleanup header file
...
move contents of bootp.h to .c file and remove it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 11:02:15 +02:00
Sascha Hauer
eedb766979
tftp: do not call NetStartAgain()
...
When we are in the middle of transferring a file it does
not make sense to restart the transfer because we may
transfer directly to flash in which case we would have
to erase the flash prior to attempting again.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:47:12 +02:00
Sascha Hauer
566e0d93ce
tftp.c: use sprintf instead of several strcpy functions
2008-03-31 21:54:37 +02:00
Sascha Hauer
326e4bddc3
print_size() -> size_human_readable()
...
return a pointer to a human readable string rather than printingit directly
2007-09-26 15:23:46 +02:00
Sascha Hauer
0dd68e795e
- putc is now putchar for better standard conformity
...
- make printf return int
2007-09-21 09:09:06 +02:00
Sascha Hauer
98432d3925
svn_rev_683
...
more cleanups, fix compiler warnings
2007-07-05 18:02:16 +02:00
Sascha Hauer
be8b9a1abb
svn_rev_440
...
what a silly bug of mine. Chances were good we generated a negative
port number causing tftp to fail
2007-07-05 18:01:54 +02:00
Sascha Hauer
aa3f43b9f5
svn_rev_408
...
store_block can fail
2007-07-05 18:01:51 +02:00
Sascha Hauer
112ada667b
svn_rev_270
...
WIP FS support
2007-07-05 18:01:38 +02:00
Sascha Hauer
cf7a56fc78
svn_rev_268
...
WIP
2007-07-05 18:01:38 +02:00
Sascha Hauer
b78d1fafea
svn_rev_223
...
add missing include
2007-07-05 18:01:34 +02:00
Sascha Hauer
4227970a25
svn_rev_211
...
memcpy -> write
2007-07-05 18:01:33 +02:00
Sascha Hauer
11a0b5a0dd
svn_rev_108
...
removed ifdefs, moved ping to own file, fix timeout handler
2007-07-05 18:01:23 +02:00
Sascha Hauer
e8c0cebedc
svn_rev_035
...
no modulo for 64bit
2007-07-05 18:01:15 +02:00
Sascha Hauer
363266d818
svn_rev_033
...
change to clocksource api
2007-07-05 18:01:15 +02:00
Wolfgang Denk
ddd5d9daf0
Fix typo.
...
Patch by Andreas Engel, 28 Nov 2005
2006-08-14 22:43:13 +02:00
Wolfgang Denk
84bd92bdda
Merge with /home/m8/git/u-boot
2005-10-15 18:23:43 +02:00
Wolfgang Denk
77ddac9480
Cleanup for GCC-4.x
2005-10-13 16:45:02 +02:00
Marian Balakowicz
e6f2e90233
Added support for TQM834x boards.
2005-10-11 19:09:42 +02:00
Wolfgang Denk
28cb937584
Update for TFTP using a fixed UDP port
...
Use the approved environment variable names. Added "tftpdstp" to
allow ports other than 69 per Tolunay Orkun's recommendation.
Patch by Jerry Van Baren, 12 Jan 2005
2005-09-24 23:25:46 +02:00
Wolfgang Denk
ecb0ccd9c2
Allow to force TFTP to use a fixed UDP port
...
(Add a configuration option CONFIG_TFTP_PORT and optional env variable tftpport)
Patch by Jerry Van Baren, 10 Jan 2005
2005-09-24 22:37:32 +02:00
Wolfgang Denk
7bc5ee0785
Prepare U-Boot for gcc-4.x
2005-08-26 01:36:03 +02:00
Wolfgang Denk
c43352ccfa
Fix endianess problem in TFTP / NFS default filenames
...
Patch by Hiroshi Ito, 06 Dec 2004
2005-08-04 01:09:44 +02:00
wdenk
a3d991bd0d
Patches by Pantelis Antoniou, 30 Mar 2004:
...
add networking support for VLANs (802.1q), and CDP (Cisco Discovery Protocol)
2004-04-15 21:48:45 +00:00
wdenk
4b9206ed51
* Patches by Thomas Viehweger, 16 Mar 2004:
...
- show PCI clock frequency on MPC8260 systems
- add FCC_PSMR_RMII flag for HiP7 processors
- in do_jffs2_fsload(), take load address from load_addr if not set
explicit, update load_addr otherwise
- replaced printf by putc/puts when no formatting is needed
(smaller code size, faster execution)
2004-03-23 22:14:11 +00:00
wdenk
cd0a9de68b
* Patch by Laurent Mohin, 10 Feb 2004:
...
Fix buffer overflow in common/usb.c
* Patch by Tolunay Orkun, 10 Feb 2004:
Add support for Cogent CSB272 board
* Code cleanup
2004-02-23 20:48:38 +00:00
wdenk
3f85ce2785
* CVS add missing files
...
* Cleanup compiler warnings
* Fix problem with side effects in macros in include/usb.h
* Patch by David Benson, 13 Nov 2003:
bug 841358 - fix TFTP download size limit
* Fixing bug 850768:
improper flush_cache() in load_serial()
* Fixing bug 834943:
MPC8540 - missing volatile declarations
* Patch by Stephen Williams, 09 Feb 2004:
Add support for Xilinx SystemACE chip:
- New files common/cmd_ace.c and include/systemace.h
- Hook systemace support into cmd_fat and the partition manager
* Patch by Travis Sawyer, 09 Feb 2004:
Add bi_opbfreq & bi_iic_fast to 440GX bd_info as needed for Linux
2004-02-23 16:11:30 +00:00