All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] bootp
@ 2004-02-28  5:27 ppc user
  2004-02-29 17:23 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: ppc user @ 2004-02-28  5:27 UTC (permalink / raw)
  To: u-boot

I'm using u-boot 1.0.0 on a xilinx embedded ppc 405 and I see the 
follow unexplained behavior:

if I do a bootp <address> <filename> it always bootp's the filename 
stored in environment variable bootfile rather than the filename I 
specify in the command line.  If I have no bootfile env variable it 
tries to bootp a garbage file name.

If I use tftpboot <address> <filename> it gets the file name on the cmd 
line.

I don't think this is expected behavior.  Is that incorrect?  Any ideas 
what I'm doing wrong?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] bootp
  2004-02-28  5:27 [U-Boot-Users] bootp ppc user
@ 2004-02-29 17:23 ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2004-02-29 17:23 UTC (permalink / raw)
  To: u-boot

In message <E1Awx0E-000193-Ly@server4.anonymousnetworks.com> you wrote:
> I'm using u-boot 1.0.0 on a xilinx embedded ppc 405 and I see the 
> follow unexplained behavior:
> 
> if I do a bootp <address> <filename> it always bootp's the filename 
> stored in environment variable bootfile rather than the filename I 
> specify in the command line.  If I have no bootfile env variable it 
> tries to bootp a garbage file name.

What does the reply packet sent by your BOOTP server contain exactly?

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
If God had a beard, he'd be a UNIX programmer.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] bootp
@ 2004-03-01 15:59 ppc user
  0 siblings, 0 replies; 4+ messages in thread
From: ppc user @ 2004-03-01 15:59 UTC (permalink / raw)
  To: u-boot

A bit more info --
it looks like the correct file name is sent in the dhcp request,
but then u-boot switches to tftp mode with the incorrect file name in 
the request.
I have placed the capture file here:
http://www.lambdaaccess.com/u-boot.libpcap

thanks again for your help.


> I captured some packets using ethereal and I see the request to the 
> bootp server contains the wrong file name.  The reply from the server 
> matches the request.  
> 
> Here is the output from U-boot in the 3 cases I described:
> 
> (1) Environment variable bootfile = zImage, try to load some other 
file:
> 
> u-boot> bootp 100000 10got.img
> BOOTP broadcast 1
> DHCP client bound to address 192.168.0.43
> TftpStart(zImage:192.168.0.1)
> TFTP from server 192.168.0.1; our IP address is 192.168.0.43
> Filename 'zImage'.
> Load address: 0x100000
> Loading: 
> #################################################################
>          ##################################################
> done
> Bytes transferred = 585718 (8eff6 hex)
> u-boot>
> 
> 
> (2) no bootfile env variable
> 
> 
> u-boot> bootp 100000 10got.img
> BOOTP broadcast 1
> DHCP client bound to address 192.168.0.43
> TftpStart(no bootfile:192.168.0.1)
> *** Warning: no boot file name; using '2B00A8C0.img'
> TFTP from server 192.168.0.1; our IP address is 192.168.0.43
> Filename '2B00A8C0.img'.
> Load address: 0x100000
> Loading: *
> TFTP error: 'File not found' (1)
> Starting again
> 
> (3) tftpboot command
> 
> u-boot> tftpboot 100000 10got.img
> TftpStart(zImage:192.168.0.1)
> TFTP from server 192.168.0.1; our IP address is 192.168.0.44
> Filename '10got.img'.
> Load address: 0x100000
> Loading: #
> done
> Bytes transferred = 921 (399 hex)
> u-boot>
> 
> 
> > In message <E1Awx0E-000193-Ly@server4.anonymousnetworks.com> you 
> wrote:
> > > I'm using u-boot 1.0.0 on a xilinx embedded ppc 405 and I see the 
> > > follow unexplained behavior:
> > > 
> > > if I do a bootp <address> <filename> it always bootp's the 
filename 
> > > stored in environment variable bootfile rather than the filename 
I 
> > > specify in the command line.  If I have no bootfile env variable 
it 
> > > tries to bootp a garbage file name.
> > 
> > What does the reply packet sent by your BOOTP server contain 
exactly?
> > 
> > Best regards,
> > 
> > Wolfgang Denk
> > 
> > -- 
> > Software Engineering:  Embedded and Realtime Systems,  Embedded 
Linux
> > Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: 
wd at denx.de
> > If God had a beard, he'd be a UNIX programmer.
> > 
> > 
> > -------------------------------------------------------
> > SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> > Build and deploy apps & Web services for Linux with
> > a free DVD software kit from IBM. Click Now!
> > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> > _______________________________________________
> > U-Boot-Users mailing list
> > U-Boot-Users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/u-boot-users
> > 
> > 
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] bootp
@ 2004-03-01 14:29 ppc user
  0 siblings, 0 replies; 4+ messages in thread
From: ppc user @ 2004-03-01 14:29 UTC (permalink / raw)
  To: u-boot

I captured some packets using ethereal and I see the request to the 
bootp server contains the wrong file name.  The reply from the server 
matches the request.  

Here is the output from U-boot in the 3 cases I described:

(1) Environment variable bootfile = zImage, try to load some other file:

u-boot> bootp 100000 10got.img
BOOTP broadcast 1
DHCP client bound to address 192.168.0.43
TftpStart(zImage:192.168.0.1)
TFTP from server 192.168.0.1; our IP address is 192.168.0.43
Filename 'zImage'.
Load address: 0x100000
Loading: 
#################################################################
         ##################################################
done
Bytes transferred = 585718 (8eff6 hex)
u-boot>


(2) no bootfile env variable


u-boot> bootp 100000 10got.img
BOOTP broadcast 1
DHCP client bound to address 192.168.0.43
TftpStart(no bootfile:192.168.0.1)
*** Warning: no boot file name; using '2B00A8C0.img'
TFTP from server 192.168.0.1; our IP address is 192.168.0.43
Filename '2B00A8C0.img'.
Load address: 0x100000
Loading: *
TFTP error: 'File not found' (1)
Starting again

(3) tftpboot command

u-boot> tftpboot 100000 10got.img
TftpStart(zImage:192.168.0.1)
TFTP from server 192.168.0.1; our IP address is 192.168.0.44
Filename '10got.img'.
Load address: 0x100000
Loading: #
done
Bytes transferred = 921 (399 hex)
u-boot>


> In message <E1Awx0E-000193-Ly@server4.anonymousnetworks.com> you 
wrote:
> > I'm using u-boot 1.0.0 on a xilinx embedded ppc 405 and I see the 
> > follow unexplained behavior:
> > 
> > if I do a bootp <address> <filename> it always bootp's the filename 
> > stored in environment variable bootfile rather than the filename I 
> > specify in the command line.  If I have no bootfile env variable it 
> > tries to bootp a garbage file name.
> 
> What does the reply packet sent by your BOOTP server contain exactly?
> 
> Best regards,
> 
> Wolfgang Denk
> 
> -- 
> Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
> Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
> If God had a beard, he'd be a UNIX programmer.
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-01 15:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-28  5:27 [U-Boot-Users] bootp ppc user
2004-02-29 17:23 ` Wolfgang Denk
2004-03-01 14:29 ppc user
2004-03-01 15:59 ppc user

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.