GalaxyNexusI9250SerialConsole » History » Revision 2
Revision 1 (Denis 'GNUtoo' Carikli, 11/02/2012 10:18 PM) → Revision 2/22 (Denis 'GNUtoo' Carikli, 11/02/2012 10:18 PM)
h1. GalaxyNexusSerialConsole
* http://redmine.replicant.us/projects/replicant/wiki/S5PC110Bootloader works as a serial cable.
When you connect the cable you get the FIQ debugger, but what if you want kgdb instead:
* apply that patch:
<pre>
diff --git a/arch/arm/mach-omap2/board-tuna.c b/arch/arm/mach-omap2/board-tuna.c
index a022a43..7098227 100644
--- a/arch/arm/mach-omap2/board-tuna.c
+++ b/arch/arm/mach-omap2/board-tuna.c
@@ -1001,6 +1001,8 @@ static inline void __init board_serial_init(void)
omap_serial_init_port_pads(0, uart1_pads, uart1_pads_sz, NULL);
omap_serial_init_port_pads(1, tuna_uart2_pads,
ARRAY_SIZE(tuna_uart2_pads), &tuna_uart2_info);
+ omap_serial_init_port_pads(2,tuna_uart3_pads,
+ ARRAY_SIZE(tuna_uart3_pads), NULL);
omap_serial_init_port_pads(3, tuna_uart4_pads,
ARRAY_SIZE(tuna_uart4_pads), NULL);
}
</pre>
* remove the FIQ debugger in the kernel configuration.
* change the CMDLINE trough the kernel configuration:
Use:
<pre>CONFIG_CMDLINE="console=ttyO2 androidboot.console=ttyO2 [...]"</pre>
Instead of:
<pre>CONFIG_CMDLINE="console=ttyFIQ0 androidboot.console=ttyFIQ0 [...]"</pre>
Verify that you get the kernel messages.
Then change the cmdline for kgdb