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

Probed sizes and CPU addresses invalid


Hello,

I ported CVS version of ecos/RedBoot to ixdp2801, I am able to access flash and boot Linux.

Now I am working on port of onboard intel ethernet controller 82545, I found driver for 82544 in ecos source.

I've added new device_id and... RedBoot almost detect the device, but all read/write from/to register fail,
because memory address is probably wrong.


Please look at my debug output:

Found device on bus 0, devfn 0x08:
Note that board is active. Probed sizes and CPU addresses invalid!
Vendor    0x8086
Device    0x1028
Command   0x0007, Status 0x0230
Class/Rev 0x02000004
Header 0x00
SubVendor 0x8086, Sub ID 0x1028
BAR[0]    0x42100000 / probed size 0x00000000 / CPU addr 0x22100000
BAR[1]    0x00000000 / probed size 0x00000000 / CPU addr 0xe0000000
BAR[2]    0x00000041 / probed size 0x00000000 / CPU addr 0xd8000040
BAR[3]    0x00000000 / probed size 0x00000000 / CPU addr 0xe0000000
BAR[4]    0x00000000 / probed size 0x00000000 / CPU addr 0xe0000000
BAR[5]    0x00000000 / probed size 0x00000000 / CPU addr 0xe0000000
eth0 configured
found p_i82544: 27d20
I/O address = 0x22100000 device = 1028

"0x1028" is device_id of 82545

According to Intel documentation (and ecos source) BAR[0] should be used
as the "base address register". I am almost sure that this value is wrong.

What means "Note that board is active. Probed sizes and CPU addresses invalid!"?

I looked into the source... And I don't understand, what's the other way of reading BAR[0] if this won't work?
How can I know what's the base address register? This card is accessible from Linux (but I need it from RedBoot),
can I read this value somehow from Linux (or do I need to trace ethernet driver in Linux kernel)?


--
Jacek Poplawski
Software Engineer
Silicon and Software Systems
http://www.s3group.com


The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s). Please direct any additional queries to: communications@s3group.com. Thank You.

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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