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

#961
spakk

spakk

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

  • Local Moderators
  • 2,016 posts
  • Gender:Male
  • Location:marocain
Errors: errno in UNIX programs
Working with the standard error mechanism

http://www.ibm.com/d...-errnovariable/

#962
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,691 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
EACCESS = 13 = Permission denied X-)
Somewhere it blocks launchd...
I'll need to check... I have a vague idea what it might be...Need to investigate though...

EACCESS = 13 = Permission denied X-)
Somewhere it blocks launchd...
I'll need to check... I have a vague idea what it might be...Need to investigate though...

#963
SS01

SS01

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 265 posts
  • Gender:Male
  • Location:Ottawa
Is it just my web browser, or are all of Andy's posts coming out doubled?

#964
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,691 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
Probably just this damn android webkit based browser X-)
I get that sometimes...

#965
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,691 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
I remade the kernel...
It no longer panics on launchd... (but does print if exec fails)
I also always put CS_VALID in the launch of Mach-O files...
It also doesn't check exec permissions...
You can disable launchd with -nolaunchd boot argument...
EDIT: -nolaunchd no luck Kernel is LP64... even on Intel...
Gonna test myself too...
The new mods are in the patch in kern_exec.c (and can be applied to Lion too)

Attached Files



#966
Deltac0

Deltac0

    InsanelyMac Sage

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

I remade the kernel...
It no longer panics on launchd... (but does print if exec fails)
I also always put CS_VALID in the launch of Mach-O files...
It also doesn't check exec permissions...
You can disable launchd with -nolaunchd boot argument...
Gonna test myself too...
The new mods are in the patch in kern_exec.c (and can be applied to Lion too)


Looking pretty damn good! :)
exec_check_permissions... xD

#967
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,691 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
Needs more work... X-(

Building another... I hope this one works...

#968
Deltac0

Deltac0

    InsanelyMac Sage

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

Needs more work... X-(

Building another... I hope this one works...


:o

I was too slow to test even the 1st one... What was the problem with it? :D
Kernel is LP64?

#969
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,691 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
No even on intel it couldn't exec launchd...
I think I fixed it...
I've removed the error checks from check function.
Think it will fire now...

Kernel installed... testing...

#970
Deltac0

Deltac0

    InsanelyMac Sage

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

No even on intel it couldn't exec launchd...
I think I fixed it...
I've removed the error checks from check function.
Think it will fire now...



:) Sounds good. Btw, could this work:



static int
exec_check_permissions(struct image_params *imgp)
{
return false; //Would this work?
struct vnode *vp = imgp->ip_vp;

I mean that return false. Then it wouldn't return error or anything else?

#971
spakk

spakk

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

  • Local Moderators
  • 2,016 posts
  • Gender:Male
  • Location:marocain
in this moment i repair my Mountain Lion HDD with DiskWarrior, i think in ten minutes i can test it

#972
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,691 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
This one succeeds...
Upload in a minute

#973
Deltac0

Deltac0

    InsanelyMac Sage

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

This one succeeds...
Upload in a minute


Raping my F5 already... ;)

#974
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,691 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...

Raping my F5 already... ;)

Here it is...
It works fine with my Intel... please test on AMD.
Last BOTD (Build of the day lol)
Just tested the codesig work... stripped the codesig from the bash binary and put it in testsh...
It worked... Lets hope it does the same for dyld...

Attached Files



#975
Deltac0

Deltac0

    InsanelyMac Sage

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

Here it is...
It works fine with my Intel... please test on AMD.
Last BOTD (Build of the day lol)
Just tested the codesig work... stripped the codesig from the bash binary and put it in testsh...
It worked... Lets hope it does the same for dyld...


I have wrong IOPCIFamily.kext and some other things too, so it just gave backtrace IOUSBFamily & IOPCIFamily.
But it got past Kernel is LP64 I think! :)
I'm trying to find the right kexts so I can see if it passes launchd! :)

#976
spakk

spakk

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

  • Local Moderators
  • 2,016 posts
  • Gender:Male
  • Location:marocain
The first test with ML 10.8 with boot flag: -v, I get past kernel is LP64, it lists me my RTL81xx and hangs on: en0: start returns rv = true
It may also be that I have the bottle ML version, therefore.
The kernel boots very good and clean :king:

#977
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,691 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...

The first test with ML 10.8 with boot flag: -v, I get past kernel is LP64, it lists me my RTL81xx and hangs on: en0: start returns rv = true
It may also be that I have he bottle ML version, therefore.
The kernel boots very good and clean :king:

Did you test with patched dyld?

#978
spakk

spakk

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

  • Local Moderators
  • 2,016 posts
  • Gender:Male
  • Location:marocain
The second test with ML 10.8.3 with boot flag: -v, that boots much further than the first test, but the connection I get a KP with Bieb-Sound

the third Test with boot flag: arch=x86_64 busratio=20 maxmem=4096 -s that boots much further than the first test, but the connection I get a KP with Bieb-Sound and Black screen

all Tests with Phenom II X 6 1100T

Tomorrow I'll install mountain Lion 10.8.2 than I will run the test once more.

Did you test with patched dyld?


Edit:
sorry , only with diff no dylid

My eyes are now round ball, I bring some messed sun, where I find the dyld here?

#979
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,973 posts
  • Gender:Male
Hi, Andy!

With which version of Mountain Lion your latest kernel is supposed to work with? 10.8.0 or 10.8.2?

Best regards.

#980
spakk

spakk

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

  • Local Moderators
  • 2,016 posts
  • Gender:Male
  • Location:marocain
yes I found the dyld

with 10.8.2 theconnatic





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


4 user(s) are reading this topic

0 members, 2 guests, 1 anonymous users


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