public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Enabling network interface for Realtek8168 chip
@ 2018-05-13 14:28 Anatol Pomozov
  2018-05-14  2:42 ` Richardson, Brian
  0 siblings, 1 reply; 4+ messages in thread
From: Anatol Pomozov @ 2018-05-13 14:28 UTC (permalink / raw)
  To: edk2-devel

Hello

I have a HP Chromebox (codename "zako") that is a small-form factor
nice x86 computer useful for experiments. I installed firmware from
Matt Davo - the firmware is Coreboot + UEFI payload. UEFI compiled
from this sourcecode fork https://github.com/MattDevo/edk2

At my cromebox I have an ethernet contoller that is identified by
Linux `lspci` as "01:00.0 Ethernet controller [0200]: Realtek
Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet
Controller [10ec:8168] (rev 0c)"

I want to use ethernet network from an UEFI application. I use
LocateHandle() to find a SimpleNetworkProtocol for me. Network works
fine with QEMU and Intel e1000e controller. But at real hardware at
Chromebox LocateHandle() handle returns error EFI_NOT_FOUND.

It sounds like the realtek driver is not enabled at UEFI firmware level.

Does anyone have pointers how to enable or implement Realtek8168 driver in edk2?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Enabling network interface for Realtek8168 chip
  2018-05-13 14:28 Enabling network interface for Realtek8168 chip Anatol Pomozov
@ 2018-05-14  2:42 ` Richardson, Brian
  2018-05-14  4:03   ` Anatol Pomozov
  0 siblings, 1 reply; 4+ messages in thread
From: Richardson, Brian @ 2018-05-14  2:42 UTC (permalink / raw)
  To: Anatol Pomozov, edk2-devel@lists.01.org

You can try the UEFI UNDI driver available for download from Realtek's website:

http://www.realtek.com/Downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=fa&SortByDesc=1 

Thanks ... br
---
Brian Richardson, Senior Technical Marketing Engineer, Intel Software
brian.richardson@intel.com -- @intel_brian (Twitter & WeChat)
https://software.intel.com/en-us/meet-the-developers/evangelists/team/brian-richardson 

-----Original Message-----
From: edk2-devel <edk2-devel-bounces@lists.01.org> On Behalf Of Anatol Pomozov
Sent: Sunday, May 13, 2018 10:29 AM
To: edk2-devel@lists.01.org
Subject: [edk2] Enabling network interface for Realtek8168 chip

Hello

I have a HP Chromebox (codename "zako") that is a small-form factor nice x86 computer useful for experiments. I installed firmware from Matt Davo - the firmware is Coreboot + UEFI payload. UEFI compiled from this sourcecode fork https://github.com/MattDevo/edk2

At my cromebox I have an ethernet contoller that is identified by Linux `lspci` as "01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)"

I want to use ethernet network from an UEFI application. I use
LocateHandle() to find a SimpleNetworkProtocol for me. Network works fine with QEMU and Intel e1000e controller. But at real hardware at Chromebox LocateHandle() handle returns error EFI_NOT_FOUND.

It sounds like the realtek driver is not enabled at UEFI firmware level.

Does anyone have pointers how to enable or implement Realtek8168 driver in edk2?
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Enabling network interface for Realtek8168 chip
  2018-05-14  2:42 ` Richardson, Brian
@ 2018-05-14  4:03   ` Anatol Pomozov
  2018-05-14  5:21     ` Richardson, Brian
  0 siblings, 1 reply; 4+ messages in thread
From: Anatol Pomozov @ 2018-05-14  4:03 UTC (permalink / raw)
  To: Richardson, Brian; +Cc: edk2-devel@lists.01.org

Awesome, thank you Brian!

On Sun, May 13, 2018 at 7:42 PM, Richardson, Brian
<brian.richardson@intel.com> wrote:
> You can try the UEFI UNDI driver available for download from Realtek's website:
>
> http://www.realtek.com/Downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=fa&SortByDesc=1

I contacted Zako's device firmware maintainer to add this driver to
the firmware blob.

Meanwhile I am thinking what can I do to try this driver myself (in
case if maintainer is busy and will not make the changes quickly).

Is there a way to load this driver programmatically from my UEFI
application? So I can request and use SimpleNetworkProtocol. Googling
did not give me any clear answer on this topic.

And if it does not work, what are other ways for me to enable the network?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Enabling network interface for Realtek8168 chip
  2018-05-14  4:03   ` Anatol Pomozov
@ 2018-05-14  5:21     ` Richardson, Brian
  0 siblings, 0 replies; 4+ messages in thread
From: Richardson, Brian @ 2018-05-14  5:21 UTC (permalink / raw)
  To: Anatol Pomozov; +Cc: edk2-devel@lists.01.org

The driver (.efi file) needs to be included in the EDK II project FDF file to be properly integrated into the binary firmware image. There is a good example of this in the MinnowBoard Max/Turbot project.

https://github.com/tianocore/edk2-platforms/blob/devel-MinnowBoardMax-UDK2017/Vlv2TbltDevicePkg/PlatformPkg.fdf

Search for "Network Modules" to find the entry where the Realtek & Intel UNDI drivers are included in the build.

Thanks ... br
---
Brian Richardson, Senior Technical Marketing Engineer, Intel Software
brian.richardson@intel.com -- @intel_brian (Twitter & WeChat)
https://software.intel.com/en-us/meet-the-developers/evangelists/team/brian-richardson 

-----Original Message-----
From: edk2-devel <edk2-devel-bounces@lists.01.org> On Behalf Of Anatol Pomozov
Sent: Monday, May 14, 2018 12:03 AM
To: Richardson, Brian <brian.richardson@intel.com>
Cc: edk2-devel@lists.01.org
Subject: Re: [edk2] Enabling network interface for Realtek8168 chip

Awesome, thank you Brian!

On Sun, May 13, 2018 at 7:42 PM, Richardson, Brian <brian.richardson@intel.com> wrote:
> You can try the UEFI UNDI driver available for download from Realtek's website:
>
> http://www.realtek.com/Downloads/downloadsView.aspx?Langid=1&PNid=13&P
> Fid=5&Level=5&Conn=4&DownTypeID=3&GetDown=fa&SortByDesc=1

I contacted Zako's device firmware maintainer to add this driver to the firmware blob.

Meanwhile I am thinking what can I do to try this driver myself (in case if maintainer is busy and will not make the changes quickly).

Is there a way to load this driver programmatically from my UEFI application? So I can request and use SimpleNetworkProtocol. Googling did not give me any clear answer on this topic.

And if it does not work, what are other ways for me to enable the network?
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-14  5:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-13 14:28 Enabling network interface for Realtek8168 chip Anatol Pomozov
2018-05-14  2:42 ` Richardson, Brian
2018-05-14  4:03   ` Anatol Pomozov
2018-05-14  5:21     ` Richardson, Brian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox