mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* where is tftp mounting documented in the source code?
@ 2012-11-19 14:48 Robert P. J. Day
  2012-11-20  8:08 ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2012-11-19 14:48 UTC (permalink / raw)
  To: U-Boot Version 2 (barebox)


  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
  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?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: where is tftp mounting documented in the source code?
  2012-11-19 14:48 where is tftp mounting documented in the source code? Robert P. J. Day
@ 2012-11-20  8:08 ` Sascha Hauer
  2012-11-20 12:03   ` Robert P. J. Day
  0 siblings, 1 reply; 4+ messages in thread
From: Sascha Hauer @ 2012-11-20  8:08 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: U-Boot Version 2 (barebox)

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 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: where is tftp mounting documented in the source code?
  2012-11-20  8:08 ` Sascha Hauer
@ 2012-11-20 12:03   ` Robert P. J. Day
  2012-11-21  9:11     ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2012-11-20 12:03 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: U-Boot Version 2 (barebox)

On Tue, 20 Nov 2012, Sascha Hauer wrote:

> 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.

  so ... the wiki page should be updated to show both the old and new
behaviour?  and the "help mount" content should be extended as well?
what's the proper fix here?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: where is tftp mounting documented in the source code?
  2012-11-20 12:03   ` Robert P. J. Day
@ 2012-11-21  9:11     ` Sascha Hauer
  0 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2012-11-21  9:11 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: U-Boot Version 2 (barebox)

On Tue, Nov 20, 2012 at 07:03:58AM -0500, Robert P. J. Day wrote:
> On Tue, 20 Nov 2012, Sascha Hauer wrote:
> 
> > 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.
> 
>   so ... the wiki page should be updated to show both the old and new
> behaviour?  and the "help mount" content should be extended as well?
> what's the proper fix here?

I intentionally did not document the old behaviour. I think the help
texts in the binary should be rather terse. In the wiki though it
shouldn't hurt to add a side note explaining the old behaviour along
with a "don't use it".

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 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-21  9:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-19 14:48 where is tftp mounting documented in the source code? Robert P. J. Day
2012-11-20  8:08 ` Sascha Hauer
2012-11-20 12:03   ` Robert P. J. Day
2012-11-21  9:11     ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox