Re: USB worked on 5.5, not on 5.6 on MacbookAir5,1

2014-11-23 Thread Scott Bonds
Earlier you asked for the usbdevs and lsusb outputs on the version of
the OS that was *not* recognizing the usb devices at all, that is to
say, 5.6-release. I got those today. Note that a urtwn is plugged into
the left USB port while I was running these commands. Here they are:

** 5.6-release usbdevs **

addr 1: EHCI root hub, Intel
 addr 2: Rate Matching Hub, Intel
  addr 3: FaceTime HD Camera (Built-in), Apple Inc.
addr 1: EHCI root hub, Intel
 addr 2: Rate Matching Hub, Intel
  addr 3: product 0x2512, Standard Microsystems
   addr 4: BRCM20702 Hub, Apple Inc.
addr 5: product 0x820a, Apple Computer
addr 6: product 0x820b, Apple Computer
addr 7: Bluetooth USB Host Controller, Apple Inc.
   addr 8: Apple Internal Keyboard / Trackpad, Apple Inc.

** 5.6-release usbdevs -dv **

Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x), 
Intel(0x8086), rev 1.00
  uhub0
 port 1 addr 2: high speed, self powered, config 1, Rate Matching Hub(0x0024), 
Intel(0x8087), rev 0.00
   uhub2
  port 1 addr 3: high speed, power 500 mA, config 1, FaceTime HD Camera 
(Built-in)(0x8510), Apple Inc.(0x05ac), rev 80.25, iSerialNumber 
CCGC6500NMDWC8C0
uvideo0
ugen0
  port 2 powered
  port 3 powered
  port 4 powered
  port 5 powered
  port 6 powered
 port 2 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x), 
Intel(0x8086), rev 1.00
  uhub1
 port 1 addr 2: high speed, self powered, config 1, Rate Matching Hub(0x0024), 
Intel(0x8087), rev 0.00
   uhub3
  port 1 powered
  port 2 powered
  port 3 powered
  port 4 powered
  port 5 powered
  port 6 powered
  port 7 powered
  port 8 addr 3: high speed, self powered, config 1, product 0x2512(0x2512), 
Standard Microsystems(0x0424), rev b.b3
uhub4
   port 1 addr 4: full speed, self powered, config 1, BRCM20702 Hub(0x4500), 
Apple Inc.(0x0a5c), rev 1.00
 uhub5
port 1 addr 5: full speed, self powered, config 1, product 0x820a(0x820a), 
Apple Computer(0x05ac), rev 1.00
  uhidev0
port 2 addr 6: full speed, self powered, config 1, product 0x820b(0x820b), 
Apple Computer(0x05ac), rev 1.00
  uhidev1
port 3 addr 7: full speed, self powered, config 1, Bluetooth USB Host 
Controller(0x821f), Apple Inc.(0x05ac), rev 1.47
  ugen1
   port 2 addr 8: full speed, power 40 mA, config 1, Apple Internal Keyboard / 
Trackpad(0x0249), Apple Inc.(0x05ac), rev 2.19
 uhidev2
 uhidev3
 ubcmtp0
 port 2 powered

** 5.6-release lsusb **

Bus 000 Device 001: ID 8086: Intel Corp. 
Bus 000 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 000 Device 003: ID 05ac:8510 Apple, Inc. FaceTime HD Camera (Built-in)
Bus 001 Device 001: ID 8086: Intel Corp. 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 0424:2512 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 004: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of 
BCM2046 Bluetooth)
Bus 001 Device 005: ID 05ac:820a Apple, Inc. Bluetooth HID Keyboard
Bus 001 Device 006: ID 05ac:820b Apple, Inc. Bluetooth HID Mouse
Bus 001 Device 007: ID 05ac:821f Apple, Inc. Built-in Bluetooth 2.0+EDR HCI
Bus 001 Device 008: ID 05ac:0249 Apple, Inc. 

** 5.6-release lsusb -v **

