overdue-scratch

Author Topic: Setting USB Bus Numbers  (Read 3869 times)

0 Members and 1 Guest are viewing this topic.

jeffburg

  • Entrant
  • Posts: 0
Setting USB Bus Numbers
« on: November 24, 2010, 08:59:40 AM »
Hey Guys,

I have kind of a weird question. I posted my exploits with an Apple Internal Bluetooth Module here http://www.tonymacx86.com/viewtopic.php?f=19&t=7814&p=54710

To make a long story short I got bluetooth to work but it only works on a USB port with Bus Number 0x7d. That is what it is on every Intel Mac I can find and that is where it worked on my old motherboard. However, that motherboard died and newegg sent me a replacement. On this new motherboard none of my USB ports are 0x7d and so therefore bluetooth does not work on any of my USB ports, internal or external.

Is there any way for chameleon to modify the USB Bus Numbers before OS X starts loading? I just need to make sure one of my internal USB headers has a bus number 0x7d.

Thanks for your help!
-Jeff

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: Setting USB Bus Numbers
« Reply #1 on: November 25, 2010, 01:36:31 AM »
This is an interesting issue but it has nothing to do with the Chameleon bootloader. Therefore, welcome to the Black Hole.

I'm not sure what a USB bus number is (I checked mine in System Profiler and they look kind of random) but it sounds like something you might be able to fix by patching DSDT.

If your replacement motherboard is the same as your old one, check your BIOS settings and make sure the board is running the same BIOS version as the old board. /EDIT.. ahh hehe, just read your topic at tonymac. That's really strange.
« Last Edit: November 25, 2010, 01:42:37 AM by Gringo Vermelho »
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131

jeffburg

  • Entrant
  • Posts: 0
Re: Setting USB Bus Numbers
« Reply #2 on: November 25, 2010, 01:40:35 AM »
Thanks for the reply,

are you sure chameleon can't do anything with the bus numbers? From the research I have done, with windows the BIOS checks to see if windows support plug and play and if it does it lets windows set all the IRQ's and if it doesn't then the BIOS sets them. I was hoping that if Windows can do this then Chameleon can do this as well.

As far as the motherboard, yes the first thing I did was update to the same BIOS version as before and the DSDT file never changed and its the one I downloaded from Tony mac's site for my specific motherboard and BIOS version.

Is there a good resource that you normally link to for patching DSDT files?

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: Setting USB Bus Numbers
« Reply #3 on: November 25, 2010, 02:34:18 AM »
I don't think the assigned USB bus number is related to the IRQ of the USB controller. But you can check this by comparing IRQs on the machines where the Bluetooth adapter worked, using IORegistryExplorer.

You can find the Bus Number under "LocationID" and "USBBusNumber" and the IRQ under "IOInterruptSpecifiers" at the root of each USB port.

In your BIOS there should be a "Plug & Play OS" setting somewhere. Set this to no. No is usually the default though.
Apart from that, the closest thing to what you're talking about that I know of are the OS-dependant code paths that exist in the DSDT table. But you say the DSDT is identical so yeah. Weird.

Maybe there's a way to inject your Bus Number via DSDT. I guess that injecting a "USBBusNumber" could probably work, in the same way that you can inject other device properties for LAN and Video cards. But I have never heard about anyone injecting such a value before. You should definitely experiment with this. Check this post at IM, it's not related to your issue but following the links in it should give you some inspiration regarding how to proceed.
http://www.insanelymac.com/forum/index.php?showtopic=225766&st=1060&p=1590490&#entry1590490

Good Luck.
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131