[MinnowBoard] RTL8111 with Legacy BIOS

Eric ericolv at cox.net
Mon May 2 19:31:14 UTC 2016


Thanks for the reply Emir.   I’m not sure I can help with your specific issue but could you tell me which BSP you’re using and where you got it?

 

From: elinux-MinnowBoard [mailto:elinux-minnowboard-bounces at lists.elinux.org] On Behalf Of Emir Elkholy
Sent: Monday, May 2, 2016 10:24 AM
To: elinux-minnowboard at lists.elinux.org
Subject: [MinnowBoard] RTL8111 with Legacy BIOS

 

Hi Eric,

 

I am building my OS in Platform Builder, I have used the same image to load multiple Baytrail boards from different vendors (Adlink, Congatec, etc..). The image loads, it's just the driver for the NIC that is failing (I suspect the driver is attempting to access a memory location that was found by the PCI enumeration which is an incorrect address). If I know the physical location on the PCIe bus (along with memory addresses) I can see if the PCI enumeration driver for Windows CE is faulty, or if there is some other issue. 

 

Thanks,

Emir

 

On Mon, May 2, 2016 at 10:15 AM, <elinux-minnowboard-request at lists.elinux.org> wrote:

Send elinux-MinnowBoard mailing list submissions to
        elinux-minnowboard at lists.elinux.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
or, via email, send a message with subject or body 'help' to
        elinux-minnowboard-request at lists.elinux.org

You can reach the person managing the list at
        elinux-minnowboard-owner at lists.elinux.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of elinux-MinnowBoard digest..."


Today's Topics:

   1. RTL8111 with Legacy BIOS (Emir Elkholy)
   2. Re: RTL8111 with Legacy BIOS (Eric)


----------------------------------------------------------------------

Message: 1
Date: Mon, 2 May 2016 09:39:47 -0700
From: Emir Elkholy <emirelkholy at gmail.com>
To: elinux-minnowboard at lists.elinux.org
Subject: [MinnowBoard] RTL8111 with Legacy BIOS
Message-ID:
        <CAExZvuMZVu6kxo2FCvcso-3VCLK-g3A=ri2CaCCBLL4oOFnu9w at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello,

I would like to run Windows CE (32-bit OS) on the Minnowboard Max Turbot. I
am using a legacy BIOS (Winzent) to load the OS, and everything loads fine.
However, when the PCIe bus is being enumerated I believe the physical bus
location that is being reported is incorrect (along with the memory
addresses). For this reason when the OS attempts to load the driver for the
NIC it fails. Does anyone know the physical location on the PCIe bus where
the RTL8111 is located?

When looking at Winzent's BIOS I see the following memory locations:

I/O Range: 5000 - 50FF

Memory I/O Range: D0B00000 - D0B00FFF

Memory I/O Range: C8200000 - C8203FFFF

Windows CE reports the following information when the OS loads up:

------------------------------------------------------------
-------------------
PID:00400003 TID:00850006 Bus/Device/Function = 3/0/0, Ethernet Network
Controller
PID:00400003 TID:00850006   VendorID = 0x10EC, DeviceID = 0x8168, Command =
0x0007, Status = 0x0010
PID:00400003 TID:00850006   RevisionID = 0x0C, ProgIf = 0x00, SubClass =
0x00, BaseClass = 0x02
PID:00400003 TID:00850006   CacheLineSize = 0x10, LatencyTimer = 0x00,
HeaderType
= 0x00, BIST = 0x00
PID:00400003 TID:00850006   BaseAddresses:
PID:00400003 TID:00850006     0x00005001  0x00000000  0xD0B00004 0x00000000
0xC820000C  0x00000000
PID:00400003 TID:00850006   CIS = 0x00000000, SubVendorID = 0x10EC, SubSystemID
= 0x0123
PID:00400003 TID:00850006   ROMBaseAddress = 0x00000000
PID:00400003 TID:00850006   InterruptLine = 0x0A, InterruptPin = 0x01, MinGrant
= 0x00, MaxLatency = 0x00
PID:00400003 TID:00850006
------------------------------------------------------------
-------------------
The base addresses should correspond to the memory addresses, they are
slightly different. From the above you can see that the OS reports the
RTL8111 nic is located on PCI bus number 3/0/0. When inquiring the
information about the NIC from Linux however the only information I can see
is regarding the memory:
        Memory at 90500000 (64-bit, non-prefetchable) [size=4K]
        Memory at 90400000 (64-bit, prefetchable) [size=16K]

