tftpboot of BIG file fails !
Hi,
I find a typical problem downloading a BIG ( 4MB) linux image to the SDRAM using u-boot's _tftpboot_ command.
The Linux image is Linked at 0x20000.
My u-boot is liked at 0x3e0000 (I understaood this from the following two macros)TEXT_BASE = 0x3E0000CFG_MONITOR_BASE = 0x3E0000
On an anlysis, I figured out that, I can only download a image file of size (0X3E0000 - 0X20000 = less than 4MB) before I start overwriting the u-boot's code itself.
So I reconfigured the macros to link the u-boot on _top_ of the SDRAM (SDRAM map is 0x00000000 to 0x01000000)
TEXT_BASE = 0xFE0000CFG_MONITOR_BASE = 0xFE0000
This should ensure that the _ftftp_ will download the 4MB image well within the u-boot code.
But still I face the problem of not able to download the BIG image. Do I have to modify anything else to actually move the u-boot execution to 0XFE0000 ?
Dows the tftp boot itself restrict the size of the file to be downloaded ?
Any clues in this regard.
Thanks
- -
rupesh
Quoted 2 lines · In message <01a401c3e2a9$c29a0510$6706a8c0@Rupesh> you wrote:
I find a typical problem downloading a BIG ( 4MB) linux image to the SDRAM
I don't think this is a typical problem. On contrary, it is a very UNtypical problem since this has always been working fine on many, many boards.
Quoted 2 lines
using u-boot's _tftpboot_ command.
The Linux image is Linked at0x20000.
Then your Linux image is broken. You must not change the kernel's link address unless you know exactly what you are doing. This means that for example on PowerPC the kernel will be linked for (virtual) address 0xC0000000 and started at (physical) address 0x00000000.
Quoted 4 lines
My u-boot is liked at
0x3e0000(I understaood this from the following two macros)TEXT_BASE=0x3E0000CFG_MONITOR_BASE=0x3E0000
Then your port of U-Boot is seriously broken.
I would like to point out that NONE of the configurations in the public source tree uses such a broken definition.
Quoted 2 lines
So I reconfigured the macros to link the u-boot on _top_ of the SDRAM (SDRAM map is
0x00000000to0x01000000)
A correctly configured U-Boot will automatically copy itself at the end of the RAM (at least on PPC).
Quoted 1 line
But still I face the problem of not able to download the BIG image.
You probably have other problems in your port.
Quoted 1 line
Dows the tftp boot itself restrict the size of the file to be downloaded ?
Yes. The current implementation puts a limit at 16 MB.
Best regards,
Wolfgang Denk
Signature · 4 lines
See us @ Embedded World, Nuremberg, Feb 17 - 19, Hall 12.0 Booth 440 Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de Immortality consists largely of boredom. -- Zefrem Cochrane, "Metamorphosis", stardate 3219.8
Quoted 8 lines · Wolfgang Denk
Quoted 2 lines · In message <01a401c3e2a9$c29a0510$6706a8c0@Rupesh> you wrote:
I find a typical problem downloading a BIG ( 4MB) linux image to the SDRAM
I don't think this is a typical problem. On contrary, it is a very UNtypical problem since this has always been working fine on many, many boards.
Quoted 7 lines
Quoted 2 lines
using u-boot's _tftpboot_ command.
The Linux image is Linked at0x20000.Then your Linux image is broken. You must not change the kernel's link address unless you know exactly what you are doing. This means that for example on PowerPC the kernel will be linked for (virtual) address
0xC0000000and started at (physical) address0x00000000.
Seems to be uClinux for Motorola Coldfire. Therefore it's ok.
Quoted 10 lines
Quoted 5 lines
My u-boot is liked at
0x3e0000(I understaood this from the following two macros)TEXT_BASE=0x3E0000CFG_MONITOR_BASE=0x3E0000Then your port of U-Boot is seriously broken.
I would like to point out that NONE of the configurations in the public source tree uses such a broken definition.
In the current Coldfire 5272 port u-boot will be loaded to 0x3e0000 by colilo and started there.
Quoted 6 lines
Quoted 3 lines
So I reconfigured the macros to link the u-boot on _top_ of the SDRAM (SDRAM map is
0x00000000to0x01000000)A correctly configured U-Boot will automatically copy itself at the end of the RAM (at least on PPC).
Yes, in my new 5272 port u-boot relocates itself to the end of RAM.
Quoted 5 lines
Quoted 2 lines
But still I face the problem of not able to download the BIG image.
You probably have other problems in your port.
Quoted 8 lines
Quoted 2 lines
Dows the tftp boot itself restrict the size of the file to be downloaded ?
Yes. The current implementation puts a limit at 16 MB.
Best regards,
Wolfgang Denk
Best regards,
Josef Baumgartner