Hyacin
Cadet
- Joined
- Oct 21, 2021
- Messages
- 6
Alright, I made some good progress this evening backporting the 13.0 module (which is when it will be officially supported) to 12.2 -
That's on my test box ... I'll try it on my PR4100 tomorrow I think, I'm zonked.
I wish I could outline exactly how I did it as sharing a binary kernel module is sketchy af ...
I think the gist of it was -
* check out the the commit with the most recent change to if_ure.c or if_urereg.h
* copy those two files, plus usbdevs and usb.h out of the tree
* check out tags/release/12.2.0
* copy those files back in
* go to sys/dev/modules/usb/ure (or whatever it is) and `make`
* kldload the resulting kernel module
Oh, wait, no, I forgot, I also had to handpatch in the ether_is_zero function from here - https://forums.freebsd.org/threads/rtl8153-usb-nic-help.66172/
That took a lot of fighting and figuring to accomplish, so I'm glad it appears to have worked.
Code:
[ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.00 sec 2.06 GBytes 1.77 Gbits/sec 209 sender [ 5] 0.00-10.00 sec 2.06 GBytes 1.77 Gbits/sec receiver iperf Done. root@rtl_test:/boot/modules # ifconfig ue0 ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=60009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,RXCSUM_IPV6,TXCSUM_IPV6> ether 5c:85:7e:31:42:8b inet 10.50.10.11 netmask 0xffffff00 broadcast 10.50.10.255 media: Ethernet Other <full-duplex> (2500Base-X <full-duplex>) status: active nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> root@rtl_test:/boot/modules # uname -a FreeBSD rtl_test 12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC amd64 root@rtl_test:/boot/modules #
That's on my test box ... I'll try it on my PR4100 tomorrow I think, I'm zonked.
I wish I could outline exactly how I did it as sharing a binary kernel module is sketchy af ...
I think the gist of it was -
* check out the the commit with the most recent change to if_ure.c or if_urereg.h
* copy those two files, plus usbdevs and usb.h out of the tree
* check out tags/release/12.2.0
* copy those files back in
* go to sys/dev/modules/usb/ure (or whatever it is) and `make`
* kldload the resulting kernel module
Oh, wait, no, I forgot, I also had to handpatch in the ether_is_zero function from here - https://forums.freebsd.org/threads/rtl8153-usb-nic-help.66172/
That took a lot of fighting and figuring to accomplish, so I'm glad it appears to have worked.