public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* Tagret Board with two flash chips
@ 2006-10-11 12:06 Jack Chen
  2006-10-11 12:14 ` Gary Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Jack Chen @ 2006-10-11 12:06 UTC (permalink / raw)
  To: ecos-devel

Dear all,
    My target board(CPU:IXP425, eCos template is GRG) with two flash chips. 
Each one size: 16MB(Intel Strata Flash 28F128J3).
   Memory mapping:
   CS0->0x50000000
   CS1->0x51000000

I'm using Configtool under Linux(packages:flash_v2-full-061008.tar.bz2), 
then import /hal/arm/xscale/grg/current/misc/redboot_ROM.ecm
But the item FLASH device drives->Provide /dev block devices->Provide block 
device 2, it's check box is empty.

Please tell me how to use flash_v2 to configure my target board? thanks.

Best Regards
Jack 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Tagret Board with two flash chips
  2006-10-11 12:06 Tagret Board with two flash chips Jack Chen
@ 2006-10-11 12:14 ` Gary Thomas
  0 siblings, 0 replies; 6+ messages in thread
From: Gary Thomas @ 2006-10-11 12:14 UTC (permalink / raw)
  To: Jack Chen; +Cc: ecos-devel

Jack Chen wrote:
> Dear all,
>    My target board(CPU:IXP425, eCos template is GRG) with two flash 
> chips. Each one size: 16MB(Intel Strata Flash 28F128J3).
>   Memory mapping:
>   CS0->0x50000000
>   CS1->0x51000000
> 
> I'm using Configtool under Linux(packages:flash_v2-full-061008.tar.bz2), 
> then import /hal/arm/xscale/grg/current/misc/redboot_ROM.ecm
> But the item FLASH device drives->Provide /dev block devices->Provide 
> block device 2, it's check box is empty.
> 
> Please tell me how to use flash_v2 to configure my target board? thanks.

You don't actually need to use the V2 FLASH code to support this setup
since the devices are the same and physically adjacent.  Just edit
   .../devs/flash/arm/grg/current/include/grg_strataflash.inl
and set CYGNUM_FLASH_DEVICES to (2)

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Tagret Board with two flash chips
  2006-10-13  7:02   ` Jack Chen
@ 2006-10-13  7:12     ` Andrew Lunn
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Lunn @ 2006-10-13  7:12 UTC (permalink / raw)
  To: Jack Chen; +Cc: ecos-devel

On Fri, Oct 13, 2006 at 03:01:58PM +0800, Jack Chen wrote:
> Hi Gary:
>  I'm modify  
>  packages\hal\arm\xscale\grg\current\include\hal_platform_extras.h
>  like follows:
>   
> // 16MB Flash  (Expansion bus CS0)
> .rept 0x510 - 0x500
> FL_SECTION_ENTRY __base,0,3,0,0,1,0
> .set __base,__base+1
> .endr 
> 
> // 16MB Flash  (Expansion bus CS1)
> .rept 0x520 - 0x510
> FL_SECTION_ENTRY __base,0,3,0,0,1,0
> .set __base,__base+1
> .endr
> 
> // Rest of Expansion bus (CS2-CS7)
> .rept 0x600 - 0x520
> FL_SECTION_ENTRY __base,0,3,0,0,0,0
> .set __base,__base+1
> .endr
> 
> The console display:
> 
> +$T0a0f:0000904c;0d:0000b2c8;#a8

Try using gdb to decode this string. It will tell you where it
crashed.

        Andrew

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Tagret Board with two flash chips
  2006-10-12 11:01 ` Gary Thomas
@ 2006-10-13  7:02   ` Jack Chen
  2006-10-13  7:12     ` Andrew Lunn
  0 siblings, 1 reply; 6+ messages in thread
From: Jack Chen @ 2006-10-13  7:02 UTC (permalink / raw)
  To: ecos-devel

Hi Gary:
  I'm modify  
  packages\hal\arm\xscale\grg\current\include\hal_platform_extras.h
  like follows:
   
 // 16MB Flash  (Expansion bus CS0)
 .rept 0x510 - 0x500
 FL_SECTION_ENTRY __base,0,3,0,0,1,0
 .set __base,__base+1
 .endr 
 
 // 16MB Flash  (Expansion bus CS1)
 .rept 0x520 - 0x510
 FL_SECTION_ENTRY __base,0,3,0,0,1,0
 .set __base,__base+1
 .endr

 // Rest of Expansion bus (CS2-CS7)
 .rept 0x600 - 0x520
 FL_SECTION_ENTRY __base,0,3,0,0,0,0
 .set __base,__base+1
 .endr

The console display:

+$T0a0f:0000904c;0d:0000b2c8;#a8

Bets Regards
Jack

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Tagret Board with two flash chips
  2006-10-12  6:41 Jack Chen
@ 2006-10-12 11:01 ` Gary Thomas
  2006-10-13  7:02   ` Jack Chen
  0 siblings, 1 reply; 6+ messages in thread
From: Gary Thomas @ 2006-10-12 11:01 UTC (permalink / raw)
  To: Jack Chen; +Cc: ecos-devel

Jack Chen wrote:
> Hi Gary,
>   I'm modify grg_strataflash.inl, set CYGNUM_FLASH_DEVICES to (2),
> then make "redboot.bin", and install it. Then reboot target board, but 
> the console display:
> "+$T0a0f:0000904c;0d:0000b2c8;#a8"

Did you remember to adjust the memory mapping to map in this
additional FLASH segment?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Tagret Board with two flash chips
@ 2006-10-12  6:41 Jack Chen
  2006-10-12 11:01 ` Gary Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Jack Chen @ 2006-10-12  6:41 UTC (permalink / raw)
  To: ecos-devel

Hi Gary,
   I'm modify grg_strataflash.inl, set CYGNUM_FLASH_DEVICES to (2),
then make "redboot.bin", and install it. Then reboot target board, but the 
console display:
"+$T0a0f:0000904c;0d:0000b2c8;#a8"

Best Regards
Jack


 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-10-13  7:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-11 12:06 Tagret Board with two flash chips Jack Chen
2006-10-11 12:14 ` Gary Thomas
2006-10-12  6:41 Jack Chen
2006-10-12 11:01 ` Gary Thomas
2006-10-13  7:02   ` Jack Chen
2006-10-13  7:12     ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).