Project

General

Profile

Actions

Feature #11079

closed

Include the updated Realtek driver pkg in the pfSense repo

Added by Steve Wheeler over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Interfaces
Target version:
Start date:
11/18/2020
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:

Description

There is now a FreeBSD package for the 'official' Realtek driver, currently v1.96.04.

https://www.freshports.org/net/realtek-re-kmod/

This is needed for the new Realtek 2.5G devices but also runs with a lot more stability on numerous older devices.
Currently users are either compiling it themselves or uploading a random binary someone else compiled!
The pkg can be installed using 'pkg add' but the full path is needed and changes. There is also the risk of pulling in some incompatible dependency.

Adding this to our repo would remove those issues.

Actions #1

Updated by Renato Botelho over 3 years ago

  • Status changed from New to Feedback
  • Assignee set to Renato Botelho

PR has been merged. Thanks!

Actions #2

Updated by Steve Wheeler over 3 years ago

  • Status changed from Feedback to New
  • Assignee deleted (Renato Botelho)
Actions #3

Updated by Steve Wheeler over 3 years ago

  • Status changed from New to Feedback

Sorry, overlapped. Back to feedback....

Actions #4

Updated by Alhusein Zawi over 3 years ago

pks is added .

[2.5.0-DEVELOPMENT][]/root: pkg search realtek
realtek-re-kmod-v196.04_2 Kernel driver for Realtek PCIe Ethernet Controller .

Actions #5

Updated by Steve Wheeler over 3 years ago

  • Status changed from Feedback to Resolved

Looks good:

[2.5.0-DEVELOPMENT][admin@apu.stevew.lan]/root: pkg search realtek
realtek-re-kmod-v196.04_2      Kernel driver for Realtek PCIe Ethernet Controllers
[2.5.0-DEVELOPMENT][admin@apu.stevew.lan]/root: pkg install realtek-re-kmod
Updating pfSense-core repository catalogue...
pfSense-core repository is up to date.
Updating pfSense repository catalogue...
pfSense repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    realtek-re-kmod: v196.04_2 [pfSense]

Number of packages to be installed: 1

The process will require 1 MiB more space.
104 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching realtek-re-kmod-v196.04_2.txz: 100%  104 KiB 106.5kB/s    00:01    
Checking integrity... done (0 conflicting)
[1/1] Installing realtek-re-kmod-v196.04_2...
[1/1] Extracting realtek-re-kmod-v196.04_2: 100%
=====
Message from realtek-re-kmod-v196.04_2:

--
Add the following lines to your /boot/loader.conf
to override the built-in FreeBSD re(4) driver.

if_re_load="YES" 
if_re_name="/boot/modules/if_re.ko" 

By default, the size of allocated mbufs is enough
to receive the largest Ethernet frame supported
by the card.  If your memory is highly fragmented,
trying to allocate contiguous pages (more than
4096 bytes) may result in driver hangs.
For this reason the value is tunable at boot time,
e.g. if you don't need Jumbo frames you can lower
the memory requirements and avoid this issue with:

hw.re.max_rx_mbuf_sz="2048" 
[2.5.0-DEVELOPMENT][admin@apu.stevew.lan]/root: echo 'if_re_load="YES"' >> /boot/loader.conf.local

Then:

re0: <Realtek PCIe GbE Family Controller> port 0x1000-0x10ff mem 0xf7a00000-0xf7a00fff,0xf7900000-0xf7903fff irq 16 at device 0.0 on pci1
re0: Using Memory Mapping!
re0: Using 1 MSI-X message
re0: ASPM disabled
re0: version:1.96.04
re0: Ethernet address: 00:0d:b9:37:30:10

Actions #6

Updated by Jim Pingle over 3 years ago

  • Target version changed from Future to 2.5.0
Actions #7

Updated by Steve Wheeler over 3 years ago

This has been added to factory but doesn't need to be. There are no factory devices using re(4) any longer.

Actions

Also available in: Atom PDF