Author Topic: Testers needed: NKDebug  (Read 11536 times)

Offline ELN

  • Gold Member
  • *****
  • Posts: 295
  • new to the forums
Testers needed: NKDebug
« on: April 23, 2017, 12:33:02 AM »
Hi guys,

I have a cute little gift for the community. The MacOS NanoKernel (v2) has a rudimentary integrated debugger (I think it's called the 'Thud'), accessible via serial. I have never actually managed to connect to it this way, but I thought it might still be useful. So I have patched the kernel to accept debugger commands from MacOS applications, and written a tiny app to send these commands.

To check it out, just put the attached Mac OS ROM file in your System Folder (9.2.2 only), reboot and start the NKDebug app. I'd be very grateful if some super cool people tried this out and posted the output of these commands, along with basic system info like model and RAM:

Code: [Select]
kd
td
id -a

Cheers guys!

Online Knezzen

  • Administrator
  • Platinum Member
  • *****
  • Posts: 987
  • Pro Tools Addict!
    • Macintosh Garden
Re: Testers needed: NKDebug
« Reply #1 on: April 23, 2017, 01:10:04 AM »
Ill try it out! :)
Pro Tools addict and admin at Macintosh Garden, Mac OS 9 Lives! and System 7 Today

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 2116
  • keep it simple
Re: Testers needed: NKDebug
« Reply #2 on: April 24, 2017, 07:57:59 AM »
interesting work ...  :)

That's my results:

Code: [Select]
Ω kd
Kernel version 0228 Code base 00f10000 PSA 5f7fd470 KDP 5f7fe000 EDP 5f7ff000
Current EWA 5f7fe000  is CPU 0000  ID-00020001
Current task 5f7fbb40 ID-00050001 name "blue" Owning process 5f7fc220  ID-01d50002
Address Space 5f7fc0e0  ID-00030001
Termination caller 00f29e0c  Last exception at 0000d032 5db68c08
Resuming at 00f29e0c  - wish me luck.
Ω td
Kernel registers:
SPRGs  ewa: 5f7fe000  r1: 5dbe44f0  lr: 5db68b48  vecBase: 5f7fe420
       cr:  26000028 xer: 20000100 ctr: ffcd34cc lr: 5db68b48
       dsisr: 40000000 dar:00000058 pvr: 80010303

 sr0-sr7  20000000 20100000 20200000 20300000 20400000 20500000 20600000 20700000
 sr8-sr15 20800000 20900000 20a00000 20b00000 20c00000 20d00000 20e00000 20f00000

 r0-r7    00000000 5dbe44f0 5db7934c 5dbe5000 01d50002 0141a7a8 5f7ff400 00280006
 r8-r15   5df42000 00000000 5db68c08 0002d032 5db68b48 44000048 00f10320 00f29dc0
 r16-r23  a8000036 5df42192 5fb6f944 0001ffff 00000000 00000000 00000000 00000000
 r24-r31  00000000 00000000 00000000 00000000 01417eda 5f7fd6a0 00000003 5f7f61c1
Resuming at 00f29e0c  - wish me luck.
Ω id -a
000a0001 000b0001 000c0001 000d0001 000e0001 000f0001 00100001 00110001
00120001 00130001 00140001 00150001 00160001 00170001
Resuming at 00f29e0c  - wish me luck.

Please don't PM about things that are not private.

Offline ELN

  • Gold Member
  • *****
  • Posts: 295
  • new to the forums
Re: Testers needed: NKDebug
« Reply #3 on: April 24, 2017, 08:52:13 AM »
That's my results:

Thanks MacTron! That'd be a 1.5GB machine? :D

Any other takers? As a bonus, you get a tweaked Happy Mac at boot!

Offline Daniel

  • Gold Member
  • *****
  • Posts: 300
  • Programmer, Hacker, Thinker
Re: Testers needed: NKDebug
« Reply #4 on: April 29, 2017, 06:33:48 PM »
Hi.
Here are my results:

