[U-Boot] Help With TFTP

Quick X quickx at hotmail.com
Tue Oct 7 23:14:31 CEST 2008


Hello. I seem to be having a small problem with transfering files from my machine to the at91sam9261-ek board via tftp.  I'm using the following:

--Files Used (Build From newest Buildroot using "at91sam9261ek_defconfig")--
Bootstrap: at91sam9261ek-dataflashboot-2.3.4.bin
U-Boot: at91sam9261ek-u-boot-1.2.0-atmel-20081003.bin
Kernel: at91sam9261ek-linux-2.6.24.3-20081003.gz
FS: rootfs.arm-20081003.ext2
AutoScript: autoscript.at91sam9261ek

--TFPT Server Computer--
ipaddr: 192.168.50.95
gatewayip: 192.168.50.1
netmask: 255.255.255.0

--My Computer--
ipaddr: 10.0.2.54
gatewayip: 10.0.0.1
netmask: 255.255.0.0

--at91sam9261ek Board--
ipaddr: 10.0.2.105
gatewayip: 10.0.0.1
netmask: 255.255.0.0
[serverip: 192.186.50.95]



I EraseAll on DataFlash/NandFlash and transfer the Bootstrap/U-Boot to my board via SAMBA and then boot up. I then do the default "defenv" "run config" "run get", however, "run get" never completes.  I get a lot of Timeouts (~1000) and then it eventually does "Retry count exceeded; starting again".

"run config" requests the "autoscript.at91sam9261ek" file and completes in about 1 seconds (500byte file).  "run get" downloads about 800KB's of the 1.5MB linux kernal (I can see the percentage of the file transfer on the TFTP Server machine) in about 30 seconds and then stops and retries again from the beginning.

When I use "My Computer" to request the kernel via a FTPT Client I am able to receive the file in about 2 or 3 seconds.  Also the rootfs is 5MB's and I can receive that in about 6 seconds; as a result I don't think it is a problem with the TFTP Server.

I think the problem is that U-Boot shows "operating at 100M full duplex mode" when my board is probably "Half Duplex".  I am unable to find how to force the connection type via u-boot.  

--Various Other Notes--
The "dhcp" command does not work for me in uboot, it just "BOOTP 1,2,3,4... etc" forever but since I'm able to get small files I didn't think this was too big an issue; this is probably a security thing on my internal network.  Also the at91sam9261ek board is unable to connect to a tftp server hosted on my computer which is why I use the external server; again probably security on my network.

I am able to transfer the files via serial port however this takes ~50 mins for a 5MB file which gets on my nervs a bit *smiles*, but, at the very least makes it more of an inconvinence than a major problem.


Would anyone know how I might be able to solve this problem?  Maybe by increasing the "MAX_NET_RETRY_COUNT", perhaps by an environment variable inside u-boot *hopes*?  I wasn't able to find the exact file/line to change if recompiling u-boot is needed.  Or maybe by trying to set it to half-duplex?  Or maybe I have some other settings wrong?  If you need more information I can try to provide it.  I attached an example U-Boot Log below.  Thanks


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
UBOOT Log
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
U-Boot> RomBOOT
>Start AT91Bootstrap...
>AT45DB642D detected
>Loading from Dataflash[0x00008400] to SDRAM[0x23F00000]
.......
>Loading complete, [0x00032000] bytes
>Start application at [0x23F00000]


U-Boot 1.2.0 (Oct  3 2008 - 13:40:25)