Bus 000 Device 001: ID 8086: Intel Corp. 
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 1 Single TT
  bMaxPacketSize064
  idVendor   0x8086 Intel Corp.
  idProduct  0x 
  bcdDevice1.00
  iManufacturer   1 Intel
  iProduct2 EHCI root hub
  iSerial 0 
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   25
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0 
bmAttributes 0x40
  (Missing must-be-set bit!)
  Self Powered
MaxPower0mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   1
  bInterfaceClass 9 Hub
  bInterfaceSubClass  0 Unused
  bInterfaceProtocol  0 Full speed (or root) hub
  iInterface  0 
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0008  1x 8 bytes
bInterval  12
Hub Descriptor:
  bLength  11
  bDescriptorType  41
  nNbrPorts 2
  wHubCharacteristic 0x0002
No power switching (usb 1.0

Re: USB worked on 5.5, not on 5.6 on MacbookAir5,1

2014-11-21 Thread Scott Bonds
Excerpts from Martin Pieuchot's message of 2014-11-20 02:30:44 -0800:

> I don't know how it works in Apple machines but other people reported
> such weird thing with machine having an xhci(4)/ehci(4) controller.
> Telling the BIOS to "deactivate" USB 3 support made their ports work
> again with ehci(4), do you have a way to do that on your MacbookAir5,1?

I tried the ways I've heard of for forcing my MacbookAir5,1 into EHCI
mode, but they did not work:

https://gist.github.com/jcs/5573685

I tried both variations of the OSX bless command that jcs suggests:

sudo bless --device /dev/disk1 --setBoot --legacy
sudo bless --device /dev/disk1 --setBoot --nextonly --legacy

Neither of them results in external USB ports that work. After running
bless, I booted (*without* holding down the alt key, so as to let the
bless command take effect) to 5.6-release-amd64 bsd.rd and plugged in a
USB device into an external port, but nothing shows up on the screen
indicating a device was just plugged in and the lights on the device
itself don't light up, in contrast to the behavior on 5.5-stable where
after plugging the same device into the same USB port, text appears on
the screen and the lights on the device itself light up.



Re: USB worked on 5.5, not on 5.6 on MacbookAir5,1

2014-11-20 Thread Martin Pieuchot
On 19/11/14(Wed) 11:39, Scott Bonds wrote:
> > I don't know what you mean by "unreliable" nor which snapshot you
> > tried, that sad for me, 'cause I cannot learn from your experience :/
> 
> Sorry about that Martin, I'll try to be more helpful by providing more
> details. The snapshot I tried and found to be unreliable was amd64
> bsd.mp 2014-11-14.
>
> By unreliable I mean this: I plugged in my axe network adapter, which is
> 100% rock solid under 5.5. Under -current@20141114 after a few minutes
> of use, the axe0 stops working. I try to ping a known good host and it
> drops all the packets. Running 'ifconfig axe0 down' then 'ifconfig axe0 up
> && dhclient axe0' restores functionality for a few minutes, then it goes
> down again. Same behavior with a urtwn. When booting off of a USB2
> thumbdrive everything works for 5 minutes or so, but at some point the
> light on the drive stops flashing and any command I type in never
> returns. I can keep typing (so the internal EHCI controller seems ok)
> but nothing happens besides what I type showing up on the screen. I can
> reproduce this misbehavior on both the 20141114 and the 20141118 snaps.

Thanks for the information.  

> > Well you still have an ehci(4) controller on your machine, how does it
> > work on -current?
> 
> I believe my MacbookAir5,1 has a number of *internal* EHCI ports for
> stuff like the keyboard to connect to, plus 2 *external* XHCI ports for
> me to plug peripherals into.
> 
> The internal EHCI ports seem to work fine on -current. The external
> ports show up as XHCI ports on -current and exhibit the problems I
> described above.
> 
> To hazard a guess on why my ports worked in 5.5 and earlier as EHCI
> ports, do not work at all in 5.6, and show up as XHCI ports in -current:
> the BIOS is capable of falling back to EHCI if the OS doesn't ask for
> XHCI ports. 5.5 and earlier only asked for EHCI ports, so that's what
> the BIOS provided. 5.6 asks for XHCI ports, the BIOS provides them
> instead of emulating EHCI ports, but 5.6 doesn't actually support XHCI
> ports yet, so they are unusable in 5.6. -current adds support of XHCI
> ports, and asks the BIOS for XHCI ports, so things are working again, at
> least at a basic level.
> 
> If my guess is somewhat right, a fix or workaround for 5.6 might be to
> somehow return to the old behavior of pretending the OS knows nothing of
> XHCI and ask the BIOS to provide EHCI ports at boot.

I don't know how it works in Apple machines but other people reported
such weird thing with machine having an xhci(4)/ehci(4) controller.
Telling the BIOS to "deactivate" USB 3 support made their ports work
again with ehci(4), do you have a way to do that on your MacbookAir5,1?

> > Be it on -current or 5.6, could you post the output of "usbdevs -dv"
> > or even better "lsusb -v" (from the usbutils package) with your
> > devices attached but not recognized?
> 
> Yes. Here are the usbdev, usbdev -dv, lsusb, and lsusb -v outputs for
> this machine with a urtwn plugged into the external USB port on the left
> side, for both 5.5-stable-i386 and -current@20141118-amd64. Note: for
> current I booted off of a USB thumbdrive, so you'll see that too on
> those outputs.

Thanks for this info.



Re: USB worked on 5.5, not on 5.6 on MacbookAir5,1

2014-11-19 Thread Scott Bonds
I'm sorry for creating some confusion. My original email was about the
MacbookAir5,1 external USB ports not working on 5.6-release, when they
worked fine under 5.5-stable, so the subject is descriptive, at least as
the discussion started.

Subsequently I emailed to say that I have also tried a snapshot and
found the USB ports work using the snapshot, but unreliably. *That* is
why I mentioned the 2014-11-14 snapshot--to explain which snapshot I was
encountering some problems. The problems with the snapshot are different
than the problems with 5.6--on 5.6 the USB ports don't seem to function
at all, whereas under the 2014-11-14 they work, but not reliably.

Excerpts from Theo de Raadt's message of 2014-11-19 14:38:31 -0800:
> > Sorry about that Martin, I'll try to be more helpful by providing more
> > details. The snapshot I tried and found to be unreliable was amd64
> > bsd.mp 2014-11-14.
> 
>  ^^
> 
> Which is not 5.6, as your subject says.
> 
> It is -current, of a certain date.
> 
> Please be more careful with the message.



Re: USB worked on 5.5, not on 5.6 on MacbookAir5,1

2014-11-19 Thread Theo de Raadt
> Sorry about that Martin, I'll try to be more helpful by providing more
> details. The snapshot I tried and found to be unreliable was amd64
> bsd.mp 2014-11-14.

 ^^

Which is not 5.6, as your subject says.

It is -current, of a certain date.

Please be more careful with the message.



Re: USB worked on 5.5, not on 5.6 on MacbookAir5,1

2014-11-18 Thread Martin Pieuchot
On 18/11/14(Tue) 09:02, Scott Bonds wrote:
> A few people suggest I try current. I tried it and the ports show up
> again, this time as XHCI. They are unreliable, as others have noted:
> http://marc.info/?l=openbsd-misc&m=141614729913281&w=2

-current is moving fast and this remark is already outdated since a
commit improving the situation went in just after that :)

