On Tue, June 7, 2016 02:01, Johan Huldtgren wrote:
> hello,
>
> I have an APC Smart-UPS-2200 which is connected via USB, as long as
> I've followed the instructions in pkg-readme about disabling uhidev
> and upd it's always worked fine. When I updated to the latest snap
> (June 4th) however I am now always seeing "COMMLOST" in the output of
> 'apcaccess status' I tried booting the previous kernel (May 19th,
> #1709), but that did not resolve it, it seems the breakage occurred
> when apcupsd went from 3.14.13p1 to 3.14.13p2 which seems to have been
> because the removal of USB_GET_STRING_DESC. I did try the newly
> committed (but as yet unpackaged) 3.14.14 but no more luck there.
>
> I tried to build 3.14.13p1 to see if I can confirm what broke it, but
> I've been unable to succeed. I backed out the USB_GET_STRING_DESC
> changes and built a new kernel based on sources from around
> 2016-05-20, I tried to do the same thing with the ports tree but
> clearly I've missed something, because I never make it further than:
>
> make[5]: Entering directory
> '/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/src/drivers/usb/bsd'
>    CXX   src/drivers/usb/bsd/hidutils.c
> if test ! -d .obj; then mkdir -p .obj; fi
> c++ -x c++ -I/usr/local/include
> -I/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/src/libusbhid
> -I/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/include  -O2 -pipe
> -fno-exceptions -fno-rtti -Wall -pthread -c -o .obj/hidutils.o hidutils.c
> hidutils.c: In function 'const char* hidu_get_string(int, int)':
> hidutils.c:354: error: 'USB_GET_STRING_DESC' was not declared in this scope
> ../../../../autoconf/targets.mak:141: recipe for target
> '.obj/hidutils.o' failed
> gmake[5]: *** [.obj/hidutils.o] Error 1
> gmake[5]: Leaving directory
> '/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/src/drivers/usb/bsd'
> ../../../../autoconf/targets.mak:55: recipe for target 'all' failed
> gmake[4]: *** [all] Error 2
> gmake[4]: Leaving directory
> '/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/src/drivers/usb/bsd'
> ../../../autoconf/targets.mak:105: recipe for target 'bsd_DIR' failed
> gmake[3]: *** [bsd_DIR] Error 2
> gmake[3]: Leaving directory
> '/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/src/drivers/usb'
> ../../autoconf/targets.mak:105: recipe for target 'usb_DIR' failed
> gmake[2]: *** [usb_DIR] Error 2
> gmake[2]: Leaving directory
> '/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/src/drivers'
> ../autoconf/targets.mak:105: recipe for target 'drivers_DIR' failed
> gmake[1]: *** [drivers_DIR] Error 2
> gmake[1]: Leaving directory
> '/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/src'
> autoconf/targets.mak:105: recipe for target 'src_DIR' failed
> gmake: *** [src_DIR] Error 2
> *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2675
> '/usr/ports/pobj/apcupsd-3.14.13/.build_done')
> *** Error 1 in /usr/ports/sysutils/apcupsd
> (/usr/ports/infrastructure/mk/bsd.port.mk:2397 'all')
>
> any clues?

Hi!
I have no issues on penBSD 5.9-current (GENERIC.MP) #2003: Tue May  3 13:58:33
MDT 2016 with 3.14.14 and ugen0 at uhub5 port 1 "American Power Conversion
Back-UPS CS 500 FW:808.q10 .I USB FW:q10" rev 1.10/0.06 addr 2.

I'll take a closer look at it in the evening.

