Because when I connect a USB-C mass storage device (USB->NVMe adapter), it doesnât show up as a SCSI device and dmesg stays silent. Armbian uses the bcmdhd for that and itâs not included in the kernel.
Are we still talking about mainline kernel? Sorry, I just noticed you said âcollabora versionâ which I believe includes patches from rockchip.
Previously, I was able to use wifi with most recent GitHub - torvalds/linux: Linux kernel source tree with brcmfmac using your DTS overlay.
EDIT: Hereâs an interesting matrix of all features which already went into mainline and whatâs missing.
EDIT2: This seems to be the patch for USB-C support into mainline.
Not on M7, as supply is on another fusb302, on another usb-c connector. Iâll leave that one out of the dts for nowâŚ
Edit:
See this what to add to mainline kernel sige7 dts for functional usbc and hdmi:
Use the usb-c connector on the corner of the board to power the board, the other has usb-c host functionality (and may have problems when used as power input)
This worked! When I connect a device to the USB-C port, the host comes up:
[ 33.301531] xhci-hcd xhci-hcd.6.auto: xHCI Host Controller
[ 33.302033] xhci-hcd xhci-hcd.6.auto: new USB bus registered, assigned bus number 5
[ 33.302794] xhci-hcd xhci-hcd.6.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000808002000010
[ 33.303640] xhci-hcd xhci-hcd.6.auto: irq 134, io mem 0xfc000000
[ 33.304248] xhci-hcd xhci-hcd.6.auto: xHCI Host Controller
[ 33.304733] xhci-hcd xhci-hcd.6.auto: new USB bus registered, assigned bus number 6
[ 33.305406] xhci-hcd xhci-hcd.6.auto: Host supports USB 3.0 SuperSpeed
[ 33.306057] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.13
[ 33.306784] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 33.307418] usb usb5: Product: xHCI Host Controller
[ 33.307848] usb usb5: Manufacturer: Linux 6.13.0-rc6+ xhci-hcd
[ 33.308362] usb usb5: SerialNumber: xhci-hcd.6.auto
[ 33.309125] hub 5-0:1.0: USB hub found
[ 33.309470] hub 5-0:1.0: 1 port detected
[ 33.309983] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[ 33.310024] cpu cpu0: Looking up cpu-supply from device node /cpus/cpu@0
[ 33.310729] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.13
[ 33.312037] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 33.312386] cpu cpu4: Looking up cpu-supply from device node /cpus/cpu@400
[ 33.312672] usb usb6: Product: xHCI Host Controller
[ 33.312677] usb usb6: Manufacturer: Linux 6.13.0-rc6+ xhci-hcd
[ 33.314224] usb usb6: SerialNumber: xhci-hcd.6.auto
[ 33.314979] hub 6-0:1.0: USB hub found
[ 33.315321] hub 6-0:1.0: 1 port detected
[ 33.315920] cpu cpu0: Looking up cpu-supply from device node /cpus/cpu@0
[ 33.317422] cpu cpu4: Looking up cpu-supply from device node /cpus/cpu@400
But no device detection (yet).
EDIT:
I found when rotating the connector, the device gets correctly enumerated.
Since /sys/class/typec/port*/orientation correctly detects the orientation, I suspect the mux isnât acting accordingly and thus prevents the device from being detected.
Ive added the wifi to the sige7.dts for my linux-aarch64-rk-rc package. It is standard disabled, because we do not know if there is an antenna installed.
Add wifi by enabling it:
For me it works both ways⌠(Iâm only having trouble with my rock5b, where it stays in device mode and wonât go in host mode. I have a hacked usbc-hub with shorted mosfets and fixed power supply to prevent bootloops.)
I imagine itâs related to power and probably because of something in u-boot not configuring the proper voltages. Whatâs weird to me is that both BPIâs builds of Ubuntu and Debian both work. dmesg output is vastly different on Ubuntu/Debian than what I get on arch with this project. Notably â lots of voltage regulator messages and other module messages that detect wifi and other pci devices.
Iâm using a usb-c PD device for powering â and since ubuntu/debian from RPI work it shouldnât be the power supply causing the problem.
This âphy link never came upâ message is interesting:
[ 1.864288] rockchip-dw-pcie a40000000.pcie: host bridge /pcie@fe150000 ranges: [ 1.865012] rockchip-dw-pcie a40000000.pcie: IO 0x00f0100000..0x00f01fffff -> 0x00f0100000 [ 1.865832] rockchip-dw-pcie a40000000.pcie: MEM 0x00f0200000..0x00f0ffffff -> 0x00f0200000 [ 1.866639] rockchip-dw-pcie a40000000.pcie: MEM 0x0900000000..0x093fffffff -> 0x0040000000 [ 1.875296] rockchip-dw-pcie a40000000.pcie: iATU: unroll T, 8 ob, 8 ib, align 64K, limit 8G [ 2.910851] rockchip-dw-pcie a40000000.pcie: Phy link never came up [ 2.911486] rockchip-dw-pcie a40000000.pcie: PCI host bridge to bus 0000:00
I ran the postinstaller you created but still donât have any GUI (I disabled the Kodi installation, as I donât want kodi). Was I supposed to install xf86-video-armsoc-meson? Or, which display driver does Xorg use? And have any of you been able to get Wayland working?