<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=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 26, 2018, at 10:37 AM, Programmingkid <<a href="mailto:programmingkidx@gmail.com" class="">programmingkidx@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">On Jan 26, 2018, at 3:32 AM, Jd Lyons <<a href="mailto:lyons_dj@yahoo.com" class="">lyons_dj@yahoo.com</a>> wrote:<br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On Jan 25, 2018, at 10:18 AM, Programmingkid <<a href="mailto:programmingkidx@gmail.com" class="">programmingkidx@gmail.com</a>> wrote:<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Jan 25, 2018, at 10:01 AM, Jd Lyons <<a href="mailto:lyons_dj@yahoo.com" class="">lyons_dj@yahoo.com</a>> wrote:<br class=""><br 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.<br class=""><br class="">I found some BootX sources at:<br class=""><br class=""><a href="https://opensource.apple.com/tarballs/BootX/" class="">https://opensource.apple.com/tarballs/BootX/</a><br class=""><br class="">Tho I’m not sure what versions correspond to which release of OS X?<br class=""><br class="">And it’s not clear how to build them, tho I haven’t tried yet.<br class=""><br class="">I found some info on BootX as well as some idea how to do what I’m looking to do:<br class=""><br class="">https://people.ffii.org/~zoobab/bh.udev.org/filez/apple/mac6100/BootX.pdf<br class=""><br 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 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.<span class="Apple-converted-space"> </span><br class=""><br class=""><br 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”<br class=""><br 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?<br class=""></blockquote><br class="">Have you tried adding "-prom-env boot-args=-v" to QEMU's arguments yet?<br class=""></blockquote><br class="">Yes, I usually use -prom-env 'boot-args=-v  debug=0xffe kdp=2’.<br class=""><br class="">On a real PPC Mac BootX seems to give some extra debug in fo with command+V, tho most of the time it goes by so fast that it’s unreadable. Booting from a slower drive like USB yield the kind of info I’m looking for, to be able to tell at what stage BootX is hanging.<br class=""><br class="">Unfortunately, this debug info is no sent to the screen, or stdio in OpenBios, or I just haven’t figured out how to do that yet.<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">There is another way to see what boots sends to the screen. That is to record the output of the screen. I use to do this when I had to read the output from Mac OS X when it was booting. I used Quicktime X to record the screen. Since you are on Linux there may be other options. You could take the output of your computer and send it to a a DVD recorder, VCR, DVR, Camcorder, etc... You might even want to try aiming your camera phone at the screen and record what Bootx is displaying.<span class="Apple-converted-space"> </span></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><div><br class=""></div><div><br class=""></div><div>Here is what is happening with the emulated 7448( failed boot ):</div><div><br class=""></div><div><div>/home/jam/Tiger/qemu-install/bin/qemu-system-ppc -M mac99 -m 768 -cpu 7410 -hda '/home/jam/os9/Tiger.img' -bios '/home/jam/Documents/openbios-qemu.elf'  -netdev user,id=mynet0 -device sungem,netdev=mynet0  -prom-env 'auto-boot?=false' -cpu 7448 -nographic</div><div><br class=""></div><div>>> =============================================================</div><div>>> OpenBIOS 1.1 [Jan 22 2018 11:12]</div><div>>> Configuration device id QEMU version 1 machine id 1</div><div>>> CPUs: 1</div><div>>> Memory: 768M</div><div>>> UUID: 00000000-0000-0000-0000-000000000000</div><div>>> CPU type PowerPC,MPC86xx</div><div>milliseconds isn't unique.</div><div>Welcome to OpenBIOS v1.1 built on Jan 22 2018 11:12</div><div><br class=""></div><div>0 > boot hd:10,\ppc\bootx >> switching to new context:</div><div><br class=""></div><div><br class=""></div><div>Mac OS X Loader</div><div>depthbytes isn't unique.</div><div>rowbytes isn't unique.</div><div>FILL-RECTANGLE isn't unique.</div><div>Opening partition [/pci@f2000000/mac-io@c/ata-3@20000/disk@0:10]...</div><div>HFSInitPartition: 2fc5b254</div><div>Loading HFS+ file: [\\com.apple.Boot.plist] from 2fc5b254.</div><div>setting boot-uuid to: CF9C6A60-A576-362A-A46B-5CF31493B8F0</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>Reading HFS+ file: [\\mach_kernel] from 2fc5b254.</div><div>setting boot-uuid to: CF9C6A60-A576-362A-A46B-5CF31493B8F0</div><div>non-root file owner detected: 501</div><div>Loading HFS+ file: [\System\Library\Caches\com.apple.kernelcaches\kernelcache.D57A14F7] from 2fc5b254.</div><div><br class=""></div><div>Call Kernel!</div><div>FailToBoot: 6</div><div>ENTER</div></div><div><br class=""></div><div>Here is a successful boot on a 7410:</div><div><br class=""></div><div><div>/home/jam/Tiger/qemu-install/bin/qemu-system-ppc -M mac99 -m 768 -cpu 7410 -hda '/home/jam/os9/Tiger.img' -bios '/home/jam/Documents/openbios-qemu.elf'  -netdev user,id=mynet0 -device sungem,netdev=mynet0  -prom-env 'auto-boot?=false' -cpu 7410 -nographic -prom-env 'boot-args= -v debug=0xffe kdp=2'</div><div><br class=""></div><div>>> =============================================================</div><div>>> OpenBIOS 1.1 [Jan 22 2018 11:12]</div><div>>> Configuration device id QEMU version 1 machine id 1</div><div>>> CPUs: 1</div><div>>> Memory: 768M</div><div>>> UUID: 00000000-0000-0000-0000-000000000000</div><div>>> CPU type PowerPC,74xx</div><div>milliseconds isn't unique.</div><div>Welcome to OpenBIOS v1.1 built on Jan 22 2018 11:12</div><div><br class=""></div><div>0 > boot hd:10,\ppc\bootx >> switching to new context:</div><div><br class=""></div><div><br class=""></div><div>Mac OS X Loader</div><div>depthbytes isn't unique.</div><div>rowbytes isn't unique.</div><div>FILL-RECTANGLE isn't unique.</div><div>Opening partition [/pci@f2000000/mac-io@c/ata-3@20000/disk@0:10]...</div><div>HFSInitPartition: 2fc5b250</div><div>Loading HFS+ file: [\\com.apple.Boot.plist] from 2fc5b250.</div><div>setting boot-uuid to: CF9C6A60-A576-362A-A46B-5CF31493B8F0</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>Reading HFS+ file: [\\mach_kernel] from 2fc5b250.</div><div>setting boot-uuid to: CF9C6A60-A576-362A-A46B-5CF31493B8F0</div><div>non-root file owner detected: 501</div><div>Loading HFS+ file: [\System\Library\Caches\com.apple.kernelcaches\kernelcache.D57A14F7] from 2fc5b250.</div><div><br class=""></div><div>Call Kernel!</div><div>Trying to read invalid spr 1015 (0x3f7) at 00092744</div><div>kprintf initialized</div><div>max_mem: 768 M</div><div>version_variant = 0</div><div>version         = Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC</div><div><br class=""></div><div>proc version    = 800c1104</div><div>initialize_screen: b=00000000, w=00000000, h=00000000, r=00000000</div><div>initialize_screen: No video - forcing serial mode</div><div>standard timeslicing quantum is 10000 us</div><div>pmap_steal_memory: 00AAE000 - 00AAF000; size=00001000</div><div>pmap_steal_memory: 00AAF000 - 00BB2000; size=00103000</div><div>pmap_steal_memory: 00BB2000 - 00BB5000; size=00003000</div><div>pmap_steal_memory: 00BB5000 - 00CB5000; size=00100000</div><div>pmap_steal_memory: 00CB5000 - 014B0694; size=007FB694</div><div>vm_page_bootstrap: 190223 free pages</div><div>mig_table_max_displ = 70</div><div><br class=""></div><div>And here is a failed boot on an emulated  970:</div><div><br class=""></div><div><div>qemu-system-ppc64 -M mac99 -m 768 -hda '/home/jam/os9/Tiger.img' -bios '/home/jam/Documents/openbios-qemu.elf'  -netdev user,id=mynet0   -prom-env 'auto-boot?=false' -cpu 970 -nographic</div><div>Warning: netdev mynet0 has no peer</div><div><br class=""></div><div>>> =============================================================</div><div>>> OpenBIOS 1.1 [Jan 22 2018 11:12]</div><div>>> Configuration device id QEMU version 1 machine id 3</div><div>>> CPUs: 1</div><div>>> Memory: 768M</div><div>>> UUID: 00000000-0000-0000-0000-000000000000</div><div>>> CPU type PowerPC,970</div><div>milliseconds isn't unique.</div><div>Welcome to OpenBIOS v1.1 built on Jan 22 2018 11:12</div><div><br class=""></div><div>0 > boot hd:10,\ppc\bootx >> switching to new context:</div><div><br class=""></div><div><br class=""></div><div>Mac OS X Loader</div><div>depthbytes isn't unique.</div><div>rowbytes isn't unique.</div><div>FILL-RECTANGLE isn't unique.</div><div>Opening partition [/pci@f0000000/mac-io@c/ata-3@20000/disk@0:10]...</div><div>HFSInitPartition: 2fc5b250</div><div>Loading HFS+ file: [\\com.apple.Boot.plist] from 2fc5b250.</div><div>setting boot-uuid to: CF9C6A60-A576-362A-A46B-5CF31493B8F0</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>non-root file owner detected: 501</div><div>Reading HFS+ file: [\\mach_kernel] from 2fc5b250.</div><div>setting boot-uuid to: CF9C6A60-A576-362A-A46B-5CF31493B8F0</div><div>non-root file owner detected: 501</div><div>Reading HFS+ file: [\mach_kernel] from 2fc5b250.</div><div>Reading HFS+ file: [\mach_kernel] from 2fc5b250.</div><div>FileLoadDrivers: Loading from [/pci@f0000000/mac-io@c/ata-3@20000/disk@0:10,\System\Library\Extensions.mkext]</div><div>Reading HFS+ file: [\System\Library\Extensions.mkext] from 2fc5b250.</div><div>Reading HFS+ file: [\System\Library\Extensions.mkext] from 2fc5b250.</div><div><br class=""></div><div>Call Kernel!</div><div>Trying to write invalid spr 276 (0x114) at 00000000000afc14</div><div>Trying to read invalid spr 277 (0x115) at 00000000000afc18</div><div>Trying to read invalid spr 276 (0x114) at 00000000000afc1c</div><div>Trying to write invalid spr 277 (0x115) at 00000000000afc38</div><div>Trying to write invalid spr 276 (0x114) at 00000000000afc3c</div><div>Trying to read invalid spr 276 (0x114) at 00000000000afc40</div><div>Trying to write invalid spr 277 (0x115) at 00000000000afcec</div><div>Trying to write invalid spr 276 (0x114) at 00000000000afcf0</div><div>Trying to read invalid spr 276 (0x114) at 00000000000afcf4</div><div>Trying to write invalid spr 304 (0x130) at 0000000000003d28</div><div>Trying to read invalid spr 304 (0x130) at 0000000000003d4c</div><div>Trying to write invalid spr 304 (0x130) at 0000000000003d28</div><div>Trying to read invalid spr 304 (0x130) at 0000000000003d4c</div><div>Trying to write invalid spr 304 (0x130) at 0000000000003d28</div><div>Trying to read invalid spr 304 (0x130) at 0000000000003d4c</div><div>Trying to write invalid spr 304 (0x130) at 0000000000003d28</div><div>Trying to read invalid spr 304 (0x130) at 0000000000003d4c</div><div>Trying to write invalid spr 304 (0x130) at 0000000000003d28</div><div>Trying to read invalid spr 304 (0x130) at 0000000000003d4c</div><div>Trying to write invalid spr 304 (0x130) at 0000000000003d28</div><div>Trying to read invalid spr 304 (0x130) at 0000000000003d4c</div><div class=""><br class=""></div></div><div><br class=""></div></div><br class=""><blockquote type="cite" class=""><div class=""><a href="https://itsfoss.com/best-linux-screen-recorders/" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://itsfoss.com/best-linux-screen-recorders/</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">This page list several programs that can record your screen on Linux. I just don't think it would help on a PowerPC Mac.<span class="Apple-converted-space"> </span></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">--<span class="Apple-converted-space"> </span></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">OpenBIOS                 </span><a href="http://openbios.org/" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://openbios.org/</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Mailinglist:  </span><a href="http://lists.openbios.org/mailman/listinfo" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://lists.openbios.org/mailman/listinfo</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Free your System - May the Forth be with you</span></div></blockquote></div><br class=""></body></html>