RE: LAN91C and XSCALE
- From: authorwjf <authorwjf@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 10 Jul 2006 11:54:02 -0700
Thank you Paul, Marco, and Dean!
With your excellent suggestions I am much closer, though still not
operational. It appears my main issue was I was using virtual addresses and
the driver was expecting physical ones. By changing the LAN91C111_Init.c
variable LAN91C111_ADDR to my physical address, 0x0c000000, I am no longer
getting the data abort.
However, I am still failing to complete the initilization process. My debug
logs seems to indicate that I am getting hung up attempting to verify the
adapter. It looks like this:
<=DriverEntry
=>MiniportInitialize
:SetupGPIOs
:Allocated TX buffer Successfully!
=>GetRegistrySettings
:BusType=0x01
:BusNumber=0x0
:New IRQ Value Found in Registry..overiding default
:New IOBase Address found in Registry...overiding default:
:BusNumber=0
:BusType=1
:IoBase=0x0c000300
:Interrupt=29
:Speed=254
:Duplex=254
<=GetRegistrySettings
:Interrupt Registered
:VirtualAlloc/Copy Succeed...
:Allocated Lookup Buffer Successfully
=>AdapterVerify
:A.IO= 0x 1d0300!
:Io= 0x 1d0300!
:BankSelect Constant= 0x3300!
:ERROR--Invalid Lan Chip (0x0) and Driver Combination.
<=AdapterVerify
:Adapter Failed to Verify!
<=Miniport Initialize
***NDIS*** Miniport Z
I am comfident that the chip ID will read as "9" because I do so in my
bootloader. So again I am left feeling like something is amis with the
address I am using, this time, the one loaded from the registry. Currently,
my Lan9001 Params look like this:
BusNumber=0
BusType=1
InterruptNumber=1D
IoBaseAddress=0C000300 ;Note I am adding 0x300 to my base address here.
;I do not in LAN91C111_INIT.C as it
appears to already
;account for it
Transceiver=1D
SysIntr=1D
If any of you have any other suggestions, I am all ears. It seems to me
that I must be very close if I can read the constant 0x3300 used to signify
the presence of the chip. Does anyone know what the A.IO and IO addresses
are / signify? In the mean time, I guess I need to try and determine what
exactly is the difference between the NdisRawWrite and ReadPorts, and the
ReadPort and WritePort implemented in my bootloader.
Thanks again to all for your help!
.
- Follow-Ups:
- Re: LAN91C and XSCALE
- From: Paul G. Tobey [eMVP]
- Re: LAN91C and XSCALE
- Prev by Date: Re: Eboot doesn't boot PXA270
- Next by Date: Code Space Full
- Previous by thread: Re: LAN91C and XSCALE
- Next by thread: Re: LAN91C and XSCALE
- Index(es):
Relevant Pages
|