Jump to content

Mavericks kernel testing on AMD (formerly Mountain Lion kernel testing on AMD)

Mountain Lion AMD legacy kernel x64_86 ssse3 ssse3 emulator

  • Please log in to reply
6286 replies to this topic

#641
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
Sinetek, where do i add the flags so the ssse3emu.c compiles properly? osmfk/conf/filesi386?

#642
ZiggyW

ZiggyW

    InsanelyMac Protégé

  • Members
  • Pip
  • 25 posts
  • Gender:Male
  • Location:Netherlands
  • Interests:World Peace and a working 64bits kernel osx10.8 for AMD
disk repair gave me this


Password:

bash-3.2# sudo diskutil repairpermissions /

Started verify/repair permissions on disk2s2 Mac AMD FX6100

Group differs on "Library/Java"; should be 0; group is 80

Permissions differ on "Library/Java"; should be drwxr-xr-x ; they are drwxrwxr-x

Repaired "Library/Java"

User differs on "mach_kernel"; should be 0; user is 501

Group differs on "mach_kernel"; should be 0; group is 20

Permissions differ on "mach_kernel"; should be -rw-r--r-- ; they are -rwxr-xr-x

Repaired "mach_kernel"

User differs on "usr/share/collabd/webauthd"; should be 94; user is 221

Group differs on "usr/share/collabd/webauthd"; should be 94; group is 221

Repaired "usr/share/collabd/webauthd"

User differs on "usr/share/collabd/webauthd/locales"; should be 94; user is 221

Group differs on "usr/share/collabd/webauthd/locales"; should be 94; group is 221

Repaired "usr/share/collabd/webauthd/locales"

Permissions differ on "System/Library/CoreServices/Menu Extras/Displays.menu"; should be drwxr-xr-x ; they are lrwxr-xr-x

Repaired "System/Library/CoreServices/Menu Extras/Displays.menu"

Permissions differ on "System/Library/MonitorPanels/Arrange.monitorPanel"; should be drwxr-xr-x ; they are lrwxr-xr-x

Repaired "System/Library/MonitorPanels/Arrange.monitorPanel"

Permissions differ on "System/Library/MonitorPanels/Display.monitorPanel"; should be drwxr-xr-x ; they are lrwxr-xr-x

Repaired "System/Library/MonitorPanels/Display.monitorPanel"

Permissions differ on "System/Library/MonitorPanels/Profile.monitorPanel"; should be drwxr-xr-x ; they are lrwxr-xr-x

Repaired "System/Library/MonitorPanels/Profile.monitorPanel"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane"; should be drwxr-xr-x ; they are lrwxr-xr-x

Repaired "System/Library/PreferencePanes/Displays.prefPane"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/hr.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/hr.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/sk.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/sk.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/Dutch.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/Dutch.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/English.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/English.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/French.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/French.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/German.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/German.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/Italian.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/Italian.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/Japanese.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/Japanese.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/da.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/da.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/fi.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/fi.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/ko.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/ko.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/no.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/no.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/pl.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/pl.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/pt.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/pt.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/pt_PT.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/pt_PT.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/ru.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/ru.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/sv.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/sv.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/zh_CN.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/zh_CN.lproj/DisplaysPref.nib"

Permissions differ on "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/zh_TW.lproj/DisplaysPref.nib"; should be drwxr-xr-x ; they are -rw-r--r--

Repaired "System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/zh_TW.lproj/DisplaysPref.nib"

Permissions differ on "private/var/run/com.apple.WindowServer.didRunThisBoot"; should be -rwx------ ; they are ---x------

Repaired "private/var/run/com.apple.WindowServer.didRunThisBoot"

Finished verify/repair permissions on disk2s2 Mac AMD FX6100

bash-3.2#


#643
Sinetek

Sinetek

    InsanelyMac Sage

  • Coders
  • 333 posts
  • Gender:Male
hi, i got an idea, but I need the source to that instruction patcher, for 10.7

thanks




little poll: Should we split this thread?

If so, how?

#644
spakk

spakk

    If you try to please everyone, then you have certainly forgotten

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,843 posts
  • Gender:Male
  • Location:português

hi, i got an idea, but I need the source to that instruction patcher, for 10.7

thanks




little poll: Should we split this thread?

If so, how?


here is the patcher
amd_insn_patcher_src and IOHIDFamily_nointervalcheck.kext

Edit new file !!!!!

>>>

#645
Sinetek

Sinetek

    InsanelyMac Sage

  • Coders
  • 333 posts
  • Gender:Male
I see. This is a fun piece of code, but the only bit that *may* be needed right now is CPUID patching. I don't know if the OS will load without patching cpuid, my guess is yes.

This also does sysenter patching, but i've discovered and just confirmed now that this part I could relocate to the kernel, it'll be simpler and no patching/modifying signatures this way.
TLDR; adding sysenter emulation would be cool.

#646
SS01

SS01

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 265 posts
  • Gender:Male
  • Location:Ottawa
On CPUID patching, something which I dug up from Leopard days: http://www.insanelym...cpuidtxt-files/

From my understanding the OS will boot with no CPUID, but some apps will crash. Good luck!

#647
spakk

spakk

    If you try to please everyone, then you have certainly forgotten

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,843 posts
  • Gender:Male
  • Location:português
I have a question to you. as the first time I've installed Lion 10.7.4 on my AMD Phenom II X6 1100T, I was able to boot with help of cparm bootloader under the application modules stable my system. cparm and AndyVandijck have developed this boot loader for AMD CPUs. Please take a look at the site if that's helpful.

>>>>http://osx86.co/f36/...-made-by-t7178/

