Jump to content

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


  • Please log in to reply
605 replies to this topic

#41
spakk

spakk

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

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,818 posts
  • Gender:Male
  • Location:português
with Lion 10.7.4 and Lion 10.7.5 with: lion-test arch = x86_64 -v-f it hangs on kernel is LP64, no KP!

Edited by spakk, 23 December 2012 - 01:34 AM.


#42
Deltac0

Deltac0

    InsanelyMac Sage

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

with Lion 10.7.4 and Lion 10.7.5 with: lion-test arch = x86_64 -v-f it hangs on kernel is LP64, no KP!


Yep, because the kernel doesn't patch CPUIDs. Good night then, posted this from my bed with my phone, I'm too addicted to this forum. :D

EDIT: Sinetek, could you do your magical CPUID patches with my Lion diff, it could maybe work. :)

#43
spakk

spakk

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

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

Yep, because the kernel doesn't patch CPUIDs. Good night then, posted this from my bed with my phone, I'm too addicted to this forum. :D

EDIT: Sinetek, could you do your magical CPUID patches with my Lion diff, it could maybe work. :)


here is the new lion-test Kernel from Deltac0 click me

Edited by spakk, 23 December 2012 - 02:08 PM.


#44
Deltac0

Deltac0

    InsanelyMac Sage

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

here is the new lion-test Kernel from Deltac0 click me

@Deltac0, can you use from agner's website the tool of cpuid to use for that? sorry if I ask stupid question
agner's website vcpuid or this is bull {sh_it} what I think?


I think that is totally unrelevant to OS X. :D It has exe files inside that zip... No idea what you could do with those. :)

#45
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,614 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
I got the patch done but I can't build it... (Have Xcode 4.5.2 and needs 3.2.6 or 4.1).
Somebody with the necessary tools: please build it...
Patch is attached below...
Make it with the following command (for building x86 + x64 version)
make ARCH_CONFIGS="I386 X86_64" KERNEL_CONFIGS=RELEASE install
Thanks... next you could test...

Attached Files



#46
Deltac0

Deltac0

    InsanelyMac Sage

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

I got the patch done but I can't build it... (Have Xcode 4.5.2 and needs 3.2.6 or 4.1).
Somebody with the necessary tools: please build it...
Patch is attached below...
Make it with the following command (for building x86 + x64 version)

make ARCH_CONFIGS="I386 X86_64" KERNEL_CONFIGS=RELEASE install
Thanks... next you could test...


Compiling! :) What is that "install" in the kernel_configs? :D I've always used just release

#47
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,614 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
install puts the built kernel (universal) under BUILD/dst/mach_kernel

#48
Deltac0

Deltac0

    InsanelyMac Sage

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

install puts the built kernel (universal) under BUILD/dst/mach_kernel


Oh... :D

Your diff had few problems with tsc.c, but I think I managed to fix them. :)
Accidentally compiled first without the install flag, but now we have 3 versions. :D

anv_lion_32 = i386 http://www.solidfile...m/d/0c12bdfee2/
anv_lion_64 = x86_64 http://www.solidfile...m/d/b14ddd3c18/
anv_lion_32_64 = i386 & x86_64 hybrid http://www.solidfile...m/d/15538e6525/

#49
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,614 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
And? How do they work?
Please test and report back... :D

#50
Deltac0

Deltac0

    InsanelyMac Sage

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

And? How do they work?
Please test and report back... :D


Don't have Lion on my machine atm.. waiting for other tests :)

#51
instant idiot

instant idiot

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 182 posts
  • Gender:Male
Hold on, testing soon!

anv_32_64 -F -v arch=x86_64 npci=0x3000
Kernel is LP64!!!!1!111!

anv_32_64 -F -v arch=i386 -legacy npci=0x3000
One moment please...
Boots straight to desktop. I would be posting from it, but Lnx2Mac's Ethernet driver isn't playing nice for some reason.

#52
Deltac0

Deltac0

    InsanelyMac Sage

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

Hold on, testing soon!

anv_32_64 -F -v arch=x86_64 npci=0x3000
Kernel is LP64!!!!1!111!

anv_32_64 -F -v arch=i386 -legacy npci=0x3000
One moment please...
Boots straight to desktop. I would be posting from it, but Lnx2Mac's Ethernet driver isn't playing nice for some reason.


I think the kernel thinks we are stupid or something... Why can't he understand that we already know that he is LP64... :D
No idea what causes this, probably the launchd again.

#53
spakk

spakk

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

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,818 posts
  • Gender:Male
  • Location:português
Test with Lion 10-75 with:

anv_32_64 -v -f hangs on: Kernel is LP64
anv_32_64 -s hangs on: Kernel is LP64
anv_32_64 -enable_ssse3emu busratio=17 cpus=1 usekernelcache=no -v -f hangs on: Kernel is LP64

anv_lion_32 -v -f hangs on: BSD root: disk0s3, major 14, minor 3
jnl: unknown-dev: journal start / end pointers reset! (jnl 0x7792e60; s 0x1e3a00 0x1e3a00)

