where is tftp mounting documented in the source code?
Sascha Hauer
s.hauer at pengutronix.de
Tue Nov 20 03:08:31 EST 2012
On Mon, Nov 19, 2012 at 09:48:41AM -0500, Robert P. J. Day wrote:
>
> perusing the wiki and ran across page on TFTP support:
> http://wiki.barebox.org/doku.php?id=filesystems:tftp which suggests:
>
> mount 192.168.1.1 tftp /mnt/tftp
This was the original mount behaviour. This was recently changed to
mount -t fstype <ip> /dir, mainly to allow making the fstype option
optional for autodetecting the type. The wiki page is out of date here.
As a sidenote I brought back the old behaviour as a compatibility option
to not break old environments.
> bootm /mnt/tftp/uImage
>
> but where is that documented in the source or help? if i configure in
> long help options, then i get:
>
> barebox:/ help mount
> Usage: mount [[-t <fstype] <device> <mountpoint>]
> Mount a filesystem of a given type to a mountpoint.
> If no fstype is specified, try to detect it automatically.
> If no argument is given, list mounted filesystems.
>
> which says nothing about tftp mounting. where would someone already
> running barebox bring up help info that explains the tftp mounting?
mount -t tftp 192.168.1.1 /mnt/tftp
The special thing about tftp is that tftp does not have directory
listing support, so you will always see an empty directory, even when
mounted. The files are there nevertheless and can be accessed.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list