The download link from cparm is dead, here are the standard modules and various other modules from my collection
>>>>

#648
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
Hi, folks!

As i promised, i recompiled the sinactic 10.7.5 Lion kernel with the ssse3 emulator using the flags recommended by Sinetek. I added them at osmkf/conf/Makefilei386.

Let's see if the ssse3 emulator starts without any runtime errors! Remember, this is for non-Bulldozer/Piledriver only. If possible, put vids or pics of your verbose boots. Good luck!

Attached File  sinactic.zip   3.16MB   26 downloads

#649
Sinetek

Sinetek

    InsanelyMac Sage

  • Coders
  • 333 posts
  • Gender:Male
oh wow, i found some amazingly great technical information somewhere.

it is possible to spoof the CPUID instruction on AMD using the virtualization extensions.

the problem is that cpuid isn't a priviledged instruction, but this would solve it. that would be the pinacle of all mach_kernels

#650
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
That's really great, sinetek!

By the way, i couldn't get myself rid of the runtime errors for the ssse3 emulator. I added the flags to the makefilei386 file. What could the problem be?

#651
Sinetek

Sinetek

    InsanelyMac Sage

  • Coders
  • 333 posts
  • Gender:Male
sounds like a problem with the wonderful apple compiler.. have to look into that. is it still showing a size of -16 or something silly like that?

#652
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
Yes, size--16. Precisely this.

#653
Sinetek

Sinetek

    InsanelyMac Sage

  • Coders
  • 333 posts
  • Gender:Male
WHAT THE LITTERAL ACTUAL COW HECK?!?!?!

I have found the holy grail. AMD K10 has registers that allow redefining the salient information returned by a CPUID instruction. Has this been in front of us all along?
let's quote the freaking docs,

The following code sample shows how a VMM (or OS) can hide reporting of SSE4A instructions
on a quad-core AMD OpteronTM processor. { ..... C ..... }

AND then the actual "AuthenticAMD" string too!


ecstatic ..

-- Sinetek

#654
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
P.S.: Sinetek, here's the patch of the sinactic kernel to be applied to the 10.7.5 XNU, just in case you want to try it yourself. I used Xcode 3.2.6 by the way.

Attached File  sinactic.patch.zip   644.46KB   9 downloads

WHAT THE LITTERAL ACTUAL COW HECK?!?!?!

I have found the holy grail. AMD K10 has registers that allow redefining the salient information returned by a CPUID instruction. Has this been in front of us all along?
let's quote the freaking docs,


AND then the actual "AuthenticAMD" string too!


ecstatic ..

-- Sinetek



Congratulations for finding this, Sinetek!

What the extent of the benefits could it give us? What's the practical application of this to our little work here? Great expectations! :D

#655
Sinetek

Sinetek

    InsanelyMac Sage

  • Coders
  • 333 posts
  • Gender:Male
hmm this is fun, i have one CPU reporting as intel and 3 reporting as AMD phenoms, lol


enough messing around with this for tonight

#656
mac_carol

mac_carol

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 148 posts
  • Gender:Not Telling

Hi, folks!

As i promised, i recompiled the sinactic 10.7.5 Lion kernel with the ssse3 emulator using the flags recommended by Sinetek. I added them at osmkf/conf/Makefilei386.

Let's see if the ssse3 emulator starts without any runtime errors! Remember, this is for non-Bulldozer/Piledriver only. If possible, put vids or pics of your verbose boots. Good luck!

Attached File  sinactic.zip   3.16MB   26 downloads



The same KP still happened, either with: or without: -legacy

Posted Image


Posted Image

#657
spakk

spakk

    If you try to please everyone, then you have certainly forgotten

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,843 posts
  • Gender:Male
  • Location:português
Hi theconatic,
Hi Sinetek
Hi @ll

As the first time I've installed Lion 10.7.4 on my AMD Phenom II X6 1100T, I was able to boot with help of cparm bootloader under the application modules stable my system. cparm and AndyVandijck have developed this boot loader for AMD CPUs. Please take a look at the site if that's helpful.

--->> http://osx86.co/f36/...-made-by-t7178/

The download link from cparm is dead, here are the standard modules and various other modules from my collection
--->> www.workupload.com/file/djUizBa

#658
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
Hi, spakk!

By the way, for everyone's information, Andy told me a couple of days ago he also would be working on the 12.x kernel for AMD. He said he would keep me posted about his progress, so that's good news.

Sinetek, i still don't understand which good your discoveries would effectively do. Can you share your thoughts? :)

#659
wastez

wastez

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 159 posts
  • Gender:Male
My Lion install panics as same as mac_carol´s did.
Doens´t matter which kernel flag i use.

#660
spakk

spakk

    If you try to please everyone, then you have certainly forgotten

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,843 posts
  • Gender:Male
  • Location:português
I can not test on Lion 10.7.5, I have only 10.7.4 on my AMD

I've tested the latest kernel on 10.7.4, I get the same error message as mac_carol (with the same boot flag as mac_carol). and if I boot with boot flag: -v -f

then comes this strange error message:

PCI Parity Error!
Press F1 To Continue F2 To reboot .....
PCI Parity Error!
Press F1 To Continue F2 To reboot .....


the F1 and F2 keys do not work, then I've switch my PC manual off and on. :worried_anim:

Edit:
My speaker makes a duration-sound-error during the kernel panic.





Also tagged with one or more of these keywords: Mountain Lion, AMD, legacy kernel, x64_86, ssse3, ssse3 emulator


5 user(s) are reading this topic

1 members, 3 guests, 1 anonymous users


© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy