This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: i82559_reset quaries !!
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: mohanlal jangir <mohanlaljangir at hotmail dot com>
- Cc: mailing-list ecos <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 23 Jul 2003 09:22:58 +0200
- Subject: Re: [ECOS] i82559_reset quaries !!
- References: <Law11-OE561s7nlT2Nq0000062f@hotmail.com>
On Wed, Jul 23, 2003 at 11:06:02AM +0530, mohanlal jangir wrote:
> I have been working with ARM Integrator/AP board with ARM920t core module. I
> have some queries regarding fucntion i82559_reset.
>
> 1. This is one sorce line from above function
> cyg_uint32 ioaddr = p_i82559->io_address;
> My question is what should variable ioaddr have? I think it should have PCI
> address if p_i82559 is properly initialised but I am getting 0. Any idea
> why?
Probably because eCos cannot find the device on the PCI bus. I suggest
you run the test programs pci1 and pci2. Make sure the PCI bus is
working OK and the device is there and has the expected ID etc.
> 2. Later in function wait_for_cmd_done (called from i82559_reset only) the
> device times out and control goes to "if ( wait <= 0)".
This is to be expected if it cannot find the devices.
> 3. Finally if I call build_boot_record for eth0, I get "SIOCIFADDR: Device
> not configured", which seems because of above problems. Am I right?
Yes.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss