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
6224 replies to this topic

#601
spakk

spakk

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

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,822 posts
  • Gender:Male
  • Location:português
I'm still in the installation of Snow Leopard. the installation proceeds very annoying, had many setbacks, I'm almost done and still needs to update 10.6.8. Then I can start the tests. As soon as I have a results I will inform you .

#602
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,894 posts
  • Gender:Male
Hello, folks!

I'm glad to present the new beta revision of my 12.0 kernel for AMD machines. It owes much to the hard work of sinetek a.k.a. slackware: i took his ssse3 emulator from his Snow Leopard kernel and add it to the commpage of my own. I can't stop stressing how important was his achievement, and he deserves all credit for what he's done.

That's my first try. Besides adding the emulator's header and C source, i altered the commpage.c file to actually enable the emulator. What i did is quite simple: i just replaced the sse3emu calls in the commpage.c for ssse3emu calls. So, if your CPU is old enough to not to have sse3 support, it won't even begin to work. Sorry for it, but remember - it's just another beta and it's not meant to work at all, but to give us answers, so hopefully we get ways to better patches and proper emulator implementation.

Add the kernel to the root and boot with the flag sinactic. Report your results, with pics and vids if possible. Later i'll add the diffs for this new beta, so you guys can make experiments f your own. Good luck!

Attached File  sinactic.zip   3.33MB   32 downloads

Here's the diff:


Attached File  sinactic.diff.zip   1.2MB   7 downloads

#603
instant idiot

instant idiot

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 182 posts
  • Gender:Male
I'll test that soon with a brand new installation as soon as possible. Glad to hear an SSSE3 emulator now exists! :thumbsup_anim:

#604
AkimoA

AkimoA

    AMD

  • Local Moderators
  • 213 posts
  • Gender:Male
  • Location:Black Forest (GER)
well i had a backup of my MBP so i gave it a shot by swapping Kernels here the result

tried a couple of flags but no sucess .... as asumed





Posted Image

#605
mac_carol

mac_carol

    InsanelyMac Geek

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

Hello, folks!

I'm glad to present the new beta revision of my 12.0 kernel for AMD machines. It owes much to the hard work of sinetek a.k.a. slackware: i took his ssse3 emulator from his Snow Leopard kernel and add it to the commpage of my own. I can't stop stressing how important was his achievement, and he deserves all credit for what he's done.

That's my first try. Besides adding the emulator's header and C source, i altered the commpage.c file to actually enable the emulator. What i did is quite simple: i just replaced the sse3emu calls in the commpage.c for ssse3emu calls. So, if your CPU is old enough to not to have sse3 support, it won't even begin to work. Sorry for it, but remember - it's just another beta and it's not meant to work at all, but to give us answers, so hopefully we get ways to better patches and proper emulator implementation.

Add the kernel to the root and boot with the flag sinactic. Report your results, with pics and vids if possible. Later i'll add the diffs for this new beta, so you guys can make experiments f your own. Good luck!

Attached File  sinactic.zip   3.33MB   32 downloads

Here's the diff:


Attached File  sinactic.diff.zip   1.2MB   7 downloads




Tested on with ML 10.8.0 on AMD P-II x4 965



1. flags: sinactic arch=i386 busratio=17 -f -v

result: instant reboot



2. flags: sinactic busratio=17 -f -v

result: KP

Posted Image

#606
zchef2k

zchef2k

    InsanelyMac Protégé

  • Members
  • PipPip
  • 79 posts

well i had a backup of my MBP so i gave it a shot by swapping Kernels here the result

tried a couple of flags but no sucess .... as asumed





Posted Image

Tested on with ML 10.8.0 on AMD P-II x4 965



1. flags: sinactic arch=i386 busratio=17 -f -v

result: instant reboot



2. flags: sinactic busratio=17 -f -v

result: KP

Posted Image


Does anyone actually read the forum?

fips_mode=0

AMD's SSE3 interferes with the checking and loading of corecrypto. I know this because I have masked the instruction in ESXi and it loads without error.

-Z

#607
AkimoA

AkimoA

    AMD

  • Local Moderators
  • 213 posts
  • Gender:Male
  • Location:Black Forest (GER)
:wallbash:

will do another test later on tx for pointing it out ;)

#608
Shaneee

Shaneee

    AMD Dev Tester

  • Local Moderators
  • 1,002 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Web Design. OS X. Music.
Just restoring install to USB. Will post back later on what happens :ninja:

#609
mac_carol

mac_carol

    InsanelyMac Geek

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

Does anyone actually read the forum?

fips_mode=0

AMD's SSE3 interferes with the checking and loading of corecrypto. I know this because I have masked the instruction in ESXi and it loads without error.

-Z



flags: sinactic fips_mode=0 busratio=17 -f -v

result: freeze


Posted Image

#610
spakk

spakk

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

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

Tested on with ML 10.8.0 on AMD P-II x4 965



