From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn To: Daniel Lind Cc: eCos Disuss Subject: Re: [ECOS] MBX860 super I/O chip Date: Wed, 04 Oct 2000 05:58:00 -0000 Message-id: <20001004145750.B10128@biferten.ma.tech.ascom.ch> References: <39DB2459.12A36C00@bluelabs.se> X-SW-Source: 2000-10/msg00025.html > port2=(PORT*) 0x800002f8; > qspan=(QSPANREG*) 0xfa210000; > qspanPCI_CLASS=(volatile unsigned long*) 0xfa210000; > > When I try to reach the qspan registers with the pointer to the struct > QSPANREG my debugger says that every register in the struct just > contains 0. This doesn't match the values that should be there after > power up. When I'm trying to reach the qspan registers with the pointer > qspanPCI_CLASS and trying to put the register value in the variable > value the debugger tells me "Program received signal SIGSEGV, > Segmentation fault". > The adresses to this pheripheral is outside of the ram. But how will I > reach them????? What shall I change in the configuration of eCos. The > default settings using the template for mbx860 board is for an > entry-level board and it has no 37C672 I/O device..... This all sounds like MMU problems. I have a quick look the MBX code. In packages/hal/powerpc/mbx/current/src/hal_aux.c there is a memory map table used to configure the MMU. I think you need to add some more entires to this table. Andrew