[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux]apparent timeout problems with tftp



Leonid wrote:
Amazing! Not it only resolved the TFTP problem, also overall u-boot
performance is up: I visibly see flash burning quicker, etc...


Yep - it also means compressed images are now feasible, they are very quick to decompress.

Unfortunately I cannot build working uClinux image (it uses same
autoconf.h file, u-boot is using - see attached) if I use caches. After
kernel downloading, no output on console...

Can you boot a cache-enabled kernel with a direct XMD download (not via u-boot) - for example with petalinux-jtag-boot script, from your EDK project directory?

$ petalinux-jtag-boot -i /tftpboot/image.bin -a 0x22000000

(with whatever memory address is correct)

If this is a new hardware build with caches added, make sure you've done "make oldconfig dep linux-2.4.x_clean" before rebuilding the kernel.

If you can boot the kernel standalone, but not from u-boot, then try the following patch - it disables caches just before jumping into the kernel.

Cheers,

John

Index: u-boot/lib_microblaze/microblaze_linux.c
===================================================================
--- u-boot/lib_microblaze/microblaze_linux.c    (revision 2350)
+++ u-boot/lib_microblaze/microblaze_linux.c    (working copy)
@@ -177,6 +177,8 @@
      * FIXME - Need to complete INITRD and MultiImage support
      */

+    icache_disable();
+    dcache_disable();
     theKernel(commandline);
 }

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/