OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: thebd116 on September 08, 2018, 07:26:09 am

Title: Updated Unix Realtek Drivers
Post by: thebd116 on September 08, 2018, 07:26:09 am
Hey Team,

Is it possible for next release for the unix realtek driver to be updated to 1.95

http://www.realtek.com.tw/DOWNLOADS/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3

As per website latest version is 1.95 dated 2018/8/3

Cheers,



Title: Re: Updated Unix Realtek Drivers
Post by: franco on September 08, 2018, 10:25:54 am
Thanks for the hint. I check this page every other month but missed this so far.

I'll get this done today. :)


Cheers,
Franco
Title: Re: Updated Unix Realtek Drivers
Post by: franco on September 09, 2018, 07:07:57 pm
Download page wasn't working yesterday, but earlier today it was ok. Commit here:

https://github.com/opnsense/src/commit/8bf726ec9

You can try the kernel if you like, but please note that I haven't had time to test the driver on appropriate hardware. From the looks of the changes, there shouldn't be any surprises.

# opnsense-update -kr 18.7.2-re
# opnsense-shell reboot


Cheers,
Franco
Title: Re: Updated Unix Realtek Drivers
Post by: thebd116 on September 10, 2018, 02:56:07 pm
Thanks Franco such a Legend
Title: Re: Updated Unix Realtek Drivers
Post by: franco on September 10, 2018, 05:29:34 pm
I'm assuming you mean the driver works in a legendary fashion already? ;)

Did you try it? If so, what Realtek chipset do you have for reference?


Cheers,
Franco
Title: Re: Updated Unix Realtek Drivers
Post by: va176thunderbolt on September 12, 2018, 03:44:44 am
Franco - I installed the update:
# opnsense-update -kr 18.7.2-re
# opnsense-shell reboot

but when I rebooted I see this in dmesg:
re0: Ethernet address: 00:13:3b:0f:13:0a
pcib4: <PCI-PCI bridge> irq 27 at device 7.0 on pci2
pci4: <PCI bus> on pcib4
re1: <Realtek PCIe GBE Family Controller> port 0xc000-0xc0ff mem 0xfe800000-0xfe800fff,0xd0800000-0xd0803fff irq 27 at device 0.0 on pci4
re1: Using Memory Mapping!
re1: Using 1 MSI-X message
re1: version:1.94.01

Did I miss something? I didn't get any errors when I installed
Title: Re: Updated Unix Realtek Drivers
Post by: franco on September 12, 2018, 09:58:58 am
For one reason or another, this doesn't look like the correct kernel.

What's your output of:

# uname -a


Cheers,
Franco
Title: Re: Updated Unix Realtek Drivers
Post by: va176thunderbolt on September 13, 2018, 02:37:27 am
I installed 18.7.2 this morning:

OPNsense 18.7.2-amd64
FreeBSD 11.1-RELEASE-p13
OpenSSL 1.0.2p 14 Aug 2018

uname -a shows:
FreeBSD gw.foo.local 11.1-RELEASE-p13 FreeBSD 11.1-RELEASE-p13  0259f6a4413(stable/18.7)  amd64

Dmesg shows this:
e0: <Realtek PCIe GBE Family Controller> port 0xd000-0xd0ff mem 0xfe900000-0xfe900fff,0xd0900000-0xd0903fff irq 27 at device 0.0 on pci3
re0: Using Memory Mapping!
re0: Using 1 MSI-X message
re0: version:1.94.01
re0: Ethernet address: 00:13:3b:0f:13:0a

re1: <Realtek PCIe GBE Family Controller> port 0xc000-0xc0ff mem 0xfe800000-0xfe800fff,0xd0800000-0xd0803fff irq 27 at device 0.0 on pci4
re1: Using Memory Mapping!
re1: Using 1 MSI-X message
re1: version:1.94.01
re1: Ethernet address: 00:13:3b:0f:13:0b

re2: <Realtek PCIe GBE Family Controller> port 0xe000-0xe0ff mem 0xfea00000-0xfea00fff,0xd0a00000-0xd0a03fff irq 32 at device 0.0 on pci5
re2: Using Memory Mapping!
re2: Using 1 MSI-X message
re2: version:1.94.01
re2: Ethernet address: 1c:1b:0d:1a:49:a5

(Motherboard has a RTL8111E and there is a dual-port card with 2 RTL8111G)

Title: Re: Updated Unix Realtek Drivers
Post by: franco on September 13, 2018, 09:15:30 am
Hold on, you need to install a specific kernel and upgrading will remove it....

I've posted a new one:

# opnsense-update -kr 18.7.2-re2
# opnsense-shell reboot

It should show:

# uname -a
FreeBSD xxx.yyy 11.1-RELEASE-p14 FreeBSD 11.1-RELEASE-p14  4276cbe86a9(master)  amd64


Cheers,
Franco
Title: Re: Updated Unix Realtek Drivers
Post by: va176thunderbolt on September 13, 2018, 05:07:20 pm
Franco - ok, I did install the new kernel:

# opnsense-update -kr 18.7.2-re2
# opnsense-shell reboot

After the reboot, I get this:

#:~ # uname -a
FreeBSD gw.foo.local 11.1-RELEASE-p13 FreeBSD 11.1-RELEASE-p13  0259f6a4413(stable/18.7)  amd64
#:~ #

Firmware shows that a update is available:
ackage Name   Current Version   New Version   Required Action
kernel   18.7.2-re2   18.7.2   upgrade

which leads me to believe the new kernel was installed.

However, dmesg still reports:
re0: <Realtek PCIe GBE Family Controller> port 0xd000-0xd0ff mem 0xfe900000-0xfe900fff,0xd0900000-0xd0903fff irq 27 at device 0.0 on pci3
re0: Using Memory Mapping!
re0: Using 1 MSI-X message
re0: version:1.94.01
Title: Re: Updated Unix Realtek Drivers
Post by: franco on September 13, 2018, 05:19:36 pm
# FreeBSD gw.foo.local 11.1-RELEASE-p13 FreeBSD 11.1-RELEASE-p13  0259f6a4413(stable/18.7)  amd64

No, that's the old kernel again! Are you sure the reboot went through?
Title: Re: Updated Unix Realtek Drivers
Post by: va176thunderbolt on September 13, 2018, 05:39:00 pm
Franco - I could hear the shutdown and bootup tones, and was disconnected from a ssh session into the firewall. Should I put a monitor on it and see what it happens during the reboot?
Title: Re: Updated Unix Realtek Drivers
Post by: franco on September 14, 2018, 09:20:18 am
Well, something prevents you from getting the new kernel...

This should be the correct kernel:

# md5 /boot/kernel/kernel
MD5 (/boot/kernel/kernel) = 34b82987647d7e7f2c3bda0fc7a7bd4b

Maybe you can offer the debug output of the install sequence:

# opnsense-update -Vfkr 18.7.2-re2


Cheers,
Franco
Title: Re: Updated Unix Realtek Drivers
Post by: va176thunderbolt on September 14, 2018, 04:43:51 pm
I have the output, but now dmesg is showing 1.95.

I'll run it through it's paces and see how the newer driver holds up.

Thanks Franco!