>
> Below is a dmesg from current, as well as output from usbdevs
> and apcaccess.
>
> thanks,
>
> .jh
>
> ----
>
> # dmesg
> OpenBSD 6.0-beta (GENERIC) #1783: Sat Jun  4 20:02:48 MDT 2016
>      [email protected]:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz ("GenuineIntel"
> 686-class) 1.20 GHz
> cpu0:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PERF
> real mem  = 536240128 (511MB)
> avail mem = 513286144 (489MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: date 01/07/04, BIOS32 rev. 0 @ 0xffe90, SMBIOS rev.
> 2.3 @ 0xf76b0 (62 entries)
> bios0: vendor Dell Computer Corporation version "A11" date 01/07/2004
> bios0: Dell Computer Corporation Inspiron 8200
> acpi0 at bios0: rev 0
> acpi0: sleep states S0 S1 S3 S4 S5
> acpi0: tables DSDT FACP
> acpi0: wakeup devices LID_(S3) PBTN(S4) PCI0(S3) UAR1(S3) USB0(S1)
> USB1(S1) USB2(S1) MODM(S3) PCIE(S3) MPCI(S3)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (AGP_)
> acpiprt2 at acpi0: bus 2 (PCIE)
> acpiprt3 at acpi0: bus -1 (MPCI)
> acpicpu0 at acpi0acpicpu0: struck PSS entry, core frequency equals  last
> acpicpu0: struck PSS entry, core frequency equals  last
> acpicpu0: invalid _PSS length
> : !C2(@50 io@0x8e4), C1(@1 halt!)
> acpipwrres0 at acpi0: PADA, resource for ADPT
> acpitz0 at acpi0: critical temperature is 94 degC
> acpiac0 at acpi0: AC unit online
> acpibat0 at acpi0: BAT0 not present
> acpibat1 at acpi0: BAT1 model "LIP8120DLP" serial 20216 type LION oem
> "Sony Corp."
> acpibtn0 at acpi0: LID_
> acpibtn1 at acpi0: PBTN
> acpibtn2 at acpi0: SBTN
> "PNP0F13" at acpi0 not configured
> "PNP0303" at acpi0 not configured
> "PNP0700" at acpi0 not configured
> "PNP0501" at acpi0 not configured
> "PNP0401" at acpi0 not configured
> acpidock0 at acpi0: GDCK not docked (0)
> acpivideo0 at acpi0: VID_
> bios0: ROM list: 0xc0000/0xf800 0xcf800/0x800!
> cpu0 at mainbus0: (uniprocessor)
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82845 Host" rev 0x04
> intelagp0 at pchb0
> agp0 at intelagp0: aperture at 0xe8000000, size 0x4000000
> ppb0 at pci0 dev 1 function 0 "Intel 82845 AGP" rev 0x04
> pci1 at ppb0 bus 1
> 1:0:0: mem address conflict 0x80000000/0x20000
> vga1 at pci1 dev 0 function 0 "NVIDIA GeForce4 440 Go" rev 0xa3
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> uhci0 at pci0 dev 29 function 0 "Intel 82801CA/CAM USB" rev 0x02: irq 11
> uhci1 at pci0 dev 29 function 2 "Intel 82801CA/CAM USB" rev 0x02: irq 11
> ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x42
> pci2 at ppb1 bus 2
> xl0 at pci2 dev 0 function 0 "3Com 3c905C 100Base-TX" rev 0x78: irq 11,
> address 00:08:74:e3:08:86
> exphy0 at xl0 phy 24: 3Com internal media interface
> cbb0 at pci2 dev 1 function 0 "TI PCI4451 CardBus" rev 0x00: irq 11
> cbb1 at pci2 dev 1 function 1 "TI PCI4451 CardBus" rev 0x00: irq 11
> "TI PCI4451 FireWire" rev 0x00 at pci2 dev 1 function 2 not configured
> cardslot0 at cbb0 slot 0 flags 0
> cardbus0 at cardslot0: bus 4 device 0 cacheline 0x8, lattimer 0x20
> pcmcia0 at cardslot0
> cardslot1 at cbb1 slot 1 flags 0
> cardbus1 at cardslot1: bus 5 device 0 cacheline 0x8, lattimer 0x20
> pcmcia1 at cardslot1
> ichpcib0 at pci0 dev 31 function 0 "Intel 82801CAM LPC" rev 0x02
> pciide0 at pci0 dev 31 function 1 "Intel 82801CAM IDE" rev 0x02: DMA,
> channel 0 configured to compatibility, channel 1 configured to compatibility
> wd0 at pciide0 channel 0 drive 0: <HITACHI_DK23EB-40>
> wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
> atapiscsi0 at pciide0 channel 0 drive 1
> scsibus1 at atapiscsi0: 2 targets
> cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVD-ROM GDR8081N, 0108> ATAPI
> 5/cdrom removable
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
> cd0(pciide0:0:1): using PIO mode 4, DMA mode 2
> atapiscsi1 at pciide0 channel 1 drive 0
> scsibus2 at atapiscsi1: 2 targets
> cd1 at scsibus2 targ 0 lun 0: <TEAC, CD-W224E, L.0E> ATAPI 5/cdrom removable
> cd1(pciide0:1:0): using PIO mode 4, DMA mode 2
> auich0 at pci0 dev 31 function 5 "Intel 82801CA/CAM AC97" rev 0x02: irq
> 11, ICH3 AC97
> ac97: codec id 0x4352595b (Cirrus Logic CS4205 rev 3)
> ac97: codec features mic channel, tone, simulated stereo, bass boost, 20
> bit DAC, 18 bit ADC, SRS 3D
> audio0 at auich0
> "Intel 82801CA/CAM Modem" rev 0x02 at pci0 dev 31 function 6 not configured
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb1 at uhci1: USB revision 1.0
> uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> isa0 at ichpcib0
> isadma0 at isa0
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pms0 at pckbc0 (aux slot)
> wsmouse0 at pms0 mux 0
> pms0: ALPS Dualpoint, version 0x2222
> wsmouse1 at pms0 mux 0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> uhub2 at uhub0 port 1 "Genesys Logic USB2.0 Hub" rev 2.00/85.37 addr 2
> ugen0 at uhub2 port 2 "American Power Conversion Smart-UPS 2200 FW:UPS
> 09.2 / ID=18" rev 2.00/1.06 addr 3
> uplcom0 at uhub2 port 4 "Prolific Technology Inc. USB-Serial Controller
> D" rev 1.10/4.00 addr 4
> ucom0 at uplcom0
> uhub3 at uhub1 port 1 "Genesys Logic USB2.0 Hub" rev 2.00/77.64 addr 2
> uplcom1 at uhub3 port 1 "Prolific Technology Inc. USB-Serial Controller
> D" rev 1.10/4.00 addr 3
> ucom1 at uplcom1
> uplcom2 at uhub3 port 2 "Prolific Technology Inc. USB-Serial Controller
> D" rev 1.10/4.00 addr 4
> ucom2 at uplcom2
> uplcom3 at uhub3 port 3 "Prolific Technology Inc. USB-Serial Controller
> D" rev 1.10/4.00 addr 5
> ucom3 at uplcom3
> uplcom4 at uhub3 port 4 "Prolific Technology Inc. USB-Serial Controller
> D" rev 1.10/4.00 addr 6
> ucom4 at uplcom4
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> root on wd0a (bde744ae38325c1c.a) swap on wd0b dump on wd0b
>
> # usbdevs -v -d
> Controller /dev/usb0:
> addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
> Intel(0x8086), rev 1.00
>    uhub0
>   port 1 addr 2: full speed, self powered, config 1, USB2.0 Hub(0x0608),
> Genesys Logic(0x05e3), rev 85.37
>     uhub2
>    port 1 powered
>    port 2 addr 3: full speed, power 2 mA, config 1, Smart-UPS 2200
> FW:UPS 09.2 / ID=18(0x0003), American Power Conversion(0x051d), rev
> 1.06, iSerialNumber AS1505230549
>      ugen0
>    port 3 powered
>    port 4 addr 4: full speed, power 100 mA, config 1, USB-Serial
> Controller D(0x2303), Prolific Technology Inc.(0x067b), rev 4.00
>      uplcom0
>   port 2 powered
> Controller /dev/usb1:
> addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
> Intel(0x8086), rev 1.00
>    uhub1
>   port 1 addr 2: full speed, self powered, config 1, USB2.0 Hub(0x0608),
> Genesys Logic(0x05e3), rev 77.64
>     uhub3
>    port 1 addr 3: full speed, power 100 mA, config 1, USB-Serial
> Controller D(0x2303), Prolific Technology Inc.(0x067b), rev 4.00
>      uplcom1
>    port 2 addr 4: full speed, power 100 mA, config 1, USB-Serial
> Controller D(0x2303), Prolific Technology Inc.(0x067b), rev 4.00
>      uplcom2
>    port 3 addr 5: full speed, power 100 mA, config 1, USB-Serial
> Controller D(0x2303), Prolific Technology Inc.(0x067b), rev 4.00
>      uplcom3
>    port 4 addr 6: full speed, power 100 mA, config 1, USB-Serial
> Controller D(0x2303), Prolific Technology Inc.(0x067b), rev 4.00
>      uplcom4
>   port 2 powered
>
> # apcaccess status
> APC      : 001,018,0471
> DATE     : 2016-06-06 15:36:05 -0400
> HOSTNAME : example.com
> VERSION  : 3.14.13 (02 February 2015) openbsd
> UPSNAME  : atlas
> CABLE    : USB Cable
> DRIVER   : USB UPS Driver
> UPSMODE  : Stand Alone
> STARTTIME: 2016-06-06 15:35:05 -0400
> STATUS   : COMMLOST
> MBATTCHG : 5 Percent
> MINTIMEL : 3 Minutes
> MAXTIME  : 0 Seconds
> NUMXFERS : 0
> TONBATT  : 0 Seconds
> CUMONBATT: 0 Seconds
> XOFFBATT : N/A
> STATFLAG : 0x05000100
> END APC  : 2016-06-06 15:55:03 -0400
>
>


Reply via email to