From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15692 invoked from network); 11 Jul 2023 22:31:50 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 11 Jul 2023 22:31:50 -0000 Received: from a10-70.smtp-out.amazonses.com ([54.240.10.70]) by 9front; Tue Jul 11 18:30:37 -0400 2023 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ksbakcmhnrcpdgc72v4bxrexwvwgvpwk; d=mapinternet.com; t=1689114076; h=From:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Message-Id:References:To:Date; bh=LV8jKd68KvKDwXwSlybqtPwI+Exhun/1ndh+4ujCkI4=; b=d4mR/VRInTW1xjobia24NaePAn/nyIe541OA7Dj4izriojR1mZffhZgAECWuIQm1 RIky2A8/cocADrgW1G9+lyi9DA4EhMlaIW/CGuPeHIAgqzYEdzLsuQ+VU6mb2nLoINO lrP8fjl77pjaaCGIp+YftO1SNPUoi0OwI4JPFEDw= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1689114076; h=From:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Message-Id:References:To:Date:Feedback-ID; bh=LV8jKd68KvKDwXwSlybqtPwI+Exhun/1ndh+4ujCkI4=; b=dK4kGOBg1oRVozZ/0TLOJ7fvjbInipU4P/tv6VFQiWxVOWoF64czPQRwDMan/2AP FZtOyLdbR3+4tmFNl+c29nAi89dGSiBUFtHgPoI5aiwoz3LQj5GFZrQSl5pBl/xU0NO LjAhyx8MGi2jdje1Ndsa4nCqA+ak7QnE/GTQQEeg= X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=166.171.187.85; envelope-from=; From: Mack Wallace Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Message-ID: <01000189470b628e-45752828-2eef-49a8-9daf-166558684522-000000@email.amazonses.com> References: To: 9front@9front.org Date: Tue, 11 Jul 2023 22:21:15 +0000 X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Qnum: 1347207247 X-Authenticated-User: mackbw@mapinternet.com Feedback-ID: 1.us-east-1.X+xhoL9JiEQ8K0gzGjV36WZnSewOzOs8YCWuakKsLBY=:AmazonSES X-SES-Outgoing: 2023.07.11-54.240.10.70 List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: virtual XMPP over WEB2.0 out-scaling metadata-based generator Subject: Fwd: [9front] CM4 and USB ports Reply-To: 9front@9front.org Precedence: bulk Looking at the dmesg from Raspberry Pi OS I saw [ 1.821348] xhci-hcd fe9c0000.xhci: xHCI Host Controller [ 1.821387] xhci-hcd fe9c0000.xhci: new USB bus registered, assigned = bus number 1 [ 1.821836] xhci-hcd fe9c0000.xhci: USB3 root hub has no ports [ 1.821856] xhci-hcd fe9c0000.xhci: hcc params 0x0220fe65 hci version = 0x110 quirks 0x0000000000010010 [ 1.821965] xhci-hcd fe9c0000.xhci: irq 33, io mem 0xfe9c0000 Which to me indicates that the controller address is at VIRTIO + = 0x9c0000 rather than VIRTIO + 0x980000 While that change allowed the system to boot, it still is not = recognizing seeing any USB devices. I=E2=80=99m not sure, but when I initially put usbdwc, I put it on a = line by itself in the pi4 config. However, the PiOS shows xhci? Do these = things need to be linked together? I=E2=80=99ve tried both ways with no = luck. I=E2=80=99ve also been trying my boots with and without = dtoverlay=3Ddwc2,dr_mode=3Dhost as PiOS does not have this line in its = config.txt.=20 I=E2=80=99m at a loss for the moment on what to poke at next. mackbw > Begin forwarded message: >=20 > From: Mack Wallace > Subject: Re: [9front] CM4 and USB ports > Date: July 10, 2023 at 9:55:47 PM EDT > To: 9front@9front.org >=20 > Followed my hunch and added usbdwc into the pi4 config - both = excluding and including usbxhcipci. However, all I got was the kernel to = hang after CPU 2, 3 and 4 are detected. I=E2=80=99m probably missing = something, as I vaguely remember having to change another file / device = table when I added uartpl011 two years ago.. but don=E2=80=99t know=E2=80=A6= will dig into it tomorrow - and maybe someone will have some advice. >=20 > Regards, >=20 > mackbw >=20 >=20 >=20 >> On Jul 10, 2023, at 8:16 PM, Mack Wallace = wrote: >>=20 >> I have a Super6c Pi cluster board and am trying to get 9front and the = CM4 working with the two USB 2.0 ports that are on the board. They work = fine with Raspberry Pi OS, but are unrecognized when booting 9front. I = read that the CM4 USB port are disabled by default and require either = dtoverlay=3Ddwc2,dr_mode=3Dhost or otgmode=3D1 statements in config.txt. = I copied the CM4 device blobs, fixup and start files into the boot = directory of 9front, with no luck. Since the Raspberry Pi OS worked, and = wondering if this was an issue occurring before the kernel load, I = copied the 9pi4 kernel onto my Raspberry Pi OS boot and explicitly = called for it to be loaded instead of the linux kernel. Still no luck. >>=20 >> After looking through kmesg and dmesg, I realized that the USB host = controller in this case is not on the PCI bus. I am wondering if that is = the snag - and I=E2=80=99m not loading an appropriate driver for it. >>=20 >> Below is the kmesg from 9front and an excerpt from RPiOS dmesg >> Hoping someone else had run into this and it is an easy fix.=20 >>=20 >> mackbw >>=20 >> -KMESG- >> 127 holes free >> 0x004c0000 0x3b300000 988020736 >> 988020736 bytes free >>=20 >> Plan 9 >> Cpu0: 1500MHz ARM Cortex-A72 r0p3 >> 8051M memory: 947M kernel data, 7104M user 31242M swap >> *pciwin: 0x600000000 0x640000000 >> *pcidmawin: 0x400000000 0x600000000 >> Pcireset: why link is down >> #l0: genet: 1000Mbps port 0xFFFFFFFFBD580000 irq 189 ea d83add090ba5 >> Cpu2: 1500Mhz ARM Cortex-A72 r0p3 >> Cpu3: 1500Mhz ARM Cortex-A72 r0p3 >> Cpu4: 1500Mhz ARM Cortex-A72 r0p3 >> bootfs: Sun Jun 25 15:14:05 GMT 2023 >> fingerprint: a0cbdb2b4ebdcbc855d746ff06eb79ebfd01d97c >> #l0: phy0 id 600d84a2 oui 80361 >> usb/usbd: no hubs >>=20 >> /dev/sdM0: BCM SD Host Controller 02 Version 10 >> /dev/sdM0/data >> /dev/sdM0/ntfs >> /dev/sdM1: BCM SD Host Controller 02 Version 10 >> /dev/sdM2: BCM SD Host Controller 02 Version 10 >> Bootargs is (tcp, pls, il, local!device)[] >>=20 >>=20 >> -DMESG- >> [ 1.353831] brcm-pcie fd500000.pcie: host bridge = /scb/pcie@7d500000 ranges: >> [ 1.353868] brcm-pcie fd500000.pcie: No bus range found for = /scb/pcie@7d500000, using [bus 00-ff] >> [ 1.353957] brcm-pcie fd500000.pcie: MEM = 0x0600000000..0x063fffffff -> 0x00c0000000 >> [ 1.354050] brcm-pcie fd500000.pcie: IB MEM = 0x0000000000..0x01ffffffff -> 0x0400000000 >> [ 1.355097] brcm-pcie fd500000.pcie: PCI host bridge to bus = 0000:00 >> [ 1.355119] pci_bus 0000:00: root bus resource [bus 00-ff] >> [ 1.355137] pci_bus 0000:00: root bus resource [mem = 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff]) >> [ 1.355216] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400 >> [ 1.355485] pci 0000:00:00.0: PME# supported from D0 D3hot >> [ 1.359322] pci 0000:00:00.0: bridge configuration invalid ([bus = 00-00]), reconfiguring >> [ 1.359593] pci_bus 0000:01: supply vpcie3v3 not found, using = dummy regulator >> [ 1.359786] pci_bus 0000:01: supply vpcie3v3aux not found, using = dummy regulator >> [ 1.359907] pci_bus 0000:01: supply vpcie12v not found, using = dummy regulator >> [ 1.677581] brcm-pcie fd500000.pcie: link down >> [ 1.677750] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated = to 01 >> [ 1.677788] pci 0000:00:00.0: PCI bridge to [bus 01] >> [ 1.677891] pci_bus 0000:01: busn_res: [bus 01] is released >> [ 1.678762] pci_bus 0000:00: busn_res: [bus 00-ff] is released >> =E2=80=A6 >> [ 1.794939] usbcore: registered new interface driver r8152 >> [ 1.795041] usbcore: registered new interface driver lan78xx >> [ 1.795105] usbcore: registered new interface driver smsc95xx >> [ 1.821348] xhci-hcd fe9c0000.xhci: xHCI Host Controller >> [ 1.821387] xhci-hcd fe9c0000.xhci: new USB bus registered, = assigned bus number 1 >> [ 1.821836] xhci-hcd fe9c0000.xhci: USB3 root hub has no ports >> [ 1.821856] xhci-hcd fe9c0000.xhci: hcc params 0x0220fe65 hci = version 0x110 quirks 0x0000000000010010 >> [ 1.821965] xhci-hcd fe9c0000.xhci: irq 33, io mem 0xfe9c0000 >> [ 1.822588] usb usb1: New USB device found, idVendor=3D1d6b, = idProduct=3D0002, bcdDevice=3D 6.01 >> [ 1.822610] usb usb1: New USB device strings: Mfr=3D3, Product=3D2, = SerialNumber=3D1 >> [ 1.822625] usb usb1: Product: xHCI Host Controller >> [ 1.822638] usb usb1: Manufacturer: Linux 6.1.21-v8+ xhci-hcd >> [ 1.822651] usb usb1: SerialNumber: fe9c0000.xhci >> [ 1.823381] hub 1-0:1.0: USB hub found >> [ 1.823451] hub 1-0:1.0: 1 port detected >> [ 1.824217] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) >> [ 1.824602] dwc_otg: FIQ enabled >> [ 1.824613] dwc_otg: NAK holdoff enabled >> [ 1.824624] dwc_otg: FIQ split-transaction FSM enabled >> [ 1.824642] Module dwc_common_port init >> [ 1.825284] usbcore: registered new interface driver uas >> [ 1.825376] usbcore: registered new interface driver usb-storage >>=20 >=20