I don't know what you mean by "unreliable" nor which snapshot you tried,
that sad for me, 'cause I cannot learn from your experience :/

> I use this laptop as my main workstation, so I'm going to retreat back
> to 5.5-stable for now, but I'll see if I can get a kernel built with the
> XHCI debugging on so I can help gather info on the XHCI issues.

Well you still have an ehci(4) controller on your machine, how does it work
on -current?

Be it on -current or 5.6, could you post the output of "usbdevs -dv" or
even better "lsusb -v" (from the usbutils package) with your devices
attached but not recognized?

> Excerpts from Scott Bonds's message of 2014-11-15 01:35:32 -0800:
> > [...]
> > An old copy of the 5.5 dmesg is available here:
> > 
> > http://marc.info/?l=openbsd-tech&m=138867402307945&w=2

There's no difference USB-wise with the dmesg you posted for 5.6.  From
what I can see your urtwn(4) was attached to uhub3 which is connected to
an ehci(4).  Do you connect it in a blue port? 

Do you also have a "usbdevs -dv" output, or better "lsusb -v"
one for this release?



Re: USB worked on 5.5, not on 5.6 on MacbookAir5,1

2014-11-18 Thread Scott Bonds
A few people suggest I try current. I tried it and the ports show up
again, this time as XHCI. They are unreliable, as others have noted:
http://marc.info/?l=openbsd-misc&m=141614729913281&w=2

