[U-Boot-Users] patch to add autoload via NFS

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

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

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

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

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

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

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

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
participants (3)
-
Masami Komiya
-
Steven Scholz
-
Wolfgang Denk