Re: kernel boot stuck at udbg_putc_cpm()
From: Shawn Jin <hidden>
Date: 2010-07-12 18:23:57
For some reason. This email was rejected. Resending... On Sun, Jul 11, 2010 at 11:26 PM, Shawn Jin [off-list ref] wrote:
You're probably getting to the point where udbg is disabled because the real serial driver is trying to take over -- and something's going wrong with the real serial port driver. =A0Check to make sure the brg config is correct (both the input clock and the baud rate you're trying to switch to). =A0Commenting out the call to cpm_set_brg can be a quick way of determining if that's the problem.
It seems that the last CP command RESTART_TX never completes in the cpm_uart_console_setup(). I commented out the writes to brgc1 in cpm_setbrg() in cpm1.c so that the brgc1 value stays the same as previously set. The registers related to SMC1 are dumped below before the last RESTART_TX command. The CPCR was 0x0090. But after issuing the RESTART_TX command the CPCR kept at 0x0691. Is there any other obvious reason for CPM not completing the command? It got to be something related to the settings. BDI>rd cpcr cpcr =A0 =A0 =A0 =A0 =A0 : 0x0090 =A0 =A0 =A0144 BDI>rd rccr rccr =A0 =A0 =A0 =A0 =A0 : 0x0001 =A0 =A0 =A01 BDI>rd rmds rmds =A0 =A0 =A0 =A0 =A0 : 0x00 =A0 =A0 =A0 =A00 BDI>rd rctr1 rctr1 =A0 =A0 =A0 =A0 =A0: 0x0000 =A0 =A0 =A00 BDI>rd rctr2 rctr2 =A0 =A0 =A0 =A0 =A0: 0x0000 =A0 =A0 =A00 BDI>rd rctr3 rctr3 =A0 =A0 =A0 =A0 =A0: 0x802e =A0 =A0 =A0-32722 BDI>rd rctr4 rctr4 =A0 =A0 =A0 =A0 =A0: 0x802c =A0 =A0 =A0-32724 BDI>rd rter rter =A0 =A0 =A0 =A0 =A0 : 0x0000 =A0 =A0 =A00 BDI>rd rtmr rtmr =A0 =A0 =A0 =A0 =A0 : 0x0000 =A0 =A0 =A00 BDI>rd brgc1 brgc1 =A0 =A0 =A0 =A0 =A0: 0x00010618 =A067096 BDI>rd smcmr1 smcmr1 =A0 =A0 =A0 =A0 : 0x4823 =A0 =A0 =A018467 BDI>rd smce1 smce1 =A0 =A0 =A0 =A0 =A0: 0x00 =A0 =A0 =A0 =A00 BDI>rd smcm1 smcm1 =A0 =A0 =A0 =A0 =A0: 0x00 =A0 =A0 =A0 =A00 Thanks, -Shawn.