* [U-Boot-Users] patch to add autoload via NFS
@ 2004-02-25 13:08 Masami Komiya
2004-02-25 13:29 ` Steven Scholz
0 siblings, 1 reply; 10+ messages in thread
From: Masami Komiya @ 2004-02-25 13:08 UTC (permalink / raw)
To: u-boot
The patch to add autoload via NFS after bootp or dhcp.
If you want to use, please define CONFIG_AUTOLOAD_VIA_NFS
in your configuration file.
What do you think about this patch ? (although I don't need
autoload so much.)
Best regards.
Masami Komiya @ Tokyo.JP
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nfs-autoload.patch.gz
Type: application/x-gzip
Size: 318 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040225/3661f84d/attachment.bin
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot-Users] patch to add autoload via NFS
2004-02-25 13:08 [U-Boot-Users] patch to add autoload via NFS Masami Komiya
@ 2004-02-25 13:29 ` Steven Scholz
2004-02-25 14:27 ` Masami Komiya
0 siblings, 1 reply; 10+ messages in thread
From: Steven Scholz @ 2004-02-25 13:29 UTC (permalink / raw)
To: u-boot
Masami Komiya wrote:
> The patch to add autoload via NFS after bootp or dhcp.
>
> If you want to use, please define CONFIG_AUTOLOAD_VIA_NFS
> in your configuration file.
>
> What do you think about this patch ? (although I don't need
> autoload so much.)
Hmm. If you do it this way you can't have autoload enabled for both
NFS and TFTP! Is that a good thing?
Is there a way the DHCP server can tell the client how to load the
file? I.e. to use tftp or nfs or something else? So you can decide
based answer from the DHCP server how to load it...
--
Steven Scholz
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot-Users] patch to add autoload via NFS
2004-02-25 13:29 ` Steven Scholz
@ 2004-02-25 14:27 ` Masami Komiya
2004-02-25 14:34 ` Steven Scholz
0 siblings, 1 reply; 10+ messages in thread
From: Masami Komiya @ 2004-02-25 14:27 UTC (permalink / raw)
To: u-boot
Steven Scholz wrote:
> Masami Komiya wrote:
>
>>The patch to add autoload via NFS after bootp or dhcp.
>>
>>If you want to use, please define CONFIG_AUTOLOAD_VIA_NFS
>>in your configuration file.
>>
>>What do you think about this patch ? (although I don't need
>>autoload so much.)
>
> Hmm. If you do it this way you can't have autoload enabled for both
> NFS and TFTP! Is that a good thing?
I want to enable the both. But I didn't have the idea how to decide
the protocol TFTP or NFS.
> Is there a way the DHCP server can tell the client how to load the
> file? I.e. to use tftp or nfs or something else? So you can decide
> based answer from the DHCP server how to load it...
I can't find out the such keyword in the manual of dhcpd.conf.
Otherwise, to use the new environment variable like "autoload-nfs"
or "autoload-protocol" to decide the protocol.
Does anyone have the idea ?
Best regards.
Masami Komiya @ Tokyo.JP
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot-Users] patch to add autoload via NFS
2004-02-25 14:27 ` Masami Komiya
@ 2004-02-25 14:34 ` Steven Scholz
2004-02-25 15:54 ` Masami Komiya
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Steven Scholz @ 2004-02-25 14:34 UTC (permalink / raw)
To: u-boot
>>Is there a way the DHCP server can tell the client how to load the
>>file? I.e. to use tftp or nfs or something else? So you can decide
>>based answer from the DHCP server how to load it...
>
>
> I can't find out the such keyword in the manual of dhcpd.conf.
>
> Otherwise, to use the new environment variable like "autoload-nfs"
> or "autoload-protocol" to decide the protocol.
>
> Does anyone have the idea ?
The idea is already in your mail: Use the existing environment
variable autoload like
autoload=n -> no autoload
autoload=y -> tftp (for historical reasons)
autoload=tftp -> use tftp
autoload=nfs -> use NFS
How about that?
--
Steven Scholz
imc Measurement & Control imc Me?systeme GmbH
Voltastr. 5 Voltastr. 5
13355 Berlin 13355 Berlin
Germany Deutschland
^ permalink raw reply [flat|nested] 10+ messages in thread* [U-Boot-Users] patch to add autoload via NFS
2004-02-25 14:34 ` Steven Scholz
@ 2004-02-25 15:54 ` Masami Komiya
2004-02-26 4:11 ` Masami Komiya
2004-02-26 9:33 ` Wolfgang Denk
2 siblings, 0 replies; 10+ messages in thread
From: Masami Komiya @ 2004-02-25 15:54 UTC (permalink / raw)
To: u-boot
Steven Scholz wrote:
>> Otherwise, to use the new environment variable like "autoload-nfs"
>> or "autoload-protocol" to decide the protocol.
>>
>> Does anyone have the idea ?
>
> The idea is already in your mail: Use the existing environment variable
> autoload like
>
> autoload=n -> no autoload
> autoload=y -> tftp (for historical reasons)
> autoload=tftp -> use tftp
> autoload=nfs -> use NFS
>
> How about that?
Very nice, I agree with you.
I'll wait the other idea for a while before making.
Masami Komiya @ Tokyo.JP
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot-Users] patch to add autoload via NFS
2004-02-25 14:34 ` Steven Scholz
2004-02-25 15:54 ` Masami Komiya
@ 2004-02-26 4:11 ` Masami Komiya
2004-02-26 9:34 ` Wolfgang Denk
2004-02-27 0:24 ` Wolfgang Denk
2004-02-26 9:33 ` Wolfgang Denk
2 siblings, 2 replies; 10+ messages in thread
From: Masami Komiya @ 2004-02-26 4:11 UTC (permalink / raw)
To: u-boot
Steven Scholz wrote:
> The idea is already in your mail: Use the existing environment variable
> autoload like
>
> autoload=n -> no autoload
> autoload=y -> tftp (for historical reasons)
> autoload=tftp -> use tftp
> autoload=nfs -> use NFS
nfs-autoload-eval-01.patch follows above.
Another simple idea is (nfs-autoload-eval-02.patch)
if (autoload==n)
no autoload
else if (autoload==N)
use NFS
else
use TFTP
Thank you for your comment.
Best regards.
Masami komiya
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nfs-autoload-eval-02.patch.gz
Type: application/x-gzip
Size: 300 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040226/065f85f0/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nfs-autoload-eval-01.patch.gz
Type: application/x-gzip
Size: 507 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040226/065f85f0/attachment-0001.bin
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot-Users] patch to add autoload via NFS
2004-02-26 4:11 ` Masami Komiya
@ 2004-02-26 9:34 ` Wolfgang Denk
2004-02-26 11:51 ` Masami Komiya
2004-02-27 0:24 ` Wolfgang Denk
1 sibling, 1 reply; 10+ messages in thread
From: Wolfgang Denk @ 2004-02-26 9:34 UTC (permalink / raw)
To: u-boot
In message <403D71F3.7000609@sonare.it> you wrote:
>
> Another simple idea is (nfs-autoload-eval-02.patch)
>
> if (autoload==n)
> no autoload
> else if (autoload==N)
> use NFS
> else
> use TFTP
I will apply this patch but modify it to test for autoload==NFS.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Vulcans believe peace should not depend on force.
-- Amanda, "Journey to Babel", stardate 3842.3
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot-Users] patch to add autoload via NFS
2004-02-26 9:34 ` Wolfgang Denk
@ 2004-02-26 11:51 ` Masami Komiya
0 siblings, 0 replies; 10+ messages in thread
From: Masami Komiya @ 2004-02-26 11:51 UTC (permalink / raw)
To: u-boot
Wolfgang Denk wrote:
> In message <403D71F3.7000609@sonare.it> you wrote:
>
>>Another simple idea is (nfs-autoload-eval-02.patch)
>>
>>if (autoload==n)
>> no autoload
>>else if (autoload==N)
>> use NFS
>>else
>> use TFTP
>
> I will apply this patch but modify it to test for autoload==NFS.
Plase modify and apply as you like.
It's my pleasure!!
Masami Komiya
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot-Users] patch to add autoload via NFS
2004-02-26 4:11 ` Masami Komiya
2004-02-26 9:34 ` Wolfgang Denk
@ 2004-02-27 0:24 ` Wolfgang Denk
1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Denk @ 2004-02-27 0:24 UTC (permalink / raw)
To: u-boot
In message <403D71F3.7000609@sonare.it> you wrote:
>
> Another simple idea is (nfs-autoload-eval-02.patch)
>
> if (autoload==n)
> no autoload
> else if (autoload==N)
... else if (autoload=="NFS")
> use NFS
> else
> use TFTP
Added.
> Thank you for your comment.
Thanks again for your contributions.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Of course there's no reason for it, it's just our policy.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot-Users] patch to add autoload via NFS
2004-02-25 14:34 ` Steven Scholz
2004-02-25 15:54 ` Masami Komiya
2004-02-26 4:11 ` Masami Komiya
@ 2004-02-26 9:33 ` Wolfgang Denk
2 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Denk @ 2004-02-26 9:33 UTC (permalink / raw)
To: u-boot
In message <403CB271.2030106@imc-berlin.de> you wrote:
>
> The idea is already in your mail: Use the existing environment
> variable autoload like
>
> autoload=n -> no autoload
> autoload=y -> tftp (for historical reasons)
> autoload=tftp -> use tftp
> autoload=nfs -> use NFS
So far, anything but "n*" will enable TFTP download. We should not
break this behaviour. My suggestion is:
autoload=n* => suppress autoload
autoload=NFS => use NFS
anything else => use TFTP
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
If you're not part of the solution, you're part of the problem.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-02-27 0:24 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-25 13:08 [U-Boot-Users] patch to add autoload via NFS Masami Komiya
2004-02-25 13:29 ` Steven Scholz
2004-02-25 14:27 ` Masami Komiya
2004-02-25 14:34 ` Steven Scholz
2004-02-25 15:54 ` Masami Komiya
2004-02-26 4:11 ` Masami Komiya
2004-02-26 9:34 ` Wolfgang Denk
2004-02-26 11:51 ` Masami Komiya
2004-02-27 0:24 ` Wolfgang Denk
2004-02-26 9:33 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox