Skip to contentSkip to conversation

atmel_df_pow2: standalone to convert dataflashes to pow2

PATCH New Mike Frysinger 2 participants 3 messages Jul 23, 2009 – Sep 4, 2009 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atmel_df_pow2: standalone to convert dataflashes to pow2

Atmel DataFlashes by default operate with pages that are slightly bigger than normal binary sizes (i.e. many are 1056 byte pages rather than 1024 bytes). However, they also have a "power of 2" mode where the pages show up with the normal binary size. The latter mode is required in order to boot with a Blackfin processor, so many people wish to convert their DataFlashes on their development systems to this mode. This standalone application does just that.

---
 examples/standalone/.gitignore      |    1 +
 examples/standalone/Makefile        |    4 +
 examples/standalone/atmel_df_pow2.c |  209 +++++++++++++++++++++++++++++++++++
 3 files changed, 214 insertions(+), 0 deletions(-)
 create mode 100644 examples/standalone/atmel_df_pow2.c
examples/standalone/.gitignore +1 -0
index 0d1864c..7b783fc 100644
@@ -1,4 +1,5 @@
 /82559_eeprom
+/atmel_df_pow2
 /hello_world
 /interrupt
 /mem_to_mem_idma2intr
examples/standalone/Makefile +4 -0
index dbcfa92..9f67afd 100644
@@ -86,6 +86,10 @@ ELF	= hello_world
 SREC	= hello_world.srec
 BIN	= hello_world.bin
 
+ELF	+= atmel_df_pow2
+SREC	+= atmel_df_pow2.srec
+BIN	+= atmel_df_pow2.bin
+
 ifeq ($(CPU),mpc8xx)
 ELF	+= test_burst
 SREC	+= test_burst.srec
examples/standalone/atmel_df_pow2.c new file +209 -0

209 lines not on this page · raw message

Signature · 1 line
1.6.3.3
#2 lore raw

PATCH 1/1 atmel_df_pow2: standalone to convert dataflashes to pow2

In reply to Mike Frysinger

Dear Mike Frysinger,

Quoted 8 lines · In message <[email protected]> you wrote:

Atmel DataFlashes by default operate with pages that are slightly bigger than normal binary sizes (i.e. many are 1056 byte pages rather than 1024 bytes). However, they also have a "power of 2" mode where the pages show up with the normal binary size. The latter mode is required in order to boot with a Blackfin processor, so many people wish to convert their DataFlashes on their development systems to this mode. This standalone application does just that.

Quoted 7 lines
---
 examples/standalone/.gitignore      |    1 +
 examples/standalone/Makefile        |    4 +
 examples/standalone/atmel_df_pow2.c |  209 +++++++++++++++++++++++++++++++++++
 3 files changed, 214 insertions(+), 0 deletions(-)
 create mode 100644 examples/standalone/atmel_df_pow2.c

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"It is better for civilization to be going down the drain than to  be
coming up it."                                          - Henry Allen