From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: printk/console_init - baud rate setting Date: Tue, 13 Nov 2007 18:28:56 -0800 Message-ID: In-Reply-To: References: From: "Siva Prasad" To: "Geert Uytterhoeven" Cc: linuxppc-dev@ozlabs.org, linuxppc-embedded@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Thanks a lot Geert and Benjamin for your response. Code is indeed calling register_console from three different places=20 1) con_init()[name-tty],=20 2) serial8250_console_init()[name-ttyS],=20 3) early_uart_console_init()[name-uart].=20 Among these, 8250 must be the active one. Also serial8250_console_write() keeps hitting the BDI2000 break point with same address and count again and again. I am getting garbage on the screen. So, I presume this must be some sort of baud rate issue. Can some one help me out understand how this baud is set for serial drivers? I want to run at 115200. Thanks Siva -----Original Message----- From: geert@sonytel.be [mailto:geert@sonytel.be] On Behalf Of Geert Uytterhoeven Sent: Tuesday, November 13, 2007 12:17 AM To: Siva Prasad Cc: linuxppc-dev@ozlabs.org; linuxppc-embedded@ozlabs.org Subject: Re: printk/console_init On Mon, 12 Nov 2007, Siva Prasad wrote: > I am using 2.6.19 Linux on 8641D based system. >=20 > I am using early printk's and it works fine until console_init() is > executed. After that it does not, as the early printk's get disabled, > which is fine. However, I don't see any prints after that at all, that > are based on regular printk statements. I looked directly into the > memory at __log_buf and found all the print messages. It is just not > coming out to the serial port properly. >=20 > It would be great if some one can tell me various parameters that I need > to consider changing, to successfully port the serial driver for a new > board. >=20 > Based on the early printk's, I am getting the following messages... >=20 > Using MPC86xx HPCN machine description > Total memory =3D 1024MB; using 2048kB for hash table (at cfe00000) > Linux version 2.6.19 (sprasad@cider.bivio.net) (gcc version 4.1.1 > 20060525 (Red Hat 4.1.1-1)) #115 SMP Mon Nov 12 18:21:43 PST 2007 > Found legacy serial port 0 for /soc8641@ff700000/serial@4500 > mem=3Dff704500, taddr=3Dff704500, irq=3D1a, clk=3D1496250, speed=3D0 > Found MPC86xx PCIE host bridge at 0x00000000ff708000. Firmware bus > number: 0->254 > Found MPC86xx PCIE host bridge at 0x00000000ff709000. Firmware bus > number: 0->255 > MPC86xx HPCN board from Freescale Semiconductor > Zone PFN ranges: > DMA 0 -> 196608 > Normal 196608 -> 196608 > HighMem 196608 -> 262144 > early_node_map[1] active PFN ranges > 0: 0 -> 262144 > start_kernel: 8 22000000. > Built 1 zonelists. Total pages: 260096 > Kernel command line: console=3DttyS0,115200 root=3D/dev/sda8 ^^^^^^^^^^^^ > mpic: Setting up MPIC " MPIC " version 1.2 at ff740000, max 2 CPUs > mpic: ISU size: 16, shift: 4, mask: f > mpic: Initializing for 80 sources > PID hash table entries: 4096 (order: 12, 16384 bytes) > time_init: decrementer frequency =3D 150.000000 MHz > time_init: processor frequency =3D 1496.250000 MHz > <........ Nothing gets printed after this .......> Did your serial driver (a) call register_console() (b) using the correct name? With kind regards, =20 Geert Uytterhoeven Software Architect Sony Network and Software Technology Center Europe The Corporate Village * Da Vincilaan 7-D1 * B-1935 Zaventem * Belgium =20 Phone: +32 (0)2 700 8453=09 Fax: +32 (0)2 700 8622=09 E-mail: Geert.Uytterhoeven@sonycom.com=09 Internet: http://www.sony-europe.com/ =09 Sony Network and Software Technology Center Europe=09 A division of Sony Service Centre (Europe) N.V.=09 Registered office: Technologielaan 7 * B-1840 Londerzeel * Belgium=09 VAT BE 0413.825.160 * RPR Brussels=09 Fortis Bank Zaventem * Swift GEBABEBB08A * IBAN BE39001382358619