This is the mail archive of the ecos-devel@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Configuring Memory Address Space


Hi, 

I have a custom IXP425 based board. And following
memory map. 

0x5000.0000 CS0 Boot Flash, size 8 MBytes
0x5200.0000 CS2 FPGA Reg,   size 16 MBytes
0x5300.0000 CS3 LIC  Reg,   size 16 MBytes

The CS2 ( FPGA ) registers are 16 bit registers, so
the CS2 i.e. 0xC4000008 = 0xBFFF3C02
 
The CS4 ( LIC ) resisters are 8 bit registers, so 
the CS3 i.e. 0xC400000C = 0xBFFF3C43

In the hal_platform_setup.h file, I used the macro, 

IXP_MAP_EXP 2, ( 1 << 24 ), 0, 0, 0, 0 // 0x52000000
IXP_MAP_EXP 3, ( 1 << 24 ), 0, 0, 0, 0 // 0x53000000

But in Redboot when I dump these address locations, 
I get "illegal access" 
----------------------------------------------------
RedBoot> x -b 0xc4000000 -l 16 -4
C4000000: BFFF3C42 BFFF3842 BFFF3C02 BFFF3C43
RedBoot> x -b 0x52000000 -l 16 -2
illegal mem
RedBoot> x -b 0x53000000 -l 16 -2
illegal mem
----------------------------------------------------
Is the MMU setting an issue ?? Thanks in advance.

Regards,
Raghu









		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]