Ω kd
Kernel version 0228 Code base 00f10000 PSA 1f7fd470 KDP 1f7fe000 EDP 1f7ff000
Current EWA 1f7fe000  is CPU 0000  ID-00020001
Current task 1f7fbb40 ID-00050001 name "blue" Owning process 1f7fc220  ID-02040001
Address Space 1f7fc0e0  ID-00030001
Termination caller 00f29e0c  Last exception at 0000d032 3e29f178
Resuming at 00f29e0c  - wish me luck.
Ω td
Kernel registers:
SPRGs  ewa: 1f7fe000  r1: 1f783560  lr: 3e29f0b8  vecBase: 1f7fe420
       cr:  26000028 xer: 20000100 ctr: ffcd34cc lr: 3e29f0b8
       dsisr: 00002c03 dar:1f782bce pvr: 00088300

 sr0-sr7  20000000 20100000 20200000 20300000 20400000 20500000 20600000 20700000
 sr8-sr15 20800000 20900000 20a00000 20b00000 20c00000 20d00000 20e00000 20f00000

 r0-r7    00000000 1f783560 1f71839c 1f784000 02040001 00f00310 1f7ff400 00200006
 r8-r15   12a8d000 00000000 3e29f178 0002d032 3e29f0b8 44000048 00f10320 00f29dc0
 r16-r23  8800003d 12a8d192 1fbde104 0001ffff 00000000 00000000 00000000 00000000
 r24-r31  00000000 00000000 00000000 00000000 00eebe1a 1f7fd6a0 00000003 1f7f68f9
Resuming at 00f29e0c  - wish me luck.
Ω id -a
000a0001 000b0001 000c0001 000d0001 000e0001 000f0001 00100001 00110001
00120001 00130001 00140001 00150001 00160001 00170001 00180001 00190001
001a0001 001b0001 001c0001 001d0001 001e0001 001f0001 00200001 00210001
00600001
Resuming at 00f29e0c  - wish me luck.
Ω

I am a new user here, and this is the first message I have sent. I have no idea how to do all the fancy message formatting stuff. I tried out NKdebug. It is so easy to crash the system using 'dm' and 'dml'  :)

Offline ELN

  • Gold Member
  • *****
  • Posts: 295
  • new to the forums
Re: Testers needed: NKDebug
« Reply #5 on: April 29, 2017, 07:03:41 PM »
I am a new user here, and this is the first message I have sent. I have no idea how to do all the fancy message formatting stuff. I tried out NKdebug. It is so easy to crash the system using 'dm' and 'dml'  :)

Thanks Daniel. Yes, you can crash the PowerPC pretty hard that way. But it's also very useful to peek at the kernel's internal structures.

Offline Daniel

  • Gold Member
  • *****
  • Posts: 300
  • Programmer, Hacker, Thinker
Re: Testers needed: NKDebug
« Reply #6 on: April 29, 2017, 07:32:52 PM »
The System I used NKdebug on was a 400 MHz Pismo with 512 MB of ram. I hope that the data I supplied helped you. I have several other NewWorld Macs. I will try to use NKdebug on them in the morning ( it is late at night for me at the moment). Let me know if I can be of service. I somewhat understand open firmware and like to mess around with stuff. Keep up the good work with kdg5  :)

Offline Daniel

  • Gold Member
  • *****
  • Posts: 300
  • Programmer, Hacker, Thinker
Re: Testers needed: NKDebug
« Reply #7 on: April 30, 2017, 06:51:33 AM »
Here are the test results for 3 other NewWorld Macs I have:

 
Code: [Select]
This is for a 450 MHz G3 Blue and White with 896 MB of ram:

Ω kd
Kernel version 0228 Code base 00f10000 PSA 377fd470 KDP 377fe000 EDP 377ff000
Current EWA 377fe000  is CPU 0000  ID-00020001
Current task 377fbb40 ID-00050001 name "blue" Owning process 377fc220  ID-021d0001
Address Space 377fc0e0  ID-00030001
Termination caller 00f29e0c  Last exception at 0000d032 3e2d6178
Resuming at 00f29e0c  - wish me luck.
Ω td
Kernel registers:
SPRGs  ewa: 377fe000  r1: 371d8980  lr: 3e2d60b8  vecBase: 377fe420
       cr:  26000028 xer: 20000100 ctr: ffcd34cc lr: 3e2d60b8
       dsisr: 00002c03 dar:371d7e8e pvr: 00080202

 sr0-sr7  20000000 20100000 20200000 20300000 20400000 20500000 20600000 20700000
 sr8-sr15 20800000 20900000 20a00000 20b00000 20c00000 20d00000 20e00000 20f00000

 r0-r7    00000000 371d8980 3716d7bc 371d9000 021d0001 0123b9a8 377ff400 00200006
 r8-r15   1e466000 00000000 3e2d6178 0002d032 3e2d60b8 44000048 00f10320 00f29dc0
 r16-r23  9800001c 1e466192 379c7644 0001ffff 00000000 00000000 00000000 00000000
 r24-r31  00000000 00000000 00000000 00000000 011da46a 377fd6a0 00000003 377f61ca
