Kconfig.debug 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. # SPDX-License-Identifier: GPL-2.0
  2. config EARLY_PRINTK
  3. bool "Early printk" if EXPERT
  4. depends on SYS_HAS_EARLY_PRINTK
  5. default y
  6. help
  7. This option enables special console drivers which allow the kernel
  8. to print messages very early in the bootup process.
  9. This is useful for kernel debugging when your machine crashes very
  10. early before the console code is initialized. For normal operation,
  11. it is not recommended because it looks ugly on some machines and
  12. doesn't cooperate with an X server. You should normally say N here,
  13. unless you want to debug such a crash.
  14. config EARLY_PRINTK_8250
  15. bool
  16. depends on EARLY_PRINTK && USE_GENERIC_EARLY_PRINTK_8250
  17. default y
  18. help
  19. "8250/16550 and compatible serial early printk driver"
  20. If you say Y here, it will be possible to use a 8250/16550 serial
  21. port as the boot console.
  22. config USE_GENERIC_EARLY_PRINTK_8250
  23. bool
  24. config CMDLINE_BOOL
  25. bool "Built-in kernel command line"
  26. help
  27. For most systems, it is firmware or second stage bootloader that
  28. by default specifies the kernel command line options. However,
  29. it might be necessary or advantageous to either override the
  30. default kernel command line or add a few extra options to it.
  31. For such cases, this option allows you to hardcode your own
  32. command line options directly into the kernel. For that, you
  33. should choose 'Y' here, and fill in the extra boot arguments
  34. in CONFIG_CMDLINE.
  35. The built-in options will be concatenated to the default command
  36. line if CMDLINE_OVERRIDE is set to 'N'. Otherwise, the default
  37. command line will be ignored and replaced by the built-in string.
  38. Most MIPS systems will normally expect 'N' here and rely upon
  39. the command line from the firmware or the second-stage bootloader.
  40. config CMDLINE
  41. string "Default kernel command string"
  42. depends on CMDLINE_BOOL
  43. help
  44. On some platforms, there is currently no way for the boot loader to
  45. pass arguments to the kernel. For these platforms, and for the cases
  46. when you want to add some extra options to the command line or ignore
  47. the default command line, you can supply some command-line options at
  48. build time by entering them here. In other cases you can specify
  49. kernel args so that you don't have to set them up in board prom
  50. initialization routines.
  51. For more information, see the CMDLINE_BOOL and CMDLINE_OVERRIDE
  52. options.
  53. config CMDLINE_OVERRIDE
  54. bool "Built-in command line overrides firmware arguments"
  55. depends on CMDLINE_BOOL
  56. help
  57. By setting this option to 'Y' you will have your kernel ignore
  58. command line arguments from firmware or second stage bootloader.
  59. Instead, the built-in command line will be used exclusively.
  60. Normally, you will choose 'N' here.
  61. config SB1XXX_CORELIS
  62. bool "Corelis Debugger"
  63. depends on SIBYTE_SB1xxx_SOC
  64. select DEBUG_KERNEL if !COMPILE_TEST
  65. select DEBUG_INFO if !COMPILE_TEST
  66. help
  67. Select compile flags that produce code that can be processed by the
  68. Corelis mksym utility and UDB Emulator.
  69. config DEBUG_ZBOOT
  70. bool "Enable compressed kernel support debugging"
  71. depends on DEBUG_KERNEL && SYS_SUPPORTS_ZBOOT
  72. default n
  73. help
  74. If you want to add compressed kernel support to a new board, and the
  75. board supports uart16550 compatible serial port, please select
  76. SYS_SUPPORTS_ZBOOT_UART16550 for your board and enable this option to
  77. debug it.
  78. If your board doesn't support uart16550 compatible serial port, you
  79. can try to select SYS_SUPPORTS_ZBOOT and use the other methods to
  80. debug it. for example, add a new serial port support just as
  81. arch/mips/boot/compressed/uart-16550.c does.
  82. After the compressed kernel support works, please disable this option
  83. to reduce the kernel image size and speed up the booting procedure a
  84. little.
  85. config ZBOOT_INGENIC_UART
  86. int "UART to use for compressed kernel debugging"
  87. depends on DEBUG_ZBOOT && MACH_INGENIC_SOC
  88. default 0
  89. range 0 4
  90. help
  91. Specify the UART that should be used for compressed kernel debugging.
  92. config SPINLOCK_TEST
  93. bool "Enable spinlock timing tests in debugfs"
  94. depends on DEBUG_FS
  95. default n
  96. help
  97. Add several files to the debugfs to test spinlock speed.
  98. config SCACHE_DEBUGFS
  99. bool "L2 cache debugfs entries"
  100. depends on DEBUG_FS
  101. help
  102. Enable this to allow parts of the L2 cache configuration, such as
  103. whether or not prefetching is enabled, to be exposed to userland
  104. via debugfs.
  105. If unsure, say N.
  106. menuconfig MIPS_CPS_NS16550_BOOL
  107. bool "CPS SMP NS16550 UART output"
  108. depends on MIPS_CPS
  109. help
  110. Output debug information via an ns16550 compatible UART if exceptions
  111. occur early in the boot process of a secondary core.
  112. if MIPS_CPS_NS16550_BOOL
  113. config MIPS_CPS_NS16550
  114. def_bool MIPS_CPS_NS16550_BASE != 0
  115. config MIPS_CPS_NS16550_BASE
  116. hex "UART Base Address"
  117. default 0x1b0003f8 if MIPS_MALTA
  118. default 0
  119. help
  120. The base address of the ns16550 compatible UART on which to output
  121. debug information from the early stages of core startup.
  122. This is only used if non-zero.
  123. config MIPS_CPS_NS16550_SHIFT
  124. int "UART Register Shift"
  125. default 0
  126. help
  127. The number of bits to shift ns16550 register indices by in order to
  128. form their addresses. That is, log base 2 of the span between
  129. adjacent ns16550 registers in the system.
  130. config MIPS_CPS_NS16550_WIDTH
  131. int "UART Register Width"
  132. default 1
  133. help
  134. ns16550 registers width. UART registers IO access methods will be
  135. selected in accordance with this parameter. By setting it to 1, 2 or
  136. 4 UART registers will be accessed by means of lb/sb, lh/sh or lw/sw
  137. instructions respectively. Any value not from that set activates
  138. lb/sb instructions.
  139. endif # MIPS_CPS_NS16550_BOOL