anv_lion_32 -s hangs on: BSD root: disk0s3, major 14, minor 3
jnl: unknown-dev: journal start / end pointers reset! (jnl ...................................)

anv_lion_32 -enable_ssse3emu busratio=17 cpus=1 usekernelcache=no -v -f hangs on: BSD root: disk0s3, major 14, minor 3
jnl: unknown-dev: journal start / end pointers reset! (jnl ..............)

anv_lion_64 -v -f hangs on: Kernel is LP64
anv_lion_64 -s hangs on: Kernel is LP64
anv_lion_64 -enable_ssse3emu busratio=17 cpus=1 usekernelcache=no -v -f hangs on: Kernel is LP64


I'm testing now with Lion 10.7.2, follow results.

#54
spakk

spakk

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

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,818 posts
  • Gender:Male
  • Location:português
Test with Lion 10-72 with:

anv_32_64 -v -f Kernel Panic /sbin/launchd failed. errno .......:3550
anv_32_64 -s Kernel Panic /sbin/launchd failed. errno .......:3550
anv_32_64 -enable_ssse3emu busratio=17 arch=x86_64 cpus=1 usekernelcache=no -v -f Kernel-Panic: BlackScreen goes blank and loud beep sound!!
anv_lion_32 -v -f Kernel Panic /sbin/launchd failed. errno .......:3550
anv_lion_32 arch=x86_64 -s Kernel Panic /sbin/launchd failed. errno .......:3550
anv_lion_32 -enable_ssse3emu arch=i386 busratio=17 cpus=1 usekernelcache=no -v -f
Kernel Panic /sbin/launchd failed. errno .......:3550

anv_lion_64 -v -f Kernel Panic /sbin/launchd failed. errno .......:3550
anv_lion_64 -s Kernel Panic /sbin/launchd failed. errno .......:3550
anv_lion_64 -enable_ssse3emu cpus=1 arch=x86_64 -v -f Kernel-Panic:Screen goes blank many fragments on the screen, similar to pixel errors, a loud beep sound!!!



PS: I think that the basic idea of the kernel must be rebuilt. It is indeed good to know that the kernel has created the Bronzovka for Lion has sufficient service with its 32-bit, but we come as no step further. We're always in the same trap !!!!

#55
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,614 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
Gonna check something later.
Apparently it needs to be completely rebuilt for x64...
Will be for tomorrow though...

#56
Deltac0

Deltac0

    InsanelyMac Sage

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

Gonna check something later.
Apparently it needs to be completely rebuilt for x64...
Will be for tomorrow though...


What needs to be rebuilt, the kernel or launchd? :D
Good luck with testing! :)

#57
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,614 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
I think the kernel blocks launchd for some reason...
The other possibility is dyld checks it code signature (believe they added that piece of code since 10.7) so it might need patching...
Hopefully not launchd as it isn't easy to build one...

#58
spakk

spakk

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

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,818 posts
  • Gender:Male
  • Location:português
Here's an other Lion kernel from our friends chriss1111 from Canada, please test this kernel and deposit them here your resultative.

BOOT USB MAC OS X LION (AMD-PC) CHRIS1111 with Lion legacy_kernel

or only Kernel:

chris1111 Lion legacy_kernel



we want to know from you how this test kernel runs with your hardware. Please write a short statement to compare with the last Andy's test kernel.

Thanks for your help.

Edited by spakk, 25 December 2012 - 04:32 PM.


#59
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

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

Hold on, testing soon!

anv_32_64 -F -v arch=x86_64 npci=0x3000
Kernel is LP64!!!!1!111!

anv_32_64 -F -v arch=i386 -legacy npci=0x3000
One moment please...
Boots straight to desktop. I would be posting from it, but Lnx2Mac's Ethernet driver isn't playing nice for some reason.

What if we make the Lion launchd 32-bit only?
ditto -arch i386 /sbin/launchd <tmp_path>/launchd
Would do it (in creating a 32-bit only launchd)...
If it can boot in 32-bit only it may give us a way to do it this way...
note: backup launchd first...
Test with both arch=i386 -force64 and arch=x86_64 (-force64)

#60
Deltac0

Deltac0

    InsanelyMac Sage

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

What if we make the Lion launchd 32-bit only?
ditto -arch i386 /sbin/launchd <tmp_path>/launchd
Would do it (in creating a 32-bit only launchd)...
If it can boot in 32-bit only it may give us a way to do it this way...
note: backup launchd first...
Test with both arch=i386 -force64 and arch=x86_64 (-force64)


So the problem is that kernel can't launch 64-bit processes? :o
Clever solution, even if it doesn't work. I must admit that I admire your wisdom. :)

EDIT: Lion 10.7 myHack usb with AnV kernel: Kernel is LP64.
32-bit only launchd is impossible to make, only x86_64 in the vanilla launchd.
I will try to patch the dyld and try i386 launchd from SL.





0 user(s) are reading this topic

0 members, 0 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