Resuming at 00f29e0c  - wish me luck.
Ω id -a
000a0001 000b0001 000c0001 000d0001 000e0001 000f0001 00100001 00110001
00120001 00130001 00140001
Resuming at 00f29e0c  - wish me luck.
Ω

This is for a 1Ghz G4 with 1.5GB of ram:

Ω kd
Kernel version 0228 Code base 00f10000 PSA 5f7fd470 KDP 5f7fe000 EDP 5f7ff000
Current EWA 5f7fe000  is CPU 0000  ID-00020001
Current task 5f7fbb40 ID-00050001 name "blue" Owning process 5f7fc220  ID-01e00002
Address Space 5f7fc0e0  ID-00030001
Termination caller 00f29e0c  Last exception at 0000d032 5e6e1658
Resuming at 00f29e0c  - wish me luck.
Ω td
Kernel registers:
SPRGs  ewa: 5f7fe000  r1: 5e75cf40  lr: 5e6e1598  vecBase: 5f7fe420
       cr:  26000028 xer: 20000100 ctr: ffcd34cc lr: 5e6e1598
       dsisr: 40000000 dar:00000058 pvr: 80010201

 sr0-sr7  20000000 20100000 20200000 20300000 20400000 20500000 20600000 20700000
 sr8-sr15 20800000 20900000 20a00000 20b00000 20c00000 20d00000 20e00000 20f00000

 r0-r7    00000000 5e75cf40 5e6f1dac 5e75d000 01e00002 006aaa48 5f7ff400 00280006
 r8-r15   5eaba000 00000000 5e6e1658 0002d032 5e6e1598 44000048 00f10320 00f29dc0
 r16-r23  a8000039 5eaba192 5fb9d744 0001ffff 00000000 00000000 00000000 00000000
 r24-r31  00000000 00000000 00000000 00000000 010567da 5f7fd6a0 00000003 5f7f64b8
Resuming at 00f29e0c  - wish me luck.
Ω id -a
000a0001 000b0001 000c0001 000d0001 000e0001 000f0001 00100001 00110001
00120001 00130001 00140001 00150001 00160001 00170001 00180001 00190001
001a0001 001b0001 001c0001
Resuming at 00f29e0c  - wish me luck.
Ω

This is for a 800MHz iBook G3 with 640MB of ram:
Ω kd
Kernel version 0228 Code base 00f10000 PSA 277fd470 KDP 277fe000 EDP 277ff000
Current EWA 277fe000  is CPU 0000  ID-00020001
Current task 277fbb40 ID-00050001 name "blue" Owning process 277fc220  ID-01eb0001
Address Space 277fc0e0  ID-00030001
Termination caller 00f29e0c  Last exception at 0000d032 26872228
Resuming at 00f29e0c  - wish me luck.
Ω td
Kernel registers:
SPRGs  ewa: 277fe000  r1: 268edb10  lr: 26872168  vecBase: 277fe420
       cr:  26000028 xer: 20000100 ctr: ffcd34cc lr: 26872168
       dsisr: 40000000 dar:00000058 pvr: 70000202

 sr0-sr7  20000000 20100000 20200000 20300000 20400000 20500000 20600000 20700000
 sr8-sr15 20800000 20900000 20a00000 20b00000 20c00000 20d00000 20e00000 20f00000

 r0-r7    00000000 268edb10 2688297c 268ee000 01eb0001 004464a0 277ff400 00200006
 r8-r15   26c4b000 00000000 26872228 0002d032 26872168 44000048 00f10320 00f29dc0
 r16-r23  9000001a 26c4b192 279a3b84 0001ffff 00000000 00000000 00000000 00000000
 r24-r31  00000000 00000000 00000000 00000000 0044482a 277fd6a0 00000003 277f66b4
Resuming at 00f29e0c  - wish me luck.
Ω id -a
000a0001 000b0001 000c0001 000d0001 000e0001 000f0001 00100001 00110001
00120001 00130001 00140001 00150001 00160001 00170001 00180001 00190001
001a0001 001b0001 001c0001 001d0001 001e0001 001f0001 00200001
Resuming at 00f29e0c  - wish me luck.
Ω

