Skip to contentSkip to conversation

Atmel AT49BV320C support in Uboot

U-Boot-Users raj reddy 4 participants 8 messages Sep 11, 2007 – Sep 12, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

raj reddy

author
#1 lore raw

I tried to use the CFI driver by adding the CFI macros in the .h file. But the size of my flash is 2MB, but it shows 4MB.
I have one doubt, in the board .h file we specify the sectore size. what size i must give the sector size in board .h file.
where we specify different sizes of sector in the flash driver file.. (i.e 8 * 4K, 63 * 32 K.)

Regards.

Quoted 17 lines · --- Wolfgang Denk

First: Please post U-Boot related questions to
the mailing list
*only* - unless you as ENX for commercial
support which we will
happily provide, but that's not for free.

In message
<[email protected]> you

Quoted 1 line · wrote:

CFI supports only the same size sector flash, but

This is not correct. The CFI driver also supports
boot sector type
flash chips.

Quoted 1 line

is't the right procedure what i am trying to add

the

Quoted 19 lines
Quoted 1 line

flash support for AT49BV320C

If the flashis CFI conforming,then you should use
the CFI driver.

Best regards,

Wolfgang Denk

Signature · 8 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
Computers are not intelligent.  They only think they
are.

5, 50, 500, 5000 - Store N number of mails in your inbox. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

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

I tried to use the CFI driver by adding the CFI macros in the .h file. But the size of my flash is 2MB, but it shows 4MB.

So you misconfigured something...

Quoted 3 lines

I have one doubt, in the board .h file we specify the sectore size. what size i must give the sector size in board .h file.

The CFI driver will auto-detect the sector sizes. You must confuse something here.. Which exact #define are you talking about?

Best regards,

Wolfgang Denk

Signature · 4 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
"Have you lived in this village all your life?"        "No, not yet."
author
#3 lore raw
Quoted 3 lines · --- Wolfgang Denk

In message
<[email protected]> you
wrote:

i am getting the following error while i tried to save the environment data.....why not i can save?????

I2C:   ready
DRAM:  16 MB
FLASH:  4 MB

*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.

Type "run flash_nfs" to mount root filesystem over NFS

Hit any key to stop autoboot: 0
=>
=> saveenv
Saving Environment to Flash...
Error: cannot span across banks when they are mapped in reverse order
Error: cannot span across banks when they are mapped in reverse order
Protected 37 sectors
=>

Thanks,
Raj.

Quoted 14 lines
Quoted 1 line

I tried to use the CFI driver by adding the CFI

macros

Quoted 1 line

in the .h file. But the size of my flash is 2MB,

but

Quoted 1 line

it shows 4MB.

So you misconfigured something...

Quoted 1 line

I have one doubt, in the board .h file we specify

the

Quoted 1 line

sectore size. what size i must give the sector

size in

Quoted 1 line

board .h file.

Quoted 19 lines

The CFI driver will auto-detect the sector sizes. You must confuse
something here.. Which exact #define are you talking about?

Best regards,

Wolfgang Denk

Signature · 8 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
"Have you lived in this village all your life?"     
  "No, not yet."

Try the revolutionary next-gen Yahoo! Mail. Go to http://mrd.mail.yahoo.com/dc/landing

#4 lore raw
Quoted 8 lines · In message <[email protected]> you wrote:
Quoted 3 lines · --- Wolfgang Denk

In message
<[email protected]> you
wrote:

i am getting the following error while i tried to save the environment data.....why not i can save?????

PLEASE FIX YOUR QUOTING!!! I NEVERE WROTE THAT!!!

Stop top posting / full quoting!

Please stop what you are doing, right now, sit down and read
http://www.netmeister.org/news/learn2quote.html

I don't want you to attribute stuff to me that I never wrote!!!

Quoted 7 lines

=> saveenv
Saving Environment to Flash...
Error: cannot span across banks when they are mapped in reverse order
Error: cannot span across banks when they are mapped in reverse order
Protected 37 sectors

