On Thu, 15 Feb 2018, Sevan Janiyan wrote:
On 13/02/2018 23:40, Paul Goyette wrote:Probably not needed. If you just set ddb.onpanic to 2 it should cause a stack trace to be printed before prompting for a command. See ddb(4) man page...On 14/02/2018 00:35, Christos Zoulas wrote:You can just do the same with sysctl ddb.onpanic=2...Thanks for the pointer, so on a fresh system which doesn't have NetBSD installed yet & I have issues booting the stock kernel on install media, how would I set that?
If you can boot _something_ then boot -d to get an initial breakpoint entry into ddb. Then just update the global variable db_onpanic to 1
+------------------+--------------------------+----------------------------+ | Paul Goyette | PGP Key fingerprint: | E-mail addresses: | | (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com | | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org | +------------------+--------------------------+----------------------------+