Offline ELN

  • Gold Member
  • *****
  • Posts: 295
  • new to the forums
Re: Testers needed: NKDebug
« Reply #8 on: May 03, 2017, 06:58:41 PM »
Thank you Daniel!

It's great to get a bit of a data set together. I am actually wrestling with some Open Firmware stuff in the build system at this very moment, to make it easier to for us to experiment. How's your Forth? Reckon you (or anyone else) would like to get added to our GitLab repo?

Now (for the first time) I have built the NanoKernel code into a resource for insertion into the System file. This is how the ROM NanoKernel v1 gets replaced with NanoKernel v2 at runtime on OldWorld Macs. Could somebody please used ResEdit to copy the attached 'krnl' resource into their System file on an OldWorld (pre-iMac) machine running Mac OS 9.2.2? The only OldWorld machine officially supported by 9.2 was the beige G3, but of course people got around that.

And then, of course, could please you run the listed NKDebug commands and post your output? This will be extremely useful!

Cheers guys,

Elliot

Offline nanopico

  • Moderator
  • Platinum Member
  • *****
  • Posts: 767
Re: Testers needed: NKDebug
« Reply #9 on: May 04, 2017, 08:56:21 AM »
The only OldWorld machine officially supported by 9.2 was the beige G3, but of course people got around that.

The PowerBook PDQ is old world and runs OS 9.2.2 with out hacks using official Apple installs.
« Last Edit: May 04, 2017, 09:18:07 AM by nanopico »
If it ain't broke, don't fix it, or break it so you can fix it!

Offline MacOS Plus

  • Gold Member
  • *****
  • Posts: 418
  • The 9serve Lives!
Re: Testers needed: NKDebug
« Reply #10 on: May 04, 2017, 05:21:56 PM »
  Were there any specific machine models you were especially interested in the output from?  Is this a patch of the MacOS ROM from the "Unsupported G4s" image (in other words, so I can still boot MDD FW800 and Xserve-via-OF-commands)?

Offline ELN

  • Gold Member
  • *****
  • Posts: 295
  • new to the forums
Re: Testers needed: NKDebug
« Reply #11 on: May 04, 2017, 11:00:00 PM »
At the moment, I'm especially eager to see the code run on *any* 9.2-compatible OldWorld Mac (and as my friend nanopico points out, that includes PDQ PowerBooks). I'd just like to see a handful of representative samples for now.

The attached ROM should boot everything that iMic's ROM can boot. If it doesn't, let me know!

Offline nanopico

  • Moderator
  • Platinum Member
  • *****
  • Posts: 767
Re: Testers needed: NKDebug
« Reply #12 on: May 05, 2017, 07:31:08 AM »
At the moment, I'm especially eager to see the code run on *any* 9.2-compatible OldWorld Mac (and as my friend nanopico points out, that includes PDQ PowerBooks). I'd just like to see a handful of representative samples for now.

The attached ROM should boot everything that iMic's ROM can boot. If it doesn't, let me know!

If you drop the machine check and add the G4 version update I provided to you, then it will boot the xserve.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline ELN

  • Gold Member
  • *****
  • Posts: 295
  • new to the forums
Re: Testers needed: NKDebug
« Reply #13 on: May 05, 2017, 08:29:41 AM »
Yes! Expect it soon. I just got sidetracked adding build time conditionals to the Forth script. Will be super cool – might even add the G5 code. :D

Any OldWorld takers? You'll be the first to run one of my patched NKs through the voodoo kernel-replacement mechanism.

Online Knezzen

  • Administrator
  • Platinum Member
  • *****
  • Posts: 987
  • Pro Tools Addict!
    • Macintosh Garden
Re: Testers needed: NKDebug
« Reply #14 on: May 05, 2017, 09:17:07 AM »
I'll try it out on my Kanga :)
Pro Tools addict and admin at Macintosh Garden, Mac OS 9 Lives! and System 7 Today

Offline MacOS Plus

  • Gold Member
  • *****
  • Posts: 418
  • The 9serve Lives!
Re: Testers needed: NKDebug
« Reply #15 on: May 05, 2017, 10:05:11 AM »
  If I understand correctly, Apple 9.2.2 supported + Old World ROM =

