xhci problem on UEFI boot MacBookPro 11,3

Huang Wen Hui huanghwh at gmail.com
Fri Oct 3 03:55:05 UTC 2014


I found that how to connect EHCI controller, use "bless" command in MacOSX
with --legacy option:
1. open MacOSX terminal, mkdir /Volumes/EFI
2. mount -t msdos /dev/disk0s1 /Volumes/EFI
3. bless --setBoot --mount /Volumes/EFI --legacy
4. reboot MacOSX, press "option" key, you can feel firmware start a little
slow than without --legacy. I think firmware do some extra things:(
5. select both UEFI and BIOS boot FreeBSD, system can connect EHCI and XHCI
controller.
6. I think BootCamp assistant also add --legacy option.

Cheers,
Huang Wen Hui

2014-09-30 18:19 GMT+08:00 Huang Wen Hui <huanghwh at gmail.com>:

> Hi,
> I got the exactly same MBP 2013 11,3 from my colleague, also same time to
> buy it.
> USB driver works on this in UEFI mode. Both xhci and ehci found in this
> mac, and these
> dmesg only show in this mac:
>
> acpi_ec0: <Embedded Controller: GPE 0x17, ECDT> port 0x62,0x66 on acpi0
> ACPI Error: No handler for Region [CMS0] (0xfffff80008948e00) [SystemCMOS]
> (20130823/evregion-178)
> ACPI Error: Region SystemCMOS (ID=5) has no handler (20130823/exfldio-320)
> ACPI Error: Method parse/execution failed [\134RUSB] (Node
> 0xfffff8000895db80), AE_NOT_EXIST (20130823/psparse-553)
> ACPI Error: Method parse/execution failed [\134_SB_._INI] (Node
> 0xfffff8000895e000), AE_NOT_EXIST (20130823/psparse-553)
> acpi0: Power Button (fixed)
> ...
> xhci0: <Intel Lynx Point USB 3.0 controller> mem 0xc1e00000-0xc1e0ffff at
> device 20.0 on pci0
> xhci0: 32 byte context size.
> xhci0: Port routing mask set to 0xffffffff
> usbus0 on xhci0
> pci0: <simple comms> at device 22.0 (no driver attached)
> ehci0: <Intel Lynx Point USB 2.0 controller USB-B> mem
> 0xc1e19400-0xc1e197ff at device 26.0 on pci0
> usbus1: EHCI version 1.0
> usbus1 on ehci0
> ...
> ehci1: <Intel Lynx Point USB 2.0 controller USB-A> mem
> 0xc1e19000-0xc1e193ff at device 29.0 on pci0
> usbus2: EHCI version 1.0
> usbus2 on ehci1
> isab0: <PCI-ISA bridge> at device 31.0 on pci0
> isa0: <ISA bus> on isab0
> ...
> usbus0: 5.0Gbps Super Speed USB v3.0
> usbus1: 480Mbps High Speed USB v2.0
> usbus2: 480Mbps High Speed USB v2.0
> ugen0.1: <0x8086> at usbus0
> uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
> ugen1.1: <Intel> at usbus1
> uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
> ugen2.1: <Intel> at usbus2
> uhub2: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
> ...
> Timecounter "TSC-low" frequency 1297021897 Hz quality 1000
> Root mount waiting for: usbus2 usbus1 usbus0
> uhub1: 2 ports with 2 removable, self powered
> uhub0: 21 ports with 21 removable, self powered
> uhub2: 2 ports with 2 removable, self powered
> Root mount waiting for: usbus2 usbus1 usbus0
> xhci0: Port routing mask set to 0x00000000
> usb_alloc_device: device init 2 failed (USB_ERR_IOERROR, ignored)
> ugen0.2: <Unknown> at usbus0 (disconnected)
> uhub_reattach_port: could not allocate new device
> ugen1.2: <vendor 0x8087> at usbus1
> uhub3: <vendor 0x8087 product 0x8008, class 9/0, rev 2.00/0.05, addr 2> on
> usbus1
> ugen2.2: <vendor 0x8087> at usbus2
> uhub4: <vendor 0x8087 product 0x8000, class 9/0, rev 2.00/0.05, addr 2> on
> usbus2
> uhub3: 6 ports with 6 removable, self powered
> Root mount waiting for: usbus2 usbus1 usbus0
> xhci0: Port routing mask set to 0x00000000
> usb_alloc_device: device init 2 failed (USB_ERR_IOERROR, ignored)
> ugen0.2: <Unknown> at usbus0 (disconnected)
> uhub_reattach_port: could not allocate new device
> uhub4: 8 ports with 8 removable, self powered
> ugen1.3: <Generic> at usbus1
> umass0: <Generic Mass Storage, class 0/0, rev 2.00/1.12, addr 3> on usbus1
> umass0:  SCSI over Bulk-Only; quirks = 0x4101
> umass0:1:0:-1: Attached to scbus1
> da0 at umass-sim0 bus 0 scbus1 target 0 lun 0
> da0: <Generic Flash Disk 8.07> Removable Direct Access SCSI-4 device
> da0: Serial Number E0629276
> da0: 40.000MB/s transfers
> da0: 3870MB (7925760 512 byte sectors: 255H 63S/T 493C)
> da0: quirks=0x2<NO_6_BYTE>
> ugen1.4: <Apple Inc.> at usbus1
> uhub5: <Apple Inc. BRCM20702 Hub, class 9/0, rev 2.00/1.00, addr 4> on
> usbus1
> Root mount waiting for: usbus1
> uhub5: 3 ports with 0 removable, self powered
> ugen1.5: <vendor 0x05ac> at usbus1
> ukbd0: <vendor 0x05ac product 0x820a, class 0/0, rev 2.00/1.00, addr 5> on
> usbus1
> kbd1 at ukbd0
> Root mount waiting for: usbus1
> ugen1.6: <vendor 0x05ac> at usbus1
> ugen1.7: <Apple Inc.> at usbus1
> Root mount waiting for: usbus1
> ugen1.8: <Apple Inc.> at usbus1
> ukbd1: <Apple Internal Keyboard> on usbus1
> Root mount waiting for: usbus1
> kbd2 at ukbd1
>
> Full dmesg is http://sw.gddsn.org.cn/freebsd/uefi-ehci-dmesg.txt
>
>
>
>
> 2014-09-28 15:35 GMT+08:00 Huang Wen Hui <huanghwh at gmail.com>:
>
>> I found some similar problem of Linux:
>> https://bugzilla.kernel.org/show_bug.cgi?id=52591
>> https://lkml.org/lkml/2013/3/9/134
>>
>>
>> 2014-09-28 14:35 GMT+08:00 Hans Petter Selasky <hps at selasky.org>:
>>
>>> On 09/28/14 06:26, Huang Wen Hui wrote:
>>>
>>>> No lucky. dmesg aslo no change, I could not found "Skipped".
>>>>
>>>> Cheers,
>>>> Huang Wen Hui
>>>>
>>>
>>> Did you try searching if Linux users had such a problem already?
>>>
>>> --HPS
>>>
>>>
>>
>


More information about the freebsd-usb mailing list