summaryrefslogtreecommitdiffstats
path: root/net/nfs.c
Commit message (Collapse)AuthorAgeFilesLines
* treewide: fix 'new blank line at EOF' formatting errorAntony Pavlov2015-07-021-1/+0
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: harmonize in-barebox documentationHolger Schurig2014-05-141-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch does probably too much, but it's hard (and very cumbersome/time consuming) to break it out. What is does is this: * each command has one short description, e.g. "list MUX configuration" * made sure the short descriptions start lowercase * each command has one usage. That string contains just the options, e.g. "[-npn]". It's not part of the long help text. * that is, it doesn't say "[OPTIONS]" anymore, every usable option is listed by character in this (short) option string (the long description is in the long help text, as before) * help texts have been reworked, to make them - sometimes smaller - sometimes describe the options better - more often present themselves in a nicer format * all long help texts are now created with BUSYBOX_CMD_HELP_ macros, no more 'static const __maybe_unused char cmd_foobar_help[]' * made sure the long help texts starts uppercase * because cmdtp->name and cmdtp->opts together provide the new usage, all "Usage: foobar" texts have been removed from the long help texts * BUSYBOX_CMD_HELP_TEXT() provides the trailing newline by itself, this is nicer in the source code * BUSYBOX_CMD_HELP_OPT() provides the trailing newline by itself * made sure no line gets longer than 77 characters * delibertely renamed cmdtp->usage, so that we can get compile-time errors (e.g. in out-of-tree modules that use register_command() * the 'help' command can now always emit the usage, even without compiled long help texts * 'help -v' gives a list of commands with their short description, this is similar like the old "help" command before my patchset * 'help -a' gives out help of all commands Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: group 'help' outputHolger Schurig2014-05-141-0/+1
| | | | | | | | | | | | | | | | | | | The old output of "help" was just producing a long list, that usually scrolled of the screen (even on a X11 terminal). This list is more compact, and also sorted by groups. The old output format (plus grouping) is now available with 'help -v'. Example: Information commands: ?, devinfo, help, iomem, meminfo, version Boot commands: boot, bootm, go, loadb, loads, loadx, loady, saves, uimage ... Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: remove struct command pointer from commandsSascha Hauer2012-02-271-1/+1
| | | | | | This is unused in all commands and thus can be removed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net/nfs: increase timeout to 15 secondsMarc Kleine-Budde2012-01-251-1/+1
| | | | | | | | | | | On my laptop with avahi enabled (linux mdns implementation), the unmount take quite long, because the avahi daemon tries to resolve the client's host name. This leads to a delay of about 8 seconds of the unmount reply messages, so that barebox runs into a timeout. This patch increases the NFS timeout to 15 to work around the problem. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: add a context to the packet handlerSascha Hauer2011-04-121-2/+2
| | | | | | | This is not yet used, but with this the different network commands can get rid of their global data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nfs: resend requests after timeoutSascha Hauer2010-06-281-5/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nfs: Use generic progression barSascha Hauer2010-06-281-7/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* implement nfs using new network stackSascha Hauer2010-06-171-370/+346
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove typedef cmd_tbl_t and replace it with struct commandSascha Hauer2010-02-011-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Move tftp/nfs specific code to net/*Sascha Hauer2010-02-011-1/+55
| | | | | | | 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>
* rename U-Boot-v2 project to bareboxSascha Hauer2009-12-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This has been done with the following script: find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \ -e 's/u2boot/barebox/g' \ -e 's/U2Boot/barebox/g' \ -e 's/U-boot V2/barebox/g' \ -e 's/u-boot v2/barebox/g' \ -e 's/U-Boot V2/barebox/g' \ -e 's/U-Boot-v2/barebox/g' \ -e 's/U_BOOT/BAREBOX/g' \ -e 's/UBOOT/BAREBOX/g' \ -e 's/uboot/barebox/g' \ -e 's/u-boot/barebox/g' \ -e 's/u_boot/barebox/g' \ -e 's/U-Boot/barebox/g' \ -e 's/U-boot/barebox/g' \ -e 's/U-BOOT/barebox/g' find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \ xargs -0 -r rename 's/u[-_]?boot/barebox/' It needs some manual fixup following in the next patch Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nfs: allow only serveripSascha Hauer2009-10-191-9/+1
| | | | | | Do not allow to pass serverip via commandline. Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* pass filename to nfs and tftp start functionsSascha Hauer2009-10-191-3/+1
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* nfs: no default filename, we always have a filenameSascha Hauer2009-10-191-21/+8
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* remove unused variable NetBootFileSizeSascha Hauer2009-10-171-5/+0
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* net: cleanup header fileSascha Hauer2009-10-131-1/+0
| | | | | | move contents of bootp.h to .c file and remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nfs: fix calling of string_to_ip()Sascha Hauer2008-09-301-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make nfs workSascha Hauer2008-03-311-6/+10
|
* print_size() -> size_human_readable()Sascha Hauer2007-09-261-4/+5
| | | | return a pointer to a human readable string rather than printingit directly
* move dirname() and basename() to lib/libgen.c and add header fileSascha Hauer2007-09-241-27/+1
|
* svn_rev_108Sascha Hauer2007-07-051-26/+4
| | | | removed ifdefs, moved ping to own file, fix timeout handler
* svn_rev_025Sascha Hauer2007-07-051-1/+0
| | | | remove get_tbclk from architectures other than powerpc
* Fix return code of NFS commandWolfgang Denk2005-08-061-5/+9
| | | | Patch by Hiroshi Ito, 11 Dec 2004
* Fix endianess problem in TFTP / NFS default filenamesWolfgang Denk2005-08-041-6/+4
| | | | Patch by Hiroshi Ito, 06 Dec 2004
* * Patch by Ganapathi C, 04 Aug 2004:wdenk2004-09-281-7/+9
| | | | Fix NFS timeout issue
* * Fix "cls" command when used with splash screenwdenk2004-06-301-1/+1
| | | | | * Increase NFS download timeout (now 1 min - 10 sec is to short for a slow download of a big image)
* Patches by Pantelis Antoniou, 30 Mar 2004:wdenk2004-04-151-1/+1
| | | | add networking support for VLANs (802.1q), and CDP (Cisco Discovery Protocol)
* * Patches by Thomas Viehweger, 16 Mar 2004:wdenk2004-03-231-8/+3
| | | | | | | | | - 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)
* * Patch by Yuli Barcohen, 4 Mar 2004:wdenk2004-03-141-14/+21
| | | | | | | | | | | | | | | | | Fix problems with GCC 3.3.x which changed handling of global variables explicitly initialized to zero (now in .bss instead of .data as before). * Patch by Leon Kukovec, 02 Mar 2004: add strswab() to fix IDE LBA capacity, firmware and model numbers on little endian machines * Patch by Masami Komiya, 02 Mar 2004: - Remove get_ticks() from NFS code - Add verification of RPC transaction ID * Patch by Pierre Aubert, 02 Mar 2004: cleanup for IDE and USB drivers for MPC5200
* * Patch by Steven Scholz, 25 Feb 2004:wdenk2004-02-271-2/+2
| | | | | | | | | | | - Timeouts in FPGA code should be based on CFG_HZ - Minor cleanup in code for Altera FPGA ACEX1K * Patch by Steven Scholz, 25 Feb 2004: Changed "Directory Hierarchy" section in README * Patch by Masami Komiya, 25 Feb 2004: Reduce copy count in nfs_read_reply() of NFS code
* * Patch by Masami Komiya, 24 Feb 2004:wdenk2004-02-241-6/+6
| | | | | | | Update NetBootFileXferSize in NFS code * Patch by Scott McNutt, 24 Feb 2004: fix packet length in NFS code
* * Patch by Masami Komiy, 22 Feb 2004:wdenk2004-02-241-0/+772
Add support for NFS for file download * Minor code cleanup