TomHeaven / HoRNDIS

Tom's Repo of HoRNDS——the USB tethering driver for Mac OS 11+
Other
111 stars 11 forks source link

Can not work on sonoma/M2. #6

Open haoyue0603 opened 9 months ago

haoyue0603 commented 9 months ago
$ sudo kmutil load -p /Library/Extensions/HoRNDIS.kext
Error Domain=KMErrorDomain Code=31 "Error occurred while building a collection: 
    1: One or more binaries has an error which prevented linking.  See other errors.
    2: Could not use 'com.joshuawise.kexts.HoRNDIS' because: Malformed vtable.  Super class '__ZTV20IOEthernetController' has 400 entries vs subclass '__ZTV7HoRNDIS' with 394 entries
com.joshuawise.kexts.HoRNDIS specific: 
    1: Malformed vtable.  Super class '__ZTV20IOEthernetController' has 400 entries vs subclass '__ZTV7HoRNDIS' with 394 entries
" UserInfo={NSLocalizedDescription=Error occurred while building a collection: 
    1: One or more binaries has an error which prevented linking.  See other errors.
    2: Could not use 'com.joshuawise.kexts.HoRNDIS' because: Malformed vtable.  Super class '__ZTV20IOEthernetController' has 400 entries vs subclass '__ZTV7HoRNDIS' with 394 entries
com.joshuawise.kexts.HoRNDIS specific: 
    1: Malformed vtable.  Super class '__ZTV20IOEthernetController' has 400 entries vs subclass '__ZTV7HoRNDIS' with 394 entries
}
TomHeaven commented 4 months ago

A re-compilation on Sonoma may fix it.

Asilvorcarp commented 4 months ago

A re-compilation on Sonoma may fix it.

Using Sonoma 14.5 (M1Pro), I compile and install by:

gh repo clone TomHeaven/HoRNDIS -- --recurse-submodules
cd HoRNDIS
xcodebuild
cd ./build/Release
sudo cp -r -f HoRNDIS.kext /Library/Extensions/
sudo kextcache -update-volume
# (reboot)
sudo kmutil load -p /Library/Extensions/HoRNDIS.kext

The last command produces exactly the same error message as @haoyue0603 ‘s. Though I'm not familiar with Xcode, I changed General/Deployment Info/Deployment Target to 14.5 and it didn't work either. Am I doing something wrong?

Asilvorcarp commented 4 months ago

This one works for me: https://drive.google.com/file/d/1XXeJ28Vf9uae97dO9PLAM4CF8ltN1ELS from https://www.youtube.com/watch?v=zlhc1V01EK4

Not sure if it's secure though.