Jump to content

fluid | fixed

Mountain Lion kernel testing on AMD (don't ask help here: use the Help Topic)

Mountain Lion AMD legacy kernel x64_86 ssse3 ssse3 emulator

  • Please log in to reply
2465 replies to this topic

#581
Sinetek

Sinetek

    InsanelyMac Geek

  • Coders
  • 122 posts
  • Gender:Male
  • Location:Montreal
Thanks for the warm welcome :pirate2:
Since there is interest in a test build, here it is.Run the enclosed testcase program and let me know what fails (about 4 or so..)
http://www.2shared.c...ernelssse3.html

EDIT: Forgot to add, this is for 10.6.8 and will run 32bit only for now.. calling conventions are a bit different on 64 i think


-- Sinetek

#582
IiTz ShAnE

IiTz ShAnE

    OSx86 Enthusiast

  • Donators
  • 539 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Hackintosh, Hardware Mods, Car Mechanics

View Postslackware, on 29 November 2012 - 05:29 PM, said:

Thanks for the warm welcome :pirate2:
Since there is interest in a test build, here it is.Run the enclosed testcase program and let me know what fails (about 4 or so..)
http://www.2shared.c...ernelssse3.html

EDIT: Forgot to add, this is for 10.6.8 and will run 32bit only for now.. calling conventions are a bit different on 64 i think


-- Sinetek

Can you upload to MediaFire or somewhere else? I can't download from 2shared

Thanks

#583
Deltac0

Deltac0

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 263 posts
  • Gender:Male
  • Location:Finland
  • Interests:Caffeine, OS X, AMD Hackintosh

View Postslackware, on 28 November 2012 - 05:29 PM, said:

Hi there !

I am pleased to announce that I have developped a SSSE3 (yes, 3 S') emulator for the XNU kernel.
Right now I am working on finishing up this work on the 10.6.8 kernel, but it should be easily portable to the newer kernels.

The plan would be to work upwards and integrate it to 10.7.x and then 10.8 =)
I made a test case program and the core emulation routines work, but there is a lot of integration work to do still. I am posting here because I would like to get in touch with people with strong coding/technical skills! In particular, I would like to also overhaul some AMD parts of the current patches.

So if you are interested in collaborating with me, let me know!

-- Sinetek   (Also, I'd be happy to communicate in English/Français/Deutsch)



I'm really happy to hear someone could finally make it! :)
I have few test rigs here for some serious testin', now downloading your kernel and trying to boot the 10.6.8. :)

See my sig for my 2 comps, I also have a few older Intel laptops and Celeron / Pentium 4 desktops to test with. :)

Spoiler



I hope it is okay to upload a mirror. I'll remove it if you ask.

#584
spakk

spakk

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 804 posts
  • Gender:Male
  • Location:Germany

View Postslackware, on 29 November 2012 - 05:29 PM, said:

Thanks for the warm welcome :pirate2:
Since there is interest in a test build, here it is.Run the enclosed testcase program and let me know what fails (about 4 or so..)
http://www.2shared.c...ernelssse3.html

EDIT: Forgot to add, this is for 10.6.8 and will run 32bit only for now.. calling conventions are a bit different on 64 i think


-- Sinetek

hi Slackware,

Thank you for uploading
I must first install snow leopard so I can test your work. I will contact you then.

#585
spakk

spakk

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 804 posts
  • Gender:Male
  • Location:Germany
Hi Gils, do you have snow leopard 10.6.8? if so, can you test the kernel?, please?

#586
gils83

gils83

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 329 posts
  • Gender:Male
  • Location:France
  • Interests:le soleil du var et l'informatique

View PostDeltac0, on 29 November 2012 - 07:33 PM, said:

I'm really happy to hear someone could finally make it! :)
I have few test rigs here for some serious testin', now downloading your kernel and trying to boot the 10.6.8. :)

See my sig for my 2 comps, I also have a few older Intel laptops and Celeron / Pentium 4 desktops to test with. :)


I hope it is okay to upload a mirror. I'll remove it if you ask.


#587
spakk

spakk

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 804 posts
  • Gender:Male
  • Location:Germany
Hi Gils,

can you test whether SSSE3 emulator works?

Gils, but the CPU FX6100 is not the right test-CPU to test the SSSE3 emulator, your CPU no needs SSSE3 emulator.

#588
gils83

gils83

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 329 posts
  • Gender:Male
  • Location:France
  • Interests:le soleil du var et l'informatique

View Postspakk, on 29 November 2012 - 11:07 PM, said:

Hi Gils,

can you test whether SSSE3 emulator works?

Gils, but the CPU FX6100 is not the right test-CPU to test the SSSE3 emulator, your CPU no needs SSSE3 emulator.


#589
spakk

spakk

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 804 posts
  • Gender:Male
  • Location:Germany
Hi  IiTZ ShAnE , have you done the test on your AMD Athlon II X2? If so, with what result?

View Postgils83, on 29 November 2012 - 11:26 PM, said:

hey !!

voici le rapport kernel_log