That means that your board configuration s broken. The flash is mapped to an address such that flash_start_address + flash_size > 0xFFFFFFFF. Thus he address range for your flash wraps around, and U-Boot thinks you have parts of it mapped at 0x0000 and parts of it somewhere else. And it does not support such a setup.

A simple "fli" command should show this problem clearly.

So just fix your flash mapping.

Best regards,

Wolfgang Denk

Signature · 8 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
If a person (a) is poorly, (b) receives treatment  intended  to  make
him  better, and (c) gets better, then no power of reasoning known to
medical science can convince him  that  it  may  not  have  been  the
treatment that restored his health.
- Sir Peter Medawar, The Art of the Soluble
author
#5 lore raw

In the PC405GP processor Address Space
Boot ROM -> 0xFFE00000 - 0xFFFFFFFF (i.e 2MB) But on my board i have flash 2M x 16 (CFI) which is of 4MB. That's the reason flash_start_address + flash_size > 0xFFFFFFFF. How can i fix this in the CFI driver?

Regards,
Raj.

Quoted 22 lines
Quoted 4 lines

=> saveenv
Saving Environment to Flash...
Error: cannot span across banks when they are

mapped

Quoted 2 lines

in reverse order
Error: cannot span across banks when they are

mapped

Quoted 2 lines

in reverse order
Protected 37 sectors

That means that your board configuration s broken. The flash is
mapped to an address such that flash_start_address + flash_size > 0xFFFFFFFF. Thus he address range for your flash wraps around, and
U-Boot thinks you have parts of it mapped at 0x0000 and parts of it
somewhere else. And it does not support such a setup.

Quoted 9 lines

A simple "fli" command should show this problem clearly.

So just fix your flash mapping.

Best regards,

Wolfgang Denk

Travelling to a new city? Search for ATMs in that city. Go to http://in.maps.yahoo.com

#6 lore raw
Quoted 6 lines · raj reddy

In the PC405GP processor Address Space
Boot ROM -> 0xFFE00000 - 0xFFFFFFFF (i.e 2MB) But on my board i have flash 2M x 16 (CFI) which is of 4MB. That's the reason flash_start_address + flash_size > 0xFFFFFFFF. How can i fix this in the CFI driver?

This has nothing to do with the CFI driver. If you have 4MBytes of FLASH then your boot ROM starts at 0xffc0.0000 and *not* 0xffe0.0000. Fix this first.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================

#7 lore raw
Quoted 8 lines · Stefan Roese
Quoted 6 lines · raj reddy

In the PC405GP processor Address Space
Boot ROM -> 0xFFE00000 - 0xFFFFFFFF (i.e 2MB) But on my board i have flash 2M x 16 (CFI) which is of 4MB. That's the reason flash_start_address + flash_size > 0xFFFFFFFF. How can i fix this in the CFI driver?

Quoted 5 lines

This has nothing to do with the CFI driver. If you have 4MBytes of FLASH then your boot ROM starts at 0xffc0.0000 and *not* 0xffe0.0000. Fix this first.

Best regards,
Stefan

Hey Raj,

Did you notice how neither Stefan nor I top-posted and yet we are still able to convey information to you?

jdl

#8 lore raw
In reply to raj reddy
Quoted 6 lines · In message <[email protected]> you wrote:

In the PC405GP processor Address Space
Boot ROM -> 0xFFE00000 - 0xFFFFFFFF (i.e 2MB) But on my board i have flash 2M x 16 (CFI) which is of 4MB. That's the reason flash_start_address + flash_size > 0xFFFFFFFF. How can i fix this in the CFI driver?

You don't fix it in the driver, you fix it in your board configu- ration where you define the memory map. Just map the flash at 0xFFC00000 instead...

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
In the beginning, there was nothing, which exploded.
                                - Terry Pratchett, _Lords and Ladies_