[mc1322x] CodeSourcery , flash loader

Mariano Alvira mar at devl.org
Sat May 1 09:51:09 EDT 2010


On Fri, Apr 30, 2010 at 06:30:50PM -0700, Andrew Pullin wrote:
> Here's a couple of things that I've discovered in my tinkering:
>
> On a separate front: up until now, I was running mc1322x-load inside  
> VMware, and it was very slow. As an exercise, I implemented it in  
> Python. Comparing them now in linux, it seems the python one is faster,  
> by 2x. Maybe it's a fluke? If anyone cares, or loves python more than 
> perl:
> http://bmi.berkeley.edu/~pullin/red-bsl.py
> Although, I haven't put in the function where it drops to a serial  
> terminal afterwards.

Hey cool. Can I pull this in to libmc1322x as a tool?

> On the same topic of the boot loader, why not use the Second Stage  
> Loader that is provided by Freescale? It's a very small binary, ~3K, and  
> it writes to the flash really fast, since it uses palletized transfers.

At the time I wrote flasher.c and was working on this, the code for
the SSL wasn't available and so there was no way to know how it worked
(what to send it etc...). Also, as an interesting aside, the first
version they released had a bug that could erase the calibration page
(apparently that is possible --- probably if you setsvar(0) first and
then erase that page). Freescale swept it under the rug with a new
version and deleted all of the angry forum messages from the guy who
found the bug... 

Anyway, that's a fine idea. Improving flasher.c to be faster and
smaller is fine too. Really we would just need to add support for the
SSL to mc1322x-load.pl and your red-bsl.py. 

On the topic of flashing, one of the OpenOCD guys has an Econotag
now. It sounds like he might add JTAG flashing to OpenOCD. 

-Mar.





More information about the mc1322x mailing list