Edited by spakk, 23 December 2012 - 01:34 AM.
Lion kernel testing on AMD (don't ask help here: use the Help Topic)
Started by ham4ever, Dec 16 2012 11:10 PM
551 replies to this topic
#41
Posted 23 December 2012 - 01:25 AM
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!
#42
Posted 23 December 2012 - 01:45 AM
spakk, on 23 December 2012 - 01:25 AM, said:
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.
EDIT: Sinetek, could you do your magical CPUID patches with my Lion diff, it could maybe work.
#43
Posted 23 December 2012 - 12:42 PM
Deltac0, on 23 December 2012 - 01:45 AM, said:
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. 
EDIT: Sinetek, could you do your magical CPUID patches with my Lion diff, it could maybe work.
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
Posted 23 December 2012 - 01:48 PM
#45
Posted 23 December 2012 - 10:00 PM
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)
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 installThanks... next you could test...
Attached Files
#46
Posted 23 December 2012 - 10:08 PM
Andy Vandijck, on 23 December 2012 - 10:00 PM, said:
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)
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 installThanks... next you could test...
Compiling!
#47
Posted 23 December 2012 - 10:13 PM
install puts the built kernel (universal) under BUILD/dst/mach_kernel
#48
Posted 23 December 2012 - 10:46 PM
Andy Vandijck, on 23 December 2012 - 10:13 PM, said:
install puts the built kernel (universal) under BUILD/dst/mach_kernel
Oh...
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.
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
Posted 23 December 2012 - 10:54 PM
And? How do they work?
Please test and report back...
Please test and report back...
#50
Posted 23 December 2012 - 11:07 PM
#51
Posted 23 December 2012 - 11:21 PM
anv_32_64 -F -v arch=x86_64 npci=0x3000Kernel is LP64!!!!1!111!
anv_32_64 -F -v arch=i386 -legacy npci=0x3000
Boots straight to desktop. I would be posting from it, but Lnx2Mac's Ethernet driver isn't playing nice for some reason.
#52
Posted 23 December 2012 - 11:46 PM
instant idiot, on 23 December 2012 - 11:21 PM, said:
anv_32_64 -F -v arch=x86_64 npci=0x3000Kernel is LP64!!!!1!111!
anv_32_64 -F -v arch=i386 -legacy npci=0x3000
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...
No idea what causes this, probably the launchd again.
#53
Posted 24 December 2012 - 12:12 AM
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.
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
Posted 24 December 2012 - 01:10 AM
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 !!!!
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
Posted 24 December 2012 - 07:58 AM
Gonna check something later.
Apparently it needs to be completely rebuilt for x64...
Will be for tomorrow though...
Apparently it needs to be completely rebuilt for x64...
Will be for tomorrow though...
#56
Posted 25 December 2012 - 12:38 AM
#57
Posted 25 December 2012 - 11:53 AM
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...
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
Posted 25 December 2012 - 03:51 PM
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.
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
Posted 25 December 2012 - 04:27 PM
instant idiot, on 23 December 2012 - 11:21 PM, said:
anv_32_64 -F -v arch=x86_64 npci=0x3000Kernel is LP64!!!!1!111!
anv_32_64 -F -v arch=i386 -legacy npci=0x3000
Boots straight to desktop. I would be posting from it, but Lnx2Mac's Ethernet driver isn't playing nice for some reason.
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
Posted 25 December 2012 - 05:03 PM
Andy Vandijck, on 25 December 2012 - 04:27 PM, said:
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)
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?
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



Sign In
Create Account









