RE: [U-Boot-Users] Statically assigned IP addresses

All:
Thanks for the reply.
No, not a cheap hub/switch (as evidenced by the fact that all is well when running in Linux). The problem is my naive understanding of U-boot: In our firmware, Ethernet is enabled at start-up, and we always answer pings. (And you do not need interrupts to do that -- our firmware runs polled and handles pings just fine.) I am in the habit of thinking that if a node doesn't answer a ping, it is inoperable. Also, we run a TFTP server on the board, with a client on the PC. This way, the PC can do a TFTP put to download files, or TFTP get to retrieve them. Whereas U-boot runs a TFTP client on the board, and can only download.
It is simply the case that U-boot was designed differently:
* Pings are not answered.
* Ethernet is brought up only when one runs tftpboot et al.
* There appears to be no way to use TFTP to copy data from the board to the PC.
These are U-boot design decisions; my error was in expecting something else.
Thanks for all the prompt and helpful replies!
-----Original Message----- From: Wolfgang Denk [mailto:wd@denx.de] Sent: Tuesday, January 13, 2004 1:02 PM To: Kerl, John Cc: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] Statically assigned IP addresses
Dear John,
in message C7FFFEA58B43D311920D0004ACE5333F10E4F4FF@amer25.avnet.com you wrote:
- On my Chameleon 405EP board, it appears the Ethernet interface is off by default. While the board is
No, it is not off. It get's enabled when used.
running Linux, the Ethernet interface is *not* brought up by default -- rather, I must type 'ifconfig eth0 up'. This seems strange, but I can
Did you enable IP autoconfiguration in the kernel, and did you pass appropriate "ip=" comand line arguments to Linux?
live with it. While the board is running U-boot, on the other hand, there does not appear to be a 'bring up Ethernet' command. I have MAC address and
Ethernet get's enabled when used.
IP address set in environment variables, so what else do I need to do to get the board to answer a ping???
U-Boot can be configured to send ping ICMP messages and show the reply, but it does not answer incoming ICMP requests.
- Probably the same as the first question -- assigning a static IP address. In our lab, we do not use DHCP; addresses are statically assigned. Is setenv ipaddr {n.n.n.n} sufficient? If not, what else do I need to do?
For U-Boot this is sufficient. For Linux you must pass this information to the Linux kernel using an "ip=" command line argument.
Ummm... what exactly is unclear in the description in http://www.denx.de/twiki/bin/view/DULG/LinuxBootArgs that you need to ask all these questions?
- Is this standard U-boot behavior, or is it peculiar to the Chameleon board? On the boards we manufacture (and in our firmware), Ethernet comes up by default.
This is standard U-Boot behaviour.
I don't understand what you mean by "comes up". U-Boot imnitializes the network interface(s) only when you try to use them.
Best regards,
Wolfgang Denk

Dear John,
in message C7FFFEA58B43D311920D0004ACE5333F10E4F500@amer25.avnet.com you wrote:
understanding of U-boot: In our firmware, Ethernet is enabled at start-up, and we always answer pings. (And you do not need interrupts to do that -- our firmware runs polled and handles pings just fine.) I am in the habit of thinking that if a node
Thaty means you have to implement some kind of multitasking. or how do you poll the network interface while another command is running?
doesn't answer a ping, it is inoperable. Also, we run a TFTP
That is not true.
server on the board, with a client on the PC. This way, the PC
That is pretty non-standard. The typical way to bootstrap systems from a boot server is that the boting system will use TFTP / BOOTP / DHCP as a _client_.
- Pings are not answered.
Because U-Boot is single-tasking.
- Ethernet is brought up only when one runs tftpboot et al.
Because there is no use in wasting time to bring up interfaces which are not used. U-Boot is intended to allow for fast booting.
- There appears to be no way to use TFTP to copy data from the board to the PC.
Please feel free to add a TFTP upload command.
These are U-boot design decisions; my error was in expecting something else.
Indeed.
Best regards,
Wolfgang Denk
participants (2)
-
Kerl, John
-
Wolfgang Denk