je ne sais pas si SSSE fonctionne mais tout les jeux d'instructions du processeur sont reconnu !!!  


http://www.envoyerce...1354231367.html


Le fichier demandé n'existe pas.

#590
gils83

gils83

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 329 posts
  • Gender:Male
  • Location:France
  • Interests:le soleil du var et l'informatique

View Postspakk, on 29 November 2012 - 11:45 PM, said:

Hi  IiTZ ShAnE , have you done the test on your AMD Athlon II X2? If so, with what result?




Le fichier demandé n'existe pas.




#591
spakk

spakk

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 804 posts
  • Gender:Male
  • Location:Germany
--->>Nov 30 00:28:45 localhost kernel[0]: Enabling SSSE3 emulator. Size 5272 should be less than 4096.

but It is important to know whether the SSSE3 emu works
Posted Imageis this a Nobel Prize assessment or a fake?Posted Image

#592
gils83

gils83

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 329 posts
  • Gender:Male
  • Location:France
  • Interests:le soleil du var et l'informatique
I think it works, as you pointed out, it is present on two lines.

il nous faut l'avis de TheConnactic .


également , je n'ai jamais vu un processeur AMD aussi bien reconnu !!??



Nov 30 00:28:45 localhost kernel[0]: CPU identification: AMD FX™-6100 Six-Core Processor

Nov 30 00:28:45 localhost kernel[0]: CPU features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH MMX FXSR SSE SSE2 HTT SSE3 PCLMULQDQ MON SSSE3 CX16 SSE4.1 SSE4.2 POPCNT AES XSAVE AVX1.0

Nov 30 00:28:45 localhost kernel[0]: HTT: 6 cores per package; 6 logical cpus per package

Nov 30 00:28:45 localhost kernel[0]: CPU extended features: SYSCALL XD 1GBPAGE EM64T LAHF RDTSCP TSCI






Slackware / Sinetek are the best !!

oups !!!


:king:









:yoji:
:soldiers:

:thumbsup_anim:

Edited by gils83, 30 November 2012 - 07:04 PM.


#593
spakk

spakk

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 804 posts
  • Gender:Male
  • Location:Germany

View Postgils83, on 30 November 2012 - 12:08 AM, said:

I think it works, as you pointed out, it is present on two lines.

il nous faut l'avis de TheConnactic .


également , je n'ai jamais vu un processeur AMD aussi bien reconnu !!??



Nov 30 00:28:45 localhost kernel[0]: CPU identification: AMD FX™-6100 Six-Core Processor

Nov 30 00:28:45 localhost kernel[0]: CPU features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH MMX FXSR SSE SSE2 HTT SSE3 PCLMULQDQ MON SSSE3 CX16 SSE4.1 SSE4.2 POPCNT AES XSAVE AVX1.0

Nov 30 00:28:45 localhost kernel[0]: HTT: 6 cores per package; 6 logical cpus per package

Nov 30 00:28:45 localhost kernel[0]: CPU extended features: SYSCALL XD 1GBPAGE EM64T LAHF RDTSCP TSCI




bye Gils, i go to bed , thx for testing

#594
gils83

gils83

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 329 posts
  • Gender:Male
  • Location:France
  • Interests:le soleil du var et l'informatique

View Postspakk, on 30 November 2012 - 12:14 AM, said:

bye Gils, i go to bed , thx for testing

bonne nuit !!!   :)

#595
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 1,738 posts
  • Gender:Male
Hello, Sinetek!

I still didn't have time to do a clean 10.6.8 installation to test your kernel properly. I'm looking forward to it.

But we have already reports of success, so congratulations!

I would ask your for the source code: i want to compile a Lion (Mountain Lion would be better, but it will have to wait for a 64-bit optimized emulator) to see if we get a functional user land with it (that is, working 64-bit apps like the Finder). Also looking forward for it.

Thank you: you're making history here.


Hi, Gilles!

Good to hear that sinetek's ssse3 kernel worked for you. Could you check for me if can open 32-bit applications? I know, i know, it's a 32-bit kernel, but if the ssse3 emulator is really working like it should, we'll have 64-bit user land.

Thank you!

#596
Deltac0

Deltac0

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 263 posts
  • Gender:Male
  • Location:Finland
  • Interests:Caffeine, OS X, AMD Hackintosh

View Postgils83, on 30 November 2012 - 12:08 AM, said:

I think it works, as you pointed out, it is present on two lines.

il nous faut l'avis de TheConnactic .


également , je n'ai jamais vu un processeur AMD aussi bien reconnu !!??



Nov 30 00:28:45 localhost kernel[0]: CPU identification: AMD FX™-6100 Six-Core Processor

Nov 30 00:28:45 localhost kernel[0]: CPU features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH MMX FXSR SSE SSE2 HTT SSE3 PCLMULQDQ MON SSSE3 CX16 SSE4.1 SSE4.2 POPCNT AES XSAVE AVX1.0

Nov 30 00:28:45 localhost kernel[0]: HTT: 6 cores per package; 6 logical cpus per package

