Page MenuHomeFreeBSD

Add support for TP-Link Archer T2U Plus
ClosedPublic

Authored by kjopek_gmail.com on Mar 21 2020, 11:18 PM.
Referenced Files
Unknown Object (File)
Wed, Oct 23, 4:17 PM
Unknown Object (File)
Oct 8 2024, 5:44 PM
Unknown Object (File)
Oct 8 2024, 5:43 PM
Unknown Object (File)
Oct 8 2024, 5:43 PM
Unknown Object (File)
Oct 8 2024, 5:32 PM
Unknown Object (File)
Oct 2 2024, 12:25 PM
Unknown Object (File)
Sep 26 2024, 4:23 PM
Unknown Object (File)
Sep 24 2024, 4:47 PM
Subscribers

Details

Summary

Just add missing IDs as driver has support for the chip.

Test Plan

Tested on arm64 (RockPro64).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 22 2020, 10:56 AM

Who will commit this?

Can you share dmesg of your device?

And also:

usbconfig -d X.Y dump_device_desc

Thank you!

@hselasky
I think anyone with src commit bit (at least I don't have one). dmesg output is attached at the end of my comment.
Also output of usbconfig:

root@1e66c783a77f:~ # usbconfig -d 0.2 dump_device_desc
ugen0.2: <Realtek 802.11ac WLAN Adapter> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0210 
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000 
  bDeviceProtocol = 0x0000 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x2357 
  idProduct = 0x0120 
  bcdDevice = 0x0200 
  iManufacturer = 0x0001  <Realtek >
  iProduct = 0x0002  <802.11ac WLAN Adapter >
  iSerialNumber = 0x0003  <00e04c000001>
  bNumConfigurations = 0x0001

dmesg:

Loading kernel...
/boot/kernel/kernel text=0x8c0594 data=0x17b8d0 data=0x0+0x6e35e8 syms=[0x8+0xf4920+0x8+0x116723]
Loading configured modules...
/boot/entropy size=0x1000
/boot/kernel/if_rtwn_usb.ko text=0xc860 text=0x6840 data=0x1e00+0x3f syms=[0x8+0x41d0+0x8+0x2915]
Using DTB provided by EFI at 0x80ec000.
---<<BOOT>>---
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2020 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 13.0-CURRENT #0 r357647:359197M: Sun Mar 22 01:50:52 CET 2020
    root@razor:/mass/coding/arm64/crochet/work/obj/mass/coding/arm64/freebsd/arm64.aarch64/sys/GENERIC arm64
FreeBSD clang version 9.0.1 (git@github.com:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)
VT: init without driver.
module firmware already present!
KLD file if_rtwn_usb.ko is missing dependencies
Starting CPU 1 (1)
Starting CPU 2 (2)
Starting CPU 3 (3)
Starting CPU 4 (100)
Starting CPU 5 (101)
FreeBSD/SMP: Multiprocessor System Detected: 6 CPUs
random: unblocking device.
random: entropy device external interface
MAP f4f1a000 mode 2 pages 1
MAP f4f26000 mode 2 pages 1
MAP f7f40000 mode 2 pages 16
WARNING: Device "openfirm" is Giant locked and may be deleted before FreeBSD 13.0.
WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 13.0.
kbd0 at kbdmux0
ofwbus0: <Open Firmware Device Tree>
clk_fixed0: <Fixed clock> on ofwbus0
simplebus0: <Flattened device tree simple bus> on ofwbus0
rk_grf0: <RockChip General Register Files> mem 0xff320000-0xff320fff on ofwbus0
rk3399_pmucru0: <Rockchip RK3399 PMU Clock and Reset Unit> mem 0xff750000-0xff750fff on ofwbus0
rk3399_cru0: <Rockchip RK3399 Clock and Reset Unit> mem 0xff760000-0xff760fff on ofwbus0
rk_grf1: <RockChip General Register Files> mem 0xff770000-0xff77ffff on ofwbus0
clk_fixed1: <Fixed clock> on ofwbus0
regfix0: <Fixed Regulator> on ofwbus0
regfix1: <Fixed Regulator> on ofwbus0
regfix2: <Fixed Regulator> on ofwbus0
regfix3: <Fixed Regulator> on ofwbus0
regfix4: <Fixed Regulator> on ofwbus0
regfix5: <Fixed Regulator> on ofwbus0
regfix6: <Fixed Regulator> on ofwbus0
regfix7: <Fixed Regulator> on ofwbus0
simple_mfd0: <Simple MFD (Multi-Functions Device)> mem 0xff310000-0xff310fff on ofwbus0
psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0
gic0: <ARM Generic Interrupt Controller v3.0> mem 0xfee00000-0xfee0ffff,0xfef00000-0xfefbffff,0xfff00000-0xfff0ffff,0xfff10000-0xfff1ffff,0xfff20000-0xfff2ffff irq 18 on ofwbus0
its0: <ARM GIC Interrupt Translation Service> mem 0xfee20000-0xfee3ffff on gic0
rk_pinctrl0: <RockChip Pinctrl controller> on ofwbus0
gpio0: <RockChip GPIO Bank controller> mem 0xff720000-0xff7200ff irq 65 on rk_pinctrl0
gpiobus0: <OFW GPIO bus> on gpio0
gpio1: <RockChip GPIO Bank controller> mem 0xff730000-0xff7300ff irq 66 on rk_pinctrl0
gpiobus1: <OFW GPIO bus> on gpio1
gpio2: <RockChip GPIO Bank controller> mem 0xff780000-0xff7800ff irq 67 on rk_pinctrl0
gpiobus2: <OFW GPIO bus> on gpio2
gpio3: <RockChip GPIO Bank controller> mem 0xff788000-0xff7880ff irq 68 on rk_pinctrl0
gpiobus3: <OFW GPIO bus> on gpio3
gpio4: <RockChip GPIO Bank controller> mem 0xff790000-0xff7900ff irq 69 on rk_pinctrl0
gpiobus4: <OFW GPIO bus> on gpio4
rk_i2c0: <RockChip I2C> mem 0xff110000-0xff110fff irq 20 on ofwbus0
iicbus0: <OFW I2C bus> on rk_i2c0
rk_i2c1: <RockChip I2C> mem 0xff130000-0xff130fff irq 22 on ofwbus0
iicbus1: <OFW I2C bus> on rk_i2c1
rk_i2c2: <RockChip I2C> mem 0xff3c0000-0xff3c0fff irq 38 on ofwbus0
iicbus2: <OFW I2C bus> on rk_i2c2
syr8270: <Silergy SYR827 regulator> at addr 0x80 on iicbus2
rk_i2c3: <RockChip I2C> mem 0xff3d0000-0xff3d0fff irq 39 on ofwbus0
iicbus3: <OFW I2C bus> on rk_i2c3
rk805_pmu0: <RockChip RK805 PMIC> at addr 0x36 irq 70 on iicbus2
REGNODE_INIT failed: 6
REGNODE_INIT failed: 6
generic_timer0: <ARMv8 Generic Timer> irq 2,3,4,5 on ofwbus0
Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
rk_tsadc0: <RockChip temperature sensors> mem 0xff260000-0xff2600ff irq 35 on ofwbus0
rk_usb2phy0: <Rockchip RK3399 USB2PHY> mem 0-0xff76ffff,0-0xffff on rk_grf1
rk_usb2phy1: <Rockchip RK3399 USB2PHY> mem 0-0xff76ffff,0-0xffff on rk_grf1
rk_emmcphy0: <Rockchip RK3399 eMMC PHY> mem 0-0xff76ffff,0-0xffff on rk_grf1
rk_typec_phy0: <Rockchip RK3399 PHY TYPEC> mem 0xff7c0000-0xff7fffff on ofwbus0
rk_typec_phy1: <Rockchip RK3399 PHY TYPEC> mem 0xff800000-0xff83ffff on ofwbus0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpufreq_dt0: <Generic cpufreq driver> on cpu0
cpu1: <Open Firmware CPU> on cpulist0
cpufreq_dt1: <Generic cpufreq driver> on cpu1
cpu2: <Open Firmware CPU> on cpulist0
cpufreq_dt2: <Generic cpufreq driver> on cpu2
cpu3: <Open Firmware CPU> on cpulist0
cpufreq_dt3: <Generic cpufreq driver> on cpu3
cpu4: <Open Firmware CPU> on cpulist0
cpufreq_dt4: <Generic cpufreq driver> on cpu4
cpu5: <Open Firmware CPU> on cpulist0
cpufreq_dt5: <Generic cpufreq driver> on cpu5
dwc0: <Rockchip Gigabit Ethernet Controller> mem 0xfe300000-0xfe30ffff irq 9 on ofwbus0
miibus0: <MII bus> on dwc0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 0 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto
rgephy1: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
rgephy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto
dwc0: Ethernet address: 1e:66:c7:83:a7:7f
sdhci_fdt0: <Rockchip RK3399 fdt SDHCI controller> mem 0xfe330000-0xfe33ffff irq 12 on ofwbus0
rk_emmcphy0: got emmcclk clock
sdhci_fdt0-slot0: Hardware doesn't specify timeout clock frequency, setting BROKEN_TIMEOUT quirk.
sdhci_fdt0: 1 slot(s) allocated
mmc0: <MMC/SD bus> on sdhci_fdt0
ehci0: <Generic EHCI Controller> mem 0xfe380000-0xfe39ffff irq 13 on ofwbus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ohci0: <Generic OHCI Controller> mem 0xfe3a0000-0xfe3bffff irq 14 on ofwbus0
usbus1 on ohci0
ehci1: <Generic EHCI Controller> mem 0xfe3c0000-0xfe3dffff irq 15 on ofwbus0
usbus2: EHCI version 1.0
usbus2 on ehci1
ohci1: <Generic OHCI Controller> mem 0xfe3e0000-0xfe3fffff irq 16 on ofwbus0
usbus3 on ohci1
rk_dwc30: <Rockchip RK3399 DWC3> on ofwbus0
xhci0: Only host mode is supported
xhci0: Only host mode is supported
rk_dwc31: <Rockchip RK3399 DWC3> on ofwbus0
xhci0: <Synopsys Designware DWC3> mem 0xfe900000-0xfe9fffff irq 73 on rk_dwc31
xhci0: 64 bytes context size, 32-bit DMA
usbus4: trying to attach
usbus4 on xhci0
iic0: <I2C generic I/O> on iicbus0
iic1: <I2C generic I/O> on iicbus1
uart0: <16750 or compatible> mem 0xff180000-0xff1800ff irq 26 on ofwbus0
uart1: <16750 or compatible> mem 0xff1a0000-0xff1a00ff irq 28 on ofwbus0
uart1: console (1500000,n,8,1)
syscon_generic0: <syscon> mem 0xffa58000-0xffa5801f on ofwbus0
syscon_generic1: <syscon> mem 0xffa5c000-0xffa5c01f on ofwbus0
syscon_generic2: <syscon> mem 0xffa60080-0xffa6009f on ofwbus0
syscon_generic3: <syscon> mem 0xffa60100-0xffa6011f on ofwbus0
syscon_generic4: <syscon> mem 0xffa60180-0xffa6019f on ofwbus0
syscon_generic5: <syscon> mem 0xffa70000-0xffa7001f on ofwbus0
syscon_generic6: <syscon> mem 0xffa70080-0xffa7009f on ofwbus0
syscon_generic7: <syscon> mem 0xffa74000-0xffa7401f on ofwbus0
syscon_generic8: <syscon> mem 0xffa76000-0xffa7601f on ofwbus0
syscon_generic9: <syscon> mem 0xffa90000-0xffa9001f on ofwbus0
syscon_generic10: <syscon> mem 0xffa98000-0xffa9801f on ofwbus0
syscon_generic11: <syscon> mem 0xffaa0000-0xffaa001f on ofwbus0
syscon_generic12: <syscon> mem 0xffaa0080-0xffaa009f on ofwbus0
syscon_generic13: <syscon> mem 0xffaa8000-0xffaa801f on ofwbus0
syscon_generic14: <syscon> mem 0xffaa8080-0xffaa809f on ofwbus0
syscon_generic15: <syscon> mem 0xffab0000-0xffab001f on ofwbus0
syscon_generic16: <syscon> mem 0xffab0080-0xffab009f on ofwbus0
syscon_generic17: <syscon> mem 0xffab8000-0xffab801f on ofwbus0
syscon_generic18: <syscon> mem 0xffac0000-0xffac001f on ofwbus0
syscon_generic19: <syscon> mem 0xffac0080-0xffac009f on ofwbus0
syscon_generic20: <syscon> mem 0xffac8000-0xffac801f on ofwbus0
syscon_generic21: <syscon> mem 0xffac8080-0xffac809f on ofwbus0
syscon_generic22: <syscon> mem 0xffad0000-0xffad001f on ofwbus0
syscon_generic23: <syscon> mem 0xffad8080-0xffad809f on ofwbus0
syscon_generic24: <syscon> mem 0xffae0000-0xffae001f on ofwbus0
syscon_generic25: <syscon> mem 0xff330000-0xff33e3d3 on ofwbus0
iicbus2: <unknown card> at addr 0x82
iic2: <I2C generic I/O> on iicbus2
iicbus3: <unknown card> at addr 0x44
iic3: <I2C generic I/O> on iicbus3
syscon_generic26: <syscon> mem 0xff620000-0xff6200ff on ofwbus0
gpioc0: <GPIO controller> on gpio0
gpioc1: <GPIO controller> on gpio1
gpioc2: <GPIO controller> on gpio2
gpioc3: <GPIO controller> on gpio3
gpioc4: <GPIO controller> on gpio4
gpioled0: <GPIO LEDs> on ofwbus0
cryptosoft0: <software crypto>
Timecounters tick every 1.000 msec
Obsolete code will be removed soon: random(9) is the obsolete Park-Miller LCG from 1988
usbus0: 480Mbps High Speed USB v2.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 480Mbps High Speed USB v2.0
usbus3: 12Mbps Full Speed USB v1.0
usbus4: 5.0Gbps Super Speed USB v3.0
ugen0.1: <Generic EHCI root HUB> at usbus0
uhub0 on usbus0
uhub0: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen2.1: <Generic EHCI root HUB> at usbus2
uhub1 on usbus2
uhub1: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
ugen1.1: <Generic OHCI root HUB> at usbus1
uhub2 on usbus1
uhub2: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen4.1: <Synopsys XHCI root HUB> at usbus4
uhub3 on usbus4
uhub3: <Synopsys XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus4
ugen3.1: <Generic OHCI root HUB> at usbus3
uhub4 on usbus3
uhub4: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
mmcsd0: 16GB <MMCHC M8B16G 2.8 SN 9002C52F MFG 07/2018 by 136 0x0003> at mmc0 49.5MHz/8bit/65535-block
mmcsd0boot0: 4MB partition 1 at mmcsd0
mmcsd0boot1: 4MB partition 2 at mmcsd0
mmcsd0rpmb: 4MB partition 3 at mmcsd0
Release APs...done
CPU  0: ARM Cortex-A53 r0p4 affinity:  0  0
 Instruction Set Attributes 0 = <CRC32,SHA2,SHA1,AES+PMULL>
 Instruction Set Attributes 1 = <>
         Processor Features 0 = <GIC,AdvSIMD,FP,EL3 32,EL2 32,EL1 32,EL0 32>
Trying to mount root from ufs:/dev/mmcsd0s5 [ro,noatime]...
         Processor Features 1 = <>
      Memory Model Features 0 = <TGran4,TGran64,SNSMem,BigEnd,16bit ASID,1TB PA>
      Memory Model Features 1 = <8bit VMID>
      Memory Model Features 2 = <32bit CCIDX,48bit VA>
             Debug Features 0 = <2 CTX BKPTs,4 Watchpoints,6 Breakpoints,PMUv3,Debugv8>
             Debug Features 1 = <>
         Auxiliary Features 0 = <>
         Auxiliary Features 1 = <>
CPU  1: ARM Cortex-A53 r0p4 affinity:  0  1
      Memory Model Features 0 = <TGran4,TGran64,SNSMem,BigEnd,16bit ASID,1TB PA>
CPU  2: ARM Cortex-A53 r0p4 affinity:  0  2
      Memory Model Features 0 = <TGran4,TGran64,SNSMem,BigEnd,16bit ASID,1TB PA>
CPU  3: ARM Cortex-A53 r0p4 affinity:  0  3
      Memory Model Features 0 = <TGran4,TGran64,SNSMem,BigEnd,16bit ASID,1TB PA>
CPU  4: ARM Cortex-A72 r0p2 affinity:  1  0
      Memory Model Features 0 = <TGran4,TGran64,SNSMem,BigEnd,16bit ASID,16TB PA>
CPU  5: ARM Cortex-A72 r0p2 affinity:  1  1
      Memory Model Features 0 = <TGran4,TGran64,SNSMem,BigEnd,16bit ASID,16TB PA>
GEOM: mmcsd0: the secondary GPT header is not in the last LBA.
GEOM: diskid/DISK-9002C52F: the secondary GPT header is not in the last LBA.
uhub2: 1 port with 1 removable, self powered
uhub4: 1 port with 1 removable, self powered
Warning: no time-of-day clock registered, system time will not be set accurately
uhub3: 2 ports with 2 removable, self powered
uhub1: 1 port with 1 removable, self powered
uhub0: 1 port with 1 removable, self powered
Setting hostuuid: 64353965-6437-3835-3061-643139373066.
Setting hostid: 0xb0ccd197.
No suitable dump device was found.
Starting file system checks:
/dev/mmcsd0s5: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/mmcsd0s5: clean, 245032 free (320 frags, 30589 blocks, 0.1% fragmentation)
GEOM: diskid/DISK-9002C52F: the secondary GPT header is not in the last LBA.
Mounting local filesystems:ugen0.2: <Realtek 802.11ac WLAN Adapter> at usbus0
GEOM: diskid/DISK-9002C52F: the secondary GPT header is not in the last LBA.
.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
Setting hostname: 1e66c783a77f.
Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,[NET_ETHER],NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy: rm: /entropy: Read-only file system
dd: /entropy: Read-only file system
dd: /boot/entropy: Read-only file system
.
ifconfig: SIOCIFCREATE2: Device not configured
lo0: link state changed to UP
dwc0: link state changed to DOWN
Starting Network: lo0 dwc0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
	inet 127.0.0.1 netmask 0xff000000
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
dwc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=80008<VLAN_MTU,LINKSTATE>
	ether 1e:66:c7:83:a7:7f
	inet 192.168.1.240 netmask 0xffffff00 broadcast 192.168.1.255
	media: Ethernet autoselect (none)
	status: no carrier
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Starting devd.
Autoloading module: if_rtwn_usb.ko
rtwn0 on uhub0
rtwn0: <802.11ac WLAN Adapter > on usbus0
rtwn0: MAC/BB RTL8821AU, RF 6052 1T1R
wlan0: Ethernet address: 34:e8:94:91:19:ea
Created wlan(4) interfaces: wlan0.
Starting Network: wlan0.
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=200001<RXCSUM,RXCSUM_IPV6>
	ether 34:e8:94:91:19:ea
	groups: wlan
	ssid "" channel 1 (2412 MHz 11b) bssid 34:e8:94:91:19:ea
	regdomain FCC country US authmode OPEN privacy OFF txpower 30
	scanvalid 60 wme
	media: IEEE 802.11 Wireless Ethernet autoselect mode 11b <monitor>
	status: running
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Creating and/or trimming log files.
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Mounting late filesystems:.
Security policy loaded: MAC/ntpd (mac_ntpd)
Starting ntpd.
Updating /var/run/os-release done.
Performing sanity check on sshd configuration.
Starting sshd.
Starting cron.
Starting background file system checks in 60 seconds.

Sun Mar 22 03:14:01 UTC 2020

FreeBSD/arm64 (1e66c783a77f) (ttyu1)

login: Mar 22 03:14:01 1e66c783a77f ntpd[1723]: error resolving pool 0.freebsd.pool.ntp.org: Name does not resolve (8)
This revision was automatically updated to reflect the committed changes.