From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] NFS TFTP problem
Date: Wed, 06 Aug 2008 07:31:19 -0400 [thread overview]
Message-ID: <48998B87.5010304@ge.com> (raw)
In-Reply-To: <18843233.post@talk.nabble.com>
cjjoy1980 wrote:
> I have enabled nfs booting on ppc based embedded board. I had placed my
> kernel and rootfs in tftp directory, and had set the u-boot enivironment
> varialbes as:
> setenv bootfile /image/kernel
> setenv root_path /tftpboot/image
>
> The board was booting with this configuration...
>
> Now I have placed the kernel image and rootfs in /exports directory and have
> set the uboot variables as:
> setenv bootfile /exports/image/kernel
> setenv root_path /exports/image
>
> I am not able to boot the board with the above directory. I am getting the
> error
>
> Loading: T
> TFTP error: 'File not found' (1)
> Starting again.
>
> TFTP by default looks for /tftpboot directory.. How can we make the server
> to fetch files apart from the default one??
You cannot make the TFTP server fetch files apart from the default one.
Furthermore, you don't want to.
TFTP inherently has *NO* concept of security: no authentication -
*anybody* can read *any* file in the TFTP directory and potentially can
write any file they want into the TFTP directory.
As a result, TFTP servers are (and should be) severely restrictive of
what directories they serve files out of and are willing to store files
into (if configured to allow writing - generally a bad idea).
You can configure your TFTP server to serve the same directory as you
export via NFS and your TFTP load will start working again.
****THIS IS A VERY, VERY BAD IDEA!****
As pointed out by Ben, you can symlink your image file so that it
appears in your TFTP directory again - this is the best solution if you
*must* move your image into the NFS directory. You need to decide if
you have a good reason to move your image *out* of your TFTP directory.
Best regards,
gvb
prev parent reply other threads:[~2008-08-06 11:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-06 2:24 [U-Boot-Users] NFS TFTP problem cjjoy1980
2008-08-06 4:22 ` Ben Warren
2008-08-06 6:33 ` Hebbar
2008-08-06 11:31 ` Jerry Van Baren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48998B87.5010304@ge.com \
--to=gerald.vanbaren@ge.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.