Hi, понедельник, 30 января 2012 г., 3:04:29 UTC+4 пользователь Bahadir Balban написал: > > Hi, > > Is it possible to get UART output during bootloader and kernel boot on > the galaxy nexus? We need this for debugging custom kernels using > printk. > > Regards, > Bahadir
See http://forum.xda-developers.com/showthread.php?t=1461986 You would get output on ttyFIQ0. Also to prevent it from switching to JIG mode (1) and disabled console (2) apply two hacks: 1. 429 --- a/drivers/misc/fsa9480.c 430 +++ b/drivers/misc/fsa9480.c 431 @@ -531,7 +531,8 @@ static int fsa9480_detect_callback(struct otg_id_notifier_block *nb) 432 } else if (dev_type & DEV_JIG_MASK) { 433 if (!(nb_info->detect_set->mask & FSA9480_DETECT_JIG)) 434 goto unhandled; 435 - _detected(usbsw, FSA9480_DETECT_JIG); 436 + //_detected(usbsw, FSA9480_DETECT_JIG); 437 + _detected(usbsw, FSA9480_DETECT_UART); 438 goto handled; 439 } else if (dev_type & DEV_USB_OTG) { 440 if (!(nb_info->detect_set->mask & FSA9480_DETECT_USB_HOST)) 2. 3 --- a/arch/arm/common/fiq_debugger.c 4 +++ b/arch/arm/common/fiq_debugger.c 5 @@ -768,10 +768,10 @@ static bool debug_handle_uart_interrupt(struct fiq_debugger_state *state, 6 debug_prompt(state); 7 } 8 } else if (c == FIQ_DEBUGGER_BREAK) { 9 - state->console_enable = false; 10 - debug_puts(state, "fiq debugger mode\n"); 11 - state->debug_count = 0; 12 - debug_prompt(state); 13 + //state->console_enable = false; 14 + //debug_puts(state, "fiq debugger mode\n"); 15 + //state->debug_count = 0; 16 + //debug_prompt(state); 17 #ifdef CONFIG_FIQ_DEBUGGER_CONSOLE 18 } else if (state->console_enable && state->tty_rbuf) { 19 fiq_debugger_ringbuf_push(state->tty_rbuf, c); Of course, you could get it working without these hacks. -- -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel --- You received this message because you are subscribed to the Google Groups "Android Linux Kernel Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-kernel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.