- PDQ Powerbook
- Lombard Powerbook
- Pismo Powerbook
- G3 Beige (all models)

  I have a PDQ and a Pismo (I also have a G4 upgrade for the Pismo).  Would you include clones and/or other machines with G3/G4 upgrades installed?  That would widen the scope of Old World testing I can do.  I just wasn't sure if the others would tell you anything to really wanted to know.

Offline ELN

  • Gold Member
  • *****
  • Posts: 295
  • new to the forums
Re: Testers needed: NKDebug
« Reply #16 on: May 05, 2017, 09:11:04 PM »
  If I understand correctly, Apple 9.2.2 supported + Old World ROM =

- PDQ Powerbook
- Lombard Powerbook
- Pismo Powerbook
- G3 Beige (all models)

  I have a PDQ and a Pismo (I also have a G4 upgrade for the Pismo).  Would you include clones and/or other machines with G3/G4 upgrades installed?  That would widen the scope of Old World testing I can do.  I just wasn't sure if the others would tell you anything to really wanted to know.

The Lombard and the Pismo were actually NewWorld machines, but the PDQ and the beige G3 were certainly OldWorld + 9.2-supported. Would you mind focussing on the latter two?

If you can get 9.2.2 running on any pre-G3 machines, I'd love to see some debugger output. I know that it was hacked to run on plenty of pre-G3 Macs, but I have never heard of it running on a clone or an upgraded machine. What do you know that I don't?!

Offline Daniel

  • Gold Member
  • *****
  • Posts: 300
  • Programmer, Hacker, Thinker
Re: Testers needed: NKDebug
« Reply #17 on: May 12, 2017, 05:39:11 PM »
I got the results for a few Old World Macs. Only the first one was done with OS 9.2.2. The second one could not boot 9.2.2 so I copied the 'krnl' to a 9.1 System folder and used that for the rest of my tests. Seeing how this runs on Old World machines, it might be interesting to use NKDebug in Sheepshaver.
Code: [Select]
This was done on a Power Mac G3 at 266 MHz with 640 MB of RAM:

Ω kd
Kernel version 0228 Code base 00294000 PSA 002b7470 KDP 002b8000 EDP 27bff000
Current EWA 002b8000  is CPU 0000  ID-00020001
Current task 002b5b40 ID-00050001 name "blue" Owning process 002b6220  ID-00560002
Address Space 002b60e0  ID-00030001
Termination caller 002ade0c  Last exception at 0000d072 26c629f8
Resuming at 002ade0c  - wish me luck.
Ω td
Kernel registers:
SPRGs  ewa: 002b8000  r1: 26cde2e0  lr: 26c62938  vecBase: 002b8420
       cr:  26000028 xer: 00000100 ctr: 0036af8c lr: 26c62938
       dsisr: 40000000 dar:00000068 pvr: 00080202

 sr0-sr7  20000000 20100000 20200000 20300000 20400000 20500000 20600000 20700000
 sr8-sr15 20800000 20900000 20a00000 20b00000 20c00000 20d00000 20e00000 20f00000

 r0-r7    00000000 26cde2e0 26c7314c 26cdf000 00560002 00374cb8 27bff400 00200006
 r8-r15   26cdf000 00000000 26c629f8 0002d072 26c62938 44000048 00294320 002addc0
 r16-r23  9000001b 26cdf192 27db37c4 0001ffff 00000000 00000000 00000000 00000000
 r24-r31  00000000 00000000 00000000 00000000 00ad8332 002b76a0 00000003 002afa2b
Resuming at 002ade0c  - wish me luck.
Ω id -a
000a0001 000b0001 000c0001 000d0001 000e0001 000f0001 00100001 00110001
00120001 00130001 00140001 00150001 00160001 00170001 00180001 00190001
001a0001 001b0002 001c0001 001d0001
Resuming at 002ade0c  - wish me luck.
Ω

