Jack Chen | 11 Oct 2006 14:06
Picon

Tagret Board with two flash chips

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 

Gary Thomas | 11 Oct 2006 14:14
Favicon

Re: Tagret Board with two flash chips

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
------------------------------------------------------------

Jack Chen | 12 Oct 2006 08:40
Picon

Re: Tagret Board with two flash chips

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

David Luca | 12 Oct 2006 09:49
Picon
Favicon

CYGMEM_REGION_lcd undeclared


Hello,
When I try to compile Agilent AAED2000 eCos port, and
set in eCos Hal->ROM Monitor Support->Behave as a ROM
Monitor, I receive the following errors, can anyone
tell me how this problem can be solved? I searched for
the missing directive, I found it in
mlt_arm_arm9_aaed2000_ram.h file, so the problem is
elsewhere. Thank you in advance, 
David Luca

make[1]: Entering directory
`/ecos-d/Projects/eCos/agilent_build/hal/arm/arm9/aaed2000/current'
arm-elf-gcc -c 
-I/ecos-d/Projects/eCos/agilent_install/include
-I/opt/ecos/ecos-3.0/packages/hal/arm/arm9/aaed2000/current
-I/opt/ecos/ecos-3.0/packages/hal/arm/arm9/aaed2000/current/src
-I/opt/ecos/ecos-3.0/packages/hal/arm/arm9/aaed2000/current/tests
-I.
-I/opt/ecos/ecos-3.0/packages/hal/arm/arm9/aaed2000/current/src/
-finline-limit=7000 -mcpu=arm9 -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef  -g -O2
-ffunction-sections -fdata-sections  -fno-exceptions  
-Wp,-MD,src/lcd_support.tmp -o
src/hal_arm_arm9_aaed2000_lcd_support.o
/opt/ecos/ecos-3.0/packages/hal/arm/arm9/aaed2000/current/src/lcd_support.c
/opt/ecos/ecos-3.0/packages/hal/arm/arm9/aaed2000/current/src/lcd_support.c:
In function `lcd_init':
/opt/ecos/ecos-3.0/packages/hal/arm/arm9/aaed2000/current/src/lcd_support.c:146:
`CYGMEM_REGION_lcd' undeclared (first use in this
(Continue reading)

Gary Thomas | 12 Oct 2006 13:01
Favicon

Re: Tagret Board with two flash chips

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
------------------------------------------------------------

Andrew Lunn | 12 Oct 2006 17:16
Picon

Re: CYGMEM_REGION_lcd undeclared

On Thu, Oct 12, 2006 at 12:49:37AM -0700, David Luca wrote:
> 
> Hello,
> When I try to compile Agilent AAED2000 eCos port, and
> set in eCos Hal->ROM Monitor Support->Behave as a ROM
> Monitor, I receive the following errors, can anyone
> tell me how this problem can be solved? I searched for
> the missing directive, I found it in
> mlt_arm_arm9_aaed2000_ram.h file, so the problem is
> elsewhere. 

Are you using ROM startup?

With a ROM build it uses mlt_arm_arm9_aaed2000_rom.{h|ldi} which does
not contain these macros. Try adding them and see if it then compiles
and runs.

    Andrew

Jack Chen | 13 Oct 2006 09:01
Picon

Re: Tagret Board with two flash chips

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

(Continue reading)

Andrew Lunn | 13 Oct 2006 09:12
Picon

Re: Tagret Board with two flash chips

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.
(Continue reading)

Peter Dennett | 13 Oct 2006 17:03

Graphics routines for VMWare


For those interested in developing eCos applications under VMWare 
attached are a couple of files that support access to the SVGA 
adapter emulated by VMWare.  This has been tested under Workstation 
5.5. 

Also attached is a wrapper for this interface to pwlib.

Peter Dennett       Office: 281 334 3800
www.padsoft.com       Cell: 713 899 6100

Attachment (vmware-vga.c): application/octet-stream, 15 KiB
Attachment (vmware-vga.h): application/octet-stream, 23 KiB
Attachment (README.xfree86): application/octet-stream, 21 KiB
Attachment (dd_vmware_ecos.c): application/octet-stream, 14 KiB
Peter Dennett | 14 Oct 2006 05:45

Does MultiCast receive work?

I am starting to add multicast support to the lancepci (VMWare) eth driver.
Sending works fine as it is just UDP sendto - I see the packets on a
neighboring LINUX box.  

I have made a first attempt to configure the adapter to receive MC
addresses.  For now I am just setting all 64 mask bits to one to allow all
MC addresses - this seems to be common in eCos eth drivers anyway.  So far I
am not seeing packets back to my application. From my debug code in
lancepci_recv I think the hardware is delivering them and I am passing them
up the stack.

Before I bust my hump too much more I wanted to see if anyone had a warm
fuzzy feeling about multicast on eCos?   Is it known to work?

Is there was any wise advice about how to proceed?

Peter Dennett       Office: 281 334 3800
www.padsoft.com       Cell: 713 899 6100


Gmane