This is the mail archive of the ecos-discuss@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]

Re: i82559_reset quaries !!


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


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