From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Can DHCP be used for TFTP booting?
Date: Tue, 15 Jan 2008 23:39:34 -0500 [thread overview]
Message-ID: <478D8A86.70509@gmail.com> (raw)
In-Reply-To: <95455e980801152012rb03f26du960cbb2942884197@mail.gmail.com>
hce wrote:
> On Jan 16, 2008 9:30 AM, Ben Warren <biggerbadderben@gmail.com> wrote:
>
>> hce wrote:
>>
>>> Hi,
>>>
>>> I am currently using a fixed tftp server and client IP address for
>>> booting from tftp, it works fine. I am wondering if the DHCP can be
>>> used or not for tftp booting, either for both TFTP server and client
>>> IP address or just for client IP address? If so, could you please give
>>> an example of how to config DHCP parameters in CONFIG_BOOTARGS and
>>> CONFIG_BOOTCOMMAND?
>>>
>>>
>> DHCP can be used for obtaining an IP address and also booting. My advice
>> is to play with it yourself. Make sure you include CONFIG_CMD_DHCP, and
>> then try "help dhcp". Sorry for the lack of hand holding, but it's the
>> best way for you to learn. If you're really stuck, ask again.
>>
>
> I've tried to run "help dhcp", it printed out "dhcp". Nothing else I
> could see. I've searched Internet to try to find a format of
> CONFIG_CMD_DHCP. Yes, I am very much stuck at the moment. Could you
> please point me a reference manual for DHCP boot set up as well
> relavent to following issues?
>
> What I can think of there may be two issues need to be clarified:
>
> (1) How to set following parameters:
>
> #define CONFIG_BOOTARGS "..... ip=dhcp?? ..."
>
This #define fills in the 'bootargs' environment variable if it is not
set. Read the following file found in Linux kernel source:
Documentation/nfsroot.txt. I think "ip=dhcp" is right, but don't quote
me on that... You can change the value of 'bootargs' at runtime using
'setenv' and save using 'save'.
> #define CONFIG_BOOTCOMMAND "setenv ipaddr dhcp ???..."
>
This #define fills in the 'bootcmd' environment variable if it is not
set. This is what is run when the countdown timer runs out. You can of
course change this using 'setenv' and save it using 'save'
> #define CONFIG_CMD_DHCP "dhcp ???"
>
This is just a flag telling U-boot to include the 'dhcp' command. The
value is immaterial.
> (2) How to set DHCP for /tftpboot in /etc/exports?
>
>
Huh? That's not how you configure a TFTP server, only NFS exports.
> All above set up are specific IP addresses currently (CONFIG_CMD_DHCP
> is not set yet), I have no idea how the specific IP addresses can be
> replaced by DHCP?
>
>
Please have a look in the U-boot source file net/bootp.c. It may give
you some insight into which environment variables are used and how.
> BTW, I am running uboot on ARM 9 processor, booting from flash.
>
> Thank you.
>
> Kind Regards,
>
> Jim
>
>> regards,
>> Ben
>>
>>
Hope this helps a little bit.
regards,
Ben
next prev parent reply other threads:[~2008-01-16 4:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-15 22:17 [U-Boot-Users] Can DHCP be used for TFTP booting? hce
2008-01-15 22:30 ` Ben Warren
2008-01-16 4:12 ` hce
2008-01-16 4:39 ` Ben Warren [this message]
2008-01-16 8:33 ` Wolfgang Denk
2008-01-15 22:45 ` Wolfgang Denk
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=478D8A86.70509@gmail.com \
--to=biggerbadderben@gmail.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.