From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28522 invoked by alias); 3 Sep 2008 12:08:50 -0000 Received: (qmail 28511 invoked by uid 22791); 3 Sep 2008 12:08:49 -0000 X-Spam-Check-By: sourceware.org Received: from hermes.mlbassoc.com (HELO mail.chez-thomas.org) (204.133.123.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 03 Sep 2008 12:08:09 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id A613D33792D1; Wed, 3 Sep 2008 06:08:07 -0600 (MDT) Received: from hermes.chez-thomas.org (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id D86A43379523; Wed, 3 Sep 2008 06:07:58 -0600 (MDT) Message-ID: <48BE7E1D.3080608@mlbassoc.com> Date: Wed, 03 Sep 2008 12:08:00 -0000 From: Gary Thomas User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: sebastian igielski CC: ecos-discuss@sourceware.org References: <48B42000.7000407@kolporter.com.pl> <48BE79EF.6010500@kolporter.com.pl> In-Reply-To: <48BE79EF.6010500@kolporter.com.pl> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Red-Boot & Multiple Flash IC's X-SW-Source: 2008-09/txt/msg00036.txt.bz2 sebastian igielski wrote: > Hi! > > Sorry for my simple questions but generally I'm a hardware engineer and > I have little experience with red-boot and ecos environment. I search > for the solution over the archive of this mailing list, and a few people > says when I have multiple flash IC's I must include second instance of > flash driver. Anybody can help me a little? Show the right path or place > to search right solution? There are many examples of how to do this in the public tree. Look at the ARM/Integrator platform - it uses 2 banks of 4 Intel FLASH devices. > sebastian igielski pisze: >> Hi! >> >> We have porting Red-Boot to our platform based on EP9302 >> microprocessor (produced by Cirrus Logic, ARM920T core inside). I have >> one question about using multiple flash IC's connected to different >> chip selects, uut at first I must tell something about our hardware >> platform. >> >> In a few words, we have on board following IC's: >> >> 1x MCU: EP9302 (ARM920T core, 16 bit wide data bus) >> 4x SDRAM (one SDRAM chip have 32Mbyte capacity, four banks - [8MBytes >> per bank]) - Total: 128Mbytes of RAM >> 2x NOR FLASH (JS28F1283D) (connected to two separate chip selects) >> (The NOR flash chips is Intel-Strata FLASH IC's.) >> >> One NOR-FLASH chip have 16-bit data bus. The NOR-Flash chips is placed >> at 0x6000_0000 and 0x7000_0000 in physical memory layout. After >> configuring and enabling the MMU the NOR-Flash chips is mapped as >> follows (virtual address space): >> >> IC #1: 0x6000_0000 - 0x60FF_FFFF >> IC #2: 0x6100_0000 - 0x61FF_FFFF >> >> And now is my question about Red-Boot environment. It is possible to >> (and how to do it) use both NOR flash chips? >> Now I have working only one chip (placed at virtual address: >> 0x6000_0000-0x60FF_FFFF). >> >> I have no idea how to tell Red-Boot/Strata Flash driver to see my >> second NOR-Flash chip. It is possible to RedBoot handle this kind of >> hardware configuration? >> >> Some people told me that I must modify the "CYGNUM_FLASH_DEVICES", but >> in my humble opinion this variable defines the FLASH IC's needed to >> coverage the data bus by multiple FLASH IC's (for example: when I have >> 32 bit wide data bus, and when I have two 16 bit FLASH IC's to >> coverage 32-bit data bus - in that case CYGNUM_FLASH_DEVICES must be >> set to 2). I'm correct? >> >> In our hardware the data bus is 16-bit wide and FLASH IC is 16 bit >> wide (so one flash chip coverage all data bus), the second FLASH IC is >> used to extend size of flash memory size. As i written above, I have >> working first FLASH CHIP. And I don't know to add second chip to >> RedBoot environment. >> >> If anybody can suggest me right solution of my problem, or give any >> helpful idea I will be graceful. >> >> I have ecos-2.0 package. >> >> with regards >> Sebastian Igielski >> >> > > -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss