<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">In an effort to figure out why qemu-system-ppc hangs at BootX when using some emulated and KVM CPU’s, I suppose it would be good to enter some breakpoints in the code.<div class=""><br class=""></div><div class="">I found some BootX sources at:</div><div class=""><br class=""></div><div class=""><a href="https://opensource.apple.com/tarballs/BootX/" class="">https://opensource.apple.com/tarballs/BootX/</a></div><div class=""><br class=""></div><div class="">Tho I’m not sure what versions correspond to which release of OS X?</div><div class=""><br class=""></div><div class="">And it’s not clear how to build them, tho I haven’t tried yet.</div><div class=""><br class=""></div><div class="">I found some info on BootX as well as some idea how to do what I’m looking to do:</div><div class=""><br class=""></div><div class=""><a href="https://people.ffii.org/~zoobab/bh.udev.org/filez/apple/mac6100/BootX.pdf" class="">https://people.ffii.org/~zoobab/bh.udev.org/filez/apple/mac6100/BootX.pdf</a></div><div class=""><br class=""></div><div class="">
                
        
        
                <div class="page" title="Page 11">
                        <div class="layoutArea">
                                <div class="column"><p class=""><span style="font-size: 11pt;" class=""><b class="">There are few other useful debugging tech-
niques. Setting "auto-boot?" to false will cause
the system to enter the OpenFirmware User In-
terface by default. Changing kFailToBoot to 0 in
include.tproj/sl.h will alter BootX’s default be-
havior on error, so that it will return to Open-
Firmware. Finally, calling Enter(), will cause
BootX to drop back into the OpenFirmware User </b></span><b style="font-size: 11pt;" class="">Interface. This can be used as a break point. The
"dumpl" word will dump some memory, by en-
tering the address, then the length, then "dumpl".
By calling printf in BootX immediately before En-
ter(), the address can be easily determined, and
the variable can then be examined and altered
from OpenFirmware. Finally typing the "go"
command will resume BootX’s execution. </b></p></div><div class="column"><div class=""><br class=""></div><div class="">I noted when I boot from boot usb0/disk:3,\\:tbxi while holding command+v BootX sends some info to the screen, seemingly via open firware, while displaying the “Apple Logo” boot graphic. The info show some of the boot process and what stage it’s loading” loading mach_kernel’ “ loading the .mkext”</div><div class=""><br class=""></div><div class="">It would be nice to get this output going via Open Bios, if anyone has any idea how I might be able to do that?</div><div class=""><br class=""></div><div class="">  </div>
                                </div>
                        </div>
                </div></div></body></html>