I have been trying to get OI hipster to boot on my laptop with AMD Ryzen AI 9 
HX 370 CPU and integrated Radeon 890M GPU but it gets stuck at kb80420 is 
/pci@0,0/isa@14,3/i84201,60/keyboard@0.
After stepping though kmdb, i got to `clear_boot_mappings() -> x86pte_inval()-> 
x86pte_inval+0x56: lock cmpxchgq %rcx, (%rdx)` after which kmdb keeps running 
into CPU fault after pressing any key on the keyboard. I am using text mode to 
boot.

```
::step
kmdb: target stopped at:
x86pte_inval+0x46: je     +0xb <x86pte_inval+0x53>

[register dump at 0x46 instruction]
%rax = 0xffffffd001cc07000
%rbx = 0x0000000000000000
%rcx = 0x0000000000000000
%rdx = 0xffffffd001cc07000
%rsi = 0xffffffffff000
%rdi = 0x0000000000000000
%r8  = 0x0000000000000c07
%r9  = 0x0000000000001000
%r10 = 0xfffffffffb96f0c1
%r11 = 0xfffffffffbcaf1dd
%r12 = 0x0000000000000473
%r13 = 0xfffffe2bc5308eb0
%r14 = 0x0000000000000000
%r15 = 0x0000000000000000

::step
kmdb: target stopped at:
x86pte_inval+0x53: movq %r12, %rax

[register dump at 0x53 instruction same as above]

::step
kmdb: target stopped at:
x86pte_inval+0x56: lock cmpxchgq %rcx, (%rdx)

[register dump at 0x56 instruction same as above]

::step
kmdb: target stopped at:
x86pte_inval+0x5b: cmpq   %rax, %r12

*** Debugger Fault (CPU 0)
trapno: 14, sp: fffffffff8dfa90, pc: fffffffffb87668a kb_translate+0x2a
    [1] 2a()
    [2] fffffffffb876235 bcons_ischar+0x55()
    [3] fffffffffbd809d0 prom_mayget+0x10()
    [4] fffffffffbd72739 kmdb_prom_getchar+0x79()
    [5] fffffffffbd7300d kmdb_prom_reader+0x3d()
    [6] fffffffffbd732da kmdb_prom_fill_readbuf+0xca()
    [7] fffffffffbd733fa kmdb_prom_read+0x3a()
    [8] fffffffffbd72ac6 pio_read+0x26()
    [9] fffffffffbd5d436 iob_read+0x26()
    [10] fffffffffbd600e5 mdm_iob_get+0x45()
    [11] fffffffffbd7af0d termio_read+0x1dd()
    [12] fffffffffbd5d436 iob_read+0x26()
    [13] fffffffffbd600e5 mdm_iob_get+0x45()
    [14] fffffffffbd81ce0 input+0x10c()
    [15] fffffffffbd8230d yylook+0x7d()
    [16] fffffffffbd812b1 yylex+0x11()
    [17] fffffffffbd829f9 yyparse+0x249()
    [18] fffffffffbd48037 mdb_run+0x267()
    [19] fffffffffbd6637d kmdb_main+0x2d()
    [20] fffffffffbd811e0 kmdb_first_start+0x20()
```

The full kmdb walkthough - https://postimg.cc/gallery/L5SRzQ5

The keyboard on kmdb works fine until this point. 

Also on the side note, I tried using serial console via connect USB to RS232 
FTDI adapter and adding `console=usb-serial` and `os_console=usb-serial` which 
did not work. Also tried switching to all tty options from ttya to ttd which 
also did not work. I am able to usb the serial console from linux on the same 
machine. 
------------------------------------------
illumos: illumos-discuss
Permalink: 
https://illumos.topicbox.com/groups/discuss/Tbc4d081ad58aef80-M2dbed1fbdee3e492656b9eb7
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

Reply via email to