zmatt

am335x earlyprintk vs earlycon

Sep 28th, 2021 (edited)
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. (am335x, kernel 4.19-ti)
  2.  
  3. Note: earlyprintk parameter ignores argument
  4. earlycon optionally takes argument, the flow below assumes no argument
  5.  
  6.  
  7. ========== earlyprintk =========================================================
  8.  
  9. CONFIG_DEBUG_KERNEL=y
  10. CONFIG_DEBUG_LL=y
  11. CONFIG_DEBUG_AM33XXUART1=y "Kernel low-level debugging messages via AM33XX UART1"
  12. (note that this is in fact uart0, not uart1 as it claims)
  13. kernel parameter: earlyprintk
  14.  
  15. (config):
  16.  
  17. arch/arm/Kconfig.debug config DEBUG_LL_INCLUDE
  18. arch/arm/Kconfig.debug default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
  19.  
  20. (init):
  21.  
  22. arch/arm/kernel/early_printk.c [match] early_param("earlyprintk", setup_early_printk);
  23. arch/arm/kernel/early_printk.c setup_early_printk()
  24.  
  25. (write):
  26.  
  27. arch/arm/kernel/early_printk.c early_console_write()
  28. arch/arm/kernel/early_printk.c early_write()
  29. arch/arm/kernel/debug.S ENTRY(printascii)
  30. arch/arm/include/debug/8250.S .macro addruart
  31.  
  32.  
  33. ========== earlycon (no argument) ==============================================
  34.  
  35. CONFIG_SERIAL_EARLYCON=y
  36. kernel parameter: earlycon
  37.  
  38. (init):
  39.  
  40. drivers/tty/serial/earlycon.c [match] early_param("earlycon", param_setup_earlycon);
  41. drivers/tty/serial/earlycon.c param_setup_earlycon()
  42. drivers/of/fdt.c: early_init_dt_scan_chosen_stdout()
  43. drivers/tty/serial/8250/8250_early.c [match] OF_EARLYCON_DECLARE(omap8250, "ti,omap3-uart", early_omap8250_setup);
  44. drivers/tty/serial/earlycon.c of_setup_earlycon()
  45. drivers/tty/serial/earlycon.c earlycon_init()
  46. drivers/tty/serial/8250/8250_early.c early_omap8250_setup()
  47.  
  48. (write):
  49.  
  50. drivers/tty/serial/8250/8250_early.c early_serial8250_write
  51. drivers/tty/serial/serial_core.c uart_console_write
  52. drivers/tty/serial/8250/8250_early.c serial_putc
Add Comment
Please, Sign In to add comment