This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: MBX860 super I/O chip
- To: Daniel Lind <daniel dot lind at sth dot frontec dot se>
- Subject: Re: [ECOS] MBX860 super I/O chip
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Date: Wed, 4 Oct 2000 14:57:50 +0200
- Cc: eCos Disuss <ecos-discuss at sourceware dot cygnus dot com>
- References: <39DB2459.12A36C00@bluelabs.se>
> 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