This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
Configuring Memory Address Space
- From: Raghu <raghu_dk at yahoo dot com>
- To: ecos <ecos-devel at sources dot redhat dot com>
- Date: Mon, 21 Mar 2005 06:20:53 -0800 (PST)
- Subject: Configuring Memory Address Space
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=MeUOwLuQk1s2OGxOzcKZsfUPuPoePiPRcfIhKBHDLtqA6HiQ2G1RCUWJLDIrLtgiwPlwk3T8vFTRXOotKJrcB7ajrdIttZgLJzJnXjo4AeIaBXOa2cAjOxb3Z5/0tQOr/spqsRNYVBDLr3FFFM5ba9Gn0Wm4EpItsBcuA2mi0HM= ;
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/