[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux]apparent timeout problems with tftp
Hi, John:
Doesn't look that disabling caches just before loading uClinux changes
anything. I did the following as you suggested:
====
//depot/LM125/uClinux/petalinux-v0.10-rc1/software/petalinux-dist/u-boot
/lib_microblaze/microblaze_linux.c#2 -
/home/leonid/lm125/uClinux/petalinux-v0.10-rc1/software/petalinux-dist/u
-boot/lib_microblaze/microblaze_linux.c ====
@@ -177,5 +177,12 @@
* FIXME - Need to complete INITRD and MultiImage support
*/
-
+#if CONFIG_XILINX_MICROBLAZE0_USE_ICACHE
+ icache_disable();
+ printf("Disable I-CACHE\n");
+#endif
+#if CONFIG_XILINX_MICROBLAZE0_USE_DCACHE
+ dcache_disable();
+ printf("Disable D-CACHE\n");
+#endif
theKernel(commandline);
}
This is output - same 24.78 BogoMIPS ... and same sh applet not found in
the end:
.....................................
OK
Disable I-CACHE
Disable D-CACHE
Linux version 2.4.32-uc0 (root@mylinux) (gcc version 3.4.1 ( Xilinx EDK
8.1.01 Build EDK_I.19.4 080506 )) #2 Thu Mar 29 21:56:40 PST 2007
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Kernel command line: macaddr=00:01:02:cb:cb:71
ip=192.168.0.203:192.168.0.141:192.168.0.1:255.255.255.0:LM125:eth0:off
panic=1 mtdparts=phys
map_auto:256K(boot),128K(bootenv),128K(config),512K(fpga_1),512K(fpga_2)
,128K(testscript),512K(debuglogs),1M(image),384K(spare) console=ttyS
0,(115200) autostart=no
Console: xmbserial on UARTLite
Calibrating delay loop... 24.78 BogoMIPS
Memory: 32MB = 32MB total
Memory: 29888KB available (1177K code, 1342K data, 48K init)
..............................................
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 48K
sh: applet not found
init: Booting to single user mode
sh: applet not found
init: /bin/agetty respawning too fast
-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx
[mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of John
Williams
Sent: Thursday, March 29, 2007 6:45 PM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: 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/
___________________________
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/