I use this laptop as my main workstation, so I'm going to retreat back
to 5.5-stable for now, but I'll see if I can get a kernel built with the
XHCI debugging on so I can help gather info on the XHCI issues.

Excerpts from Scott Bonds's message of 2014-11-15 01:35:32 -0800:
> I've been running 5.5 on my MacbookAir5,1 for some time. I'm trying to
> upgrade to 5.6 but I'm not having much luck so far.
> 
> A fresh install off a USB CD drive (ISOSTICK) proceeds until its time to
> copy the packages from the USB CD drive, but at that point no CD drive
> is visible.
> 
> Next I tried installing by putting the machine into 'target disk mode'
> which allows me to connect it as a SATA drive to a virtual machine on
> another box. I'm able to install 5.6 that way, disconnect from the
> virtual machine, and boot up normally on the raw hardware. But when I
> plug in any USB device, be it a network adapter or storage device,
> neither are noticed by the OS at all--no message appears when they
> attached, nothing in dmesg, nothing new in the output from usbdevs. That
> said, the keyboard works, and it appears to be a USB device. Other
> devices like the EHCI root hubs, the Facetime HD Camera, and the
> Bluetooth USB Host Controller show up--its just the stuff plugged into
> either *external* USB port that aren't working. Which is a bummer,
> because I can't do much without a USB network adapter, since the
> internal wifi chipset is not supported.
> 
> An old copy of the 5.5 dmesg is available here:
> 
> http://marc.info/?l=openbsd-tech&m=138867402307945&w=2
> 
> I have the dmesg off of 5.6 as well...I plugged the machine back into
> the VM using target disk mode and copied it to a USB stick:
> 
> OpenBSD 5.6 (GENERIC) #310: Fri Aug  8 00:14:24 MDT 2014
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
> RTC BIOS diagnostic error 
> df
> real mem = 8475713536 (8083MB)
> avail mem = 8241348608 (7859MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe (54 entries)
> bios0: vendor Apple Inc. version "MBA51.88Z.00EF.B02.1211271028" date 
> 11/27/2012
> bios0: Apple Inc. MacBookAir5,1
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP HPET APIC SBST ECDT SSDT SSDT SSDT SSDT SSDT SSDT 
> SSDT SSDT SSDT SSDT SSDT DMAR MCFG
> acpi0: wakeup devices P0P2(S4) PEG2(S4) EC__(S4) HDEF(S4) RP02(S4) ARPT(S4) 
> RP05(S4) EHC1(S4) EHC2(S4) XHC1(S4) ADP1(S4) LID0(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz, 1895.95 MHz
> cpu0: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
> cpu0: apic clock running at 99MHz
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
> ioapic0: misconfigured as apic 0, remapped to apid 2
> acpiec0 at acpi0
> acpimcfg0 at acpi0 addr 0xe000, bus 0-153
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (P0P2)
> acpiprt2 at acpi0: bus -1 (PEG2)
> acpiprt3 at acpi0: bus 2 (RP02)
> acpiprt4 at acpi0: bus 3 (RP05)
> acpicpu0 at acpi0: C3, C1, PSS
> acpibat0 at acpi0: BAT0 model "3545797981023400290" type 3545797981528607052 
> oem "3545797981528673619"
> acpiac0 at acpi0: AC unit offline
> acpibtn0 at acpi0: LID0
> acpibtn1 at acpi0: PWRB
> acpibtn2 at acpi0: SLPB
> acpivideo0 at acpi0: IGPU
> acpivout0 at acpivideo0: DD02
> cpu0: Enhanced SpeedStep 1895 MHz: speeds: 2001, 2000, 1900, 1800, 1700, 
> 1600, 1500, 1400, 1300, 1200, 1100, 1000, 900, 800 MHz
> memory map conflict 0xe00f8000/0x1000
> memory map conflict 0xfed1c000/0x4000
> memory map conflict 0xffe7/0x3
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
> vga1 at pci0 dev 2 function 0 "Intel HD Graphics 4000" rev 0x09
> intagp at vga1 not configured
> inteldrm0 at vga1
> drm0 at inteldrm0
> drm: Memory usable by graphics device = 2048M
> inteldrm0: 1366x768
> wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> "Intel 7 Series xHCI" rev 0x04 at pci0 dev 20 function 0 not configured
> "Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
> ehc

Re: USB worked on 5.5, not on 5.6 on MacbookAir5,1

2014-11-15 Thread Bertrand Janin
You should try with a snapshot, I got mine (same model) to work. Here is the
dmesg:


OpenBSD 5.6-current (GENERIC.MP) #563: Sat Nov 15 16:12:30 MST 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error e3
real mem = 4180746240 (3987MB)
avail mem = 4065624064 (3877MB)
warning: no entropy supplied by boot loader
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe (54 entries)
bios0: vendor Apple Inc. version "MBA51.88Z.00EF.B02.1211271028" date 11/27/2012
bios0: Apple Inc. MacBookAir5,1
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC SBST ECDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT 
SSDT SSDT SSDT SSDT DMAR MCFG
acpi0: wakeup devices P0P2(S4) PEG2(S4) EC__(S4) HDEF(S4) RP02(S4) ARPT(S4) 
RP05(S4) EHC1(S4) EHC2(S4) XHC1(S4) ADP1(S4) LID0(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, 1596.60 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, 1596.38 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, 1596.38 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, 1596.38 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiec0 at acpi0
acpimcfg0 at acpi0 addr 0xe000, bus 0-153
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P2)
acpiprt2 at acpi0: bus -1 (PEG2)
acpiprt3 at acpi0: bus 2 (RP02)
acpiprt4 at acpi0: bus 3 (RP05)
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpibat0 at acpi0: BAT0 model "3545797981023400290" type 3545797981528607052 
oem "3545797981528608836"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
acpivideo0 at acpi0: IGPU
acpivout0 at acpivideo0: DD02
cpu0: Enhanced SpeedStep 1596 MHz: speeds: 1701, 1700, 1600, 1500, 1400, 1300, 
1200, 1100, 1000, 900, 800 MHz
memory map conflict 0xe00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xffe7/0x3
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
vga1 at pci0 dev 2 function 0 "Intel HD Graphics 4000" rev 0x09
intagp at vga1 not configured
inteldrm0 at vga1
drm0 at inteldrm0
drm: Memory usable by graphics device = 2048M
inteldrm0: 1366x768
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
xhci0 at pci0 dev 20 function 0 "Intel 7 Series xHCI" rev 0x04: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 23
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 7 Series HD Audio" rev 0x04: msi
azalia0: codecs: Cirrus Logic CS4206, Intel/0x2806, using Cirrus Logic CS4206
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 7 Series PCIE" rev 0xc4: msi
pci1 a

USB worked on 5.5, not on 5.6 on MacbookAir5,1

2014-11-15 Thread Scott Bonds
I've been running 5.5 on my MacbookAir5,1 for some time. I'm trying to
upgrade to 5.6 but I'm not having much luck so far.

A fresh install off a USB CD drive (ISOSTICK) proceeds until its time to
copy the packages from the USB CD drive, but at that point no CD drive
is visible.

Next I tried installing by putting the machine into 'target disk mode'
which allows me to connect it as a SATA drive to a virtual machine on
another box. I'm able to install 5.6 that way, disconnect from the
virtual machine, and boot up normally on the raw hardware. But when I
plug in any USB device, be it a network adapter or storage device,
neither are noticed by the OS at all--no message appears when they
attached, nothing in dmesg, nothing new in the output from usbdevs. That
said, the keyboard works, and it appears to be a USB device. Other
devices like the EHCI root hubs, the Facetime HD Camera, and the
Bluetooth USB Host Controller show up--its just the stuff plugged into
either *external* USB port that aren't working. Which is a bummer,
because I can't do much without a USB network adapter, since the
internal wifi chipset is not supported.

An old copy of the 5.5 dmesg is available here:

http://marc.info/?l=openbsd-tech&m=138867402307945&w=2

I have the dmesg off of 5.6 as well...I plugged the machine back into
the VM using target disk mode and copied it to a USB stick:

OpenBSD 5.6 (GENERIC) #310: Fri Aug  8 00:14:24 MDT 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
RTC BIOS diagnostic error 
df
real mem = 8475713536 (8083MB)
avail mem = 8241348608 (7859MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe (54 entries)
bios0: vendor Apple Inc. version "MBA51.88Z.00EF.B02.1211271028" date 11/27/2012
bios0: Apple Inc. MacBookAir5,1
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC SBST ECDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT 
SSDT SSDT SSDT SSDT DMAR MCFG
acpi0: wakeup devices P0P2(S4) PEG2(S4) EC__(S4) HDEF(S4) RP02(S4) ARPT(S4) 
RP05(S4) EHC1(S4) EHC2(S4) XHC1(S4) ADP1(S4) LID0(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz, 1895.95 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiec0 at acpi0
acpimcfg0 at acpi0 addr 0xe000, bus 0-153
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P2)
acpiprt2 at acpi0: bus -1 (PEG2)
acpiprt3 at acpi0: bus 2 (RP02)
acpiprt4 at acpi0: bus 3 (RP05)
acpicpu0 at acpi0: C3, C1, PSS
acpibat0 at acpi0: BAT0 model "3545797981023400290" type 3545797981528607052 
oem "3545797981528673619"
acpiac0 at acpi0: AC unit offline
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
acpivideo0 at acpi0: IGPU
acpivout0 at acpivideo0: DD02
cpu0: Enhanced SpeedStep 1895 MHz: speeds: 2001, 2000, 1900, 1800, 1700, 1600, 
1500, 1400, 1300, 1200, 1100, 1000, 900, 800 MHz
memory map conflict 0xe00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xffe7/0x3
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
vga1 at pci0 dev 2 function 0 "Intel HD Graphics 4000" rev 0x09
intagp at vga1 not configured
inteldrm0 at vga1
drm0 at inteldrm0
drm: Memory usable by graphics device = 2048M
inteldrm0: 1366x768
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 7 Series xHCI" rev 0x04 at pci0 dev 20 function 0 not configured
"Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 7 Series HD Audio" rev 0x04: msi
azalia0: codecs: Cirrus Logic CS4206, Intel/0x2806, using Cirrus Logic CS4206
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 7 Series PCIE" rev 0xc4: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 1 "Intel 7 Series PCIE" rev 0xc4: msi
pci2 at ppb1 bus 2
"Broadcom BCM43224" rev 0x01 at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 28 function 4 "Intel 7 Series PCIE" rev 0xc4: msi
pci3 at ppb2 bus 3
ppb3