Skip to contentSkip to conversation

CONFIG_SERVERIP

U-Boot E Robertson 3 participants 4 messages Mar 25, 2009

lore
Share & tools
lore
#0 lore raw

Hi all,
In the current git source, I have the serverip config set but tftp complains about serverip not being set.
I didn't see any changes to the source here. Am I missing something?

Quoted 1 line

printenv

baudrate=115200
ipaddr=192.168.0.200
serverip=192.168.0.100
gatewayip=192.168.0.1
netmask=255.255.255.0
hostname="Vincy"
ethaddr=00:07:A6:00:6A:E6
bootdelay=5
bootargs=
bootcmd=
ethact=macb0

Environment size: 247/16380 bytes
OmniTouch> tftp
link up, 100Mbps full-duplex (lpa: 0x41e1)
*** ERROR: `serverip' not set

#1 lore raw
Quoted 18 lines · E Robertson

Hi all,
In the current git source, I have the serverip config set but tftp complains about serverip not being set.
I didn't see any changes to the source here. Am I missing something?

Quoted 1 line

printenv

baudrate=115200
ipaddr=192.168.0.200
serverip=192.168.0.100
gatewayip=192.168.0.1
netmask=255.255.255.0
hostname="Vincy"
ethaddr=00:07:A6:00:6A:E6
bootdelay=5
bootargs=
bootcmd=
ethact=macb0

Quoted 4 lines

Environment size: 247/16380 bytes
OmniTouch> tftp
link up, 100Mbps full-duplex (lpa: 0x41e1)
*** ERROR: `serverip' not set

What is "serverip" set *after* running "tftp"? Is the "tftp" command trashing serverip? Is "tftp" doing a DHCP/BOOTP operation to your DHCP server and getting an invalid server IP?

Disclaimer: I don't know off-hand if tftpboot does a DHCP operation. I get confused by the bootp, dhcp, and tftpboot commands - they are all the same but different.

Best regards,
gvb

#2 lore raw
In reply to E Robertson

Dear E Robertson,

Quoted 4 lines · In message <[email protected]> you…

In the current git source, I have the serverip config set but tftp complains about serverip not being set.
I didn't see any changes to the source here. Am I missing something?

You have some serious misconfigurations in your default environment. I recommend only to add things there when you really know what you are doing.

Quoted 7 lines
Quoted 1 line

printenv

baudrate=115200
ipaddr=192.168.0.200
serverip=192.168.0.100
gatewayip=192.168.0.1
netmask=255.255.255.0
hostname="Vincy"

There should not be any apostrophes in the value.

Quoted 4 lines

ethaddr=00:07:A6:00:6A:E6
bootdelay=5
bootargs=
bootcmd=

Here you have created a strange problem which most probably confuses U-Boot. Make sure to fix these "empty" values.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The only perfect science is hind-sight.
#3 lore raw
Quoted 13 lines · Wolfgang Denk

Dear E Robertson,

Quoted 4 lines · In message <[email protected]> you…

In the current git source, I have the serverip config set but tftp complains about serverip not being set.
I didn't see any changes to the source here. Am I missing something?

You have some serious misconfigurations in your default environment. I recommend only to add things there when you really know what you are doing.

Quoted 1 line
Quoted 1 line

printenv

Quoted 8 lines
Quoted 6 lines

baudrate=115200
ipaddr=192.168.0.200
serverip=192.168.0.100
gatewayip=192.168.0.1
netmask=255.255.255.0
hostname="Vincy"

There should not be any apostrophes in the value.

That seemed to be the problem. Don't know where that came from.

Thanks.