-
Hi,
some days ago i try to upgrade my pfsense 2.4.5-RELEASE-p1 to 2.5.0. After reboot it doenst recognized my two usb lan ethernet adapters, only show wan port. They working fine 2.4.5 version.
I try to take them off and put back, pfsense recognized them yes, but i cannot choose interfaces.
Then i try to reinstall clean install 2.5.0 and same issue, only wan port.
Then i install 2.4.5 version back and everything work, but i cannot install packages and i can't restore the backup (all backup). now it seems that i should be installed 2.4.5 again clean and try to make all setting by hand, without that backup. but I don't know if it works package manager still.
Any idea how i can install latest version and get is work with my 2 usb ethernet adapter?
-
What USB ethernet adapter ?
What driver name ?Can't you try a setup that isn't "USB" related ?
FreeBSD is probably good in handling USB drives. The rest is problematic, at best.@naksu said in Issue with upgrade and install latest version:
without that backup.
Use the last backup you made when your system was "2.4.5-p1"
-
[ 1235.861039] usbcore: registered new interface driver r8152
[ 1235.864801] usbcore: registered new interface driver cdc_etherfreebsd reconize that usb adapter well, i try install it without that and with that adapter. But i cannot see that usb ethernet adapter in interfaces.
-
@naksu said in Issue with upgrade and install latest version:
But i cannot see that usb ethernet adapter in interfaces.
Check the log "what did the kernel find during hardware inventory check" : Status > System > Logs > System > OS Boot
Or consult "dmesg" on the SSJ (console) access.
-
hi,
i check it
here is pastebin for that log:
https://pastebin.com/mxPCdFxT
any idea? When i installes older version its working, so i think problem is some where in latest version
-
and
2.5.0-RELEASE][admin@pfSense.home.int]/root: usbconfig
ugen1.1: <Intel EHCI root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen2.1: <Intel EHCI root HUB> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen1.2: <vendor 0x8087 product 0x8008> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen2.2: <vendor 0x8087 product 0x8000> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.3: <MOSART Semi. 2.4G Keyboard Mouse> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
ugen0.2: <Generic 4-Port USB 2.0 Hub> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.4: <Generic 4-Port USB 3.0 Hub> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.5: <Realtek USB 10/100/1000 LAN> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (64mA)
ugen0.6: <Generic 4-Port USB 2.0 Hub> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.7: <Realtek USB 10/100/1000 LAN> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (180mA) -
i update to 2.6.0-DEVELOPMENT (amd64) and its working now, so i think problem is 2.5 kernel or something.
But that version 2.6.0 for some reason limit my internet speed 200 to 40-50. Same issue than i tested opensense latest version.
-
Run:
usbconfig dump_device_desc
with the adaptors attached so we can see the IDs and find out what driver that are/were using.Some USB Ethernet devices can use the generic driver but generally see poor performance compared to the specific device driver. That sounds like what you're seeing.
That said it's much better to avoid USB Ethernet completely if you can.
Steve
-
@stephenw10 said in Issue with upgrade and install latest version:
usbconfig dump_device_desc
Here is pastebin for that:
https://pastebin.com/ThJSM1GF
-
I only see one USB Ethernet device listed there
ugen0.5: <Realtek USB 10/100/1000 LAN> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (64mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0300 bDeviceClass = 0x0000 <Probed by interface class> bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0009 idVendor = 0x0bda idProduct = 0x8153 bcdDevice = 0x3000 iManufacturer = 0x0001 <Realtek> iProduct = 0x0002 <USB 10/100/1000 LAN> iSerialNumber = 0x0006 <000001000000> bNumConfigurations = 0x0002
This: https://usb-ids.gowdy.us/read/UD/0bda/8153
That should be recognised by 2.5:
https://github.com/pfsense/FreeBSD-src/blob/RELENG_2_5_0/sys/dev/usb/usbdevs#L3983And supported by the ure(4) driver:
https://github.com/pfsense/FreeBSD-src/blob/RELENG_2_5_0/sys/dev/usb/net/if_ure.c#L73Is it detected as a ure device in 2.6 or just cdce?
Steve
-
...except that is appears ure(4) is not built in 2.6:
[2.6.0-DEVELOPMENT][admin@26dev.stevew.lan]/root: kldstat -v | grep ure [2.6.0-DEVELOPMENT][admin@26dev.stevew.lan]/root: kldstat -v | grep axe 381 axe/miibus 380 uhub/axe
Unlike, as an example, axe(4).
But I expect it to be becasue:
https://redmine.pfsense.org/issues/11125
Only since 9 days ago though!Steve
-
But looking at the actual diff file there it's created as a module, you need to load it.
So do:
[2.6.0-DEVELOPMENT][admin@26dev.stevew.lan]/root: kldload if_ure
Then check it has loaded with:
[2.6.0-DEVELOPMENT][admin@26dev.stevew.lan]/root: kldstat Id Refs Address Size Name 1 17 0xffffffff80200000 3ae8530 kernel 2 1 0xffffffff83f19000 1000 cpuctl.ko 3 1 0xffffffff83f1a000 2698 intpm.ko 4 1 0xffffffff83f1d000 b40 smbus.ko 5 1 0xffffffff83f1e000 8cd0 aesni.ko 6 1 0xffffffff83f27000 3d00 if_ure.ko
You will probably see it attach to the NIC immediately.
If it works you can do:
echo if_ure_load=YES >> /boot/loader.conf.local
That will load the module at boot.
Steve
-
I have right now only 1 usb ethernet adapter connected (wan is from mb lan port).
i have now latest 2.6.0.a.20210227.0100 updated today.
Let's see if I can still install that 2.5 version and take the logs from it. In version 2.6 that usb ethernet would seem to work, but someone limits the speed pretty much.
[2.6.0-DEVELOPMENT][admin@pfSense.home.int]/root: kldstat
Id Refs Address Size Name
1 10 0xffffffff80200000 3ae8530 kernel
2 1 0xffffffff83f21000 1000 cpuctl.ko
3 1 0xffffffff83f22000 3d00 if_ure.koIts loaded allready i can see.
-
Ok, looks to be loaded, yes.
Do you see a ure0 device in the logs at all? Are you loading that module at boot?
Steve
-
I would think it loaded the driver at boot because I didn’t have to load it manually.
Could the wrong driver affect the fact that it limits network traffic to a maximum of 500Mbps. I have a 1000Mbps lan network and in the previous version 2.4.5 everything worked perfectly.
-
Yes, it could. We have seen other cases where the cdce generic USB Ethernet driver performed significantly worse.
Check the logs for ure entries.Or course if could just be a bad NIC. It's both USB and Realtek which both have bad reputations in FreeBSD/pfSense.
Steve
-
Ok thanks, i will check logs. What i have to find there that i can find logs for ure (or where)?
-
Any mention of ure in the system log or dmesg or /var/log/dmesg.boot (if you have not rebooted for a while).
Steve
-
Here is pastebin:
https://pastebin.com/hsVEwz79
I can find
ure0 on uhub6
ure0: <Realtek USB 10/100/1000 LAN, class 0/0, rev 3.00/30.00, addr 4> on usbus0 -
Mmm, OK that looks to be working correctly.
So you could get >500Mbps though it in 2.4.5, even without that driver?
Steve
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.