Article [#4968] early_printk doesn't print out at the correct baud rate

[#4968] early_printk doesn't print out at the correct baud rate

Submitted By: Robin Getz

Open Date

2009-03-08 14:24:20     Close Date

2009-03-08 14:33:03

Priority:

Medium     Assignee:

Robin Getz

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

trunk

Category:

Kernel Functions     Board:

Bluetechnix CM

Processor:

ALL     Silicon Revision:

0.2

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

trunk     Toolchain version or rev.:

trunk

App binary format:

N/A     

Summary: early_printk doesn't print out at the correct baud rate

Details:

early_printk doesn't work when not using default baud rate of 57600.

This is because common functions in ./kernel/printk.c:register_console()

call bfin_serial_console_setup() without any options, and it defaults to 57600.

int baud = 57600;

So, make sure that doesn't happen.

-Robin

Follow-ups

--- Robin Getz                                               2009-03-08 14:32:28

I'm not sure if this is the best fix - but what happens is:

- we setup the UART when parsing bfin_earlyserial_init with the options that

are passed from the command line

- we call register_console, which does the same thing, but since it doesn't

have the right options, things always get set to 57600...

so, remove the setup option in the struct.

--- Robin Getz                                               2009-03-08 14:33:03

Marked as closed/fixed.

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

No Files Were Found

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.