tokyovigilante Posted May 13, 2006 Share Posted May 13, 2006 OK, Stick in your DVD, and when it asks you to press enter to install, press F8. Type -s and press enter. once it boots to the command line, type cd /dev/disk and press tab once or twice, and post the results you get (write them down). Dont stress, I should be able to to talk you through fixing it Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-111950 Share on other sites More sharing options...
Hiro_ Posted May 13, 2006 Author Share Posted May 13, 2006 Tokyovigilante very, very thanks for the your help, i'm sincerely despaired, but i believe than you go it help me. Tokyovigilante in the start i press F8 and type -s and nothing happens, it continue rebooting without it stop. Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112109 Share on other sites More sharing options...
staticuxo Posted May 13, 2006 Share Posted May 13, 2006 tokyo vigilante, please continue with your instructions, i'm stuck too. and I KNOW how to hex edit, i do it all the time. my system just boots and then reboots. thanks! Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112141 Share on other sites More sharing options...
staticuxo Posted May 13, 2006 Share Posted May 13, 2006 nevermind! i booted into windows and replaced it with the one from the dvd, then hex edited it again on windows and it worked i'm not sure what i did wrong in the osx hex editor, but atleast it worked! i can now restart and shutdown thanks guys! Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112148 Share on other sites More sharing options...
Deviant0ne Posted May 13, 2006 Share Posted May 13, 2006 Works great. Thanks! Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112175 Share on other sites More sharing options...
fokker Posted May 13, 2006 Share Posted May 13, 2006 I used 0xed before and the resulting file was 2 bytes longer than the original kernel, result: reboot at boot. I have a backup so no problem. Keep an eye at the file size, it have to be the exact byte size of the original kernel (4023856 bytes). Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112202 Share on other sites More sharing options...
tokyovigilante Posted May 13, 2006 Share Posted May 13, 2006 @fokker/staticuxo: Glad you got it working, I had no problems with 0xED though, just make sure you replace rather than add the changes. I try not to use Windows for these things cause it tends to not respect permissions. @DeviantOne - no problem @Junio Vitorino - You're booting from your DVD right? And pressing F8 when you see the Darwin Bootloader text right? What version of the DVD do you have? Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112283 Share on other sites More sharing options...
planetbeing Posted May 14, 2006 Share Posted May 14, 2006 Does anyone know where in the source code this piece of code gets inserted, so we'll know what to do for future kernel revisions? The bytes inserted seem to be equivalent to: mov al,0FEh out 64h,al Which flashes pin 0 on the 8042 keyboard controller which is attached to the system reset line, resulting in a cold boot. That's clever and does the trick, but I wonder what the original code tried to do. Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112372 Share on other sites More sharing options...
Hiro_ Posted May 14, 2006 Author Share Posted May 14, 2006 I have the Jas 10.4.6 full DVD installer. Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112393 Share on other sites More sharing options...
tokyovigilante Posted May 14, 2006 Share Posted May 14, 2006 I have the Jas 10.4.6 full DVD installer. Well then you should be able to boot from the DVD, press F8 and then type -s and press enter to get into single user mode. Does anyone know where in the source code this piece of code gets inserted, so we'll know what to do for future kernel revisions? The bytes inserted seem to be equivalent to: mov al,0FEh out 64h,al Which flashes pin 0 on the 8042 keyboard controller which is attached to the system reset line, resulting in a cold boot. That's clever and does the trick, but I wonder what the original code tried to do. I have no idea, but you're a champ for pointing that out. I just picked up the hack from one of the above posters and wrote it up into a guide. I'd wager it might have tried to have a chat to the EFI's power management? BTW Planetbeing I've been using your forcedeth driver for a couple of weeks now, it's fantastic, thanks! I don't suppose you have any plans to work the same magic on the sata_nv driver for nForce SATA support? I had a look at the source but it was far over my head. Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112538 Share on other sites More sharing options...
free30 Posted May 14, 2006 Share Posted May 14, 2006 8. Click in the box labelled offset. Type 8D2B0 9. The cursor will move to the correct line. On this offset i couldnt find "EB FE 90 90" Im on Jas 10.4.6 dvd this is my 8D2B0 offset lien 00 EB 18 C7 04 24 D0 F4 3B 00 E8 49 2A F9 FF C7 04 24 00 00 00 00 E8 B1 Shouldn't that be offset 8D2B8 or 8D2BB or yours all have been mentioned. Is this for differnt versions EDIT ok thats ED2B8 Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112561 Share on other sites More sharing options...
belgrano Posted May 14, 2006 Share Posted May 14, 2006 Shouldn't that be offset 8D2B8 or 8D2BB or yours all have been mentioned. Is this for differnt versions EDIT ok thats ED2B8 In my case is 0x8D2B0. Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112574 Share on other sites More sharing options...
tokyovigilante Posted May 14, 2006 Share Posted May 14, 2006 In my case is 0x8D2B0. Sorry the 8D2B0 was a typo, should be 8D2B8. The offset is just a number encoded in Hex (Base 16) so if you used 8D2B0 you should have only been 8 bytes off and able to find the correct place to replace anyway I hope you guys are backing up those original kernels... How are you getting on Junio? Did you get into single-user mode from your DVD? Post the results of ls /dev | grep disk if you do. Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112748 Share on other sites More sharing options...
planetbeing Posted May 15, 2006 Share Posted May 15, 2006 Another technical note: Disassembling the existing instructions at that location yields (the stupid screenshot confused me because it made the B look like a D): jmp 100h nop nop The nops (no-op) do nothing, of course, and were safe to overwrite. There was actually one more nop before what is presumably more code... I don't know exactly what is in 100h right now, but I'll try to find out later. Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112918 Share on other sites More sharing options...
tokyovigilante Posted May 15, 2006 Share Posted May 15, 2006 Thanks for that planetbeing, always good to have someone who knows what they're talking about Hey Junio, if you absolutely can't fix your kernel, reinstall Mac OS to a DIFFERENT disk or partition, and you'll be able to mount the volume your documents are on to recover them. Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112924 Share on other sites More sharing options...
planetbeing Posted May 15, 2006 Share Posted May 15, 2006 Thanks for that planetbeing, always good to have someone who knows what they're talking about I'm flattered you think so, but no, I'm mostly stumbling in the dark. BTW, in response to what you said about nForce SATA earlier... I actually made a post about it in this forum (check in whatever the relevant thread is). It's basically a technical summary of my discoveries. I'm still investigating the problem, so it's nowhere close to a solution. Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112934 Share on other sites More sharing options...
tokyovigilante Posted May 15, 2006 Share Posted May 15, 2006 I'm flattered you think so, but no, I'm mostly stumbling in the dark. You must have had far less to drink than me then... BTW, in response to what you said about nForce SATA earlier... I actually made a post about it in this forum (check in whatever the relevant thread is). It's basically a technical summary of my discoveries. I'm still investigating the problem, so it's nowhere close to a solution. Cool thanks. I ended up buying a PATA drive for OS X, was a small price to pay for the benefit of being up and running, so I'm not holding my breath. I was just curious as you seemed to have a few good ideas about it. I'll take a look at your latest posts. Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-112935 Share on other sites More sharing options...
belgrano Posted May 15, 2006 Share Posted May 15, 2006 ...I hope you guys are backing up those original kernels... .... Of course we do... some of us anyway.... Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-113048 Share on other sites More sharing options...
Shimms Posted May 15, 2006 Share Posted May 15, 2006 Guys i now have the version 10.4.6 installed in my computer and now i would like of help for it do my system reboot, i have the HexEditor also, but i not know the than it do. What the file than i have than it edit and all the remainder. I dont mean to be harsh, but this has been asked and answered. Copy mach_kernel, which sits in / to your desktop. THen edit the copy on your desktop with Hex Editor. Do the substitution mentioned above on the file, and save it. Repalce the original mach_kernel with the one you put on your desktop: cp /mach_kernel ~/Desktop/mach_kernel Open ~/Desktop/mach_kernel in a hex editor and do the substition. Save it. cp ~/Desktop/mach_kernel /mach_kernel.restart sudo chown root:wheel mach_kernel.restart (I copied it back to / as mach_kernel.restart so if a mistake was made we haven't lost our original mach_kernel). Reboot the machine (make sure you have a timeout set in com.apple.boot.plist so you can add boot flags). Once it brings up the Darwin boot loader, hit any key and type: mach_kernel.restart and press enter. Mac OS X should boot - if not you did something wrong with the Hex editting. Once OS X has booted, go Apple -> Restart and hopefully your computer should restart. If it restarts, the new kernel has been patched to support restarting and it is safe to copy /mach_kernel.restart to /mach_kernel so you don't have to tell it to boot from the restart one each time. Thats pretty much as step by step as you can get. Edit: Ok, forget that post, I was on page 3 and didn't realise thought I was on the last page... I see there is a much more detailed step by step before mine. Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-113053 Share on other sites More sharing options...
velayo Posted May 15, 2006 Share Posted May 15, 2006 The instructions in this forum worked for me. My Athlon64 reboots fine now Try this: 1. Open a terminal (Applications -> Utilities -> Terminal). 2. Type the following: cp /mach_kernel ~/Desktop/mach_kernel cp /mach_kernel ~/Desktop/mach_kernel_noacpi 3. Download this: 0xED. 4. Install it and run it. 5. Click File -> open by path. 6. Enter the path: /Volumes/<your root disk here>/<your username here>/Desktop/mach_kernel 7. You will see the kernel in hex. 8. Click in the box labelled offset. Type 8D2B8 9. The cursor will move to the correct line. 10. Find the letters EB FE 90 90 11. Replace them with B0 FE E6 64. 12. Save and exit 13. Go back to the terminal 14. Type: sudo cp ~/Desktop/mach_kernel / <type your password> Now type sudo nano /Library/Preferences/SystemConfiguration/com.apple.Boot.plist The boot plist file will open. Find the section <string></string> and insert Platform=ACPI so the line looks like this: <string>Platform=ACPI</string> Save and exit by pushing Ctrl+X then Y. 15. Now shutdown your computer. When you have restarted it, the shutdown and restart options should both work. This only works on the 10.4.4 kernel supplied with Myzar's 10.4.4/10.4.5 disk, and Jas' 10.4.6 (I think!). Bottom line check what you're replacing before you do it. If it doesn't match, don't do it!! Hex editing your kernel without being sure what you are doing is a sure recipe for disaster. If your language is a barrier to understanding the above, I suggest you leave it alone and put up with the problem. If you are still keen, use a fresh install or at least ensure you have backed up your system. If things do break, try booting from the mach_kernel_noacpi in your Desktop, or copy the kernel back from your boot DVD. Good luck!! Thanks for the detailed instructions I finally got it to work. My OSx86 machine is getting better each day Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-113066 Share on other sites More sharing options...
Hiro_ Posted May 15, 2006 Author Share Posted May 15, 2006 Well then you should be able to boot from the DVD, press F8 and then type -s and press enter to get into single user mode. Ok, Tokyovigilante i obtain the single user mode, and i did as you sayed for me, i type cd /dev/ and press tab and showed this list. disk0# disk0s1# disk0s2# disk1# disk1s1# disk1s3# And now friend, the than i make? Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-113082 Share on other sites More sharing options...
Hiro_ Posted May 16, 2006 Author Share Posted May 16, 2006 Please not abandons me !! Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-113386 Share on other sites More sharing options...
staticuxo Posted May 16, 2006 Share Posted May 16, 2006 junio, just boot your windows partition and copy mach_kernal off the dvd. then hex edit it and replace the current one using macdrive6. it's pretty simple. Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-113391 Share on other sites More sharing options...
Hiro_ Posted May 16, 2006 Author Share Posted May 16, 2006 Yeah, i copyed of the dvd but as i send it for osx now? Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-113439 Share on other sites More sharing options...
tokyovigilante Posted May 16, 2006 Share Posted May 16, 2006 Yeah, i copyed of the dvd but as i send it for osx now? Which partition on your hard drive is which? Is the first one or second one Mac OS? Link to comment https://www.insanelymac.com/forum/topic/13881-my-system-not-reboot/page/4/#findComment-113546 Share on other sites More sharing options...
Recommended Posts