This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: Re: Flash support for ea2648 target
- From: Sergei Gavrikov <sergei dot gavrikov at gmail dot com>
- To: Sergei Gavrikov <sergei dot gavrikov at gmail dot com>
- Cc: viren dot dobariya at aftek dot com, ecos-discuss at ecos dot sourceware dot org, youqiang zou <elitechip at gmail dot com>
- Date: Tue, 2 Mar 2010 10:46:55 +0200 (EET)
- Subject: RE: [ECOS] Re: Flash support for ea2648 target
- References: <20100224080602.GA2372@sg-desktop> <4B84F388.6070901@cetoni.de> <20100224113338.GA3916@sg-desktop> <alpine.DEB.2.00.1002271944180.4096@sg-laptop> <000001cab9c4$1d4e9be0$57ebd3a0$@dobariya@aftek.com> <alpine.DEB.2.00.1003020731440.2028@sg-laptop> <19933.59.95.41.73.1267509987.squirrel@mail.aftek.com> <alpine.DEB.2.00.1003020925280.9518@sg-desktop>
On Tue, 2 Mar 2010, Sergei Gavrikov wrote:
[Add Youqiang Zou to CC]
On Tue, 2 Mar 2010, viren.dobariya@aftek.com wrote:
On Tue, 2 Mar 2010, viren.dobariya wrote:
Hi, sergei,
I am still struggling with flash problem in EA-2468 board.
In this mail, you mention that Youqiang Zou added
CYG_FLASH_DRIVER definition to flash_ea2468.c. Can you explain me
detail?
Should I add same definition for my board??
As I could understand, it is possible the same definition should be added
to current platform specific driver. But, Youqiang also pointed that he
use other flash parts, so, do not apply his lines as is. To know what the
macro is (does), please, refer to eCos documentation:
http://ecos.sourceware.org/docs-latest/ref/io-flash.html
http://ecos.sourceware.org/docs-latest/ref/ecos-flash-v2-dev.html
Sergei
Hi, Sergei,
Thanks for documentation.
Can you ask Youqiang Zou that how did he add CYG_FLASH_DRIVER
defination?? If he gives us example then i will add according to my device.
Thanks,
Viren
I was looking the cludges when I got his e-mail and I'd seen that he did
CC to the list, but, may be he is not subscribed to the list, so, you have
got no copy. Well, he wrote
Youqiang> Refered to the arm_aim711_flash.c, I?changed?the
Youqiang> flash_ea2468.c as the below list.
Youqiang> // The EA LPC2468 OEM board has one SST 39VF3201 part
Youqiang> #define CYGNUM_FLASH_INTERLEAVE (1)
Youqiang> #define CYGNUM_FLASH_SERIES (1)
Youqiang> #define CYGNUM_FLASH_WIDTH (16)
Youqiang> #define CYGNUM_FLASH_BASE (0x80000000)
[drop some implementation details]
Youqiang> I had not the EA2468 board, my platform is:
Youqiang> Platform: LPC2478 Board (ARM7TDMI-S)
Youqiang> RAM: 0xa0000000-0xa2000000 [0xa000aac8-0xa1ffc000 available]
Youqiang> FLASH: 0x81000000-0x811fffff, 512 x 0x1000 blocks
I assume that is the real RedBoot's output and that looks like that
CYGNUM_FLASH_BASE address was pointed on 0x81000000. Other chip select
pin? So, check that too. Also, CYGNUM_FLASH_WIDTH says about 16-bit.
They said here
http://ecos.sourceware.org/docs-latest/ref/ecos-flash-library.html
Will Robinson!
Sergei
--
My comments: as I can see there is fitted other flash parts on his board,
so, I do not think that you must change own definition, just define
CYG_FLASH_DRIVER properly acording the used FLASH's "geometry".
Sergei
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss