[U-Boot-Users] Statically assigned IP addresses

Hello,
This is my first time using U-boot and I have what I am sure is a newbie question. However, I am getting an error while attempting to access the archives at SourceForge, so I'll go ahead and post the following.
1. On my Chameleon 405EP board, it appears the Ethernet interface is off by default. While the board is running Linux, the Ethernet interface is *not* brought up by default -- rather, I must type 'ifconfig eth0 up'. This seems strange, but I can 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 IP address set in environment variables, so what else do I need to do to get the board to answer a ping???
2. 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?
3. 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.
Thanks.

Hello (o;
Hello,
This is my first time using U-boot and I have what I am sure is a newbie question. However, I am getting an error while attempting to access the archives at SourceForge, so I'll go ahead and post the following.
- On my Chameleon 405EP board, it appears the Ethernet
interface is off by default. While the board is running Linux, the Ethernet interface is *not* brought up by default -- rather, I must type 'ifconfig eth0 up'. This seems strange, but I can 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 IP address set in environment variables, so what else do I need to do to get the board to answer a ping???
Are you able to tftp an image to your board in u-boot? Get's your ethernet controller initialized after reset? Using a strange/cheap hub/switch?
In Linux you have always some "ifconfig interface xxxx" stuff during boot...so adding an "up" statement wouldn't hurt...
- 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?
setenv netmask x.x.x.x
and if you like:
setenv gatewayip x.x.x.x
- 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.
Should be...
rick

In message <r02010000-1028-67E4B45645F911D888A700039387ACB6@[10.0.1.1]> you wrote:
In Linux you have always some "ifconfig interface xxxx" stuff during boot...so adding an "up" statement wouldn't hurt...
This is wrong. You can use IP autoconfiguration and pass all required informantioon on the kernel's command line. No need to add tools like ifconfig or route to a root filesystem for 99% of all cases.
setenv netmask x.x.x.x
In almost all cases Linux will guess the correct netmask.
and if you like:
setenv gatewayip x.x.x.x
Not if you like. If you need, and only then.
Best regards,
Wolfgang Denk

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
participants (3)
-
Kerl, John
-
Richard Klingler
-
Wolfgang Denk