OPNsense Forum

English Forums => Hardware and Performance => Topic started by: def on April 11, 2018, 03:58:17 pm

Title: IO error after restart with Realtek RTL8152 (RTL8153) USB ethernet adapter
Post by: def on April 11, 2018, 03:58:17 pm
Hi guys

Have Realtek RTL8152 USB ethernet adapter, with opnSense (both 17 and 18)


the first boot works fine, FreeBSD understands, detects, and runs as a network adapter, gets the network and I can use it.

But as soon I reboot system, everything stops working, gives an error

loading Page1 with error
(http://imagizer.imageshack.us/v2/256x0q90/923/FVpQZn.jpg) (http://imageshack.com/a/img923/158/FVpQZn.jpg)

loading Page2 with error
(http://imagizer.imageshack.us/v2/256x0q90/924/i89EGA.jpg) (http://imageshack.com/a/img924/8735/i89EGA.jpg)


In order to fix this, I need to pull out my adapter and at the time of loading the operating system insert it, and then I have a chance that he will get the address and determine correctly.

I'm trying to fix this problem for about 8+ days already
What I tried:

With Windows works ideally (it is expected):
The adapter on Windows XP works perfectly ~ 97Mbps
The adapter on Windows 7 works perfectly ~ 96Mbps

It works fine with Linux too:
Arch (manjaro kernel 4.14 and 3.x) ~ 95Mpbs
Ubuntu 14 (xfce) ~ 96 Mbps
Ipfire (linux kern) ~ 96 Mbps
Kali weekly (w12 2018y) ~ 95Mpbs

FreeBSD:
Opnsense - work only in first boot
pfsense - adapter not detected (with if_ure_load = "YES" and i copy all * .ko kernel modules, and still does not work)


The Network Adapter is working, completely new.
and its ability to work was tested on 2 laptops and 2 personal computers everywhere works fine.


smoking useless manuals, that I eventually got:

https://forums.freebsd.org/threads/rtl8153-ethernet-adapter-on-pfsense.57299/
_____
usbconfig -d X.Y set_config 1

I tried to put this line into autoload script /usr/local/etc/.... /configd script

0 result because adapter havn't x.y(if work fine = 2.2)
_____

usbconfig -d X.Y reset

I tried to put this line into autoload script /usr/local/etc/.... /configd script

same 0 result because adapter havn't x.y(if work fine = 2.2)
_____

usbconfig reset

I tried to put this line into autoload script

same 0 result because adapter havn't x.y(if work fine = 2.2)
_____

I tried to add hw.usb.quirk.0="0x1234 0x5678 0 0xffff UQ_CFG_INDEX_1" /boot/loader.conf (opnsense /usr/local/etc/rc.loader.d/* 10-modules file)

with my adapter look like
usb_quirk_load="YES"
hw.usb.quirk.0="0x0bda 0x8152 0 0xffff UQ_CFG_INDEX_1"

0 result does not work as before
_____

I tried to add in config.xml (/usr/local/ ....)

<earlyshellcmd> usbconfig -d 2.2 set_config 1 </ earlyshellcmd>
<earlyshellcmd> usbconfig -d 2.2 reset </ earlyshellcmd>
<earlyshellcmd> usbconfig reset </ earlyshellcmd>

0 result does not work as before
_____

I'm trying to restart the adapter on the command line in already loaded opnsense after the first reboot

usbconfig after first reboot (look at "loading Page1-2 with error")
(http://imagizer.imageshack.us/v2/256x0q90/924/FWHhRB.jpg) (http://imageshack.com/a/img924/3166/FWHhRB.jpg)

usbconfig reset
(http://imagizer.imageshack.us/v2/256x0q90/923/LUDM8T.jpg) (http://imageshack.com/a/img923/9083/LUDM8T.jpg)

0 result same error as during system boot
_____
I'm trying install os-autodelay plugin

0 result same error as during system boot
_____
I tried all that I found on request https://www.google.com/search?&q=realtek+rtl8153+freebsd

0 result


Guys help me please. all that I could find already tried.