Nov 30 00:28:45 localhost kernel[0]: CPU extended features: SYSCALL XD 1GBPAGE EM64T LAHF RDTSCP TSCI






Deltac0 is the best !!





:yoji:
:soldiers:

:thumbsup_anim:
Don't thank me, thank Slackware / Sinetek
;)
Using Sinetek's kernel with 10.6.8 AMD Athlon 4000+ -> Boots well. However, testcase -> "Illegal instruction", but this can be caused by missing some other instrcution sets than SSSE3. I'll try with my Phenom II 965 as soon as I get SL installed on that machine.

#597
IiTz ShAnE

IiTz ShAnE

    OSx86 Enthusiast

  • Donators
  • 539 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Hackintosh, Hardware Mods, Car Mechanics

View Postspakk, on 29 November 2012 - 11:45 PM, said:

Hi  IiTZ ShAnE , have you done the test on your AMD Athlon II X2? If so, with what result?

Will test later on today, at college till the afternoon. Think progress is being made. I've been trying to port x64 kexts to work on x86 but no luck.

#598
Sinetek

Sinetek

    InsanelyMac Geek

  • Coders
  • 122 posts
  • Gender:Male
  • Location:Montreal
Okay update post,

I got rid of all the errors here, at least i have found the actual "oopses" and still have to fix them in the code.
Here's the state, to be clear,

10.6.8 Kernel.
There are 4 modes with XNU :
1.
SSSE3 is running well in >>>> 32 BITS <<<< mode. That means you boot >>> without "-force64" <<<. This does not give you the ability to run 64-bit processes however.

2.    >>>> 64 BITS <<<< in a 386 Kernel is not working at present. This will require a bit of headbanging, mostly because I have to know how that 64-bit kernel is started and how functions are called and probably fighting with the compiler (Apple's compilers, I won't start about it.......)
2.5  Right now, the SSSE3 emu doesn't get loaded up properly for 32-bit code either under this mode, but from my point of view I don't see major roadblocks. This is a bit like point 2 actually.

=== TLDR; 10.7 support in arch=i386 up to here. ===

3. For now, 64-BITS Kernel does NOT boot on my test machine, so this is obviously not going to help..... I am not sure what to do with that. A lot of the low level code seems a tiny bit different than the i386 kernel, so it could be anything really. I think it's doable given that the kernel runs on my machine.. Mobo could be a problem?
4. Running 32-bit applications from a 64-bit kernel. I don't expect roadblocks there.

=== TLDR; 10.8 support with arch=x86_64 ===


ABOUT THE SOURCE, yes,  my goal is to make the source available. Wouldn't have been able to do this without ANV/Kaitek/meklord/qoopz patches, so thanks go to them also.

take care,
-- Sinetek

#599
IiTz ShAnE

IiTz ShAnE

    OSx86 Enthusiast

  • Donators
  • 539 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Hackintosh, Hardware Mods, Car Mechanics
System booted fine using your kernel,

Nov 30 16:32:09 localhost kernel[0]: rtclock_init: Taking bus ratio path 3 (AMD Phenom)
Nov 30 16:32:09 localhost kernel[0]: CPU identification: AMD Athlon(tm) II X2 215 Processor
Nov 30 16:32:09 localhost kernel[0]: ACPI: SSDT @ 0xe7fb4840/0x0458 (v001 HPQOEM SLIC-CPC 0x00000001 AMD  0x00000001)



#600
gils83

gils83

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 329 posts
  • Gender:Male
  • Location:France
  • Interests:le soleil du var et l'informatique

View Posttheconnactic, on 30 November 2012 - 12:47 AM, said:

Hello, Sinetek!

I still didn't have time to do a clean 10.6.8 installation to test your kernel properly. I'm looking forward to it.

But we have already reports of success, so congratulations!

I would ask your for the source code: i want to compile a Lion (Mountain Lion would be better, but it will have to wait for a 64-bit optimized emulator) to see if we get a functional user land with it (that is, working 64-bit apps like the Finder). Also looking forward for it.

Thank you: you're making history here.


Hi, Gilles!

Good to hear that sinetek's ssse3 kernel worked for you. Could you check for me if can open 32-bit applications? I know, i know, it's a 32-bit kernel, but if the ssse3 emulator is really working like it should, we'll have 64-bit user land.

Thank you!

What applications 32 bit do you want I trying? I have not seen a bug application.

Quelles applications 32 bit voulez-vous que j"essayes ? je n'ai pas vu de bug application .

View PostDeltac0, on 30 November 2012 - 06:19 AM, said:

Don't thank me, thank Slackware / Sinetek
;)
Using Sinetek's kernel with 10.6.8 AMD Athlon 4000+ -> Boots well. However, testcase -> "Illegal instruction", but this can be caused by missing some other instrcution sets than SSSE3. I'll try with my Phenom II 965 as soon as I get SL installed on that machine.

I corrected





7 user(s) are reading this topic

2 members, 5 guests, 0 anonymous users


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