corpnewt / USBMap

Python script for mapping USB ports in macOS and creating a custom injector kext.
MIT License
1.03k stars 88 forks source link

Add instructions on how to generate a dump with UsbDumpEfi.efi #53

Open funder7 opened 8 months ago

funder7 commented 8 months ago

Hello, I've just read about this usage method, which I've totally missed the other times:

Screenshot 2023-12-10 alle 20 45 59

Intrigued by the possibility of generating the dump in a single operation, avoiding to map every single usb port manually, I did a search on Google to get this tool. Unfortunately the search didn't return anything.

So I've tried on github, and found this repo: https://github.com/Goldfish64/UsbDumpEfiPkg

I'll give it a try now. Anyway, wouldn't be a good idea to add a link in the readme file?

🥂

corpnewt commented 8 months ago

Intrigued by the possibility of generating the dump in a single operation, avoiding to map every single usb port manually

Hello there, the above is not the case. Goldfish's UsbDumpEfi just outlines which port personalities are connected to a given controller - it doesn't map them to the physical ports (in fact, it does not even know if they're USB 2 or USB 3 personalities unless something is actively plugged into them), so you still have to map everything. The approach listed in your screenshot is just to create a dummy injector should your ACPI be too mangled to use until you're actually in macOS.

Given that - I'm not sure it makes sense to push that approach to newcomers - unless I'm going to write up an entire guide on the topic, which isn't something I am currently planning to do.

-CorpNewt

funder7 commented 5 months ago

Hi there,

Sorry for the late reply 🙃

You're right, I hoped that it was some kind of automated procedure, but as you already stated the only way to configure everything properly is to check every port one by one.

Never mind, it wasn't that complicated in the end. The real problem now is finding how to keep the hackintosh project going, with the new versions of macOS gradually discontinuing intel products.

laris commented 3 months ago

It sounds bad news. I hope to get a offline (not macos or windows) solution for USB mapping. I plan try to boot small RAMdisk linux from opencore but cannot work. Maybe RAM disk linux will be good solution.

laris commented 3 months ago

Intrigued by the possibility of generating the dump in a single operation, avoiding to map every single usb port manually

Hello there, the above is not the case. Goldfish's UsbDumpEfi just outlines which port personalities are connected to a given controller - it doesn't map them to the physical ports (in fact, it does not even know if they're USB 2 or USB 3 personalities unless something is actively plugged into them), so you still have to map everything. The approach listed in your screenshot is just to create a dummy injector should your ACPI be too mangled to use until you're actually in macOS.

Given that - I'm not sure it makes sense to push that approach to newcomers - unless I'm going to write up an entire guide on the topic, which isn't something I am currently planning to do.

-CorpNewt

where can i get the .efi file?