Re: [U-Boot-Users] Atmel AT49BV320C support in Uboot

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.
--- Wolfgang Denk wd@denx.de wrote:
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 183967.9154.qm@web7711.mail.in.yahoo.com you wrote:
CFI supports only the same size sector flash, but
This is not correct. The CFI driver also supports boot sector type flash chips.
is't the right procedure what i am trying to add
the
flash support for AT49BV320C
If the flashis CFI conforming,then you should use the CFI driver.
Best regards,
Wolfgang Denk
-- 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@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

In message 926455.96023.qm@web7701.mail.in.yahoo.com 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...
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

--- Wolfgang Denk wd@denx.de wrote:
In message 926455.96023.qm@web7701.mail.in.yahoo.com 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.
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...
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
-- 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@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

In message 617544.32853.qm@web7712.mail.in.yahoo.com you wrote:
--- Wolfgang Denk wd@denx.de wrote:
In message 926455.96023.qm@web7701.mail.in.yahoo.com 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!!!
=> 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

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.
=> 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
Travelling to a new city? Search for ATMs in that city. Go to http://in.maps.yahoo.com

On Wednesday 12 September 2007, raj reddy 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?
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@denx.de =====================================================================

On Wed, 2007-09-12 at 10:54, Stefan Roese wrote:
On Wednesday 12 September 2007, raj reddy 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?
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

In message 637231.61646.qm@web7711.mail.in.yahoo.com 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
participants (4)
-
Jon Loeliger
-
raj reddy
-
Stefan Roese
-
Wolfgang Denk