Uncompression of image takes time.
Quoted 61 lines
Quoted 44 lines · Adarsh Babu
Quoted 4 lines · Jerry Van Baren <gerald.vanbaren <at> smiths-aerospace.com> writes:
Quoted 3 lines · Adarsh Babu
Hi,
I have an image which is 1.5MB in size after compression, thats is done
for
Quoted 1 line
Quoted 1 line
MCF5271. When i try to load this on a MCF5271 eval board using u-boot
1.2.0 it
Quoted 1 line
Quoted 1 line
takes about 25 secs to just uncompress. I loaded a MCF5272 eval board with
U-
Quoted 1 line
Quoted 1 line
Boot 1.2.0 and then tried to start the same image(which was done for
MCF5271).
Quoted 21 lines
Quoted 8 lines
It was very fast. The checksum verification finish off in a second and uncompression in 10 seconds !
The clock configurations for both are provided below:
M5272C3.h
defineCFG_HZ1000
#defineCFG_CLK66000000Quoted 8 lines
M5271EVB.h:
defineCFG_HZ1000000
#defineCFG_CLK100000000What should I do to get the image to uncompress faster in the MCF5271 EVB?
Regards,
Adarsh.1) Your
CFG_HZlooks like a problem: it should be 1000 and your timer tick interrupt should be running 1000 times per second to match. If you are indeed ticking 1,000,000 times per second, you are spending all of your processor time in your timer ISR.Quoted 7 lines
2) Why is your image 1.5MB? I suspect you have large unused areas of memory (typically due to ISR vectors, followed by a huge unused gap, followed by the code). If you fix your image size (assuming it is broken), the checksum and uncompress will be much faster.
gvb
Hi Jerry,
Quoted 7 lines
I tried the same after modifying the
CFG_HZto 1000. But i still get the same result. Its as if there is no effect. The image size is 1.5MB becos its just not a kernel image. Its kernel + our application. Could this be a problem with the timer initialization and cofiguration?Regards,
Adarsh.Hi Adarsh,
I don't have any M527x experience, so I cannot say anything with detail.
Just changingCFG_HZquite likely is not sufficient - usually you need
to configure the timers in your hardware initialization routines andCFG_HZsimply reflects the choices you (or someone) made at initialization time.
Quoted 7 lines
If this is the case, and if you timer is really ticking at 1/100 your master clock rate, that would cause serious slowing of execution. You will have to chase down what
CFG_HZis used for and how your hardware timer is initialized. I simply don't have the knowledge or information.HTH,
gvb
Hi Adarsh,
Other generic things that can cause slow execution are:
* Caches disabled (data and/or instruction)
* Caches are very sharp knives: they can slice and dice quickly and finely, or they can turn on you and slice your fingers off. For initial board bring-up, caches are usually disabled.
* Memory configuration
* The memory interface is typically initialized with the slowest settings possible on power up: if they are not optimized, the CPU will run slower than it could run.
Let us know what you find, so the next person down this path will find the solution rather than just the problem. (The internet: the worlds largest knowledge base hidden in a vast wasteland of ignorance.)
HTH,
gvb
Quoted 19 lines · Jerry Van Baren <gerald.vanbaren <at> comcast.net> writes:
Hi Adarsh,
Other generic things that can cause slow execution are:
* Caches disabled (data and/or instruction)
* Caches are very sharp knives: they can slice and dice quickly and finely, or they can turn on you and slice your fingers off. For initial board bring-up, caches are usually disabled.
* Memory configuration
* The memory interface is typically initialized with the slowest settings possible on power up: if they are not optimized, the CPU will run slower than it could run.Let us know what you find, so the next person down this path will find the solution rather than just the problem. (The internet: the worlds largest knowledge base hidden in a vast wasteland of ignorance.)
Quoted 9 lines
HTH,
gvb-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Hi Jerry,
I enabled the Instruction cache for MCF5271 and then tried decompressing the image. I have got the decompression time down to 12 seconds from the earlier 25 seconds with this implementation. Thanx a lot for the suggestion.
Regards,
Adarsh.