DRAM:  64 MB
NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,
3V 8-bit)
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bi
t)
256 MiB
DataFlash:AT45DB642
Nb pages:   8192
Page Size:   1056
Size= 8650752 bytes
Logical address: 0xC0000000
Area 0: C0000000 to C00041FF (RO) Bootstrap      (16kB)
Area 1: C0004200 to C00083FF      Environment     (8kB)
Area 2: C0008400 to C0039BFF (RO) U-Boot                (192kB)
Area 3: C0039C00 to C0041FFF (RO) Secondary Boot         (32kB)
Area 4: C0042000 to C01CDFFF      OS
Area 5: C01CE000 to C083FFFF      FS
In:    serial
Out:   serial
Err:   serial
dm9000 i/o: 0x30000000, id: 0x90000a46
MAC: 04:25:fe:ed:00:18
operating at 100M full duplex mode
Hit any key to stop autoboot:  0
U-Boot> defenv
Can't overwrite "ethaddr"
len=149: root=/dev/ram rw initrd=0x2118C000,6000000 ramdisk_size=15360 ip=10.0
.2.105:192.168.50.95:10.0.0.1:255.255.0.0 console=ttyS0,115200,mem=64M
U-Boot> run config
dm9000 i/o: 0x30000000, id: 0x90000a46
MAC: 04:25:fe:ed:00:18
operating at 100M full duplex mode
TFTP from server 192.168.50.95; our IP address is 10.0.2.105; sending through ga
teway 10.0.0.1
Filename 'autoscript.at91sam9261ek'.
Load address: 0x2118c000
Loading: T T T T T T T T T T T T T T T T T T T T #T T T T T T T T T T T T T T T
T T
done
Bytes transferred = 553 (229 hex)
## Executing script at 2118c000
Can't overwrite "ethaddr"
U-Boot> run get
dm9000 i/o: 0x30000000, id: 0x90000a46
MAC: 04:25:fe:ed:00:18
operating at 100M full duplex mode
TFTP from server 192.168.50.95; our IP address is 10.0.2.105; sending through ga
teway 10.0.0.1
Filename 'at91sam9261ek-linux-2.6.24.3-20081003.gz'.
Load address: 0x21000000
Loading: T T T T T T T T T T T T T T T T T #T T T T T T T T T T T T T T T T T T
T T T #T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
 T T T T T T T T T T #T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
T T T T T T T T T T T T #T T T T T T T T T T T T T T T T T T T T T T T T T T T T
 T T T T T T T T T #T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T #T T T T T T T T T T T
 T T T T T T T T T T T T T T T T T T T T T T T T T T T T #T T T T T T T T T T T
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
T T T T T T T T T T T T T T T T T T T T T T T T T T T T #T T T T T T T T T T T T
 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
 T T T T T T T T #T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
T T T T T T T T T T T T T T T T T T T T T T #T T T T T T T T T T T T T T T T T T
 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
[...]SNIP[...]
T T T #T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T #T T T
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T #T T T T T T
 T T T T T T T T T T T T T T T T T T #T T T T T T T T T T T T T T T T T T T T T
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
T T T T T T T T #T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
 T T T T T T T T T T T T T T T T T T T T T T #T T T T T T T T T T T T T T T T T
T T T T #T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
 T T T T T T T T T T T T T T T T #T T T T T T T T T T T T T T T T T T T T T T T
T T T T T T T T T T T #T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
 T T T T T T T T T T T T T T T T T T T T T T T T T #T T T T T T T T T T T T T T
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
T T T T T T T T T T T T T T T T T T T T T T T T #T T T T T T T T T T T T T T T T
 T T T T T T T T T T T
Retry count exceeded; starting again
TFTP from server 192.168.50.95; our IP address is 10.0.2.105; sending through ga
teway 10.0.0.1
Filename 'at91sam9261ek-linux-2.6.24.3-20081003.gz'.
Load address: 0x21000000
Loading: T T T T T T T T T T T T T #T T T T T T T T T T T T T T T T T T T T T T
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T #T T T T T T T T T T
 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
 T T T T T T T T T T T T T T T T T T #T T T T T T T T T T T T T T T T T T T T T
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
T T T T T T T T T T T T T T T T T T T T T T T T T #T T T T T T T T T T T T T T T
 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T #T T T T T T T
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
T T T T T #T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T #T T
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
T T T T T T T T T T T T T T T T T T T T T T T T T #T T T T T T T T T T T T T T T
 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
Abort
U-Boot>
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
_________________________________________________________________



More information about the U-Boot mailing list