This was done on a powerpc 7300 with a 400 MHz G3 upgrade and 112 MB RAM:
Ω kd
Kernel version 0228 Code base 0022f000 PSA 00252470 KDP 00253000 EDP 06f7f000
Current EWA 00253000  is CPU 0000  ID-00020001
Current task 00250b40 ID-00050001 name "blue" Owning process 00251220  ID-00510001
Address Space 002510e0  ID-00030001
Termination caller 00248e0c  Last exception at 0000d072 0658aae8
Resuming at 00248e0c  - wish me luck.
Ω td
Kernel registers:
SPRGs  ewa: 00253000  r1: 066063d0  lr: 0658aa28  vecBase: 00253420
       cr:  22000028 xer: 00000100 ctr: 00282e04 lr: 0658aa28
       dsisr: 40000000 dar:0028a7dc pvr: 00088302

 sr0-sr7  20000000 20100000 20200000 20300000 20400000 20500000 20600000 20700000
 sr8-sr15 20800000 20900000 20a00000 20b00000 20c00000 20d00000 20e00000 20f00000

 r0-r7    00000000 066063d0 0659b14c 06607000 00510001 0028c6b8 06f7f400 00200006
 r8-r15   06607000 00000000 0658aae8 0002d072 0658aa28 42000048 0022f320 00248dc0
 r16-r23  80000019 06607192 06f981c4 0001ffff 00000000 00000000 00000000 00000000
 r24-r31  00000000 00000000 00000000 00000000 00997faa 002526a0 00000003 0024aaf0
Resuming at 00248e0c  - wish me luck.
Ω id -a
000a0001 000b0001 000c0001 000d0001 000e0001 000f0001 00100001 00110001
00120001 00130002 00140001 00150001 00160001 00170001 00180001 00190001
001a0001 001b0001 001c0001 001d0002 001e0001 001f0001
Resuming at 00248e0c  - wish me luck.
Ω

This was done on a 250 MHz Wallstreet with 64 MB of RAM:
Ω kd
Kernel version 0228 Code base 001bf000 PSA 001e2470 KDP 001e3000 EDP 03fbf000
Current EWA 001e3000  is CPU 0000  ID-00020001
Current task 001e0b40 ID-00050001 name "blue" Owning process 001e1220  ID-00520001
Address Space 001e10e0  ID-00030001
Termination caller 001d8e0c  Last exception at 0000d072 03811ae8
Resuming at 001d8e0c  - wish me luck.
Ω td
Kernel registers:
SPRGs  ewa: 001e3000  r1: 0388d3d0  lr: 03811a28  vecBase: 001e3420
       cr:  22000028 xer: 00000100 ctr: 00206ab4 lr: 03811a28
       dsisr: 00002c03 dar:0388ebfe pvr: 00080202

 sr0-sr7  20000000 20100000 20200000 20300000 20400000 20500000 20600000 20700000
 sr8-sr15 20800000 20900000 20a00000 20b00000 20c00000 20d00000 20e00000 20f00000

 r0-r7    00000000 0388d3d0 0382214c 0388e000 00520001 00212378 03fbf400 00200006
 r8-r15   0388e000 00000000 03811ae8 0002d072 03811a28 42000048 001bf320 001d8dc0
 r16-r23  8000000e 0388e192 03fe2394 0001ffff 00000000 00000000 00000000 00000000
 r24-r31  00000000 00000000 00000000 00000000 00955fda 001e26a0 00000003 001dab83
Resuming at 001d8e0c  - wish me luck.
Ω id -a
000a0001 000b0001 000c0001 000d0001 000e0001 000f0001 00100001 00110002
00120001 00130001 00140001 00150001 00160001 00170001 00180001 00190001
001a0001 001b0001 001c0002 001d0001 001e0001 001f0001 00200001
Resuming at 001d8e0c  - wish me luck.
Ω
This was done on a 233 MHz Wallstreet with 160 MB RAM:
Ω kd
Kernel version 0228 Code base 001d1000 PSA 001f4470 KDP 001f5000 EDP 09eff000
Current EWA 001f5000  is CPU 0000  ID-00020001
Current task 001f2b40 ID-00050001 name "blue" Owning process 001f3220  ID-00590001
Address Space 001f30e0  ID-00030001
Termination caller 001eae0c  Last exception at 0000d072 08f5dbf8
Resuming at 001eae0c  - wish me luck.
Ω td
Kernel registers:
SPRGs  ewa: 001f5000  r1: 08fd94e0  lr: 08f5db38  vecBase: 001f5420
       cr:  22000028 xer: 00000100 ctr: 0022fcf4 lr: 08f5db38
       dsisr: 40000000 dar:00b2b154 pvr: 00080202

 sr0-sr7  20000000 20100000 20200000 20300000 20400000 20500000 20600000 20700000
 sr8-sr15 20800000 20900000 20a00000 20b00000 20c00000 20d00000 20e00000 20f00000

 r0-r7    00000000 08fd94e0 08f6e25c 08fda000 00590001 00968dc0 09eff400 00200006
 r8-r15   08fda000 00000000 08f5dbf8 0002d072 08f5db38 42000048 001d1320 001eadc0
 r16-r23  80000023 08fda192 09f3f684 0001ffff 00000000 00000000 00000000 00000000
 r24-r31  00000000 00000000 00000000 00000000 00a5b3aa 001f46a0 00000003 001ecb32