This does not match what Windows CE was telling me. Anyways, I was hoping
someone knew the PCIe bus location of the RTL8111 so that I have a
reference place to start from when trying to get the NIC driver to load.
Any insight on the issue would be great, I have been troubleshooting this
for quite some time.

Thanks,
Emir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elinux.org/pipermail/elinux-minnowboard/attachments/20160502/949f5a8d/attachment-0001.html>

------------------------------

Message: 2
Date: Mon, 2 May 2016 10:15:28 -0700
From: "Eric" <ericolv at cox.net>
To: "'MinnowBoard Development and Community Discussion'"
        <elinux-minnowboard at lists.elinux.org>
Subject: Re: [MinnowBoard] RTL8111 with Legacy BIOS
Message-ID: <006b01d1a496$39bafb20$ad30f160$@cox.net>
Content-Type: text/plain; charset="utf-8"

Did you create an OS using a BSP or are you running a pre-built?



From: elinux-MinnowBoard [mailto:elinux-minnowboard-bounces at lists.elinux.org] On Behalf Of Emir Elkholy
Sent: Monday, May 2, 2016 9:40 AM
To: elinux-minnowboard at lists.elinux.org
Subject: [MinnowBoard] RTL8111 with Legacy BIOS



Hello,



I would like to run Windows CE (32-bit OS) on the Minnowboard Max Turbot. I am using a legacy BIOS (Winzent) to load the OS, and everything loads fine. However, when the PCIe bus is being enumerated I believe the physical bus location that is being reported is incorrect (along with the memory addresses). For this reason when the OS attempts to load the driver for the NIC it fails. Does anyone know the physical location on the PCIe bus where the RTL8111 is located?



When looking at Winzent's BIOS I see the following memory locations:



I/O Range: 5000 - 50FF

Memory I/O Range: D0B00000 - D0B00FFF

Memory I/O Range: C8200000 - C8203FFFF

Windows CE reports the following information when the OS loads up:

-------------------------------------------------------------------------------
PID:00400003 TID:00850006 Bus/Device/Function = 3/0/0, Ethernet Network Controller
PID:00400003 TID:00850006   VendorID = 0x10EC, DeviceID = 0x8168, Command = 0x0007, Status = 0x0010
PID:00400003 TID:00850006   RevisionID = 0x0C, ProgIf = 0x00, SubClass = 0x00, BaseClass = 0x02
PID:00400003 TID:00850006   CacheLineSize = 0x10, LatencyTimer = 0x00, HeaderType = 0x00, BIST = 0x00
PID:00400003 TID:00850006   BaseAddresses:
PID:00400003 TID:00850006     0x00005001  0x00000000  0xD0B00004 0x00000000  0xC820000C  0x00000000
PID:00400003 TID:00850006   CIS = 0x00000000, SubVendorID = 0x10EC, SubSystemID = 0x0123
PID:00400003 TID:00850006   ROMBaseAddress = 0x00000000
PID:00400003 TID:00850006   InterruptLine = 0x0A, InterruptPin = 0x01, MinGrant = 0x00, MaxLatency = 0x00
PID:00400003 TID:00850006
-------------------------------------------------------------------------------
The base addresses should correspond to the memory addresses, they are slightly different. From the above you can see that the OS reports the RTL8111 nic is located on PCI bus number 3/0/0. When inquiring the information about the NIC from Linux however the only information I can see is regarding the memory:

        Memory at 90500000 (64-bit, non-prefetchable) [size=4K]
        Memory at 90400000 (64-bit, prefetchable) [size=16K]



This does not match what Windows CE was telling me. Anyways, I was hoping someone knew the PCIe bus location of the RTL8111 so that I have a reference place to start from when trying to get the NIC driver to load. Any insight on the issue would be great, I have been troubleshooting this for quite some time.



Thanks,

Emir

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elinux.org/pipermail/elinux-minnowboard/attachments/20160502/5f1c6097/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
elinux-MinnowBoard mailing list
elinux-MinnowBoard at lists.elinux.org
http://lists.elinux.org/mailman/listinfo/elinux-minnowboard


------------------------------

End of elinux-MinnowBoard Digest, Vol 113, Issue 1
**************************************************

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elinux.org/pipermail/elinux-minnowboard/attachments/20160502/b27bee61/attachment-0001.html>


More information about the elinux-MinnowBoard mailing list