Hi all, I've been using a small CuBox-i armv6 machine to serve as serial console server for my home router for years. It uses a uplcom(4) USB to serial adapter for that connection. I don't use it frequently (the home router has been very stable), but just found out that it stopped working:
[weerd@cube] $ cu -l cuaU0 -s 115200 cu: open("/dev/cuaU0"): Input/output error After that I see the following in dmesg: ehci_sync_hc: tsleep() = 35 ehci_sync_hc: tsleep() = 35 ehci_sync_hc: tsleep() = 35 After that attempt. I have quite a collection of uplcom(4), so I tried another with the same result. Then I found an uchcom(4) in my stash. I'm not sure that worked before (never tried it on the CuBox - it works on my amd64 system just fine), but that gives an error in dmesg: uchcom0: cannot get version: IOERROR or uchcom0: cannot get version: TIMEOUT and then the same: ehci_sync_hc: tsleep() = 35 ehci_sync_hc: tsleep() = 35 ehci_sync_hc: tsleep() = 35 Then I also have a umcs(4) (also never before tried on the CuBox), that doesn't work at all; when I plug it in I get: uhub0: device problem, disabling port 1 I do occasionally upgrade the CuBox (not too frequently, as upgrades take forever on these slow storage machines), and it seems this issue was introduced after one of those upgrades. Last time it was working (according to the serial console logs I keep) was 16 November 2021, then a reboot on 20 December 2021 (after an upgrade) and it didn't work anymore. 2021-11-16T18:12:39.884Z cube /bsd: OpenBSD 7.0-current (GENERIC) #80416: Wed Nov 10 08:09:48 MST 2021 2021-12-20T18:28:41.825Z cube /bsd: OpenBSD 7.0-current (GENERIC) #2: Fri Dec 10 18:04:30 MST 2021 I went through all the commits from 10 November to 10 December, weeding out commits to www, xenocara and commits that don't touch files in sys/. Then I deleted anything related to networking, other architectures and devices that aren't present on this machine (e.g. stuff in pci/) - still left me with 77 commits to bisect through (that, plus my filtering may have been wrong). If anybody has a suggestion of what commit could cause this to try to back out, I would appreciate hearing about it - the machine takes a looooong long time to build a kernel, so any hints that can speed up the process are very welcome. Thanks, Paul U-Boot SPL 2019.01 (Apr 10 2019 - 00:26:35 +0200) Trying to boot from MMC1 U-Boot 2019.01 (Apr 10 2019 - 00:26:35 +0200) CPU: Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz) CPU: Extended Commercial temperature grade (-20C to 105C) at 51C Reset cause: WDOG Board: MX6 Cubox-i DRAM: 2 GiB MMC: FSL_SDHC: 0, FSL_SDHC: 1 Loading Environment from MMC... *** Warning - bad CRC, using default environment No panel detected: default to HDMI Display: HDMI (1024x768) In: serial Out: serial Err: serial Card did not respond to voltage select! Net: FEC Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... 36813 bytes read in 16 ms (2.2 MiB/s) Found EFI removable media binary efi/boot/bootarm.efi Scanning disks on usb... Disk usb0 not ready Disk usb1 not ready Disk usb2 not ready Disk usb3 not ready Scanning disks on mmc... Card did not respond to voltage select! MMC: no card present MMC Device 2 not found MMC Device 3 not found Scanning disks on sata... Disk sata0 not ready Found 3 disks 112524 bytes read in 30 ms (3.6 MiB/s) ## Starting EFI application at 12000000 ... disks: sd0* >> OpenBSD/armv7 BOOTARM 1.19 boot> booting sd0a:/bsd: 4915296+743624+320472+590148 [273998+107+338224+300055]=0x0 OpenBSD/armv7 booting ... arg0 0xc0a24334 arg1 0x0 arg2 0x8e448000 Allocating page tables IRQ stack: p0x10a53000 v0xc0a53000 ABT stack: p0x10a54000 v0xc0a54000 UND stack: p0x10a55000 v0xc0a55000 SVC stack: p0x10a56000 v0xc0a56000 Creating L1 page table at 0x10a28000 Mapping kernel Constructing L2 page tables undefined page type 0x2 pa 0x10000000 va 0x10000000 pages 0x2000 attr 0x8 type 0x7 pa 0x12000000 va 0x10000000 pages 0x5ef4 attr 0x8 type 0x6 pa 0x17ef4000 va 0x17ef4000 pages 0x18 attr 0x8000000000000008 type 0x7 pa 0x17f0c000 va 0x17f0c000 pages 0x7653c attr 0x8 type 0x2 pa 0x8e448000 va 0x8e448000 pages 0xb attr 0x8 type 0x4 pa 0x8e453000 va 0x8e453000 pages 0x1 attr 0x8 type 0x2 pa 0x8e454000 va 0x8e451000 pages 0x100 attr 0x8 type 0x1 pa 0x8e554000 va 0x8e554000 pages 0x1c attr 0x8 type 0x6 pa 0x8e570000 va 0x8e570000 pages 0x1 attr 0x8000000000000008 type 0x0 pa 0x8e571000 va 0x8e56c000 pages 0x4 attr 0x8 type 0x6 pa 0x8e575000 va 0x8e575000 pages 0x1 attr 0x8000000000000008 type 0x0 pa 0x8e576000 va 0x8e576000 pages 0x2 attr 0x8 type 0x2 pa 0x8e578000 va 0x8e578000 pages 0x1a01 attr 0x8 type 0x5 pa 0x8ff79000 va 0x8ff79000 pages 0x1 attr 0x8000000000000008 type 0x2 pa 0x8ff7a000 va 0x8e578000 pages 0x86 attr 0x8 pmap [ using 912920 bytes of bsd ELF symbol table ] Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2022 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 7.1-current (GENERIC) #35: Tue May 3 06:34:09 MDT 2022 dera...@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/GENERIC real mem = 2118320128 (2020MB) avail mem = 2066571264 (1970MB) random: good seed from bootblocks mainbus0 at root: SolidRun Cubox-i Dual/Quad cpu0 at mainbus0 mpidr 0: ARM Cortex-A9 r2p10 cpu0: 32KB 32b/line 4-way L1 VIPT I-cache, 32KB 32b/line 4-way L1 D-cache cortex0 at mainbus0 amptimer0 at cortex0: 396000 kHz armliicc0 at cortex0: rtl 7 waymask: 0x0000000f imxtemp0 at mainbus0simplebus0 at mainbus0: "soc" ampintc0 at simplebus0 nirq 160, ncpu 4: "interrupt-controller" "dma-apbh" at simplebus0 not configured "hdmi" at simplebus0 not configured "gpu" at simplebus0 not configured "gpu" at simplebus0 not configured "timer" at simplebus0 not configured "l2-cache" at simplebus0 not configured simplebus1 at simplebus0: "aips-bus" imxccm0 at simplebus1 imxanatop0 at simplebus1 syscon0 at simplebus1: "snvs" imxrtc0 at syscon0 "snvs-lpgpr" at syscon0 not configured imxsrc0 at simplebus1 syscon1 at simplebus1: "iomuxc-gpr" "mux-controller" at syscon1 not configured "ipu1_csi0_mux" at syscon1 not configured "ipu2_csi1_mux" at syscon1 not configured imxiomuxc0 at simplebus1 simplebus2 at simplebus1: "spba-bus" "spdif" at simplebus2 not configured imxuart0 at simplebus2: console "asrc" at simplebus2 not configured "vpu" at simplebus1 not configured "pwm" at simplebus1 not configured "gpt" at simplebus1 not configured imxgpio0 at simplebus1 imxgpio1 at simplebus1 imxgpio2 at simplebus1 imxgpio3 at simplebus1 imxgpio4 at simplebus1 imxgpio5 at simplebus1 imxgpio6 at simplebus1 imxdog0 at simplebus1 "usbphy" at simplebus1 not configured "usbphy" at simplebus1 not configured imxgpc0 at simplebus1 "sdma" at simplebus1 not configured simplebus3 at simplebus0: "aips-bus" syscon2 at simplebus3: "ocotp" "caam" at simplebus3 not configured imxehci0 at simplebus3 usb0 at imxehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "i.MX EHCI root hub" rev 2.00/1.00 addr 1 imxehci1 at simplebus3 usb1 at imxehci1: USB revision 2.0 uhub1 at usb1 configuration 1 interface 0 "i.MX EHCI root hub" rev 2.00/1.00 addr 1 "usbmisc" at simplebus3 not configured fec0 at simplebus3 fec0: address d0:63:b4:00:3f:fb atphy0 at fec0 phy 0: AR8035 10/100/1000 PHY, rev. 2 imxesdhc0 at simplebus3 imxesdhc0: 198 MHz base clock sdmmc0 at imxesdhc0: 4-bit, sd high-speed, mmc high-speed, dma imxesdhc1 at simplebus3 imxesdhc1: 198 MHz base clock sdmmc1 at imxesdhc1: 4-bit, sd high-speed, mmc high-speed, dma imxiic0 at simplebus3 iic0 at imxiic0 imxiic1 at simplebus3 iic1 at imxiic1 pcfrtc0 at iic1 addr 0x68: battery low "mmdc" at simplebus3 not configured "vdoa" at simplebus3 not configured imxuart1 at simplebus3 "ipu" at simplebus0 not configured "sram" at simplebus0 not configured imxahci0 at simplebus0: AHCI 1.3 scsibus0 at imxahci0: 32 targets "gpu" at simplebus0 not configured "ipu" at simplebus0 not configured scsibus1 at sdmmc1: 2 targets, initiator 0 sd0 at scsibus1 targ 1 lun 0: <Sandisk, SA16G, 0024> removable sd0: 14772MB, 512 bytes/sector, 30253056 sectors bwfm0 at sdmmc0 function 1 manufacturer 0x02d0, product 0x4330 at sdmmc0 function 2 not configured uchcom0 at uhub0 port 1 configuration 1 interface 0 "QinHeng Electronics USB2.0-Ser!" rev 1.10/2.54 addr 2 uchcom0: CH341 ucom0 at uchcom0 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets bootfile: sd0a:/bsd boot device: sd0 root on sd0a (fe2f3d685a24e68d.a) swap on sd0b dump on sd0b bwfm0: address b8:5a:f7:82:99:b6 -- >++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+ +++++++++++>-]<.>++[<------------>-]<+.--------------.[-] http://www.weirdnet.nl/