Resuming at 001eae0c  - wish me luck.
Ω id -a
000a0001 000b0001 000c0001 000d0001 000e0001 000f0001 00100001 00110002
00120001 00130001 00140001 00150001 00160001 00170001 00180001 00190001
001a0001 001b0001 001c0002 001d0001 001e0001 001f0001 00200001
Resuming at 001eae0c  - wish me luck.
Ω

Sorry for taking so long to respond. I stopped paying attention to this thread a few days after my last message. I am not 100% familiar with Open Firmware and Forth, but I know enough about them that I can mostly read a Forth program and figure out what is going on. I have read the CHRP scripts for OS9 and X and am familiar with the 'see' command. I would be happy to help with stuff but I have never used Git before. I would probably learn how to use it pretty quickly.

Offline ovalking

  • Gold Member
  • *****
  • Posts: 210
  • new to the forums
Re: Testers needed: NKDebug
« Reply #18 on: May 13, 2017, 12:38:20 PM »
G4 400 AGP 576M RAM
Code: [Select]
Ω kd
Kernel version 0228 Code base 00f10000 PSA 237fd470 KDP 237fe000 EDP 237ff000
Current EWA 237fe000  is CPU 0000  ID-00020001
Current task 237fbb40 ID-00050001 name "blue" Owning process 237fc220  ID-02080002
Address Space 237fc0e0  ID-00030001
Termination caller 00f29e0c  Last exception at 0000d032 1ed03a48
Resuming at 00f29e0c  - wish me luck.
Ω td
Kernel registers:
SPRGs  ewa: 237fe000  r1: 1ed7f330  lr: 1ed03988  vecBase: 237fe420
       cr:  26000028 xer: 20000100 ctr: ffcd34cc lr: 1ed03988
       dsisr: 00002c03 dar:1ed7e93e pvr: 000c0209

 sr0-sr7  20000000 20100000 20200000 20300000 20400000 20500000 20600000 20700000
 sr8-sr15 20800000 20900000 20a00000 20b00000 20c00000 20d00000 20e00000 20f00000

 r0-r7    00000000 1ed7f330 1ed1418c 1ed80000 02080002 015bd638 237ff400 00280006
 r8-r15   1f0dd000 00000000 1ed03a48 0002d032 1ed03988 44000048 00f10320 00f29dc0
 r16-r23  8800003b 1f0dd192 23bb6004 0001ffff 00000000 00000000 00000000 00000000
 r24-r31  00000000 00000000 00000000 00000000 015bacba 237fd6a0 00000003 237f65a2
Resuming at 00f29e0c  - wish me luck.
Ω id -a
000a0001 000b0001 000c0001 000d0001 000e0001 000f0001 00100001 00110001
00120001 00130001 00140001 00150001 00160001 00170001 00180001 00190001
001a0001 001b0001 001c0001
Resuming at 00f29e0c  - wish me luck.


Offline ELN

  • Gold Member
  • *****
  • Posts: 295
  • new to the forums
Re: Testers needed: NKDebug
« Reply #19 on: May 14, 2017, 09:07:20 AM »
Thanks so much guys. It's especially gratifying to see this work at all on OldWorld machines. I note, for example, that on OldWorld machines the EDP (68k emulator data page) is far, far away from the replacement kernel structures. And I was especially surprised to see this version supporting 9.1 without crashing hard.

If you try running NKDebug under SheepShaver (or under Classic), the MP call that NKDebug makes will fail with error code -4 (notImplementedErr). Neither of these platforms support NKv2, and they will make no attempt to load it. SheepShaver starts using NKv1 from a PCI Power Mac ROM, and cannot switch to NKv2 at runtime because it does not emulate an MMU. (This is the main reason SheepShaver maxes out at 9.0.4). Classic uses a "PseudoKernel" that wraps a NanoKernel-like interface around Mach and POSIX.

I have another test request. Could somebody please try this out on an OldWorld system? You will hopefully see the NanoKernel log on-screen.

Daniel and anyone else who wants a gander at the repo, PM me.