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