Skip to contentSkip to conversation

Generating b-records for DragonBall i.MX

U-Boot-Users Steven Scholz 3 participants 3 messages Jun 23, 2004 – Oct 10, 2004

lore
Share & tools
lore
#0 lore raw

Hi there,

I just hacked a simple script that converts u-boot.bin into a text file containg processor init code, SynchFlash programming code and U-Boot data in form of so called b-records.

This can be used to programm U-Boot into (Synch)Flash using the Bootstrap Mode of the MC9328MX1/L

0AFE1F3410202E2E2E000000002073756363656564/ 0AFE1F44102E0A0000206661696C656420210A0000/ 0AFE100000
...
MX1ADS Sync-flash Programming Utility v0.5 2002/08/21

Source address (stored in 0x0AFE0000): 0x0A000000
Target address (stored in 0x0AFE0004): 0x0C000000
Size (stored in 0x0AFE0008): 0x0001A320

Press any key to start programming ...
Erasing ...
Blank checking ...
Programming ...
Verifying flash ... succeed.

Programming finished.

So no need for a BDI2000 anymore... ;-)

This is working on my MX1ADS eval board. Hope this could be useful for someone. (Maybe we even want to include this into the tools directory.)

Steven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: img2brec.bz2
Type: application/octet-stream
Size: 3730 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040623/93a8f0ae/attachment.obj

#1 lore raw
Quoted 2 lines · Steven Scholz

Hi there,

Sorry, I meant to look at this long ago...

Quoted 6 lines

I just hacked a simple script that converts u-boot.bin into a text file containg processor init code, SynchFlash programming code and U-Boot data in form of so called b-records.

This can be used to programm U-Boot into (Synch)Flash using the Bootstrap Mode of the MC9328MX1/L

Nice!

<snip>

Quoted 2 lines

This is working on my MX1ADS eval board. Hope this could be useful for someone. (Maybe we even want to include this into the tools directory.)

I agree, it would be nice to include this in u-boot CVS.

--
Regards,
George

Quoted 2 lines

Steven

#2 lore raw
Quoted 8 lines · In message <[email protected]> you wrote:
Quoted 7 lines

I just hacked a simple script that converts u-boot.bin into a text file containg processor init code, SynchFlash programming code and U-Boot data in form of so called b-records.

This can be used to programm U-Boot into (Synch)Flash using the Bootstrap Mode of the MC9328MX1/L

Quoted 8 lines

Nice!

<snip>

Quoted 2 lines

This is working on my MX1ADS eval board. Hope this could be useful for someone. (Maybe we even want to include this into the tools directory.)

I agree, it would be nice to include this in u-boot CVS.

Added as "tools/img2brec.sh"

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Operating-system software is the program that  orchestrates  all  the
basic functions of a computer.
- The Wall Street Journal, Tuesday, September 15, 1987, page 40