[mc1322x] CodeSourcery , flash loader
Andrew Pullin
pullin at berkeley.edu
Sat May 1 21:00:31 EDT 2010
Mariano Alvira wrote:
> 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?
>
Sure. Some time in the near future, I'll add in the serial console, and
support for Freescale's SSL.bin .
>
>> 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.
>
On this topic, as Jon Smirl pointed mentioned, I didn't know that the
econotags had access to the actual JTAG port. I thought the serial
boot-loader was being referred to! Now that I actually look at the
FT2232H page, I see that the serial <-> JTAG is a hardware feature of
the FTDI chip, that's pretty neat! I was even going to design an adapter
board between
> -Mar.
>
>
>
-Andrew
More information about the mc1322x
mailing list