1. flags: sinactic arch=i386 busratio=17 -f -v

result: instant reboot

2. flags: sinactic busratio=17 -f -v

result: KP


Please test this boot flag:
sinactic arch=x86 usekernelcache=no maxmem=4096 busratio=17 -v -f

#611
mac_carol

mac_carol

    InsanelyMac Geek

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

Please test this boot flag:
sinactic arch=x86 usekernelcache=no maxmem=4096 busratio=17 -v -f


arch=x86 ???

if what you mean was arch=i386

the kernel won't run in 32-bits mode
it'll give me instant reboot


but with flags: sinactic arch=x86_64 usekernelcache=no maxmem=4096 busratio=17 -v -f

it gave me the same KP

Posted Image

#612
spakk

spakk

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

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,822 posts
  • Gender:Male
  • Location:português
Sorry but I can not see any changes from the first and the second conatic-kernel with the current modified conatic / sinetek kernel. It is the same panic message.


Edit 1:
akimoa what do you think?

Edit 2:
What about boot flag: -force64 and -legacy? have you tested it?

#613
Shaneee

Shaneee

    AMD Dev Tester

  • Local Moderators
  • 1,002 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Web Design. OS X. Music.
I'm just getting an instant reboot. Tried all kinds of boot flags but nothing...

#614
wastez

wastez

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 159 posts
  • Gender:Male

Sorry but I can not see any changes from the first and the second conatic-kernel with the current modified conatic / sinetek kernel. It is the same panic message.


Edit 1:
akimoa what do you think?

Edit 2:
What about boot flag: -force64 and -legacy? have you tested it?


-legacy will not work because it is just a 64 bit kernel.
-force64 makes also no sense, i think i don´t have to tell you why ;)

#615
mac_carol

mac_carol

    InsanelyMac Geek

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

Edit 2:
What about boot flag: -force64 and -legacy? have you tested it?



as I told you before,
the kernel won't let me running the osx in 32-bits (arch=i386 -legacy / arch=i386 -force64)
It'll give me instant reboot

#616
spakk

spakk

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

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

as I told you before,
the kernel won't let me running the osx in 32-bits (arch=i386 -legacy / arch=i386 -force64)
It'll give me instant reboot

-legacy will not work because it is just a 64 bit kernel.
-force64 makes also no sense, i think i don´t have to tell you why ;)


how was that? with can't see the wood for the trees.... :whistle: I apologize and thanks for the information
:compress:

#617
Sinetek

Sinetek

    InsanelyMac Sage

  • Coders
  • 333 posts
  • Gender:Male
howdy,

thanks connactic for doing this. huge timesaver. i've begun dorking around with a 10.8 kernel actually, so an x64 SSSE3 emu is in the works. The pictures you guys posted are very helpful and they clearly show corecrypto crashing because of a missing instruction, presumably SSSE3.

I'm in deep {censored} with calculus finals, so don't expect much this week however XD
TODO: add my own credits to the files i've written, lol

-- Sinetek

*dons the thinking hat*

connactic, there's a few technical details i'd want to precise out,
the commpage has to be filled in, maybe it's best to do so unconditionally? the actual call to the commpage occurs in idt.s/idt64.s, so if you don't load the commpage but still leave the idt modified, then you'll get a hard reboot on any invalid instruction.
If run on a cpu with SSSE3, then the routines will never be called and no performance hit incurs.

another thing, there is super magic voodoo that must be done at compile time in order for the commpage binary to work.. this is because of apple's linker.. do a search for "ssse3emu.o" in the makefiles to see how it's done, or if you don't get it, ask me then

*doffs the thinking hat*

#618
zchef2k

zchef2k

    InsanelyMac Protégé

  • Members
  • PipPip
  • 79 posts

howdy,

The pictures you guys posted are very helpful and they clearly show corecrypto crashing because of a missing instruction, presumably SSSE3.


My CPUs do not have SSSE3 and load corecrypto fine. For the 3rd time, it's the SSE3 instruction causing the issue, not the lack of SSSE3.

Specific CPUID mask to allow corecrypto to load successfully is:

Level 1 ECX
---- ---- ---- ---- ---- ---- ---- ---0

Toggling CPUID masks in VMWare got me at least somewhere. This came from masking AMD's SSE3 fature. No more KP on corecrypto. Still hangs though as it does with fips_mode=0.

Posted Image



#619
Sinetek

Sinetek

    InsanelyMac Sage

  • Coders
  • 333 posts
  • Gender:Male
interesting... so I assume the finder runs on 10.7 by masking SSE3 too?
That's kind of a chore, need to patch the kext to mask out this bit ...

#620
gils83

gils83

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,616 posts
  • Gender:Male
  • Location:France
  • Interests:le soleil du var et l'informatique
)-





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


10 user(s) are reading this topic

2 members, 8 guests, 0 anonymous users


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